diff --git a/Dockerfile b/Dockerfile
index 428ec4664c5..439a479ae74 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -95,6 +95,14 @@ RUN \
apt-get update && \
apt-get install dart=2.13.4-1
+# elixir
+RUN \
+ wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && \
+ dpkg -i erlang-solutions_2.0_all.deb && \
+ apt-get -q update && apt-get install --no-install-recommends -y -q esl-erlang elixir && \
+ rm erlang-solutions_2.0_all.deb && \
+ mix local.hex --force
+
# rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -125,4 +133,4 @@ RUN go build -o /usr/local/bin/ory github.com/ory/cli
RUN swagger version
RUN ory version
-ENTRYPOINT /bin/bash
\ No newline at end of file
+ENTRYPOINT /bin/bash
diff --git a/README.md b/README.md
index 089a8b8ec32..6cc7bbf087f 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ desired version.
You may also manually build and publish this image using:
```shell script
-docker build -t oryd/sdk:latest .
+docker build --platform linux/amd64 -t oryd/sdk:latest .
docker tag oryd/sdk:latest oryd/sdk:v0.0.34
docker push oryd/sdk:v0.0.34
```
@@ -20,7 +20,7 @@ docker push oryd/sdk:v0.0.34
If you wish to debug some generators or build steps, you can run the image locally:
```shell script
-docker run --mount type=bind,source="$(pwd)",target=/sdk --name sdk --user "$(id -u):$(id -g)" -it oryd/sdk:v0.0.47 /bin/sh
+docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/sdk --name sdk --user "$(id -u):$(id -g)" -it oryd/sdk:latest /bin/sh
```
### Debugging Failing CircleCI Tests
@@ -29,13 +29,12 @@ If a CircleCI tests fails ([see example](https://app.circleci.com/pipelines/gith
you may run the following code snippet to reproduce the failure locally:
```shell script
-docker run --mount type=bind,source="$(pwd)",target=/project -it oryd/sdk:v0.0.47 /bin/sh
+docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/project -it oryd/sdk:latest /bin/sh
export FORCE_VERSION=v1.11.0
export FORCE_PROJECT=hydra # or hydra or something else
cd /project
-cp spec/api.json "/sdk/spec/${CIRCLE_PROJECT_REPONAME}/v0.0.1-test.0.json"
./scripts/generate.sh
./scripts/test.sh
```
diff --git a/clients/client/elixir/.gitignore b/clients/client/elixir/.gitignore
new file mode 100644
index 00000000000..b6012c77a3a
--- /dev/null
+++ b/clients/client/elixir/.gitignore
@@ -0,0 +1,20 @@
+# The directory Mix will write compiled artifacts to.
+/_build
+
+# If you run "mix test --cover", coverage assets end up here.
+/cover
+
+# The directory Mix downloads your dependencies sources to.
+/deps
+
+# Where 3rd-party dependencies like ExDoc output generated docs.
+/doc
+
+# Ignore .fetch files in case you like to edit your project deps locally.
+/.fetch
+
+# If the VM crashes, it generates a dump, let's ignore it too.
+erl_crash.dump
+
+# Also ignore archive artifacts (built via "mix archive.build").
+*.ez
diff --git a/clients/client/elixir/.openapi-generator-ignore b/clients/client/elixir/.openapi-generator-ignore
new file mode 100644
index 00000000000..7484ee590a3
--- /dev/null
+++ b/clients/client/elixir/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/clients/client/elixir/.openapi-generator/FILES b/clients/client/elixir/.openapi-generator/FILES
new file mode 100644
index 00000000000..58607b2a08e
--- /dev/null
+++ b/clients/client/elixir/.openapi-generator/FILES
@@ -0,0 +1,116 @@
+.gitignore
+.openapi-generator-ignore
+README.md
+config/config.exs
+lib/client/api/metadata.ex
+lib/client/api/v0alpha0.ex
+lib/client/api/v0alpha2.ex
+lib/client/connection.ex
+lib/client/deserializer.ex
+lib/client/model/active_project.ex
+lib/client/model/admin_create_identity_body.ex
+lib/client/model/admin_create_self_service_recovery_link_body.ex
+lib/client/model/admin_update_identity_body.ex
+lib/client/model/api_token.ex
+lib/client/model/authenticator_assurance_level.ex
+lib/client/model/cloud_account.ex
+lib/client/model/cname_settings.ex
+lib/client/model/create_custom_hostname_body.ex
+lib/client/model/create_subscription_payload.ex
+lib/client/model/error_authenticator_assurance_level_not_satisfied.ex
+lib/client/model/generic_error.ex
+lib/client/model/health_not_ready_status.ex
+lib/client/model/health_status.ex
+lib/client/model/identity.ex
+lib/client/model/identity_credentials.ex
+lib/client/model/identity_credentials_type.ex
+lib/client/model/identity_preset.ex
+lib/client/model/identity_schema.ex
+lib/client/model/identity_schema_location.ex
+lib/client/model/identity_schema_validation_result.ex
+lib/client/model/identity_state.ex
+lib/client/model/inline_object.ex
+lib/client/model/inline_response_200.ex
+lib/client/model/inline_response_200_1.ex
+lib/client/model/inline_response_503.ex
+lib/client/model/invite_payload.ex
+lib/client/model/is_owner_for_project_by_slug.ex
+lib/client/model/is_owner_for_project_by_slug_payload.ex
+lib/client/model/json_error.ex
+lib/client/model/needs_privileged_session_error.ex
+lib/client/model/null_plan.ex
+lib/client/model/pagination.ex
+lib/client/model/project.ex
+lib/client/model/project_host.ex
+lib/client/model/project_invite.ex
+lib/client/model/project_revision.ex
+lib/client/model/project_revision_hook.ex
+lib/client/model/project_revision_identity_schema.ex
+lib/client/model/project_revision_third_party_login_provider.ex
+lib/client/model/project_slug.ex
+lib/client/model/quota_project_member_seats.ex
+lib/client/model/recovery_address.ex
+lib/client/model/revoked_sessions.ex
+lib/client/model/schema_patch.ex
+lib/client/model/self_service_browser_location_change_required_error.ex
+lib/client/model/self_service_error.ex
+lib/client/model/self_service_flow_expired_error.ex
+lib/client/model/self_service_login_flow.ex
+lib/client/model/self_service_logout_url.ex
+lib/client/model/self_service_recovery_flow.ex
+lib/client/model/self_service_recovery_flow_state.ex
+lib/client/model/self_service_recovery_link.ex
+lib/client/model/self_service_registration_flow.ex
+lib/client/model/self_service_settings_flow.ex
+lib/client/model/self_service_settings_flow_state.ex
+lib/client/model/self_service_verification_flow.ex
+lib/client/model/self_service_verification_flow_state.ex
+lib/client/model/session.ex
+lib/client/model/session_authentication_method.ex
+lib/client/model/session_device.ex
+lib/client/model/settings_profile_form_config.ex
+lib/client/model/stripe_customer_response.ex
+lib/client/model/submit_self_service_login_flow_body.ex
+lib/client/model/submit_self_service_login_flow_with_lookup_secret_method_body.ex
+lib/client/model/submit_self_service_login_flow_with_oidc_method_body.ex
+lib/client/model/submit_self_service_login_flow_with_password_method_body.ex
+lib/client/model/submit_self_service_login_flow_with_totp_method_body.ex
+lib/client/model/submit_self_service_login_flow_with_web_authn_method_body.ex
+lib/client/model/submit_self_service_logout_flow_without_browser_body.ex
+lib/client/model/submit_self_service_recovery_flow_body.ex
+lib/client/model/submit_self_service_recovery_flow_with_link_method_body.ex
+lib/client/model/submit_self_service_registration_flow_body.ex
+lib/client/model/submit_self_service_registration_flow_with_oidc_method_body.ex
+lib/client/model/submit_self_service_registration_flow_with_password_method_body.ex
+lib/client/model/submit_self_service_settings_flow_body.ex
+lib/client/model/submit_self_service_settings_flow_with_lookup_method_body.ex
+lib/client/model/submit_self_service_settings_flow_with_oidc_method_body.ex
+lib/client/model/submit_self_service_settings_flow_with_password_method_body.ex
+lib/client/model/submit_self_service_settings_flow_with_profile_method_body.ex
+lib/client/model/submit_self_service_settings_flow_with_totp_method_body.ex
+lib/client/model/submit_self_service_settings_flow_with_web_authn_method_body.ex
+lib/client/model/submit_self_service_verification_flow_body.ex
+lib/client/model/submit_self_service_verification_flow_with_link_method_body.ex
+lib/client/model/subscription.ex
+lib/client/model/successful_project_config_update.ex
+lib/client/model/successful_self_service_login_without_browser.ex
+lib/client/model/successful_self_service_registration_without_browser.ex
+lib/client/model/ui_container.ex
+lib/client/model/ui_node.ex
+lib/client/model/ui_node_anchor_attributes.ex
+lib/client/model/ui_node_attributes.ex
+lib/client/model/ui_node_image_attributes.ex
+lib/client/model/ui_node_input_attributes.ex
+lib/client/model/ui_node_meta.ex
+lib/client/model/ui_node_script_attributes.ex
+lib/client/model/ui_node_text_attributes.ex
+lib/client/model/ui_text.ex
+lib/client/model/update_custom_hostname_body.ex
+lib/client/model/update_project_config_config.ex
+lib/client/model/update_subscription_payload.ex
+lib/client/model/verifiable_identity_address.ex
+lib/client/model/version.ex
+lib/client/model/warning.ex
+lib/client/request_builder.ex
+mix.exs
+test/test_helper.exs
diff --git a/clients/client/elixir/.openapi-generator/VERSION b/clients/client/elixir/.openapi-generator/VERSION
new file mode 100644
index 00000000000..804440660c7
--- /dev/null
+++ b/clients/client/elixir/.openapi-generator/VERSION
@@ -0,0 +1 @@
+5.2.1
\ No newline at end of file
diff --git a/clients/client/elixir/README.md b/clients/client/elixir/README.md
new file mode 100644
index 00000000000..a3b86611687
--- /dev/null
+++ b/clients/client/elixir/README.md
@@ -0,0 +1,26 @@
+# Client
+
+Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
+
+### Building
+
+To install the required dependencies and to build the elixir project, run:
+```
+mix local.hex --force
+mix do deps.get, compile
+```
+
+## Installation
+
+If [available in Hex](https://hex.pm/docs/publish), the package can be installed
+by adding `ory_client` to your list of dependencies in `mix.exs`:
+
+```elixir
+def deps do
+ [{:ory_client, "~> 0.1.0"}]
+end
+```
+
+Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
+and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
+be found at [https://hexdocs.pm/ory_client](https://hexdocs.pm/ory_client).
diff --git a/clients/client/elixir/config/config.exs b/clients/client/elixir/config/config.exs
new file mode 100644
index 00000000000..7c1fc14014b
--- /dev/null
+++ b/clients/client/elixir/config/config.exs
@@ -0,0 +1,30 @@
+# This file is responsible for configuring your application
+# and its dependencies with the aid of the Mix.Config module.
+use Mix.Config
+
+# This configuration is loaded before any dependency and is restricted
+# to this project. If another project depends on this project, this
+# file won't be loaded nor affect the parent project. For this reason,
+# if you want to provide default values for your application for
+# 3rd-party users, it should be done in your "mix.exs" file.
+
+# You can configure for your application as:
+#
+# config :ory_apis, key: :value
+#
+# And access this configuration in your application as:
+#
+# Application.get_env(:ory_apis, :key)
+#
+# Or configure a 3rd-party app:
+#
+# config :logger, level: :info
+#
+
+# It is also possible to import configuration files, relative to this
+# directory. For example, you can emulate configuration per environment
+# by uncommenting the line below and defining dev.exs, test.exs and such.
+# Configuration from the imported file will override the ones defined
+# here (which is why it is important to import them last).
+#
+# import_config "#{Mix.env}.exs"
diff --git a/clients/client/elixir/lib/client/api/metadata.ex b/clients/client/elixir/lib/client/api/metadata.ex
new file mode 100644
index 00000000000..8ecdf2517b4
--- /dev/null
+++ b/clients/client/elixir/lib/client/api/metadata.ex
@@ -0,0 +1,90 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Api.Metadata do
+ @moduledoc """
+ API calls for all endpoints tagged `Metadata`.
+ """
+
+ alias Client.Connection
+ import Client.RequestBuilder
+
+
+ @doc """
+ Return Running Software Version.
+ This endpoint returns the version of Ory Kratos. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.InlineResponse2001.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_version(Tesla.Env.client, keyword()) :: {:ok, Client.Model.InlineResponse2001.t} | {:error, Tesla.Env.t}
+ def get_version(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/version")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.InlineResponse2001{}}
+ ])
+ end
+
+ @doc """
+ Check HTTP Server Status
+ This endpoint returns a HTTP 200 status code when Ory Kratos is accepting incoming HTTP requests. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.InlineResponse200.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec is_alive(Tesla.Env.client, keyword()) :: {:ok, Client.Model.GenericError.t} | {:ok, Client.Model.InlineResponse200.t} | {:error, Tesla.Env.t}
+ def is_alive(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/health/alive")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.InlineResponse200{}},
+ { 500, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Check HTTP Server and Database Status
+ This endpoint returns a HTTP 200 status code when Ory Kratos is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.InlineResponse200.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec is_ready(Tesla.Env.client, keyword()) :: {:ok, Client.Model.InlineResponse503.t} | {:ok, Client.Model.InlineResponse200.t} | {:error, Tesla.Env.t}
+ def is_ready(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/health/ready")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.InlineResponse200{}},
+ { 503, %Client.Model.InlineResponse503{}}
+ ])
+ end
+end
diff --git a/clients/client/elixir/lib/client/api/v0alpha0.ex b/clients/client/elixir/lib/client/api/v0alpha0.ex
new file mode 100644
index 00000000000..cf44e08a9a3
--- /dev/null
+++ b/clients/client/elixir/lib/client/api/v0alpha0.ex
@@ -0,0 +1,330 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Api.V0alpha0 do
+ @moduledoc """
+ API calls for all endpoints tagged `V0alpha0`.
+ """
+
+ alias Client.Connection
+ import Client.RequestBuilder
+
+
+ @doc """
+ Create a Project
+ Creates a new project.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (ProjectRevision):
+ ## Returns
+
+ {:ok, Client.Model.Project.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec create_project(Tesla.Env.client, keyword()) :: {:ok, Client.Model.Project.t} | {:ok, Client.Model.GenericError.t} | {:error, Tesla.Env.t}
+ def create_project(connection, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/backoffice/public/projects")
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 201, %Client.Model.Project{}},
+ { 401, %Client.Model.GenericError{}},
+ { 403, %Client.Model.GenericError{}},
+ { 404, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Returns Your Active Ory Cloud Project
+ Use this API to get your active project in the Ory Cloud Console UI.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.ActiveProject.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_active_project(Tesla.Env.client, keyword()) :: {:ok, Client.Model.GenericError.t} | {:ok, Client.Model.ActiveProject.t} | {:error, Tesla.Env.t}
+ def get_active_project(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/backoffice/public/console/projects/active")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.ActiveProject{}},
+ { 401, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Get a Project
+ Get a projects you have access to by its ID.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - project_id (String.t): Project ID The project's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.Project.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_project(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.Project.t} | {:ok, Client.Model.GenericError.t} | {:error, Tesla.Env.t}
+ def get_project(connection, project_id, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/backoffice/public/projects/#{project_id}")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.Project{}},
+ { 401, %Client.Model.GenericError{}},
+ { 403, %Client.Model.GenericError{}},
+ { 404, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Get all members associated with this project.
+ This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - project_id (String.t): Project ID The project's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, [%CloudAccount{}, ...]} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_project_members(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.GenericError.t} | {:ok, list(Client.Model.CloudAccount.t)} | {:error, Tesla.Env.t}
+ def get_project_members(connection, project_id, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/backoffice/public/projects/#{project_id}/members")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, [%Client.Model.CloudAccount{}]},
+ { 401, %Client.Model.GenericError{}},
+ { 406, %Client.Model.GenericError{}},
+ { 500, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ List All Projects
+ Lists all projects you have access to.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, [%Project{}, ...]} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec list_projects(Tesla.Env.client, keyword()) :: {:ok, list(Client.Model.Project.t)} | {:ok, Client.Model.GenericError.t} | {:error, Tesla.Env.t}
+ def list_projects(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/backoffice/public/projects")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, [%Client.Model.Project{}]},
+ { 401, %Client.Model.GenericError{}},
+ { 403, %Client.Model.GenericError{}},
+ { 404, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Irrecoverably Purge a Project
+ !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. !! Use with extreme caution !!
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - project_id (String.t): Project ID The project's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec purge_project(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.GenericError.t} | {:error, Tesla.Env.t}
+ def purge_project(connection, project_id, _opts \\ []) do
+ %{}
+ |> method(:delete)
+ |> url("/backoffice/public/projects/#{project_id}")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 401, %Client.Model.GenericError{}},
+ { 403, %Client.Model.GenericError{}},
+ { 404, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Remove a member associated with this project. This also sets their invite status to `REMOVED`.
+ This endpoint requires the user to be a member of the project with the role `OWNER`.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - project_id (String.t): Project ID The project's ID.
+ - member_id (String.t): Member ID
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec remove_project_member(Tesla.Env.client, String.t, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.GenericError.t} | {:error, Tesla.Env.t}
+ def remove_project_member(connection, project_id, member_id, _opts \\ []) do
+ %{}
+ |> method(:delete)
+ |> url("/backoffice/public/projects/#{project_id}/members/#{member_id}")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 400, %Client.Model.GenericError{}},
+ { 401, %Client.Model.GenericError{}},
+ { 406, %Client.Model.GenericError{}},
+ { 500, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Sets Your Active Project
+ Use this API to set your active project in the Ory Cloud Console UI.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (InlineObject):
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec set_active_project(Tesla.Env.client, keyword()) :: {:ok, nil} | {:ok, Client.Model.GenericError.t} | {:error, Tesla.Env.t}
+ def set_active_project(connection, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:put)
+ |> url("/backoffice/public/console/projects/active")
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 401, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Update a Project
+ Creates a new configuration revision for a project.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - project_id (String.t): Project ID The project's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (ProjectRevision):
+ ## Returns
+
+ {:ok, Client.Model.Project.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec update_project(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.Project.t} | {:ok, Client.Model.GenericError.t} | {:error, Tesla.Env.t}
+ def update_project(connection, project_id, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:put)
+ |> url("/backoffice/public/projects/#{project_id}")
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.Project{}},
+ { 401, %Client.Model.GenericError{}},
+ { 403, %Client.Model.GenericError{}},
+ { 404, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+
+ @doc """
+ Update an Ory Cloud Project Configuration
+ This endpoints allows you to update the Ory Cloud Project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service!
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - project_id (String.t): Project ID The project's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (UpdateProjectConfigConfig):
+ ## Returns
+
+ {:ok, Client.Model.SuccessfulProjectConfigUpdate.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec update_project_config(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.GenericError.t} | {:ok, Client.Model.SuccessfulProjectConfigUpdate.t} | {:error, Tesla.Env.t}
+ def update_project_config(connection, project_id, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:put)
+ |> url("/backoffice/public/projects/#{project_id}/configs")
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SuccessfulProjectConfigUpdate{}},
+ { 400, %Client.Model.GenericError{}},
+ { 401, %Client.Model.GenericError{}},
+ { 403, %Client.Model.GenericError{}},
+ { 404, %Client.Model.GenericError{}},
+ { :default, %Client.Model.GenericError{}}
+ ])
+ end
+end
diff --git a/clients/client/elixir/lib/client/api/v0alpha2.ex b/clients/client/elixir/lib/client/api/v0alpha2.ex
new file mode 100644
index 00000000000..1c83cc2c37d
--- /dev/null
+++ b/clients/client/elixir/lib/client/api/v0alpha2.ex
@@ -0,0 +1,1321 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Api.V0alpha2 do
+ @moduledoc """
+ API calls for all endpoints tagged `V0alpha2`.
+ """
+
+ alias Client.Connection
+ import Client.RequestBuilder
+
+
+ @doc """
+ Create an Identity
+ This endpoint creates an identity. It is NOT possible to set an identity's credentials (password, ...) using this method! A way to achieve that will be introduced in the future. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (AdminCreateIdentityBody):
+ ## Returns
+
+ {:ok, Client.Model.Identity.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_create_identity(Tesla.Env.client, keyword()) :: {:ok, Client.Model.Identity.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_create_identity(connection, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/api/kratos/admin/identities")
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 201, %Client.Model.Identity{}},
+ { 400, %Client.Model.JsonError{}},
+ { 409, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Create a Recovery Link
+ This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (AdminCreateSelfServiceRecoveryLinkBody):
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRecoveryLink.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_create_self_service_recovery_link(Tesla.Env.client, keyword()) :: {:ok, Client.Model.SelfServiceRecoveryLink.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_create_self_service_recovery_link(connection, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/api/kratos/admin/recovery/link")
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRecoveryLink{}},
+ { 400, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Delete an Identity
+ Calling this endpoint irrecoverably and permanently deletes the identity given its ID. This action can not be undone. This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is assumed that is has been deleted already. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID is the identity's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_delete_identity(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_delete_identity(connection, id, _opts \\ []) do
+ %{}
+ |> method(:delete)
+ |> url("/api/kratos/admin/identities/#{id}")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
+ This endpoint is useful for: To forcefully logout Identity from all devices and sessions
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID is the identity's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_delete_identity_sessions(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_delete_identity_sessions(connection, id, _opts \\ []) do
+ %{}
+ |> method(:delete)
+ |> url("/api/kratos/admin/identities/#{id}/sessions")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 400, %Client.Model.JsonError{}},
+ { 401, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get an Identity
+ Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID must be set to the ID of identity you want to get
+ - opts (KeywordList): [optional] Optional parameters
+ - :include_credential ([String.t]): DeclassifyCredentials will declassify one or more identity's credentials Currently, only `oidc` is supported. This will return the initial OAuth 2.0 Access, Refresh and (optionally) OpenID Connect ID Token.
+ ## Returns
+
+ {:ok, Client.Model.Identity.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_get_identity(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.Identity.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_get_identity(connection, id, opts \\ []) do
+ optional_params = %{
+ :"include_credential" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/admin/identities/#{id}")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.Identity{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ List Identities
+ Lists all identities. Does not support search at the moment. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :per_page (integer()): Items per Page This is the number of items per page.
+ - :page (integer()): Pagination Page
+ ## Returns
+
+ {:ok, [%Identity{}, ...]} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_list_identities(Tesla.Env.client, keyword()) :: {:ok, list(Client.Model.Identity.t)} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_list_identities(connection, opts \\ []) do
+ optional_params = %{
+ :"per_page" => :query,
+ :"page" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/admin/identities")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, [%Client.Model.Identity{}]},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ This endpoint returns all sessions that belong to the given Identity.
+ This endpoint is useful for: Listing all sessions that belong to an Identity in an administrative context.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID is the identity's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ - :per_page (integer()): Items per Page This is the number of items per page.
+ - :page (integer()): Pagination Page
+ - :active (boolean()): Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.
+ ## Returns
+
+ {:ok, [%Session{}, ...]} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_list_identity_sessions(Tesla.Env.client, String.t, keyword()) :: {:ok, list(Client.Model.Session.t)} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_list_identity_sessions(connection, id, opts \\ []) do
+ optional_params = %{
+ :"per_page" => :query,
+ :"page" => :query,
+ :"active" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/admin/identities/#{id}/sessions")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, [%Client.Model.Session{}]},
+ { 400, %Client.Model.JsonError{}},
+ { 401, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Update an Identity
+ This endpoint updates an identity. It is NOT possible to set an identity's credentials (password, ...) using this method! A way to achieve that will be introduced in the future. The full identity payload (except credentials) is expected. This endpoint does not support patching. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID must be set to the ID of identity you want to update
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (AdminUpdateIdentityBody):
+ ## Returns
+
+ {:ok, Client.Model.Identity.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec admin_update_identity(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.Identity.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def admin_update_identity(connection, id, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:put)
+ |> url("/api/kratos/admin/identities/#{id}")
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.Identity{}},
+ { 400, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 409, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Create a Logout URL for Browsers
+ This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token. The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :cookie (String.t): HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceLogoutUrl.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec create_self_service_logout_flow_url_for_browsers(Tesla.Env.client, keyword()) :: {:ok, Client.Model.JsonError.t} | {:ok, Client.Model.SelfServiceLogoutUrl.t} | {:error, Tesla.Env.t}
+ def create_self_service_logout_flow_url_for_browsers(connection, opts \\ []) do
+ optional_params = %{
+ :"cookie" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/logout/browser")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceLogoutUrl{}},
+ { 401, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get a JSON Schema
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID must be set to the ID of schema you want to get
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, map()} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_json_schema(Tesla.Env.client, String.t, keyword()) :: {:ok, Map.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def get_json_schema(connection, id, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/schemas/#{id}")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, false},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get Self-Service Errors
+ This endpoint returns the error associated with a user-facing self service errors. This endpoint supports stub values to help you implement the error UI: `?id=stub:500` - returns a stub 500 (Internal Server Error) error. More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): Error is the error's ID
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceError.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_self_service_error(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.SelfServiceError.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def get_self_service_error(connection, id, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/errors")
+ |> add_param(:query, :"id", id)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceError{}},
+ { 403, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get Login Flow
+ This endpoint returns a login flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/login', async function (req, res) { const flow = await client.getSelfServiceLoginFlow(req.header('cookie'), req.query['flow']) res.render('login', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :cookie (String.t): HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceLoginFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_self_service_login_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.SelfServiceLoginFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def get_self_service_login_flow(connection, id, opts \\ []) do
+ optional_params = %{
+ :"cookie" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/login/flows")
+ |> add_param(:query, :"id", id)
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceLoginFlow{}},
+ { 403, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 410, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get Recovery Flow
+ This endpoint returns a recovery flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/recovery', async function (req, res) { const flow = await client.getSelfServiceRecoveryFlow(req.header('Cookie'), req.query['flow']) res.render('recovery', flow) }) ``` More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :cookie (String.t): HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRecoveryFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_self_service_recovery_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.JsonError.t} | {:ok, Client.Model.SelfServiceRecoveryFlow.t} | {:error, Tesla.Env.t}
+ def get_self_service_recovery_flow(connection, id, opts \\ []) do
+ optional_params = %{
+ :"cookie" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/recovery/flows")
+ |> add_param(:query, :"id", id)
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRecoveryFlow{}},
+ { 404, %Client.Model.JsonError{}},
+ { 410, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get Registration Flow
+ This endpoint returns a registration flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/registration', async function (req, res) { const flow = await client.getSelfServiceRegistrationFlow(req.header('cookie'), req.query['flow']) res.render('registration', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :cookie (String.t): HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRegistrationFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_self_service_registration_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.SelfServiceRegistrationFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def get_self_service_registration_flow(connection, id, opts \\ []) do
+ optional_params = %{
+ :"cookie" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/registration/flows")
+ |> add_param(:query, :"id", id)
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRegistrationFlow{}},
+ { 403, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 410, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get Settings Flow
+ When accessing this endpoint through Ory Kratos' Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. You can access this endpoint without credentials when using Ory Kratos' Admin API. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID is the Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :x_session_token (String.t): The Session Token When using the SDK in an app without a browser, please include the session token here.
+ - :cookie (String.t): HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here. You only need to do this for browser- based flows.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceSettingsFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_self_service_settings_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.SelfServiceSettingsFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def get_self_service_settings_flow(connection, id, opts \\ []) do
+ optional_params = %{
+ :"X-Session-Token" => :headers,
+ :"cookie" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/settings/flows")
+ |> add_param(:query, :"id", id)
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceSettingsFlow{}},
+ { 401, %Client.Model.JsonError{}},
+ { 403, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 410, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get Verification Flow
+ This endpoint returns a verification flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/recovery', async function (req, res) { const flow = await client.getSelfServiceVerificationFlow(req.header('cookie'), req.query['flow']) res.render('verification', flow) }) More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :cookie (String.t): HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceVerificationFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_self_service_verification_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, Client.Model.SelfServiceVerificationFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def get_self_service_verification_flow(connection, id, opts \\ []) do
+ optional_params = %{
+ :"cookie" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/verification/flows")
+ |> add_param(:query, :"id", id)
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceVerificationFlow{}},
+ { 403, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get WebAuthn JavaScript
+ This endpoint provides JavaScript which is needed in order to perform WebAuthn login and registration. If you are building a JavaScript Browser App (e.g. in ReactJS or AngularJS) you will need to load this file: ```html ``` More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, String.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec get_web_authn_java_script(Tesla.Env.client, keyword()) :: {:ok, String.t} | {:error, Tesla.Env.t}
+ def get_web_authn_java_script(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/.well-known/ory/webauthn.js")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, false}
+ ])
+ end
+
+ @doc """
+ Initialize Login Flow for Browsers
+ This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :refresh (boolean()): Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
+ - :aal (String.t): Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session's authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\".
+ - :return_to (String.t): The URL to return the browser to after the flow was completed.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceLoginFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_login_flow_for_browsers(Tesla.Env.client, keyword()) :: {:ok, nil} | {:ok, Client.Model.SelfServiceLoginFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_login_flow_for_browsers(connection, opts \\ []) do
+ optional_params = %{
+ :"refresh" => :query,
+ :"aal" => :query,
+ :"return_to" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/login/browser")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceLoginFlow{}},
+ { 302, false},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Login Flow for APIs, Services, Apps, ...
+ This endpoint initiates a login flow for API clients that do not use a browser, such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :refresh (boolean()): Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
+ - :aal (String.t): Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session's authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\".
+ - :x_session_token (String.t): The Session Token of the Identity performing the settings flow.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceLoginFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_login_flow_without_browser(Tesla.Env.client, keyword()) :: {:ok, Client.Model.SelfServiceLoginFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_login_flow_without_browser(connection, opts \\ []) do
+ optional_params = %{
+ :"refresh" => :query,
+ :"aal" => :query,
+ :"X-Session-Token" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/login/api")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceLoginFlow{}},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Recovery Flow for Browsers
+ This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to `selfservice.flows.recovery.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists, the browser is returned to the configured return URL. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects or a 400 bad request error if the user is already authenticated. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :return_to (String.t): The URL to return the browser to after the flow was completed.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRecoveryFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_recovery_flow_for_browsers(Tesla.Env.client, keyword()) :: {:ok, nil} | {:ok, Client.Model.JsonError.t} | {:ok, Client.Model.SelfServiceRecoveryFlow.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_recovery_flow_for_browsers(connection, opts \\ []) do
+ optional_params = %{
+ :"return_to" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/recovery/browser")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRecoveryFlow{}},
+ { 302, false},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Recovery Flow for APIs, Services, Apps, ...
+ This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRecoveryFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_recovery_flow_without_browser(Tesla.Env.client, keyword()) :: {:ok, Client.Model.JsonError.t} | {:ok, Client.Model.SelfServiceRecoveryFlow.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_recovery_flow_without_browser(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/recovery/api")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRecoveryFlow{}},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Registration Flow for Browsers
+ This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :return_to (String.t): The URL to return the browser to after the flow was completed.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRegistrationFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_registration_flow_for_browsers(Tesla.Env.client, keyword()) :: {:ok, nil} | {:ok, Client.Model.SelfServiceRegistrationFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_registration_flow_for_browsers(connection, opts \\ []) do
+ optional_params = %{
+ :"return_to" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/registration/browser")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRegistrationFlow{}},
+ { 302, false},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Registration Flow for APIs, Services, Apps, ...
+ This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing registration flow call `/self-service/registration/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRegistrationFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_registration_flow_without_browser(Tesla.Env.client, keyword()) :: {:ok, Client.Model.SelfServiceRegistrationFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_registration_flow_without_browser(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/registration/api")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRegistrationFlow{}},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Settings Flow for Browsers
+ This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid Ory Kratos Session Cookie is included in the request, a login flow will be initialized. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid user session was set, the browser will be redirected to the login endpoint. If this endpoint is called via an AJAX request, the response contains the settings flow without any redirects or a 401 forbidden error if no valid session was set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :return_to (String.t): The URL to return the browser to after the flow was completed.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceSettingsFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_settings_flow_for_browsers(Tesla.Env.client, keyword()) :: {:ok, nil} | {:ok, Client.Model.SelfServiceSettingsFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_settings_flow_for_browsers(connection, opts \\ []) do
+ optional_params = %{
+ :"return_to" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/settings/browser")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceSettingsFlow{}},
+ { 302, false},
+ { 400, %Client.Model.JsonError{}},
+ { 401, %Client.Model.JsonError{}},
+ { 403, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Settings Flow for APIs, Services, Apps, ...
+ This endpoint initiates a settings flow for API clients such as mobile devices, smart TVs, and so on. You must provide a valid Ory Kratos Session Token for this endpoint to respond with HTTP 200 OK. To fetch an existing settings flow call `/self-service/settings/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :x_session_token (String.t): The Session Token of the Identity performing the settings flow.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceSettingsFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_settings_flow_without_browser(Tesla.Env.client, keyword()) :: {:ok, Client.Model.SelfServiceSettingsFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_settings_flow_without_browser(connection, opts \\ []) do
+ optional_params = %{
+ :"X-Session-Token" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/settings/api")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceSettingsFlow{}},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Verification Flow for Browser Clients
+ This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to `selfservice.flows.verification.ui_url` with the flow ID set as the query parameter `?flow=`. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :return_to (String.t): The URL to return the browser to after the flow was completed.
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceVerificationFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_verification_flow_for_browsers(Tesla.Env.client, keyword()) :: {:ok, nil} | {:ok, Client.Model.SelfServiceVerificationFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_verification_flow_for_browsers(connection, opts \\ []) do
+ optional_params = %{
+ :"return_to" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/verification/browser")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceVerificationFlow{}},
+ { 302, false},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Initialize Verification Flow for APIs, Services, Apps, ...
+ This endpoint initiates a verification flow for API clients such as mobile devices, smart TVs, and so on. To fetch an existing verification flow call `/self-service/verification/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceVerificationFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec initialize_self_service_verification_flow_without_browser(Tesla.Env.client, keyword()) :: {:ok, Client.Model.SelfServiceVerificationFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def initialize_self_service_verification_flow_without_browser(connection, _opts \\ []) do
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/verification/api")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceVerificationFlow{}},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Get all Identity Schemas
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :per_page (integer()): Items per Page This is the number of items per page.
+ - :page (integer()): Pagination Page
+ ## Returns
+
+ {:ok, [%IdentitySchema{}, ...]} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec list_identity_schemas(Tesla.Env.client, keyword()) :: {:ok, list(Client.Model.IdentitySchema.t)} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def list_identity_schemas(connection, opts \\ []) do
+ optional_params = %{
+ :"per_page" => :query,
+ :"page" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/schemas")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, [%Client.Model.IdentitySchema{}]},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ This endpoints returns all other active sessions that belong to the logged-in user. The current session can be retrieved by calling the `/sessions/whoami` endpoint.
+ This endpoint is useful for: Displaying all other sessions that belong to the logged-in user
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :x_session_token (String.t): Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
+ - :cookie (String.t): Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored.
+ - :per_page (integer()): Items per Page This is the number of items per page.
+ - :page (integer()): Pagination Page
+ ## Returns
+
+ {:ok, [%Session{}, ...]} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec list_sessions(Tesla.Env.client, keyword()) :: {:ok, list(Client.Model.Session.t)} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def list_sessions(connection, opts \\ []) do
+ optional_params = %{
+ :"X-Session-Token" => :headers,
+ :"Cookie" => :headers,
+ :"per_page" => :query,
+ :"page" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/sessions")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, [%Client.Model.Session{}]},
+ { 400, %Client.Model.JsonError{}},
+ { 401, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Calling this endpoint invalidates the specified session. The current session cannot be revoked. Session data are not deleted.
+ This endpoint is useful for: To forcefully logout the current user from another device or session
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - id (String.t): ID is the session's ID.
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec revoke_session(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def revoke_session(connection, id, _opts \\ []) do
+ %{}
+ |> method(:delete)
+ |> url("/api/kratos/public/sessions/#{id}")
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 400, %Client.Model.JsonError{}},
+ { 401, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted.
+ This endpoint is useful for: To forcefully logout the current user from all other devices and sessions
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :x_session_token (String.t): Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
+ - :cookie (String.t): Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored.
+ ## Returns
+
+ {:ok, Client.Model.RevokedSessions.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec revoke_sessions(Tesla.Env.client, keyword()) :: {:ok, Client.Model.RevokedSessions.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def revoke_sessions(connection, opts \\ []) do
+ optional_params = %{
+ :"X-Session-Token" => :headers,
+ :"Cookie" => :headers
+ }
+ %{}
+ |> method(:delete)
+ |> url("/api/kratos/public/sessions")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.RevokedSessions{}},
+ { 400, %Client.Model.JsonError{}},
+ { 401, %Client.Model.JsonError{}},
+ { 404, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Submit a Login Flow
+ :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 302 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - flow (String.t): The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :x_session_token (String.t): The Session Token of the Identity performing the settings flow.
+ - :body (SubmitSelfServiceLoginFlowBody):
+ ## Returns
+
+ {:ok, Client.Model.SuccessfulSelfServiceLoginWithoutBrowser.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec submit_self_service_login_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.SuccessfulSelfServiceLoginWithoutBrowser.t} | {:ok, Client.Model.SelfServiceBrowserLocationChangeRequiredError.t} | {:ok, Client.Model.SelfServiceLoginFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def submit_self_service_login_flow(connection, flow, opts \\ []) do
+ optional_params = %{
+ :"X-Session-Token" => :headers,
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/api/kratos/public/self-service/login")
+ |> add_param(:query, :"flow", flow)
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SuccessfulSelfServiceLoginWithoutBrowser{}},
+ { 302, false},
+ { 400, %Client.Model.SelfServiceLoginFlow{}},
+ { 422, %Client.Model.SelfServiceBrowserLocationChangeRequiredError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Complete Self-Service Logout
+ This endpoint logs out an identity in a self-service manner. If the `Accept` HTTP header is not set to `application/json`, the browser will be redirected (HTTP 302 Found) to the `return_to` parameter of the initial request or fall back to `urls.default_return_to`. If the `Accept` HTTP header is set to `application/json`, a 204 No Content response will be sent on successful logout instead. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token. More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :token (String.t): A Valid Logout Token If you do not have a logout token because you only have a session cookie, call `/self-service/logout/urls` to generate a URL for this endpoint.
+ - :return_to (String.t): The URL to return to after the logout was completed.
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec submit_self_service_logout_flow(Tesla.Env.client, keyword()) :: {:ok, nil} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def submit_self_service_logout_flow(connection, opts \\ []) do
+ optional_params = %{
+ :"token" => :query,
+ :"return_to" => :query
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/self-service/logout")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 302, false},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Perform Logout for APIs, Services, Apps, ...
+ Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when the Ory Session Token has been revoked already before. If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned. This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - submit_self_service_logout_flow_without_browser_body (SubmitSelfServiceLogoutFlowWithoutBrowserBody):
+ - opts (KeywordList): [optional] Optional parameters
+ ## Returns
+
+ {:ok, nil} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec submit_self_service_logout_flow_without_browser(Tesla.Env.client, Client.Model.SubmitSelfServiceLogoutFlowWithoutBrowserBody.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def submit_self_service_logout_flow_without_browser(connection, submit_self_service_logout_flow_without_browser_body, _opts \\ []) do
+ %{}
+ |> method(:delete)
+ |> url("/api/kratos/public/self-service/logout/api")
+ |> add_param(:body, :body, submit_self_service_logout_flow_without_browser_body)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 204, false},
+ { 400, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Complete Recovery Flow
+ Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 302 Found redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/*` it returns a HTTP 302 Found redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - flow (String.t): The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :token (String.t): Recovery Token The recovery token which completes the recovery request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
+ - :body (SubmitSelfServiceRecoveryFlowBody):
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceRecoveryFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec submit_self_service_recovery_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.JsonError.t} | {:ok, Client.Model.SelfServiceRecoveryFlow.t} | {:error, Tesla.Env.t}
+ def submit_self_service_recovery_flow(connection, flow, opts \\ []) do
+ optional_params = %{
+ :"token" => :query,
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/api/kratos/public/self-service/recovery")
+ |> add_param(:query, :"flow", flow)
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceRecoveryFlow{}},
+ { 302, false},
+ { 400, %Client.Model.SelfServiceRecoveryFlow{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Submit a Registration Flow
+ Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and respond with HTTP 200 and a application/json body with the created identity success - if the session hook is configured the `session` and `session_token` will also be included; HTTP 302 redirect to a fresh registration flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after registration URL or the `return_to` value if it was set and if the registration succeeded; a HTTP 302 redirect to the registration UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - flow (String.t): The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :body (SubmitSelfServiceRegistrationFlowBody):
+ ## Returns
+
+ {:ok, Client.Model.SuccessfulSelfServiceRegistrationWithoutBrowser.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec submit_self_service_registration_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.SelfServiceRegistrationFlow.t} | {:ok, Client.Model.SelfServiceBrowserLocationChangeRequiredError.t} | {:ok, Client.Model.SuccessfulSelfServiceRegistrationWithoutBrowser.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def submit_self_service_registration_flow(connection, flow, opts \\ []) do
+ optional_params = %{
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/api/kratos/public/self-service/registration")
+ |> add_param(:query, :"flow", flow)
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SuccessfulSelfServiceRegistrationWithoutBrowser{}},
+ { 302, false},
+ { 400, %Client.Model.SelfServiceRegistrationFlow{}},
+ { 422, %Client.Model.SelfServiceBrowserLocationChangeRequiredError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Complete Settings Flow
+ Use this endpoint to complete a settings flow by sending an identity's updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect `application/json` to be sent in the body and respond with HTTP 200 and an application/json body with the session token on success; HTTP 302 redirect to a fresh settings flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. HTTP 401 when the endpoint is called without a valid session token. HTTP 403 when `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Implies that the user needs to re-authenticate. Browser flows without HTTP Header `Accept` or with `Accept: text/*` respond with a HTTP 302 redirect to the post/after settings URL or the `return_to` value if it was set and if the flow succeeded; a HTTP 302 redirect to the Settings UI URL with the flow ID containing the validation errors otherwise. a HTTP 302 redirect to the login endpoint when `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Browser flows with HTTP Header `Accept: application/json` respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 401 when the endpoint is called without a valid session cookie. HTTP 403 when the page is accessed without a session cookie or the session's AAL is too low. HTTP 400 on form validation errors. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called with a `Accept: application/json` HTTP header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_refresh_required`: The identity requested to change something that needs a privileged session. Redirect the identity to the login init endpoint with query parameters `?refresh=true&return_to=`, or initiate a refresh login flow otherwise. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - flow (String.t): The Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :x_session_token (String.t): The Session Token of the Identity performing the settings flow.
+ - :body (SubmitSelfServiceSettingsFlowBody):
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceSettingsFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec submit_self_service_settings_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.SelfServiceBrowserLocationChangeRequiredError.t} | {:ok, Client.Model.SelfServiceSettingsFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def submit_self_service_settings_flow(connection, flow, opts \\ []) do
+ optional_params = %{
+ :"X-Session-Token" => :headers,
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/api/kratos/public/self-service/settings")
+ |> add_param(:query, :"flow", flow)
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceSettingsFlow{}},
+ { 302, false},
+ { 400, %Client.Model.SelfServiceSettingsFlow{}},
+ { 401, %Client.Model.JsonError{}},
+ { 403, %Client.Model.JsonError{}},
+ { 422, %Client.Model.SelfServiceBrowserLocationChangeRequiredError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Complete Verification Flow
+ Use this endpoint to complete a verification flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 302 Found redirect with a fresh verification flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/*` it returns a HTTP 302 Found redirect to the Verification UI URL with the Verification Flow ID appended. `sent_email` is the success state after `choose_method` when using the `link` method and allows the user to request another verification email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a verification link\") does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Verification UI URL with a new Verification Flow ID which contains an error message that the verification link was invalid. More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - flow (String.t): The Verification Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
+ - opts (KeywordList): [optional] Optional parameters
+ - :token (String.t): Verification Token The verification token which completes the verification request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
+ - :body (SubmitSelfServiceVerificationFlowBody):
+ ## Returns
+
+ {:ok, Client.Model.SelfServiceVerificationFlow.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec submit_self_service_verification_flow(Tesla.Env.client, String.t, keyword()) :: {:ok, nil} | {:ok, Client.Model.SelfServiceVerificationFlow.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def submit_self_service_verification_flow(connection, flow, opts \\ []) do
+ optional_params = %{
+ :"token" => :query,
+ :body => :body
+ }
+ %{}
+ |> method(:post)
+ |> url("/api/kratos/public/self-service/verification")
+ |> add_param(:query, :"flow", flow)
+ |> add_optional_params(optional_params, opts)
+ |> ensure_body()
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.SelfServiceVerificationFlow{}},
+ { 302, false},
+ { 400, %Client.Model.SelfServiceVerificationFlow{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+
+ @doc """
+ Check Who the Current HTTP Session Belongs To
+ Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. Additionally when the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor.
+
+ ## Parameters
+
+ - connection (Client.Connection): Connection to server
+ - opts (KeywordList): [optional] Optional parameters
+ - :x_session_token (String.t): Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
+ - :cookie (String.t): Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored.
+ ## Returns
+
+ {:ok, Client.Model.Session.t} on success
+ {:error, Tesla.Env.t} on failure
+ """
+ @spec to_session(Tesla.Env.client, keyword()) :: {:ok, Client.Model.Session.t} | {:ok, Client.Model.JsonError.t} | {:error, Tesla.Env.t}
+ def to_session(connection, opts \\ []) do
+ optional_params = %{
+ :"X-Session-Token" => :headers,
+ :"Cookie" => :headers
+ }
+ %{}
+ |> method(:get)
+ |> url("/api/kratos/public/sessions/whoami")
+ |> add_optional_params(optional_params, opts)
+ |> Enum.into([])
+ |> (&Connection.request(connection, &1)).()
+ |> evaluate_response([
+ { 200, %Client.Model.Session{}},
+ { 401, %Client.Model.JsonError{}},
+ { 403, %Client.Model.JsonError{}},
+ { 500, %Client.Model.JsonError{}}
+ ])
+ end
+end
diff --git a/clients/client/elixir/lib/client/connection.ex b/clients/client/elixir/lib/client/connection.ex
new file mode 100644
index 00000000000..d3ff2e9facc
--- /dev/null
+++ b/clients/client/elixir/lib/client/connection.ex
@@ -0,0 +1,46 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Connection do
+ @moduledoc """
+ Handle Tesla connections for Client.
+ """
+
+ use Tesla
+
+ # Add any middleware here (authentication)
+ plug Tesla.Middleware.BaseUrl, "https://playground.projects.oryapis.com"
+ plug Tesla.Middleware.Headers, [{"user-agent", "Elixir"}]
+ plug Tesla.Middleware.EncodeJson, engine: Poison
+
+ @doc """
+ Configure a client connection using Basic authentication.
+
+ ## Parameters
+
+ - username (String): Username used for authentication
+ - password (String): Password used for authentication
+
+ # Returns
+
+ Tesla.Env.client
+ """
+ @spec new(String.t, String.t) :: Tesla.Env.client
+ def new(username, password) do
+ Tesla.client([
+ {Tesla.Middleware.BasicAuth, %{username: username, password: password}}
+ ])
+ end
+ @doc """
+ Configure an authless client connection
+
+ # Returns
+
+ Tesla.Env.client
+ """
+ @spec new() :: Tesla.Env.client
+ def new do
+ Tesla.client([])
+ end
+end
diff --git a/clients/client/elixir/lib/client/deserializer.ex b/clients/client/elixir/lib/client/deserializer.ex
new file mode 100644
index 00000000000..f3bcd343a04
--- /dev/null
+++ b/clients/client/elixir/lib/client/deserializer.ex
@@ -0,0 +1,38 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Deserializer do
+ @moduledoc """
+ Helper functions for deserializing responses into models
+ """
+
+ @doc """
+ Update the provided model with a deserialization of a nested value
+ """
+ @spec deserialize(struct(), :atom, :atom, struct(), keyword()) :: struct()
+ def deserialize(model, field, :list, mod, options) do
+ model
+ |> Map.update!(field, &(Poison.Decode.decode(&1, Keyword.merge(options, [as: [struct(mod)]]))))
+ end
+ def deserialize(model, field, :struct, mod, options) do
+ model
+ |> Map.update!(field, &(Poison.Decode.decode(&1, Keyword.merge(options, [as: struct(mod)]))))
+ end
+ def deserialize(model, field, :map, mod, options) do
+ model
+ |> Map.update!(field, &(Map.new(&1, fn {key, val} -> {key, Poison.Decode.decode(val, Keyword.merge(options, [as: struct(mod)]))} end)))
+ end
+ def deserialize(model, field, :date, _, _options) do
+ value = Map.get(model, field)
+ case is_binary(value) do
+ true -> case DateTime.from_iso8601(value) do
+ {:ok, datetime, _offset} ->
+ Map.put(model, field, datetime)
+ _ ->
+ model
+ end
+ false -> model
+ end
+ end
+end
diff --git a/clients/client/elixir/lib/client/model/active_project.ex b/clients/client/elixir/lib/client/model/active_project.ex
new file mode 100644
index 00000000000..325fac3acb2
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/active_project.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ActiveProject do
+ @moduledoc """
+ The Active Project ID
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"project_id"
+ ]
+
+ @type t :: %__MODULE__{
+ :"project_id" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ActiveProject do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/admin_create_identity_body.ex b/clients/client/elixir/lib/client/model/admin_create_identity_body.ex
new file mode 100644
index 00000000000..2ae039ff097
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/admin_create_identity_body.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.AdminCreateIdentityBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"schema_id",
+ :"state",
+ :"traits"
+ ]
+
+ @type t :: %__MODULE__{
+ :"schema_id" => String.t,
+ :"state" => Client.Model.IdentityState.t | nil,
+ :"traits" => map()
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.AdminCreateIdentityBody do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"state", :struct, Client.Model.IdentityState, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/admin_create_self_service_recovery_link_body.ex b/clients/client/elixir/lib/client/model/admin_create_self_service_recovery_link_body.ex
new file mode 100644
index 00000000000..a5dabd11889
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/admin_create_self_service_recovery_link_body.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.AdminCreateSelfServiceRecoveryLinkBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"expires_in",
+ :"identity_id"
+ ]
+
+ @type t :: %__MODULE__{
+ :"expires_in" => String.t | nil,
+ :"identity_id" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.AdminCreateSelfServiceRecoveryLinkBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/admin_update_identity_body.ex b/clients/client/elixir/lib/client/model/admin_update_identity_body.ex
new file mode 100644
index 00000000000..c66a421a1a5
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/admin_update_identity_body.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.AdminUpdateIdentityBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"schema_id",
+ :"state",
+ :"traits"
+ ]
+
+ @type t :: %__MODULE__{
+ :"schema_id" => String.t | nil,
+ :"state" => Client.Model.IdentityState.t,
+ :"traits" => map()
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.AdminUpdateIdentityBody do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"state", :struct, Client.Model.IdentityState, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/api_token.ex b/clients/client/elixir/lib/client/model/api_token.ex
new file mode 100644
index 00000000000..579a493e9be
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/api_token.ex
@@ -0,0 +1,33 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ApiToken do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"id",
+ :"name",
+ :"owner_id",
+ :"project_id",
+ :"value"
+ ]
+
+ @type t :: %__MODULE__{
+ :"id" => String.t,
+ :"name" => String.t,
+ :"owner_id" => String.t,
+ :"project_id" => String.t | nil,
+ :"value" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ApiToken do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/authenticator_assurance_level.ex b/clients/client/elixir/lib/client/model/authenticator_assurance_level.ex
new file mode 100644
index 00000000000..96b5b355d83
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/authenticator_assurance_level.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.AuthenticatorAssuranceLevel do
+ @moduledoc """
+ The authenticator assurance level can be one of \"aal1\", \"aal2\", or \"aal3\". A higher number means that it is harder for an attacker to compromise the account. Generally, \"aal1\" implies that one authentication factor was used while AAL2 implies that two factors (e.g. password + TOTP) have been used. To learn more about these levels please head over to: https://www.ory.sh/kratos/docs/concepts/credentials
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+
+ ]
+
+ @type t :: %__MODULE__{
+
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.AuthenticatorAssuranceLevel do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/cloud_account.ex b/clients/client/elixir/lib/client/model/cloud_account.ex
new file mode 100644
index 00000000000..e43e95267c1
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/cloud_account.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.CloudAccount do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"email",
+ :"id",
+ :"name"
+ ]
+
+ @type t :: %__MODULE__{
+ :"email" => String.t | nil,
+ :"id" => String.t | nil,
+ :"name" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.CloudAccount do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/cname_settings.ex b/clients/client/elixir/lib/client/model/cname_settings.ex
new file mode 100644
index 00000000000..c55109e7c8d
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/cname_settings.ex
@@ -0,0 +1,37 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.CnameSettings do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"cookie_domain",
+ :"created_at",
+ :"hostname",
+ :"id",
+ :"updated_at",
+ :"verification_errors",
+ :"verification_status"
+ ]
+
+ @type t :: %__MODULE__{
+ :"cookie_domain" => String.t | nil,
+ :"created_at" => DateTime.t | nil,
+ :"hostname" => String.t | nil,
+ :"id" => String.t | nil,
+ :"updated_at" => DateTime.t | nil,
+ :"verification_errors" => [String.t] | nil,
+ :"verification_status" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.CnameSettings do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/create_custom_hostname_body.ex b/clients/client/elixir/lib/client/model/create_custom_hostname_body.ex
new file mode 100644
index 00000000000..8b61a6a8fdd
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/create_custom_hostname_body.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.CreateCustomHostnameBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"cookie_domain",
+ :"hostname"
+ ]
+
+ @type t :: %__MODULE__{
+ :"cookie_domain" => String.t | nil,
+ :"hostname" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.CreateCustomHostnameBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/create_subscription_payload.ex b/clients/client/elixir/lib/client/model/create_subscription_payload.ex
new file mode 100644
index 00000000000..7048abe1723
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/create_subscription_payload.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.CreateSubscriptionPayload do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"plan_or_price",
+ :"provision_first_project",
+ :"return_to"
+ ]
+
+ @type t :: %__MODULE__{
+ :"plan_or_price" => String.t,
+ :"provision_first_project" => String.t,
+ :"return_to" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.CreateSubscriptionPayload do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/error_authenticator_assurance_level_not_satisfied.ex b/clients/client/elixir/lib/client/model/error_authenticator_assurance_level_not_satisfied.ex
new file mode 100644
index 00000000000..e61b2697906
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/error_authenticator_assurance_level_not_satisfied.ex
@@ -0,0 +1,41 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ErrorAuthenticatorAssuranceLevelNotSatisfied do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"code",
+ :"debug",
+ :"details",
+ :"id",
+ :"message",
+ :"reason",
+ :"redirect_browser_to",
+ :"request",
+ :"status"
+ ]
+
+ @type t :: %__MODULE__{
+ :"code" => integer() | nil,
+ :"debug" => String.t | nil,
+ :"details" => %{optional(String.t) => map()} | nil,
+ :"id" => String.t | nil,
+ :"message" => String.t,
+ :"reason" => String.t | nil,
+ :"redirect_browser_to" => String.t | nil,
+ :"request" => String.t | nil,
+ :"status" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ErrorAuthenticatorAssuranceLevelNotSatisfied do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/generic_error.ex b/clients/client/elixir/lib/client/model/generic_error.ex
new file mode 100644
index 00000000000..88e1342fe0d
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/generic_error.ex
@@ -0,0 +1,45 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.GenericError do
+ @moduledoc """
+ Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"code",
+ :"debug",
+ :"details",
+ :"error",
+ :"error_description",
+ :"id",
+ :"message",
+ :"reason",
+ :"request",
+ :"status",
+ :"status_code"
+ ]
+
+ @type t :: %__MODULE__{
+ :"code" => integer() | nil,
+ :"debug" => String.t | nil,
+ :"details" => map() | nil,
+ :"error" => String.t | nil,
+ :"error_description" => String.t | nil,
+ :"id" => String.t | nil,
+ :"message" => String.t,
+ :"reason" => String.t | nil,
+ :"request" => String.t | nil,
+ :"status" => String.t | nil,
+ :"status_code" => integer() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.GenericError do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/health_not_ready_status.ex b/clients/client/elixir/lib/client/model/health_not_ready_status.ex
new file mode 100644
index 00000000000..ffba5b2e87b
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/health_not_ready_status.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.HealthNotReadyStatus do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"errors"
+ ]
+
+ @type t :: %__MODULE__{
+ :"errors" => %{optional(String.t) => String.t} | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.HealthNotReadyStatus do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/health_status.ex b/clients/client/elixir/lib/client/model/health_status.ex
new file mode 100644
index 00000000000..f66d8b3cd08
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/health_status.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.HealthStatus do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"status"
+ ]
+
+ @type t :: %__MODULE__{
+ :"status" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.HealthStatus do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity.ex b/clients/client/elixir/lib/client/model/identity.ex
new file mode 100644
index 00000000000..a8d7c0b1d07
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity.ex
@@ -0,0 +1,51 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.Identity do
+ @moduledoc """
+ An identity can be a real human, a service, an IoT device - everything that can be described as an \"actor\" in a system.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"credentials",
+ :"id",
+ :"recovery_addresses",
+ :"schema_id",
+ :"schema_url",
+ :"state",
+ :"state_changed_at",
+ :"traits",
+ :"updated_at",
+ :"verifiable_addresses"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t | nil,
+ :"credentials" => %{optional(String.t) => Client.Model.IdentityCredentials.t} | nil,
+ :"id" => String.t,
+ :"recovery_addresses" => [Client.Model.RecoveryAddress.t] | nil,
+ :"schema_id" => String.t,
+ :"schema_url" => String.t,
+ :"state" => Client.Model.IdentityState.t | nil,
+ :"state_changed_at" => DateTime.t | nil,
+ :"traits" => AnyType | nil,
+ :"updated_at" => DateTime.t | nil,
+ :"verifiable_addresses" => [Client.Model.VerifiableIdentityAddress.t] | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.Identity do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"credentials", :map, Client.Model.IdentityCredentials, options)
+ |> deserialize(:"recovery_addresses", :list, Client.Model.RecoveryAddress, options)
+ |> deserialize(:"state", :struct, Client.Model.IdentityState, options)
+ |> deserialize(:"traits", :struct, Client.Model.AnyType, options)
+ |> deserialize(:"verifiable_addresses", :list, Client.Model.VerifiableIdentityAddress, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity_credentials.ex b/clients/client/elixir/lib/client/model/identity_credentials.ex
new file mode 100644
index 00000000000..54f3a0e4898
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity_credentials.ex
@@ -0,0 +1,35 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IdentityCredentials do
+ @moduledoc """
+ Credentials represents a specific credential type
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"config",
+ :"created_at",
+ :"identifiers",
+ :"type",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"config" => map() | nil,
+ :"created_at" => DateTime.t | nil,
+ :"identifiers" => [String.t] | nil,
+ :"type" => Client.Model.IdentityCredentialsType.t | nil,
+ :"updated_at" => DateTime.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IdentityCredentials do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"type", :struct, Client.Model.IdentityCredentialsType, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity_credentials_type.ex b/clients/client/elixir/lib/client/model/identity_credentials_type.ex
new file mode 100644
index 00000000000..d16626dfaea
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity_credentials_type.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IdentityCredentialsType do
+ @moduledoc """
+ and so on.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+
+ ]
+
+ @type t :: %__MODULE__{
+
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IdentityCredentialsType do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity_preset.ex b/clients/client/elixir/lib/client/model/identity_preset.ex
new file mode 100644
index 00000000000..9e7ec8e2198
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity_preset.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IdentityPreset do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"schema",
+ :"url"
+ ]
+
+ @type t :: %__MODULE__{
+ :"schema" => map(),
+ :"url" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IdentityPreset do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity_schema.ex b/clients/client/elixir/lib/client/model/identity_schema.ex
new file mode 100644
index 00000000000..5ad0dc46878
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity_schema.ex
@@ -0,0 +1,39 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IdentitySchema do
+ @moduledoc """
+ Together the name and identity uuid are a unique index constraint. This prevents a user from having schemas with the same name. This also allows schemas to have the same name across the system.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"blob_name",
+ :"blob_url",
+ :"content_hash",
+ :"created_at",
+ :"id",
+ :"name",
+ :"schema",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"blob_name" => String.t,
+ :"blob_url" => String.t,
+ :"content_hash" => String.t | nil,
+ :"created_at" => DateTime.t,
+ :"id" => String.t,
+ :"name" => String.t,
+ :"schema" => map() | nil,
+ :"updated_at" => DateTime.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IdentitySchema do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity_schema_location.ex b/clients/client/elixir/lib/client/model/identity_schema_location.ex
new file mode 100644
index 00000000000..bc0dd3abc8b
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity_schema_location.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IdentitySchemaLocation do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"location"
+ ]
+
+ @type t :: %__MODULE__{
+ :"location" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IdentitySchemaLocation do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity_schema_validation_result.ex b/clients/client/elixir/lib/client/model/identity_schema_validation_result.ex
new file mode 100644
index 00000000000..040ffb9e43a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity_schema_validation_result.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IdentitySchemaValidationResult do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"message",
+ :"valid"
+ ]
+
+ @type t :: %__MODULE__{
+ :"message" => String.t | nil,
+ :"valid" => boolean() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IdentitySchemaValidationResult do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/identity_state.ex b/clients/client/elixir/lib/client/model/identity_state.ex
new file mode 100644
index 00000000000..5d61d01a277
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/identity_state.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IdentityState do
+ @moduledoc """
+ The state can either be `active` or `inactive`.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+
+ ]
+
+ @type t :: %__MODULE__{
+
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IdentityState do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/inline_object.ex b/clients/client/elixir/lib/client/model/inline_object.ex
new file mode 100644
index 00000000000..65949b6952f
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/inline_object.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.InlineObject do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"project_id"
+ ]
+
+ @type t :: %__MODULE__{
+ :"project_id" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.InlineObject do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/inline_response_200.ex b/clients/client/elixir/lib/client/model/inline_response_200.ex
new file mode 100644
index 00000000000..f460ffbbb91
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/inline_response_200.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.InlineResponse200 do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"status"
+ ]
+
+ @type t :: %__MODULE__{
+ :"status" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.InlineResponse200 do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/inline_response_200_1.ex b/clients/client/elixir/lib/client/model/inline_response_200_1.ex
new file mode 100644
index 00000000000..1d87c40ed42
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/inline_response_200_1.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.InlineResponse2001 do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"version"
+ ]
+
+ @type t :: %__MODULE__{
+ :"version" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.InlineResponse2001 do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/inline_response_503.ex b/clients/client/elixir/lib/client/model/inline_response_503.ex
new file mode 100644
index 00000000000..99690ac139a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/inline_response_503.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.InlineResponse503 do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"errors"
+ ]
+
+ @type t :: %__MODULE__{
+ :"errors" => %{optional(String.t) => String.t}
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.InlineResponse503 do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/invite_payload.ex b/clients/client/elixir/lib/client/model/invite_payload.ex
new file mode 100644
index 00000000000..f218697f880
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/invite_payload.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.InvitePayload do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"invitee_email"
+ ]
+
+ @type t :: %__MODULE__{
+ :"invitee_email" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.InvitePayload do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/is_owner_for_project_by_slug.ex b/clients/client/elixir/lib/client/model/is_owner_for_project_by_slug.ex
new file mode 100644
index 00000000000..b46165a284d
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/is_owner_for_project_by_slug.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IsOwnerForProjectBySlug do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"ProjectSlug",
+ :"Subject"
+ ]
+
+ @type t :: %__MODULE__{
+ :"ProjectSlug" => String.t,
+ :"Subject" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IsOwnerForProjectBySlug do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/is_owner_for_project_by_slug_payload.ex b/clients/client/elixir/lib/client/model/is_owner_for_project_by_slug_payload.ex
new file mode 100644
index 00000000000..903b0171e11
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/is_owner_for_project_by_slug_payload.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.IsOwnerForProjectBySlugPayload do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"project_scope",
+ :"project_slug",
+ :"subject"
+ ]
+
+ @type t :: %__MODULE__{
+ :"project_scope" => String.t | nil,
+ :"project_slug" => String.t,
+ :"subject" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.IsOwnerForProjectBySlugPayload do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/json_error.ex b/clients/client/elixir/lib/client/model/json_error.ex
new file mode 100644
index 00000000000..263ab45ea67
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/json_error.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.JsonError do
+ @moduledoc """
+ The standard Ory JSON API error format.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"error"
+ ]
+
+ @type t :: %__MODULE__{
+ :"error" => Client.Model.GenericError.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.JsonError do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"error", :struct, Client.Model.GenericError, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/needs_privileged_session_error.ex b/clients/client/elixir/lib/client/model/needs_privileged_session_error.ex
new file mode 100644
index 00000000000..20a23ac74b4
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/needs_privileged_session_error.ex
@@ -0,0 +1,41 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.NeedsPrivilegedSessionError do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"code",
+ :"debug",
+ :"details",
+ :"id",
+ :"message",
+ :"reason",
+ :"redirect_browser_to",
+ :"request",
+ :"status"
+ ]
+
+ @type t :: %__MODULE__{
+ :"code" => integer() | nil,
+ :"debug" => String.t | nil,
+ :"details" => %{optional(String.t) => map()} | nil,
+ :"id" => String.t | nil,
+ :"message" => String.t,
+ :"reason" => String.t | nil,
+ :"redirect_browser_to" => String.t,
+ :"request" => String.t | nil,
+ :"status" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.NeedsPrivilegedSessionError do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/null_plan.ex b/clients/client/elixir/lib/client/model/null_plan.ex
new file mode 100644
index 00000000000..7afde844d42
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/null_plan.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.NullPlan do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+
+ ]
+
+ @type t :: %__MODULE__{
+
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.NullPlan do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/pagination.ex b/clients/client/elixir/lib/client/model/pagination.ex
new file mode 100644
index 00000000000..6521569255a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/pagination.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.Pagination do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"page",
+ :"per_page"
+ ]
+
+ @type t :: %__MODULE__{
+ :"page" => integer() | nil,
+ :"per_page" => integer() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.Pagination do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project.ex b/clients/client/elixir/lib/client/model/project.ex
new file mode 100644
index 00000000000..4db198fb759
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project.ex
@@ -0,0 +1,44 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.Project do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"current_revision",
+ :"hosts",
+ :"id",
+ :"revisions",
+ :"slug",
+ :"state",
+ :"subscription_id",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t,
+ :"current_revision" => Client.Model.ProjectRevision.t,
+ :"hosts" => [String.t],
+ :"id" => String.t,
+ :"revisions" => [Client.Model.ProjectRevision.t],
+ :"slug" => String.t,
+ :"state" => String.t,
+ :"subscription_id" => String.t | nil,
+ :"updated_at" => DateTime.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.Project do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"current_revision", :struct, Client.Model.ProjectRevision, options)
+ |> deserialize(:"revisions", :list, Client.Model.ProjectRevision, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project_host.ex b/clients/client/elixir/lib/client/model/project_host.ex
new file mode 100644
index 00000000000..343f9c51e9f
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project_host.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ProjectHost do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"host",
+ :"id",
+ :"project_id"
+ ]
+
+ @type t :: %__MODULE__{
+ :"host" => String.t,
+ :"id" => String.t,
+ :"project_id" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ProjectHost do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project_invite.ex b/clients/client/elixir/lib/client/model/project_invite.ex
new file mode 100644
index 00000000000..5224804fdf1
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project_invite.ex
@@ -0,0 +1,41 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ProjectInvite do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"id",
+ :"invitee_email",
+ :"invitee_id",
+ :"owner_email",
+ :"owner_id",
+ :"project_id",
+ :"status",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t,
+ :"id" => String.t,
+ :"invitee_email" => String.t,
+ :"invitee_id" => String.t | nil,
+ :"owner_email" => String.t,
+ :"owner_id" => String.t,
+ :"project_id" => String.t,
+ :"status" => String.t,
+ :"updated_at" => DateTime.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ProjectInvite do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project_revision.ex b/clients/client/elixir/lib/client/model/project_revision.ex
new file mode 100644
index 00000000000..ed820bcf134
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project_revision.ex
@@ -0,0 +1,159 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ProjectRevision do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"id",
+ :"kratos_cookies_same_site",
+ :"kratos_courier_smtp_connection_uri",
+ :"kratos_courier_smtp_from_address",
+ :"kratos_courier_smtp_from_name",
+ :"kratos_courier_smtp_headers",
+ :"kratos_identity_schemas",
+ :"kratos_secrets_cipher",
+ :"kratos_secrets_cookie",
+ :"kratos_secrets_default",
+ :"kratos_selfservice_allowed_return_urls",
+ :"kratos_selfservice_default_browser_return_url",
+ :"kratos_selfservice_flows_error_ui_url",
+ :"kratos_selfservice_flows_hooks",
+ :"kratos_selfservice_flows_login_after_default_browser_return_url",
+ :"kratos_selfservice_flows_login_after_oidc_default_browser_return_url",
+ :"kratos_selfservice_flows_login_after_password_default_browser_return_url",
+ :"kratos_selfservice_flows_login_lifespan",
+ :"kratos_selfservice_flows_login_ui_url",
+ :"kratos_selfservice_flows_logout_after_default_browser_return_url",
+ :"kratos_selfservice_flows_recovery_after_default_browser_return_url",
+ :"kratos_selfservice_flows_recovery_enabled",
+ :"kratos_selfservice_flows_recovery_lifespan",
+ :"kratos_selfservice_flows_recovery_ui_url",
+ :"kratos_selfservice_flows_registration_after_default_browser_return_url",
+ :"kratos_selfservice_flows_registration_after_oidc_default_browser_return_url",
+ :"kratos_selfservice_flows_registration_after_password_default_browser_return_url",
+ :"kratos_selfservice_flows_registration_lifespan",
+ :"kratos_selfservice_flows_registration_ui_url",
+ :"kratos_selfservice_flows_settings_after_default_browser_return_url",
+ :"kratos_selfservice_flows_settings_after_password_default_browser_return_url",
+ :"kratos_selfservice_flows_settings_after_profile_default_browser_return_url",
+ :"kratos_selfservice_flows_settings_lifespan",
+ :"kratos_selfservice_flows_settings_privileged_session_max_age",
+ :"kratos_selfservice_flows_settings_required_aal",
+ :"kratos_selfservice_flows_settings_ui_url",
+ :"kratos_selfservice_flows_verification_after_default_browser_return_url",
+ :"kratos_selfservice_flows_verification_enabled",
+ :"kratos_selfservice_flows_verification_lifespan",
+ :"kratos_selfservice_flows_verification_ui_url",
+ :"kratos_selfservice_methods_link_config_base_url",
+ :"kratos_selfservice_methods_link_config_lifespan",
+ :"kratos_selfservice_methods_link_enabled",
+ :"kratos_selfservice_methods_lookup_secret_enabled",
+ :"kratos_selfservice_methods_oidc_config_providers",
+ :"kratos_selfservice_methods_oidc_enabled",
+ :"kratos_selfservice_methods_password_config_haveibeenpwned_enabled",
+ :"kratos_selfservice_methods_password_config_ignore_network_errors",
+ :"kratos_selfservice_methods_password_config_max_breaches",
+ :"kratos_selfservice_methods_password_enabled",
+ :"kratos_selfservice_methods_profile_enabled",
+ :"kratos_selfservice_methods_totp_config_issuer",
+ :"kratos_selfservice_methods_totp_enabled",
+ :"kratos_selfservice_methods_webauthn_config_rp_display_name",
+ :"kratos_selfservice_methods_webauthn_config_rp_icon",
+ :"kratos_selfservice_methods_webauthn_config_rp_id",
+ :"kratos_selfservice_methods_webauthn_config_rp_origin",
+ :"kratos_selfservice_methods_webauthn_enabled",
+ :"kratos_session_cookie_persistent",
+ :"kratos_session_cookie_same_site",
+ :"kratos_session_lifespan",
+ :"kratos_session_whoami_required_aal",
+ :"name",
+ :"project_id",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t | nil,
+ :"id" => String.t | nil,
+ :"kratos_cookies_same_site" => String.t | nil,
+ :"kratos_courier_smtp_connection_uri" => String.t | nil,
+ :"kratos_courier_smtp_from_address" => String.t | nil,
+ :"kratos_courier_smtp_from_name" => String.t | nil,
+ :"kratos_courier_smtp_headers" => map() | nil,
+ :"kratos_identity_schemas" => [Client.Model.ProjectRevisionIdentitySchema.t] | nil,
+ :"kratos_secrets_cipher" => [String.t] | nil,
+ :"kratos_secrets_cookie" => [String.t] | nil,
+ :"kratos_secrets_default" => [String.t] | nil,
+ :"kratos_selfservice_allowed_return_urls" => [String.t] | nil,
+ :"kratos_selfservice_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_error_ui_url" => String.t | nil,
+ :"kratos_selfservice_flows_hooks" => [Client.Model.ProjectRevisionHook.t] | nil,
+ :"kratos_selfservice_flows_login_after_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_login_after_oidc_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_login_after_password_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_login_lifespan" => String.t | nil,
+ :"kratos_selfservice_flows_login_ui_url" => String.t | nil,
+ :"kratos_selfservice_flows_logout_after_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_recovery_after_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_recovery_enabled" => boolean() | nil,
+ :"kratos_selfservice_flows_recovery_lifespan" => String.t | nil,
+ :"kratos_selfservice_flows_recovery_ui_url" => String.t | nil,
+ :"kratos_selfservice_flows_registration_after_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_registration_after_oidc_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_registration_after_password_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_registration_lifespan" => String.t | nil,
+ :"kratos_selfservice_flows_registration_ui_url" => String.t | nil,
+ :"kratos_selfservice_flows_settings_after_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_settings_after_password_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_settings_after_profile_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_settings_lifespan" => String.t | nil,
+ :"kratos_selfservice_flows_settings_privileged_session_max_age" => String.t | nil,
+ :"kratos_selfservice_flows_settings_required_aal" => String.t | nil,
+ :"kratos_selfservice_flows_settings_ui_url" => String.t | nil,
+ :"kratos_selfservice_flows_verification_after_default_browser_return_url" => String.t | nil,
+ :"kratos_selfservice_flows_verification_enabled" => boolean() | nil,
+ :"kratos_selfservice_flows_verification_lifespan" => String.t | nil,
+ :"kratos_selfservice_flows_verification_ui_url" => String.t | nil,
+ :"kratos_selfservice_methods_link_config_base_url" => String.t | nil,
+ :"kratos_selfservice_methods_link_config_lifespan" => String.t | nil,
+ :"kratos_selfservice_methods_link_enabled" => boolean() | nil,
+ :"kratos_selfservice_methods_lookup_secret_enabled" => boolean() | nil,
+ :"kratos_selfservice_methods_oidc_config_providers" => [Client.Model.ProjectRevisionThirdPartyLoginProvider.t] | nil,
+ :"kratos_selfservice_methods_oidc_enabled" => boolean() | nil,
+ :"kratos_selfservice_methods_password_config_haveibeenpwned_enabled" => boolean() | nil,
+ :"kratos_selfservice_methods_password_config_ignore_network_errors" => boolean() | nil,
+ :"kratos_selfservice_methods_password_config_max_breaches" => integer() | nil,
+ :"kratos_selfservice_methods_password_enabled" => boolean() | nil,
+ :"kratos_selfservice_methods_profile_enabled" => boolean() | nil,
+ :"kratos_selfservice_methods_totp_config_issuer" => String.t | nil,
+ :"kratos_selfservice_methods_totp_enabled" => boolean() | nil,
+ :"kratos_selfservice_methods_webauthn_config_rp_display_name" => String.t | nil,
+ :"kratos_selfservice_methods_webauthn_config_rp_icon" => String.t | nil,
+ :"kratos_selfservice_methods_webauthn_config_rp_id" => String.t | nil,
+ :"kratos_selfservice_methods_webauthn_config_rp_origin" => String.t | nil,
+ :"kratos_selfservice_methods_webauthn_enabled" => boolean() | nil,
+ :"kratos_session_cookie_persistent" => boolean() | nil,
+ :"kratos_session_cookie_same_site" => String.t | nil,
+ :"kratos_session_lifespan" => String.t | nil,
+ :"kratos_session_whoami_required_aal" => String.t | nil,
+ :"name" => String.t,
+ :"project_id" => String.t | nil,
+ :"updated_at" => DateTime.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ProjectRevision do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"kratos_identity_schemas", :list, Client.Model.ProjectRevisionIdentitySchema, options)
+ |> deserialize(:"kratos_selfservice_flows_hooks", :list, Client.Model.ProjectRevisionHook, options)
+ |> deserialize(:"kratos_selfservice_methods_oidc_config_providers", :list, Client.Model.ProjectRevisionThirdPartyLoginProvider, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project_revision_hook.ex b/clients/client/elixir/lib/client/model/project_revision_hook.ex
new file mode 100644
index 00000000000..92de7ae8d00
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project_revision_hook.ex
@@ -0,0 +1,53 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ProjectRevisionHook do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"config_key",
+ :"created_at",
+ :"hook",
+ :"id",
+ :"project_revision_id",
+ :"updated_at",
+ :"web_hook_config_auth_api_key_in",
+ :"web_hook_config_auth_api_key_name",
+ :"web_hook_config_auth_api_key_value",
+ :"web_hook_config_auth_basic_auth_password",
+ :"web_hook_config_auth_basic_auth_user",
+ :"web_hook_config_auth_type",
+ :"web_hook_config_body",
+ :"web_hook_config_method",
+ :"web_hook_config_url"
+ ]
+
+ @type t :: %__MODULE__{
+ :"config_key" => String.t,
+ :"created_at" => DateTime.t | nil,
+ :"hook" => String.t,
+ :"id" => String.t | nil,
+ :"project_revision_id" => String.t | nil,
+ :"updated_at" => DateTime.t | nil,
+ :"web_hook_config_auth_api_key_in" => String.t | nil,
+ :"web_hook_config_auth_api_key_name" => String.t | nil,
+ :"web_hook_config_auth_api_key_value" => String.t | nil,
+ :"web_hook_config_auth_basic_auth_password" => String.t | nil,
+ :"web_hook_config_auth_basic_auth_user" => String.t | nil,
+ :"web_hook_config_auth_type" => String.t | nil,
+ :"web_hook_config_body" => String.t | nil,
+ :"web_hook_config_method" => String.t | nil,
+ :"web_hook_config_url" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ProjectRevisionHook do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project_revision_identity_schema.ex b/clients/client/elixir/lib/client/model/project_revision_identity_schema.ex
new file mode 100644
index 00000000000..dcc3552e653
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project_revision_identity_schema.ex
@@ -0,0 +1,45 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ProjectRevisionIdentitySchema do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"id",
+ :"identity_schema",
+ :"identity_schema_id",
+ :"import_id",
+ :"import_url",
+ :"is_default",
+ :"preset",
+ :"project_revision_id",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t | nil,
+ :"id" => String.t | nil,
+ :"identity_schema" => Client.Model.IdentitySchema.t | nil,
+ :"identity_schema_id" => String.t | nil,
+ :"import_id" => String.t | nil,
+ :"import_url" => String.t | nil,
+ :"is_default" => boolean() | nil,
+ :"preset" => String.t | nil,
+ :"project_revision_id" => String.t | nil,
+ :"updated_at" => DateTime.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ProjectRevisionIdentitySchema do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"identity_schema", :struct, Client.Model.IdentitySchema, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project_revision_third_party_login_provider.ex b/clients/client/elixir/lib/client/model/project_revision_third_party_login_provider.ex
new file mode 100644
index 00000000000..6b9ad9fc80a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project_revision_third_party_login_provider.ex
@@ -0,0 +1,61 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ProjectRevisionThirdPartyLoginProvider do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"apple_private_key",
+ :"apple_private_key_id",
+ :"apple_team_id",
+ :"auth_url",
+ :"azure_tenant",
+ :"client_id",
+ :"client_secret",
+ :"created_at",
+ :"id",
+ :"issuer_url",
+ :"label",
+ :"mapper_url",
+ :"project_revision_id",
+ :"provider",
+ :"provider_id",
+ :"requested_claims",
+ :"scope",
+ :"token_url",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"apple_private_key" => String.t | nil,
+ :"apple_private_key_id" => String.t | nil,
+ :"apple_team_id" => String.t | nil,
+ :"auth_url" => String.t | nil,
+ :"azure_tenant" => String.t | nil,
+ :"client_id" => String.t | nil,
+ :"client_secret" => String.t | nil,
+ :"created_at" => DateTime.t | nil,
+ :"id" => String.t | nil,
+ :"issuer_url" => String.t | nil,
+ :"label" => String.t | nil,
+ :"mapper_url" => String.t | nil,
+ :"project_revision_id" => String.t | nil,
+ :"provider" => String.t | nil,
+ :"provider_id" => String.t | nil,
+ :"requested_claims" => map() | nil,
+ :"scope" => [String.t] | nil,
+ :"token_url" => String.t | nil,
+ :"updated_at" => DateTime.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ProjectRevisionThirdPartyLoginProvider do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/project_slug.ex b/clients/client/elixir/lib/client/model/project_slug.ex
new file mode 100644
index 00000000000..8031c52cc88
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/project_slug.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.ProjectSlug do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"slug"
+ ]
+
+ @type t :: %__MODULE__{
+ :"slug" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.ProjectSlug do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/quota_project_member_seats.ex b/clients/client/elixir/lib/client/model/quota_project_member_seats.ex
new file mode 100644
index 00000000000..ec3e44e28b7
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/quota_project_member_seats.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.QuotaProjectMemberSeats do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"project_id",
+ :"remaining_seats",
+ :"total_seats"
+ ]
+
+ @type t :: %__MODULE__{
+ :"project_id" => String.t | nil,
+ :"remaining_seats" => integer() | nil,
+ :"total_seats" => integer() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.QuotaProjectMemberSeats do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/recovery_address.ex b/clients/client/elixir/lib/client/model/recovery_address.ex
new file mode 100644
index 00000000000..d3db690b497
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/recovery_address.ex
@@ -0,0 +1,33 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.RecoveryAddress do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"id",
+ :"updated_at",
+ :"value",
+ :"via"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t | nil,
+ :"id" => String.t,
+ :"updated_at" => DateTime.t | nil,
+ :"value" => String.t,
+ :"via" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.RecoveryAddress do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/revoked_sessions.ex b/clients/client/elixir/lib/client/model/revoked_sessions.ex
new file mode 100644
index 00000000000..8738003d9aa
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/revoked_sessions.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.RevokedSessions do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"count"
+ ]
+
+ @type t :: %__MODULE__{
+ :"count" => integer() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.RevokedSessions do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/schema_patch.ex b/clients/client/elixir/lib/client/model/schema_patch.ex
new file mode 100644
index 00000000000..475c22e21e5
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/schema_patch.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SchemaPatch do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"data",
+ :"name"
+ ]
+
+ @type t :: %__MODULE__{
+ :"data" => map(),
+ :"name" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SchemaPatch do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_browser_location_change_required_error.ex b/clients/client/elixir/lib/client/model/self_service_browser_location_change_required_error.ex
new file mode 100644
index 00000000000..00eb9a3ac7c
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_browser_location_change_required_error.ex
@@ -0,0 +1,41 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceBrowserLocationChangeRequiredError do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"code",
+ :"debug",
+ :"details",
+ :"id",
+ :"message",
+ :"reason",
+ :"redirect_browser_to",
+ :"request",
+ :"status"
+ ]
+
+ @type t :: %__MODULE__{
+ :"code" => integer() | nil,
+ :"debug" => String.t | nil,
+ :"details" => %{optional(String.t) => map()} | nil,
+ :"id" => String.t | nil,
+ :"message" => String.t,
+ :"reason" => String.t | nil,
+ :"redirect_browser_to" => String.t | nil,
+ :"request" => String.t | nil,
+ :"status" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceBrowserLocationChangeRequiredError do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_error.ex b/clients/client/elixir/lib/client/model/self_service_error.ex
new file mode 100644
index 00000000000..59075695da6
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_error.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceError do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"error",
+ :"id",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t | nil,
+ :"error" => map() | nil,
+ :"id" => String.t,
+ :"updated_at" => DateTime.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceError do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_flow_expired_error.ex b/clients/client/elixir/lib/client/model/self_service_flow_expired_error.ex
new file mode 100644
index 00000000000..e7641c00710
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_flow_expired_error.ex
@@ -0,0 +1,43 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceFlowExpiredError do
+ @moduledoc """
+ Is sent when a flow is expired
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"code",
+ :"debug",
+ :"details",
+ :"id",
+ :"message",
+ :"reason",
+ :"request",
+ :"since",
+ :"status",
+ :"use_flow_id"
+ ]
+
+ @type t :: %__MODULE__{
+ :"code" => integer() | nil,
+ :"debug" => String.t | nil,
+ :"details" => %{optional(String.t) => map()} | nil,
+ :"id" => String.t | nil,
+ :"message" => String.t,
+ :"reason" => String.t | nil,
+ :"request" => String.t | nil,
+ :"since" => integer() | nil,
+ :"status" => String.t | nil,
+ :"use_flow_id" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceFlowExpiredError do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_login_flow.ex b/clients/client/elixir/lib/client/model/self_service_login_flow.ex
new file mode 100644
index 00000000000..34238c7617b
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_login_flow.ex
@@ -0,0 +1,51 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceLoginFlow do
+ @moduledoc """
+ This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"active",
+ :"created_at",
+ :"expires_at",
+ :"id",
+ :"issued_at",
+ :"refresh",
+ :"request_url",
+ :"requested_aal",
+ :"return_to",
+ :"type",
+ :"ui",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"active" => Client.Model.IdentityCredentialsType.t | nil,
+ :"created_at" => DateTime.t | nil,
+ :"expires_at" => DateTime.t,
+ :"id" => String.t,
+ :"issued_at" => DateTime.t,
+ :"refresh" => boolean() | nil,
+ :"request_url" => String.t,
+ :"requested_aal" => Client.Model.AuthenticatorAssuranceLevel.t | nil,
+ :"return_to" => String.t | nil,
+ :"type" => String.t,
+ :"ui" => Client.Model.UiContainer.t,
+ :"updated_at" => DateTime.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceLoginFlow do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"active", :struct, Client.Model.IdentityCredentialsType, options)
+ |> deserialize(:"requested_aal", :struct, Client.Model.AuthenticatorAssuranceLevel, options)
+ |> deserialize(:"ui", :struct, Client.Model.UiContainer, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_logout_url.ex b/clients/client/elixir/lib/client/model/self_service_logout_url.ex
new file mode 100644
index 00000000000..163b7c4818d
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_logout_url.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceLogoutUrl do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"logout_token",
+ :"logout_url"
+ ]
+
+ @type t :: %__MODULE__{
+ :"logout_token" => String.t,
+ :"logout_url" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceLogoutUrl do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_recovery_flow.ex b/clients/client/elixir/lib/client/model/self_service_recovery_flow.ex
new file mode 100644
index 00000000000..eac8f80c6ff
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_recovery_flow.ex
@@ -0,0 +1,44 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceRecoveryFlow do
+ @moduledoc """
+ This request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery)
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"active",
+ :"expires_at",
+ :"id",
+ :"issued_at",
+ :"request_url",
+ :"return_to",
+ :"state",
+ :"type",
+ :"ui"
+ ]
+
+ @type t :: %__MODULE__{
+ :"active" => String.t | nil,
+ :"expires_at" => DateTime.t,
+ :"id" => String.t,
+ :"issued_at" => DateTime.t,
+ :"request_url" => String.t,
+ :"return_to" => String.t | nil,
+ :"state" => Client.Model.SelfServiceRecoveryFlowState.t,
+ :"type" => String.t | nil,
+ :"ui" => Client.Model.UiContainer.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceRecoveryFlow do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"state", :struct, Client.Model.SelfServiceRecoveryFlowState, options)
+ |> deserialize(:"ui", :struct, Client.Model.UiContainer, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_recovery_flow_state.ex b/clients/client/elixir/lib/client/model/self_service_recovery_flow_state.ex
new file mode 100644
index 00000000000..a32fc73cbd9
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_recovery_flow_state.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceRecoveryFlowState do
+ @moduledoc """
+ The state represents the state of the recovery flow. choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+
+ ]
+
+ @type t :: %__MODULE__{
+
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceRecoveryFlowState do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_recovery_link.ex b/clients/client/elixir/lib/client/model/self_service_recovery_link.ex
new file mode 100644
index 00000000000..1bb1f336495
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_recovery_link.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceRecoveryLink do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"expires_at",
+ :"recovery_link"
+ ]
+
+ @type t :: %__MODULE__{
+ :"expires_at" => DateTime.t | nil,
+ :"recovery_link" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceRecoveryLink do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_registration_flow.ex b/clients/client/elixir/lib/client/model/self_service_registration_flow.ex
new file mode 100644
index 00000000000..d08013d1c4a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_registration_flow.ex
@@ -0,0 +1,42 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceRegistrationFlow do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"active",
+ :"expires_at",
+ :"id",
+ :"issued_at",
+ :"request_url",
+ :"return_to",
+ :"type",
+ :"ui"
+ ]
+
+ @type t :: %__MODULE__{
+ :"active" => Client.Model.IdentityCredentialsType.t | nil,
+ :"expires_at" => DateTime.t,
+ :"id" => String.t,
+ :"issued_at" => DateTime.t,
+ :"request_url" => String.t,
+ :"return_to" => String.t | nil,
+ :"type" => String.t | nil,
+ :"ui" => Client.Model.UiContainer.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceRegistrationFlow do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"active", :struct, Client.Model.IdentityCredentialsType, options)
+ |> deserialize(:"ui", :struct, Client.Model.UiContainer, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_settings_flow.ex b/clients/client/elixir/lib/client/model/self_service_settings_flow.ex
new file mode 100644
index 00000000000..c2fdf987ede
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_settings_flow.ex
@@ -0,0 +1,47 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceSettingsFlow do
+ @moduledoc """
+ This flow is used when an identity wants to update settings (e.g. profile data, passwords, ...) in a selfservice manner. We recommend reading the [User Settings Documentation](../self-service/flows/user-settings)
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"active",
+ :"expires_at",
+ :"id",
+ :"identity",
+ :"issued_at",
+ :"request_url",
+ :"return_to",
+ :"state",
+ :"type",
+ :"ui"
+ ]
+
+ @type t :: %__MODULE__{
+ :"active" => String.t | nil,
+ :"expires_at" => DateTime.t,
+ :"id" => String.t,
+ :"identity" => Client.Model.Identity.t,
+ :"issued_at" => DateTime.t,
+ :"request_url" => String.t,
+ :"return_to" => String.t | nil,
+ :"state" => Client.Model.SelfServiceSettingsFlowState.t,
+ :"type" => String.t | nil,
+ :"ui" => Client.Model.UiContainer.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceSettingsFlow do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"identity", :struct, Client.Model.Identity, options)
+ |> deserialize(:"state", :struct, Client.Model.SelfServiceSettingsFlowState, options)
+ |> deserialize(:"ui", :struct, Client.Model.UiContainer, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_settings_flow_state.ex b/clients/client/elixir/lib/client/model/self_service_settings_flow_state.ex
new file mode 100644
index 00000000000..ff27ceac0b2
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_settings_flow_state.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceSettingsFlowState do
+ @moduledoc """
+ show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+
+ ]
+
+ @type t :: %__MODULE__{
+
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceSettingsFlowState do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_verification_flow.ex b/clients/client/elixir/lib/client/model/self_service_verification_flow.ex
new file mode 100644
index 00000000000..fd78eaef0a5
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_verification_flow.ex
@@ -0,0 +1,44 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceVerificationFlow do
+ @moduledoc """
+ Used to verify an out-of-band communication channel such as an email address or a phone number. For more information head over to: https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"active",
+ :"expires_at",
+ :"id",
+ :"issued_at",
+ :"request_url",
+ :"return_to",
+ :"state",
+ :"type",
+ :"ui"
+ ]
+
+ @type t :: %__MODULE__{
+ :"active" => String.t | nil,
+ :"expires_at" => DateTime.t | nil,
+ :"id" => String.t,
+ :"issued_at" => DateTime.t | nil,
+ :"request_url" => String.t | nil,
+ :"return_to" => String.t | nil,
+ :"state" => Client.Model.SelfServiceVerificationFlowState.t,
+ :"type" => String.t,
+ :"ui" => Client.Model.UiContainer.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceVerificationFlow do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"state", :struct, Client.Model.SelfServiceVerificationFlowState, options)
+ |> deserialize(:"ui", :struct, Client.Model.UiContainer, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/self_service_verification_flow_state.ex b/clients/client/elixir/lib/client/model/self_service_verification_flow_state.ex
new file mode 100644
index 00000000000..9a977693a5e
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/self_service_verification_flow_state.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SelfServiceVerificationFlowState do
+ @moduledoc """
+ The state represents the state of the verification flow. choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+
+ ]
+
+ @type t :: %__MODULE__{
+
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SelfServiceVerificationFlowState do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/session.ex b/clients/client/elixir/lib/client/model/session.ex
new file mode 100644
index 00000000000..1d15c2b19e7
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/session.ex
@@ -0,0 +1,43 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.Session do
+ @moduledoc """
+ A Session
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"active",
+ :"authenticated_at",
+ :"authentication_methods",
+ :"authenticator_assurance_level",
+ :"expires_at",
+ :"id",
+ :"identity",
+ :"issued_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"active" => boolean() | nil,
+ :"authenticated_at" => DateTime.t | nil,
+ :"authentication_methods" => [Client.Model.SessionAuthenticationMethod.t] | nil,
+ :"authenticator_assurance_level" => Client.Model.AuthenticatorAssuranceLevel.t | nil,
+ :"expires_at" => DateTime.t | nil,
+ :"id" => String.t,
+ :"identity" => Client.Model.Identity.t,
+ :"issued_at" => DateTime.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.Session do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"authentication_methods", :list, Client.Model.SessionAuthenticationMethod, options)
+ |> deserialize(:"authenticator_assurance_level", :struct, Client.Model.AuthenticatorAssuranceLevel, options)
+ |> deserialize(:"identity", :struct, Client.Model.Identity, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/session_authentication_method.ex b/clients/client/elixir/lib/client/model/session_authentication_method.ex
new file mode 100644
index 00000000000..0cbf3efcbe9
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/session_authentication_method.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SessionAuthenticationMethod do
+ @moduledoc """
+ A singular authenticator used during authentication / login.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"completed_at",
+ :"method"
+ ]
+
+ @type t :: %__MODULE__{
+ :"completed_at" => DateTime.t | nil,
+ :"method" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SessionAuthenticationMethod do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/session_device.ex b/clients/client/elixir/lib/client/model/session_device.ex
new file mode 100644
index 00000000000..6c11e9517b8
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/session_device.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SessionDevice do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"user_agent"
+ ]
+
+ @type t :: %__MODULE__{
+ :"user_agent" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SessionDevice do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/settings_profile_form_config.ex b/clients/client/elixir/lib/client/model/settings_profile_form_config.ex
new file mode 100644
index 00000000000..3d8c630c992
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/settings_profile_form_config.ex
@@ -0,0 +1,34 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SettingsProfileFormConfig do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"action",
+ :"messages",
+ :"method",
+ :"nodes"
+ ]
+
+ @type t :: %__MODULE__{
+ :"action" => String.t,
+ :"messages" => [Client.Model.UiText.t] | nil,
+ :"method" => String.t,
+ :"nodes" => [Client.Model.UiNode.t]
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SettingsProfileFormConfig do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"messages", :list, Client.Model.UiText, options)
+ |> deserialize(:"nodes", :list, Client.Model.UiNode, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/stripe_customer_response.ex b/clients/client/elixir/lib/client/model/stripe_customer_response.ex
new file mode 100644
index 00000000000..9cf5a51e037
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/stripe_customer_response.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.StripeCustomerResponse do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"id"
+ ]
+
+ @type t :: %__MODULE__{
+ :"id" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.StripeCustomerResponse do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_login_flow_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_body.ex
new file mode 100644
index 00000000000..4a4da2294e9
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_body.ex
@@ -0,0 +1,37 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceLoginFlowBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"password",
+ :"password_identifier",
+ :"provider",
+ :"traits",
+ :"totp_code"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"password" => String.t,
+ :"password_identifier" => String.t,
+ :"provider" => String.t,
+ :"traits" => map() | nil,
+ :"totp_code" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceLoginFlowBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_lookup_secret_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_lookup_secret_method_body.ex
new file mode 100644
index 00000000000..5b7db4cabdf
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_lookup_secret_method_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceLoginFlowWithLookupSecretMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"lookup_secret",
+ :"method"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"lookup_secret" => String.t,
+ :"method" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceLoginFlowWithLookupSecretMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_oidc_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_oidc_method_body.ex
new file mode 100644
index 00000000000..90f19fe7ba1
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_oidc_method_body.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceLoginFlowWithOidcMethodBody do
+ @moduledoc """
+ SubmitSelfServiceLoginFlowWithOidcMethodBody is used to decode the login form payload when using the oidc method.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"provider",
+ :"traits"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"provider" => String.t,
+ :"traits" => map() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceLoginFlowWithOidcMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_password_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_password_method_body.ex
new file mode 100644
index 00000000000..28d710973b8
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_password_method_body.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceLoginFlowWithPasswordMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"password",
+ :"password_identifier"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"password" => String.t,
+ :"password_identifier" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceLoginFlowWithPasswordMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_totp_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_totp_method_body.ex
new file mode 100644
index 00000000000..75a35038675
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_totp_method_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceLoginFlowWithTotpMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"totp_code"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"totp_code" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceLoginFlowWithTotpMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_web_authn_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_web_authn_method_body.ex
new file mode 100644
index 00000000000..5743c826a8b
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_login_flow_with_web_authn_method_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceLoginFlowWithWebAuthnMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"webauthn_login"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"webauthn_login" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceLoginFlowWithWebAuthnMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_logout_flow_without_browser_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_logout_flow_without_browser_body.ex
new file mode 100644
index 00000000000..b8403c1b8c2
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_logout_flow_without_browser_body.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceLogoutFlowWithoutBrowserBody do
+ @moduledoc """
+ nolint:deadcode,unused
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"session_token"
+ ]
+
+ @type t :: %__MODULE__{
+ :"session_token" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceLogoutFlowWithoutBrowserBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_recovery_flow_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_recovery_flow_body.ex
new file mode 100644
index 00000000000..1f3bf54c60c
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_recovery_flow_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceRecoveryFlowBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"email",
+ :"method"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"email" => String.t,
+ :"method" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceRecoveryFlowBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_recovery_flow_with_link_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_recovery_flow_with_link_method_body.ex
new file mode 100644
index 00000000000..fb52f1a1449
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_recovery_flow_with_link_method_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceRecoveryFlowWithLinkMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"email",
+ :"method"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"email" => String.t,
+ :"method" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceRecoveryFlowWithLinkMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_body.ex
new file mode 100644
index 00000000000..854a79a48e3
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_body.ex
@@ -0,0 +1,33 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceRegistrationFlowBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"password",
+ :"traits",
+ :"provider"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"password" => String.t,
+ :"traits" => map(),
+ :"provider" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceRegistrationFlowBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_with_oidc_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_with_oidc_method_body.ex
new file mode 100644
index 00000000000..687dbb20926
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_with_oidc_method_body.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceRegistrationFlowWithOidcMethodBody do
+ @moduledoc """
+ SubmitSelfServiceRegistrationFlowWithOidcMethodBody is used to decode the registration form payload when using the oidc method.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"provider",
+ :"traits"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"provider" => String.t,
+ :"traits" => map() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceRegistrationFlowWithOidcMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_with_password_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_with_password_method_body.ex
new file mode 100644
index 00000000000..7de96cbeffa
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_registration_flow_with_password_method_body.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceRegistrationFlowWithPasswordMethodBody do
+ @moduledoc """
+ SubmitSelfServiceRegistrationFlowWithPasswordMethodBody is used to decode the registration form payload when using the password method.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"password",
+ :"traits"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"password" => String.t,
+ :"traits" => map()
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceRegistrationFlowWithPasswordMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_body.ex
new file mode 100644
index 00000000000..d74f852530d
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_body.ex
@@ -0,0 +1,41 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceSettingsFlowBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"password",
+ :"traits",
+ :"flow",
+ :"link",
+ :"unlink",
+ :"totp_code",
+ :"totp_unlink"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"password" => String.t,
+ :"traits" => map(),
+ :"flow" => String.t | nil,
+ :"link" => String.t | nil,
+ :"unlink" => String.t | nil,
+ :"totp_code" => String.t | nil,
+ :"totp_unlink" => boolean() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceSettingsFlowBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_lookup_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_lookup_method_body.ex
new file mode 100644
index 00000000000..16e36991208
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_lookup_method_body.ex
@@ -0,0 +1,35 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceSettingsFlowWithLookupMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"lookup_secret_confirm",
+ :"lookup_secret_disable",
+ :"lookup_secret_regenerate",
+ :"lookup_secret_reveal",
+ :"method"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"lookup_secret_confirm" => boolean() | nil,
+ :"lookup_secret_disable" => boolean() | nil,
+ :"lookup_secret_regenerate" => boolean() | nil,
+ :"lookup_secret_reveal" => boolean() | nil,
+ :"method" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceSettingsFlowWithLookupMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_oidc_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_oidc_method_body.ex
new file mode 100644
index 00000000000..0d534f59eee
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_oidc_method_body.ex
@@ -0,0 +1,33 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceSettingsFlowWithOidcMethodBody do
+ @moduledoc """
+ nolint:deadcode,unused
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"flow",
+ :"link",
+ :"method",
+ :"traits",
+ :"unlink"
+ ]
+
+ @type t :: %__MODULE__{
+ :"flow" => String.t | nil,
+ :"link" => String.t | nil,
+ :"method" => String.t,
+ :"traits" => map() | nil,
+ :"unlink" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceSettingsFlowWithOidcMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_password_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_password_method_body.ex
new file mode 100644
index 00000000000..2be5d82e9e4
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_password_method_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceSettingsFlowWithPasswordMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"password"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"password" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceSettingsFlowWithPasswordMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_profile_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_profile_method_body.ex
new file mode 100644
index 00000000000..1076c074127
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_profile_method_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceSettingsFlowWithProfileMethodBody do
+ @moduledoc """
+ nolint:deadcode,unused
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"traits"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"traits" => map()
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceSettingsFlowWithProfileMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_totp_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_totp_method_body.ex
new file mode 100644
index 00000000000..db7f794847a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_totp_method_body.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceSettingsFlowWithTotpMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"totp_code",
+ :"totp_unlink"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"totp_code" => String.t | nil,
+ :"totp_unlink" => boolean() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceSettingsFlowWithTotpMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_web_authn_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_web_authn_method_body.ex
new file mode 100644
index 00000000000..7bc8c146b2c
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_settings_flow_with_web_authn_method_body.ex
@@ -0,0 +1,33 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"method",
+ :"webauthn_register",
+ :"webauthn_register_displayname",
+ :"webauthn_remove"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"method" => String.t,
+ :"webauthn_register" => String.t | nil,
+ :"webauthn_register_displayname" => String.t | nil,
+ :"webauthn_remove" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_verification_flow_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_verification_flow_body.ex
new file mode 100644
index 00000000000..59292786df3
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_verification_flow_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceVerificationFlowBody do
+ @moduledoc """
+ nolint:deadcode,unused
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"email",
+ :"method"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"email" => String.t,
+ :"method" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceVerificationFlowBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/submit_self_service_verification_flow_with_link_method_body.ex b/clients/client/elixir/lib/client/model/submit_self_service_verification_flow_with_link_method_body.ex
new file mode 100644
index 00000000000..10c7f74c910
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/submit_self_service_verification_flow_with_link_method_body.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SubmitSelfServiceVerificationFlowWithLinkMethodBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"csrf_token",
+ :"email",
+ :"method"
+ ]
+
+ @type t :: %__MODULE__{
+ :"csrf_token" => String.t | nil,
+ :"email" => String.t,
+ :"method" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SubmitSelfServiceVerificationFlowWithLinkMethodBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/subscription.ex b/clients/client/elixir/lib/client/model/subscription.ex
new file mode 100644
index 00000000000..aee4d8aa87f
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/subscription.ex
@@ -0,0 +1,45 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.Subscription do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"current_plan",
+ :"customer_id",
+ :"id",
+ :"ongoing_stripe_checkout_id",
+ :"payed_until",
+ :"plan_changes_at",
+ :"plan_changes_to",
+ :"status",
+ :"updated_at"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t,
+ :"current_plan" => String.t,
+ :"customer_id" => String.t,
+ :"id" => String.t,
+ :"ongoing_stripe_checkout_id" => String.t | nil,
+ :"payed_until" => DateTime.t,
+ :"plan_changes_at" => DateTime.t | nil,
+ :"plan_changes_to" => Client.Model.NullPlan.t,
+ :"status" => String.t,
+ :"updated_at" => DateTime.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.Subscription do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"plan_changes_to", :struct, Client.Model.NullPlan, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/successful_project_config_update.ex b/clients/client/elixir/lib/client/model/successful_project_config_update.ex
new file mode 100644
index 00000000000..dac8e16d64a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/successful_project_config_update.ex
@@ -0,0 +1,30 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SuccessfulProjectConfigUpdate do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"project",
+ :"warnings"
+ ]
+
+ @type t :: %__MODULE__{
+ :"project" => Client.Model.Project.t | nil,
+ :"warnings" => [Client.Model.Warning.t] | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SuccessfulProjectConfigUpdate do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"project", :struct, Client.Model.Project, options)
+ |> deserialize(:"warnings", :list, Client.Model.Warning, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/successful_self_service_login_without_browser.ex b/clients/client/elixir/lib/client/model/successful_self_service_login_without_browser.ex
new file mode 100644
index 00000000000..410bdc415b2
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/successful_self_service_login_without_browser.ex
@@ -0,0 +1,29 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SuccessfulSelfServiceLoginWithoutBrowser do
+ @moduledoc """
+ The Response for Login Flows via API
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"session",
+ :"session_token"
+ ]
+
+ @type t :: %__MODULE__{
+ :"session" => Client.Model.Session.t,
+ :"session_token" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SuccessfulSelfServiceLoginWithoutBrowser do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"session", :struct, Client.Model.Session, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/successful_self_service_registration_without_browser.ex b/clients/client/elixir/lib/client/model/successful_self_service_registration_without_browser.ex
new file mode 100644
index 00000000000..83d51d72b15
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/successful_self_service_registration_without_browser.ex
@@ -0,0 +1,32 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.SuccessfulSelfServiceRegistrationWithoutBrowser do
+ @moduledoc """
+ The Response for Registration Flows via API
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"identity",
+ :"session",
+ :"session_token"
+ ]
+
+ @type t :: %__MODULE__{
+ :"identity" => Client.Model.Identity.t,
+ :"session" => Client.Model.Session.t | nil,
+ :"session_token" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.SuccessfulSelfServiceRegistrationWithoutBrowser do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"identity", :struct, Client.Model.Identity, options)
+ |> deserialize(:"session", :struct, Client.Model.Session, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_container.ex b/clients/client/elixir/lib/client/model/ui_container.ex
new file mode 100644
index 00000000000..cd54e5e3fdf
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_container.ex
@@ -0,0 +1,34 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiContainer do
+ @moduledoc """
+ Container represents a HTML Form. The container can work with both HTTP Form and JSON requests
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"action",
+ :"messages",
+ :"method",
+ :"nodes"
+ ]
+
+ @type t :: %__MODULE__{
+ :"action" => String.t,
+ :"messages" => [Client.Model.UiText.t] | nil,
+ :"method" => String.t,
+ :"nodes" => [Client.Model.UiNode.t]
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiContainer do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"messages", :list, Client.Model.UiText, options)
+ |> deserialize(:"nodes", :list, Client.Model.UiNode, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node.ex b/clients/client/elixir/lib/client/model/ui_node.ex
new file mode 100644
index 00000000000..7b00a27e312
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node.ex
@@ -0,0 +1,37 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNode do
+ @moduledoc """
+ Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `` tag, or an `` but also `some plain text`.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"attributes",
+ :"group",
+ :"messages",
+ :"meta",
+ :"type"
+ ]
+
+ @type t :: %__MODULE__{
+ :"attributes" => Client.Model.UiNodeAttributes.t,
+ :"group" => String.t,
+ :"messages" => [Client.Model.UiText.t],
+ :"meta" => Client.Model.UiNodeMeta.t,
+ :"type" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNode do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"attributes", :struct, Client.Model.UiNodeAttributes, options)
+ |> deserialize(:"messages", :list, Client.Model.UiText, options)
+ |> deserialize(:"meta", :struct, Client.Model.UiNodeMeta, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node_anchor_attributes.ex b/clients/client/elixir/lib/client/model/ui_node_anchor_attributes.ex
new file mode 100644
index 00000000000..42b11819db3
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node_anchor_attributes.ex
@@ -0,0 +1,33 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNodeAnchorAttributes do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"href",
+ :"id",
+ :"node_type",
+ :"title"
+ ]
+
+ @type t :: %__MODULE__{
+ :"href" => String.t,
+ :"id" => String.t,
+ :"node_type" => String.t,
+ :"title" => Client.Model.UiText.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNodeAnchorAttributes do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"title", :struct, Client.Model.UiText, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node_attributes.ex b/clients/client/elixir/lib/client/model/ui_node_attributes.ex
new file mode 100644
index 00000000000..d4137bd6dd9
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node_attributes.ex
@@ -0,0 +1,70 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNodeAttributes do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"disabled",
+ :"label",
+ :"name",
+ :"node_type",
+ :"onclick",
+ :"pattern",
+ :"required",
+ :"type",
+ :"value",
+ :"id",
+ :"text",
+ :"height",
+ :"src",
+ :"width",
+ :"href",
+ :"title",
+ :"async",
+ :"crossorigin",
+ :"integrity",
+ :"nonce",
+ :"referrerpolicy"
+ ]
+
+ @type t :: %__MODULE__{
+ :"disabled" => boolean(),
+ :"label" => Client.Model.UiText.t | nil,
+ :"name" => String.t,
+ :"node_type" => String.t,
+ :"onclick" => String.t | nil,
+ :"pattern" => String.t | nil,
+ :"required" => boolean() | nil,
+ :"type" => String.t,
+ :"value" => AnyType | nil,
+ :"id" => String.t,
+ :"text" => Client.Model.UiText.t,
+ :"height" => integer() | nil,
+ :"src" => String.t,
+ :"width" => integer() | nil,
+ :"href" => String.t,
+ :"title" => Client.Model.UiText.t,
+ :"async" => boolean(),
+ :"crossorigin" => String.t,
+ :"integrity" => String.t,
+ :"nonce" => String.t,
+ :"referrerpolicy" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNodeAttributes do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"label", :struct, Client.Model.UiText, options)
+ |> deserialize(:"value", :struct, Client.Model.AnyType, options)
+ |> deserialize(:"text", :struct, Client.Model.UiText, options)
+ |> deserialize(:"title", :struct, Client.Model.UiText, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node_image_attributes.ex b/clients/client/elixir/lib/client/model/ui_node_image_attributes.ex
new file mode 100644
index 00000000000..e5df22dbfa5
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node_image_attributes.ex
@@ -0,0 +1,33 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNodeImageAttributes do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"height",
+ :"id",
+ :"node_type",
+ :"src",
+ :"width"
+ ]
+
+ @type t :: %__MODULE__{
+ :"height" => integer() | nil,
+ :"id" => String.t,
+ :"node_type" => String.t,
+ :"src" => String.t,
+ :"width" => integer() | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNodeImageAttributes do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node_input_attributes.ex b/clients/client/elixir/lib/client/model/ui_node_input_attributes.ex
new file mode 100644
index 00000000000..a9c88f49a24
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node_input_attributes.ex
@@ -0,0 +1,44 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNodeInputAttributes do
+ @moduledoc """
+ InputAttributes represents the attributes of an input node
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"disabled",
+ :"label",
+ :"name",
+ :"node_type",
+ :"onclick",
+ :"pattern",
+ :"required",
+ :"type",
+ :"value"
+ ]
+
+ @type t :: %__MODULE__{
+ :"disabled" => boolean(),
+ :"label" => Client.Model.UiText.t | nil,
+ :"name" => String.t,
+ :"node_type" => String.t,
+ :"onclick" => String.t | nil,
+ :"pattern" => String.t | nil,
+ :"required" => boolean() | nil,
+ :"type" => String.t,
+ :"value" => AnyType | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNodeInputAttributes do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"label", :struct, Client.Model.UiText, options)
+ |> deserialize(:"value", :struct, Client.Model.AnyType, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node_meta.ex b/clients/client/elixir/lib/client/model/ui_node_meta.ex
new file mode 100644
index 00000000000..1492c4564be
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node_meta.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNodeMeta do
+ @moduledoc """
+ This might include a label and other information that can optionally be used to render UIs.
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"label"
+ ]
+
+ @type t :: %__MODULE__{
+ :"label" => Client.Model.UiText.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNodeMeta do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"label", :struct, Client.Model.UiText, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node_script_attributes.ex b/clients/client/elixir/lib/client/model/ui_node_script_attributes.ex
new file mode 100644
index 00000000000..9901358433f
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node_script_attributes.ex
@@ -0,0 +1,41 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNodeScriptAttributes do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"async",
+ :"crossorigin",
+ :"id",
+ :"integrity",
+ :"node_type",
+ :"nonce",
+ :"referrerpolicy",
+ :"src",
+ :"type"
+ ]
+
+ @type t :: %__MODULE__{
+ :"async" => boolean(),
+ :"crossorigin" => String.t,
+ :"id" => String.t,
+ :"integrity" => String.t,
+ :"node_type" => String.t,
+ :"nonce" => String.t,
+ :"referrerpolicy" => String.t,
+ :"src" => String.t,
+ :"type" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNodeScriptAttributes do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_node_text_attributes.ex b/clients/client/elixir/lib/client/model/ui_node_text_attributes.ex
new file mode 100644
index 00000000000..d7e2973107a
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_node_text_attributes.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiNodeTextAttributes do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"id",
+ :"node_type",
+ :"text"
+ ]
+
+ @type t :: %__MODULE__{
+ :"id" => String.t,
+ :"node_type" => String.t,
+ :"text" => Client.Model.UiText.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiNodeTextAttributes do
+ import Client.Deserializer
+ def decode(value, options) do
+ value
+ |> deserialize(:"text", :struct, Client.Model.UiText, options)
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/ui_text.ex b/clients/client/elixir/lib/client/model/ui_text.ex
new file mode 100644
index 00000000000..b3b26304180
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/ui_text.ex
@@ -0,0 +1,31 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UiText do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"context",
+ :"id",
+ :"text",
+ :"type"
+ ]
+
+ @type t :: %__MODULE__{
+ :"context" => map() | nil,
+ :"id" => integer(),
+ :"text" => String.t,
+ :"type" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UiText do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/update_custom_hostname_body.ex b/clients/client/elixir/lib/client/model/update_custom_hostname_body.ex
new file mode 100644
index 00000000000..6ff5ddbad2d
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/update_custom_hostname_body.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UpdateCustomHostnameBody do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"cookie_domain",
+ :"hostname"
+ ]
+
+ @type t :: %__MODULE__{
+ :"cookie_domain" => String.t | nil,
+ :"hostname" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UpdateCustomHostnameBody do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/update_project_config_config.ex b/clients/client/elixir/lib/client/model/update_project_config_config.ex
new file mode 100644
index 00000000000..488c19edd6e
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/update_project_config_config.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UpdateProjectConfigConfig do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"identity"
+ ]
+
+ @type t :: %__MODULE__{
+ :"identity" => map()
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UpdateProjectConfigConfig do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/update_subscription_payload.ex b/clients/client/elixir/lib/client/model/update_subscription_payload.ex
new file mode 100644
index 00000000000..393f55e700f
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/update_subscription_payload.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.UpdateSubscriptionPayload do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"plan_or_price",
+ :"return_to"
+ ]
+
+ @type t :: %__MODULE__{
+ :"plan_or_price" => String.t,
+ :"return_to" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.UpdateSubscriptionPayload do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/verifiable_identity_address.ex b/clients/client/elixir/lib/client/model/verifiable_identity_address.ex
new file mode 100644
index 00000000000..78daa795e04
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/verifiable_identity_address.ex
@@ -0,0 +1,39 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.VerifiableIdentityAddress do
+ @moduledoc """
+ VerifiableAddress is an identity's verifiable address
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"created_at",
+ :"id",
+ :"status",
+ :"updated_at",
+ :"value",
+ :"verified",
+ :"verified_at",
+ :"via"
+ ]
+
+ @type t :: %__MODULE__{
+ :"created_at" => DateTime.t | nil,
+ :"id" => String.t,
+ :"status" => String.t,
+ :"updated_at" => DateTime.t | nil,
+ :"value" => String.t,
+ :"verified" => boolean(),
+ :"verified_at" => DateTime.t | nil,
+ :"via" => String.t
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.VerifiableIdentityAddress do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/version.ex b/clients/client/elixir/lib/client/model/version.ex
new file mode 100644
index 00000000000..3953f167d06
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/version.ex
@@ -0,0 +1,25 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.Version do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"version"
+ ]
+
+ @type t :: %__MODULE__{
+ :"version" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.Version do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/model/warning.ex b/clients/client/elixir/lib/client/model/warning.ex
new file mode 100644
index 00000000000..6f0b92206e2
--- /dev/null
+++ b/clients/client/elixir/lib/client/model/warning.ex
@@ -0,0 +1,27 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.Model.Warning do
+ @moduledoc """
+
+ """
+
+ @derive [Poison.Encoder]
+ defstruct [
+ :"code",
+ :"message"
+ ]
+
+ @type t :: %__MODULE__{
+ :"code" => integer() | nil,
+ :"message" => String.t | nil
+ }
+end
+
+defimpl Poison.Decoder, for: Client.Model.Warning do
+ def decode(value, _options) do
+ value
+ end
+end
+
diff --git a/clients/client/elixir/lib/client/request_builder.ex b/clients/client/elixir/lib/client/request_builder.ex
new file mode 100644
index 00000000000..cfc24a1028b
--- /dev/null
+++ b/clients/client/elixir/lib/client/request_builder.ex
@@ -0,0 +1,165 @@
+# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+# https://openapi-generator.tech
+# Do not edit the class manually.
+
+defmodule Client.RequestBuilder do
+ @moduledoc """
+ Helper functions for building Tesla requests
+ """
+
+ @doc """
+ Specify the request method when building a request
+
+ ## Parameters
+
+ - request (Map) - Collected request options
+ - m (atom) - Request method
+
+ ## Returns
+
+ Map
+ """
+ @spec method(map(), atom) :: map()
+ def method(request, m) do
+ Map.put_new(request, :method, m)
+ end
+
+ @doc """
+ Specify the request method when building a request
+
+ ## Parameters
+
+ - request (Map) - Collected request options
+ - u (String) - Request URL
+
+ ## Returns
+
+ Map
+ """
+ @spec url(map(), String.t) :: map()
+ def url(request, u) do
+ Map.put_new(request, :url, u)
+ end
+
+ @doc """
+ Add optional parameters to the request
+
+ ## Parameters
+
+ - request (Map) - Collected request options
+ - definitions (Map) - Map of parameter name to parameter location.
+ - options (KeywordList) - The provided optional parameters
+
+ ## Returns
+
+ Map
+ """
+ @spec add_optional_params(map(), %{optional(atom) => atom}, keyword()) :: map()
+ def add_optional_params(request, _, []), do: request
+ def add_optional_params(request, definitions, [{key, value} | tail]) do
+ case definitions do
+ %{^key => location} ->
+ request
+ |> add_param(location, key, value)
+ |> add_optional_params(definitions, tail)
+ _ ->
+ add_optional_params(request, definitions, tail)
+ end
+ end
+
+ @doc """
+ Add optional parameters to the request
+
+ ## Parameters
+
+ - request (Map) - Collected request options
+ - location (atom) - Where to put the parameter
+ - key (atom) - The name of the parameter
+ - value (any) - The value of the parameter
+
+ ## Returns
+
+ Map
+ """
+ @spec add_param(map(), atom, atom, any()) :: map()
+ def add_param(request, :body, :body, value), do: Map.put(request, :body, value)
+ def add_param(request, :body, key, value) do
+ request
+ |> Map.put_new_lazy(:body, &Tesla.Multipart.new/0)
+ |> Map.update!(:body, &(Tesla.Multipart.add_field(&1, key, Poison.encode!(value), headers: [{:"Content-Type", "application/json"}])))
+ end
+ def add_param(request, :headers, key, value) do
+ request
+ |> Tesla.put_header(key, value)
+ end
+ def add_param(request, :file, name, path) do
+ request
+ |> Map.put_new_lazy(:body, &Tesla.Multipart.new/0)
+ |> Map.update!(:body, &(Tesla.Multipart.add_file(&1, path, name: name)))
+ end
+ def add_param(request, :form, name, value) do
+ request
+ |> Map.update(:body, %{name => value}, &(Map.put(&1, name, value)))
+ end
+ def add_param(request, location, key, value) do
+ Map.update(request, location, [{key, value}], &(&1 ++ [{key, value}]))
+ end
+
+ @doc """
+ Due to a bug in httpc, POST, PATCH and PUT requests will fail, if the body is empty
+
+ This function will ensure, that the body param is always set
+
+ ## Parameters
+
+ - request (Map) - Collected request options
+
+ ## Returns
+
+ Map
+ """
+ @spec ensure_body(map()) :: map()
+ def ensure_body(%{body: nil} = request) do
+ %{request | body: ""}
+ end
+
+ def ensure_body(request) do
+ Map.put_new(request, :body, "")
+ end
+
+ @doc """
+ Handle the response for a Tesla request
+
+ ## Parameters
+
+ - arg1 (Tesla.Env.t | term) - The response object
+ - arg2 (:false | struct | [struct]) - The shape of the struct to deserialize into
+
+ ## Returns
+
+ {:ok, struct} on success
+ {:error, term} on failure
+ """
+ @spec decode(Tesla.Env.t() | term(), false | struct() | [struct()]) ::
+ {:ok, struct()} | {:ok, Tesla.Env.t()} | {:error, any}
+ def decode(%Tesla.Env{} = env, false), do: {:ok, env}
+ def decode(%Tesla.Env{body: body}, struct), do: Poison.decode(body, as: struct)
+
+ def evaluate_response({:ok, %Tesla.Env{} = env}, mapping) do
+ resolve_mapping(env, mapping)
+ end
+
+ def evaluate_response({:error, _} = error, _), do: error
+
+ def resolve_mapping(env, mapping, default \\ nil)
+
+ def resolve_mapping(%Tesla.Env{status: status} = env, [{mapping_status, struct} | _], _)
+ when status == mapping_status do
+ decode(env, struct)
+ end
+
+ def resolve_mapping(env, [{:default, struct} | tail], _), do: resolve_mapping(env, tail, struct)
+ def resolve_mapping(env, [_ | tail], struct), do: resolve_mapping(env, tail, struct)
+ def resolve_mapping(env, [], nil), do: {:error, env}
+ def resolve_mapping(env, [], struct), do: decode(env, struct)
+end
diff --git a/clients/client/elixir/mix.exs b/clients/client/elixir/mix.exs
new file mode 100644
index 00000000000..b865222c2d6
--- /dev/null
+++ b/clients/client/elixir/mix.exs
@@ -0,0 +1,46 @@
+defmodule Client.Mixfile do
+ use Mix.Project
+
+ def project do
+ [app: :ory_client,
+ version: "0.0.1-alpha.102",
+ elixir: "~> 1.6",
+ build_embedded: Mix.env == :prod,
+ start_permanent: Mix.env == :prod,
+ package: package(),
+ description: "Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ",
+ deps: deps()]
+ end
+
+ # Configuration for the OTP application
+ #
+ # Type "mix help compile.app" for more information
+ def application do
+ # Specify extra applications you'll use from Erlang/Elixir
+ [extra_applications: [:logger]]
+ end
+
+ # Dependencies can be Hex packages:
+ #
+ # {:my_dep, "~> 0.3.0"}
+ #
+ # Or git/path repositories:
+ #
+ # {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.3.0"}
+ #
+ # Type "mix help deps" for more examples and options
+ defp deps do
+ [
+ {:tesla, "~> 1.2"},
+ {:poison, "~> 3.0"}
+ ]
+ end
+
+ defp package() do
+ [
+ name: "ory_client",
+ files: ~w(lib mix.exs README* LICENSE*),
+ licenses: [""]
+ ]
+ end
+end
diff --git a/clients/client/elixir/test/test_helper.exs b/clients/client/elixir/test/test_helper.exs
new file mode 100644
index 00000000000..869559e709e
--- /dev/null
+++ b/clients/client/elixir/test/test_helper.exs
@@ -0,0 +1 @@
+ExUnit.start()
diff --git a/clients/hydra/dart/.openapi-generator/FILES b/clients/hydra/dart/.openapi-generator/FILES
index 9e9a7f13a44..02107bcec41 100644
--- a/clients/hydra/dart/.openapi-generator/FILES
+++ b/clients/hydra/dart/.openapi-generator/FILES
@@ -8,14 +8,11 @@ doc/AdminApi.md
doc/CompletedRequest.md
doc/ConsentRequest.md
doc/ConsentRequestSession.md
+doc/ContainerWaitOKBodyError.md
doc/FlushInactiveOAuth2TokensRequest.md
-doc/FlushLoginConsentRequest.md
doc/GenericError.md
doc/HealthNotReadyStatus.md
doc/HealthStatus.md
-doc/InlineResponse200.md
-doc/InlineResponse2001.md
-doc/InlineResponse503.md
doc/JSONWebKey.md
doc/JSONWebKeySet.md
doc/JsonError.md
@@ -26,13 +23,22 @@ doc/MetadataApi.md
doc/OAuth2Client.md
doc/OAuth2TokenIntrospection.md
doc/Oauth2TokenResponse.md
-doc/OauthTokenResponse.md
doc/OpenIDConnectContext.md
doc/PatchDocument.md
+doc/PluginConfig.md
+doc/PluginConfigArgs.md
+doc/PluginConfigInterface.md
+doc/PluginConfigLinux.md
+doc/PluginConfigNetwork.md
+doc/PluginConfigRootfs.md
+doc/PluginConfigUser.md
+doc/PluginDevice.md
+doc/PluginEnv.md
+doc/PluginInterfaceType.md
+doc/PluginMount.md
+doc/PluginSettings.md
doc/PreviousConsentSession.md
doc/PublicApi.md
-doc/RefreshTokenHookRequest.md
-doc/RefreshTokenHookResponse.md
doc/RejectRequest.md
doc/RequestWasHandledResponse.md
doc/TrustJwtGrantIssuerBody.md
@@ -40,6 +46,8 @@ doc/TrustedJsonWebKey.md
doc/TrustedJwtGrantIssuer.md
doc/UserinfoResponse.md
doc/Version.md
+doc/Volume.md
+doc/VolumeUsageData.md
doc/WellKnown.md
lib/api.dart
lib/api/admin_api.dart
@@ -55,14 +63,11 @@ lib/model/accept_login_request.dart
lib/model/completed_request.dart
lib/model/consent_request.dart
lib/model/consent_request_session.dart
+lib/model/container_wait_ok_body_error.dart
lib/model/flush_inactive_o_auth2_tokens_request.dart
-lib/model/flush_login_consent_request.dart
lib/model/generic_error.dart
lib/model/health_not_ready_status.dart
lib/model/health_status.dart
-lib/model/inline_response200.dart
-lib/model/inline_response2001.dart
-lib/model/inline_response503.dart
lib/model/json_error.dart
lib/model/json_web_key.dart
lib/model/json_web_key_set.dart
@@ -72,12 +77,21 @@ lib/model/logout_request.dart
lib/model/o_auth2_client.dart
lib/model/o_auth2_token_introspection.dart
lib/model/oauth2_token_response.dart
-lib/model/oauth_token_response.dart
lib/model/open_id_connect_context.dart
lib/model/patch_document.dart
+lib/model/plugin_config.dart
+lib/model/plugin_config_args.dart
+lib/model/plugin_config_interface.dart
+lib/model/plugin_config_linux.dart
+lib/model/plugin_config_network.dart
+lib/model/plugin_config_rootfs.dart
+lib/model/plugin_config_user.dart
+lib/model/plugin_device.dart
+lib/model/plugin_env.dart
+lib/model/plugin_interface_type.dart
+lib/model/plugin_mount.dart
+lib/model/plugin_settings.dart
lib/model/previous_consent_session.dart
-lib/model/refresh_token_hook_request.dart
-lib/model/refresh_token_hook_response.dart
lib/model/reject_request.dart
lib/model/request_was_handled_response.dart
lib/model/trust_jwt_grant_issuer_body.dart
@@ -85,6 +99,8 @@ lib/model/trusted_json_web_key.dart
lib/model/trusted_jwt_grant_issuer.dart
lib/model/userinfo_response.dart
lib/model/version.dart
+lib/model/volume.dart
+lib/model/volume_usage_data.dart
lib/model/well_known.dart
lib/serializers.dart
pubspec.yaml
@@ -94,14 +110,11 @@ test/admin_api_test.dart
test/completed_request_test.dart
test/consent_request_session_test.dart
test/consent_request_test.dart
+test/container_wait_ok_body_error_test.dart
test/flush_inactive_o_auth2_tokens_request_test.dart
-test/flush_login_consent_request_test.dart
test/generic_error_test.dart
test/health_not_ready_status_test.dart
test/health_status_test.dart
-test/inline_response2001_test.dart
-test/inline_response200_test.dart
-test/inline_response503_test.dart
test/json_error_test.dart
test/json_web_key_set_generator_request_test.dart
test/json_web_key_set_test.dart
@@ -112,13 +125,22 @@ test/metadata_api_test.dart
test/o_auth2_client_test.dart
test/o_auth2_token_introspection_test.dart
test/oauth2_token_response_test.dart
-test/oauth_token_response_test.dart
test/open_id_connect_context_test.dart
test/patch_document_test.dart
+test/plugin_config_args_test.dart
+test/plugin_config_interface_test.dart
+test/plugin_config_linux_test.dart
+test/plugin_config_network_test.dart
+test/plugin_config_rootfs_test.dart
+test/plugin_config_test.dart
+test/plugin_config_user_test.dart
+test/plugin_device_test.dart
+test/plugin_env_test.dart
+test/plugin_interface_type_test.dart
+test/plugin_mount_test.dart
+test/plugin_settings_test.dart
test/previous_consent_session_test.dart
test/public_api_test.dart
-test/refresh_token_hook_request_test.dart
-test/refresh_token_hook_response_test.dart
test/reject_request_test.dart
test/request_was_handled_response_test.dart
test/trust_jwt_grant_issuer_body_test.dart
@@ -126,4 +148,6 @@ test/trusted_json_web_key_test.dart
test/trusted_jwt_grant_issuer_test.dart
test/userinfo_response_test.dart
test/version_test.dart
+test/volume_test.dart
+test/volume_usage_data_test.dart
test/well_known_test.dart
diff --git a/clients/hydra/dart/README.md b/clients/hydra/dart/README.md
index 660e39fc04b..e791ebe0b56 100644
--- a/clients/hydra/dart/README.md
+++ b/clients/hydra/dart/README.md
@@ -1,10 +1,9 @@
# ory_hydra_client
-Documentation for all of Ory Hydra's APIs.
-
+Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-- API version: v1.11.8
+- API version: v1.11.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
## Requirements
@@ -17,7 +16,7 @@ Dart 2.7.0 or later OR Flutter 1.12 or later
If this Dart package is published to Github, please include the following in pubspec.yaml
```
name: ory_hydra_client
-version: 1.11.8
+version: 1.11.0
description: OpenAPI API client
dependencies:
ory_hydra_client:
@@ -43,10 +42,10 @@ import 'package:ory_hydra_client/api.dart';
final api = AdminApi();
final consentChallenge = consentChallenge_example; // String |
-final acceptConsentRequest = AcceptConsentRequest(); // AcceptConsentRequest |
+final body = AcceptConsentRequest(); // AcceptConsentRequest |
try {
- final response = await api.acceptConsentRequest(consentChallenge, acceptConsentRequest);
+ final response = await api.acceptConsentRequest(consentChallenge, body);
print(response);
} catch (e) {
print("Exception when calling AdminApi->acceptConsentRequest: $e\n");
@@ -78,7 +77,9 @@ Class | Method | HTTP request | Description
*AdminApi* | [**getLogoutRequest**](doc/AdminApi.md#getlogoutrequest) | **GET** /oauth2/auth/requests/logout | Get a Logout Request
*AdminApi* | [**getOAuth2Client**](doc/AdminApi.md#getoauth2client) | **GET** /clients/{id} | Get an OAuth 2.0 Client
*AdminApi* | [**getTrustedJwtGrantIssuer**](doc/AdminApi.md#gettrustedjwtgrantissuer) | **GET** /trust/grants/jwt-bearer/issuers/{id} | Get a Trusted OAuth2 JWT Bearer Grant Type Issuer
+*AdminApi* | [**getVersion**](doc/AdminApi.md#getversion) | **GET** /version | Get Service Version
*AdminApi* | [**introspectOAuth2Token**](doc/AdminApi.md#introspectoauth2token) | **POST** /oauth2/introspect | Introspect OAuth2 Tokens
+*AdminApi* | [**isInstanceAlive**](doc/AdminApi.md#isinstancealive) | **GET** /health/alive | Check Alive Status
*AdminApi* | [**listOAuth2Clients**](doc/AdminApi.md#listoauth2clients) | **GET** /clients | List OAuth 2.0 Clients
*AdminApi* | [**listSubjectConsentSessions**](doc/AdminApi.md#listsubjectconsentsessions) | **GET** /oauth2/auth/sessions/consent | Lists All Consent Sessions of a Subject
*AdminApi* | [**listTrustedJwtGrantIssuers**](doc/AdminApi.md#listtrustedjwtgrantissuers) | **GET** /trust/grants/jwt-bearer/issuers | List Trusted OAuth2 JWT Bearer Grant Type Issuers
@@ -92,15 +93,14 @@ Class | Method | HTTP request | Description
*AdminApi* | [**updateJsonWebKey**](doc/AdminApi.md#updatejsonwebkey) | **PUT** /keys/{set}/{kid} | Update a JSON Web Key
*AdminApi* | [**updateJsonWebKeySet**](doc/AdminApi.md#updatejsonwebkeyset) | **PUT** /keys/{set} | Update a JSON Web Key Set
*AdminApi* | [**updateOAuth2Client**](doc/AdminApi.md#updateoauth2client) | **PUT** /clients/{id} | Update an OAuth 2.0 Client
-*MetadataApi* | [**getVersion**](doc/MetadataApi.md#getversion) | **GET** /version | Return Running Software Version.
-*MetadataApi* | [**isAlive**](doc/MetadataApi.md#isalive) | **GET** /health/alive | Check HTTP Server Status
-*MetadataApi* | [**isReady**](doc/MetadataApi.md#isready) | **GET** /health/ready | Check HTTP Server and Database Status
+*MetadataApi* | [**prometheus**](doc/MetadataApi.md#prometheus) | **GET** /metrics/prometheus | Get snapshot metrics from the service. If you're using k8s, you can then add annotations to your deployment like so:
*PublicApi* | [**disconnectUser**](doc/PublicApi.md#disconnectuser) | **GET** /oauth2/sessions/logout | OpenID Connect Front-Backchannel Enabled Logout
*PublicApi* | [**discoverOpenIDConfiguration**](doc/PublicApi.md#discoveropenidconfiguration) | **GET** /.well-known/openid-configuration | OpenID Connect Discovery
*PublicApi* | [**dynamicClientRegistrationCreateOAuth2Client**](doc/PublicApi.md#dynamicclientregistrationcreateoauth2client) | **POST** /connect/register | Register an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
*PublicApi* | [**dynamicClientRegistrationDeleteOAuth2Client**](doc/PublicApi.md#dynamicclientregistrationdeleteoauth2client) | **DELETE** /connect/register/{id} | Deletes an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
*PublicApi* | [**dynamicClientRegistrationGetOAuth2Client**](doc/PublicApi.md#dynamicclientregistrationgetoauth2client) | **GET** /connect/register/{id} | Get an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
*PublicApi* | [**dynamicClientRegistrationUpdateOAuth2Client**](doc/PublicApi.md#dynamicclientregistrationupdateoauth2client) | **PUT** /connect/register/{id} | Update an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
+*PublicApi* | [**isInstanceReady**](doc/PublicApi.md#isinstanceready) | **GET** /health/ready | Check Readiness Status
*PublicApi* | [**oauth2Token**](doc/PublicApi.md#oauth2token) | **POST** /oauth2/token | The OAuth 2.0 Token Endpoint
*PublicApi* | [**oauthAuth**](doc/PublicApi.md#oauthauth) | **GET** /oauth2/auth | The OAuth 2.0 Authorize Endpoint
*PublicApi* | [**revokeOAuth2Token**](doc/PublicApi.md#revokeoauth2token) | **POST** /oauth2/revoke | Revoke OAuth2 Tokens
@@ -115,14 +115,11 @@ Class | Method | HTTP request | Description
- [CompletedRequest](doc/CompletedRequest.md)
- [ConsentRequest](doc/ConsentRequest.md)
- [ConsentRequestSession](doc/ConsentRequestSession.md)
+ - [ContainerWaitOKBodyError](doc/ContainerWaitOKBodyError.md)
- [FlushInactiveOAuth2TokensRequest](doc/FlushInactiveOAuth2TokensRequest.md)
- - [FlushLoginConsentRequest](doc/FlushLoginConsentRequest.md)
- [GenericError](doc/GenericError.md)
- [HealthNotReadyStatus](doc/HealthNotReadyStatus.md)
- [HealthStatus](doc/HealthStatus.md)
- - [InlineResponse200](doc/InlineResponse200.md)
- - [InlineResponse2001](doc/InlineResponse2001.md)
- - [InlineResponse503](doc/InlineResponse503.md)
- [JSONWebKey](doc/JSONWebKey.md)
- [JSONWebKeySet](doc/JSONWebKeySet.md)
- [JsonError](doc/JsonError.md)
@@ -132,12 +129,21 @@ Class | Method | HTTP request | Description
- [OAuth2Client](doc/OAuth2Client.md)
- [OAuth2TokenIntrospection](doc/OAuth2TokenIntrospection.md)
- [Oauth2TokenResponse](doc/Oauth2TokenResponse.md)
- - [OauthTokenResponse](doc/OauthTokenResponse.md)
- [OpenIDConnectContext](doc/OpenIDConnectContext.md)
- [PatchDocument](doc/PatchDocument.md)
+ - [PluginConfig](doc/PluginConfig.md)
+ - [PluginConfigArgs](doc/PluginConfigArgs.md)
+ - [PluginConfigInterface](doc/PluginConfigInterface.md)
+ - [PluginConfigLinux](doc/PluginConfigLinux.md)
+ - [PluginConfigNetwork](doc/PluginConfigNetwork.md)
+ - [PluginConfigRootfs](doc/PluginConfigRootfs.md)
+ - [PluginConfigUser](doc/PluginConfigUser.md)
+ - [PluginDevice](doc/PluginDevice.md)
+ - [PluginEnv](doc/PluginEnv.md)
+ - [PluginInterfaceType](doc/PluginInterfaceType.md)
+ - [PluginMount](doc/PluginMount.md)
+ - [PluginSettings](doc/PluginSettings.md)
- [PreviousConsentSession](doc/PreviousConsentSession.md)
- - [RefreshTokenHookRequest](doc/RefreshTokenHookRequest.md)
- - [RefreshTokenHookResponse](doc/RefreshTokenHookResponse.md)
- [RejectRequest](doc/RejectRequest.md)
- [RequestWasHandledResponse](doc/RequestWasHandledResponse.md)
- [TrustJwtGrantIssuerBody](doc/TrustJwtGrantIssuerBody.md)
@@ -145,6 +151,8 @@ Class | Method | HTTP request | Description
- [TrustedJwtGrantIssuer](doc/TrustedJwtGrantIssuer.md)
- [UserinfoResponse](doc/UserinfoResponse.md)
- [Version](doc/Version.md)
+ - [Volume](doc/Volume.md)
+ - [VolumeUsageData](doc/VolumeUsageData.md)
- [WellKnown](doc/WellKnown.md)
@@ -168,5 +176,5 @@ Class | Method | HTTP request | Description
## Author
-hi@ory.sh
+
diff --git a/clients/hydra/dart/doc/AdminApi.md b/clients/hydra/dart/doc/AdminApi.md
index 1a20dbfda66..cf9250bc606 100644
--- a/clients/hydra/dart/doc/AdminApi.md
+++ b/clients/hydra/dart/doc/AdminApi.md
@@ -27,7 +27,9 @@ Method | HTTP request | Description
[**getLogoutRequest**](AdminApi.md#getlogoutrequest) | **GET** /oauth2/auth/requests/logout | Get a Logout Request
[**getOAuth2Client**](AdminApi.md#getoauth2client) | **GET** /clients/{id} | Get an OAuth 2.0 Client
[**getTrustedJwtGrantIssuer**](AdminApi.md#gettrustedjwtgrantissuer) | **GET** /trust/grants/jwt-bearer/issuers/{id} | Get a Trusted OAuth2 JWT Bearer Grant Type Issuer
+[**getVersion**](AdminApi.md#getversion) | **GET** /version | Get Service Version
[**introspectOAuth2Token**](AdminApi.md#introspectoauth2token) | **POST** /oauth2/introspect | Introspect OAuth2 Tokens
+[**isInstanceAlive**](AdminApi.md#isinstancealive) | **GET** /health/alive | Check Alive Status
[**listOAuth2Clients**](AdminApi.md#listoauth2clients) | **GET** /clients | List OAuth 2.0 Clients
[**listSubjectConsentSessions**](AdminApi.md#listsubjectconsentsessions) | **GET** /oauth2/auth/sessions/consent | Lists All Consent Sessions of a Subject
[**listTrustedJwtGrantIssuers**](AdminApi.md#listtrustedjwtgrantissuers) | **GET** /trust/grants/jwt-bearer/issuers | List Trusted OAuth2 JWT Bearer Grant Type Issuers
@@ -44,7 +46,7 @@ Method | HTTP request | Description
# **acceptConsentRequest**
-> CompletedRequest acceptConsentRequest(consentChallenge, acceptConsentRequest)
+> CompletedRequest acceptConsentRequest(consentChallenge, body)
Accept a Consent Request
@@ -56,10 +58,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var consentChallenge = consentChallenge_example; // String |
-var acceptConsentRequest = new AcceptConsentRequest(); // AcceptConsentRequest |
+var body = new AcceptConsentRequest(); // AcceptConsentRequest |
try {
- var result = api_instance.acceptConsentRequest(consentChallenge, acceptConsentRequest);
+ var result = api_instance.acceptConsentRequest(consentChallenge, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->acceptConsentRequest: $e\n');
@@ -71,7 +73,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**consentChallenge** | **String**| |
- **acceptConsentRequest** | [**AcceptConsentRequest**](AcceptConsentRequest.md)| | [optional]
+ **body** | [**AcceptConsentRequest**](AcceptConsentRequest.md)| | [optional]
### Return type
@@ -89,7 +91,7 @@ No authorization required
[[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)
# **acceptLoginRequest**
-> CompletedRequest acceptLoginRequest(loginChallenge, acceptLoginRequest)
+> CompletedRequest acceptLoginRequest(loginChallenge, body)
Accept a Login Request
@@ -101,10 +103,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var loginChallenge = loginChallenge_example; // String |
-var acceptLoginRequest = new AcceptLoginRequest(); // AcceptLoginRequest |
+var body = new AcceptLoginRequest(); // AcceptLoginRequest |
try {
- var result = api_instance.acceptLoginRequest(loginChallenge, acceptLoginRequest);
+ var result = api_instance.acceptLoginRequest(loginChallenge, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->acceptLoginRequest: $e\n');
@@ -116,7 +118,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loginChallenge** | **String**| |
- **acceptLoginRequest** | [**AcceptLoginRequest**](AcceptLoginRequest.md)| | [optional]
+ **body** | [**AcceptLoginRequest**](AcceptLoginRequest.md)| | [optional]
### Return type
@@ -177,7 +179,7 @@ No authorization required
[[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)
# **createJsonWebKeySet**
-> JSONWebKeySet createJsonWebKeySet(set_, jsonWebKeySetGeneratorRequest)
+> JSONWebKeySet createJsonWebKeySet(set_, body)
Generate a New JSON Web Key
@@ -189,10 +191,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var set_ = set__example; // String | The set
-var jsonWebKeySetGeneratorRequest = new JsonWebKeySetGeneratorRequest(); // JsonWebKeySetGeneratorRequest |
+var body = new JsonWebKeySetGeneratorRequest(); // JsonWebKeySetGeneratorRequest |
try {
- var result = api_instance.createJsonWebKeySet(set_, jsonWebKeySetGeneratorRequest);
+ var result = api_instance.createJsonWebKeySet(set_, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->createJsonWebKeySet: $e\n');
@@ -204,7 +206,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**set_** | **String**| The set |
- **jsonWebKeySetGeneratorRequest** | [**JsonWebKeySetGeneratorRequest**](JsonWebKeySetGeneratorRequest.md)| | [optional]
+ **body** | [**JsonWebKeySetGeneratorRequest**](JsonWebKeySetGeneratorRequest.md)| | [optional]
### Return type
@@ -222,7 +224,7 @@ No authorization required
[[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)
# **createOAuth2Client**
-> OAuth2Client createOAuth2Client(oAuth2Client)
+> OAuth2Client createOAuth2Client(body)
Create an OAuth 2.0 Client
@@ -233,10 +235,10 @@ Create a new OAuth 2.0 client If you pass `client_secret` the secret will be use
import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
-var oAuth2Client = new OAuth2Client(); // OAuth2Client |
+var body = new OAuth2Client(); // OAuth2Client |
try {
- var result = api_instance.createOAuth2Client(oAuth2Client);
+ var result = api_instance.createOAuth2Client(body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->createOAuth2Client: $e\n');
@@ -247,7 +249,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **oAuth2Client** | [**OAuth2Client**](OAuth2Client.md)| |
+ **body** | [**OAuth2Client**](OAuth2Client.md)| |
### Return type
@@ -477,7 +479,7 @@ No authorization required
[[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)
# **flushInactiveOAuth2Tokens**
-> flushInactiveOAuth2Tokens(flushInactiveOAuth2TokensRequest)
+> flushInactiveOAuth2Tokens(body)
Flush Expired OAuth2 Access Tokens
@@ -488,10 +490,10 @@ This endpoint flushes expired OAuth2 access tokens from the database. You can se
import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
-var flushInactiveOAuth2TokensRequest = new FlushInactiveOAuth2TokensRequest(); // FlushInactiveOAuth2TokensRequest |
+var body = new FlushInactiveOAuth2TokensRequest(); // FlushInactiveOAuth2TokensRequest |
try {
- api_instance.flushInactiveOAuth2Tokens(flushInactiveOAuth2TokensRequest);
+ api_instance.flushInactiveOAuth2Tokens(body);
} catch (e) {
print('Exception when calling AdminApi->flushInactiveOAuth2Tokens: $e\n');
}
@@ -501,7 +503,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **flushInactiveOAuth2TokensRequest** | [**FlushInactiveOAuth2TokensRequest**](FlushInactiveOAuth2TokensRequest.md)| | [optional]
+ **body** | [**FlushInactiveOAuth2TokensRequest**](FlushInactiveOAuth2TokensRequest.md)| | [optional]
### Return type
@@ -821,6 +823,45 @@ No authorization required
[[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)
+# **getVersion**
+> Version getVersion()
+
+Get Service Version
+
+This endpoint returns the service version typically notated using semantic versioning. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.
+
+### Example
+```dart
+import 'package:ory_hydra_client/api.dart';
+
+var api_instance = new AdminApi();
+
+try {
+ var result = api_instance.getVersion();
+ print(result);
+} catch (e) {
+ print('Exception when calling AdminApi->getVersion: $e\n');
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**Version**](Version.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
# **introspectOAuth2Token**
> OAuth2TokenIntrospection introspectOAuth2Token(token, scope)
@@ -866,6 +907,45 @@ No authorization required
[[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)
+# **isInstanceAlive**
+> HealthStatus isInstanceAlive()
+
+Check Alive Status
+
+This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
+
+### Example
+```dart
+import 'package:ory_hydra_client/api.dart';
+
+var api_instance = new AdminApi();
+
+try {
+ var result = api_instance.isInstanceAlive();
+ print(result);
+} catch (e) {
+ print('Exception when calling AdminApi->isInstanceAlive: $e\n');
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**HealthStatus**](HealthStatus.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
# **listOAuth2Clients**
> BuiltList listOAuth2Clients(limit, offset, clientName, owner)
@@ -916,7 +996,7 @@ No authorization required
[[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)
# **listSubjectConsentSessions**
-> BuiltList listSubjectConsentSessions(subject, limit, offset)
+> BuiltList listSubjectConsentSessions(subject)
Lists All Consent Sessions of a Subject
@@ -928,11 +1008,9 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var subject = subject_example; // String |
-var limit = 789; // int | The maximum amount of consent sessions to be returned, upper bound is 500 sessions.
-var offset = 789; // int | The offset from where to start looking.
try {
- var result = api_instance.listSubjectConsentSessions(subject, limit, offset);
+ var result = api_instance.listSubjectConsentSessions(subject);
print(result);
} catch (e) {
print('Exception when calling AdminApi->listSubjectConsentSessions: $e\n');
@@ -944,8 +1022,6 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**subject** | **String**| |
- **limit** | **int**| The maximum amount of consent sessions to be returned, upper bound is 500 sessions. | [optional]
- **offset** | **int**| The offset from where to start looking. | [optional]
### Return type
@@ -1010,7 +1086,7 @@ No authorization required
[[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)
# **patchOAuth2Client**
-> OAuth2Client patchOAuth2Client(id, patchDocument)
+> OAuth2Client patchOAuth2Client(id, body)
Patch an OAuth 2.0 Client
@@ -1022,10 +1098,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var id = id_example; // String | The id of the OAuth 2.0 Client.
-var patchDocument = [new BuiltList()]; // BuiltList |
+var body = [new BuiltList()]; // BuiltList |
try {
- var result = api_instance.patchOAuth2Client(id, patchDocument);
+ var result = api_instance.patchOAuth2Client(id, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->patchOAuth2Client: $e\n');
@@ -1037,7 +1113,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the OAuth 2.0 Client. |
- **patchDocument** | [**BuiltList**](PatchDocument.md)| |
+ **body** | [**BuiltList**](PatchDocument.md)| |
### Return type
@@ -1055,7 +1131,7 @@ No authorization required
[[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)
# **rejectConsentRequest**
-> CompletedRequest rejectConsentRequest(consentChallenge, rejectRequest)
+> CompletedRequest rejectConsentRequest(consentChallenge, body)
Reject a Consent Request
@@ -1067,10 +1143,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var consentChallenge = consentChallenge_example; // String |
-var rejectRequest = new RejectRequest(); // RejectRequest |
+var body = new RejectRequest(); // RejectRequest |
try {
- var result = api_instance.rejectConsentRequest(consentChallenge, rejectRequest);
+ var result = api_instance.rejectConsentRequest(consentChallenge, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->rejectConsentRequest: $e\n');
@@ -1082,7 +1158,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**consentChallenge** | **String**| |
- **rejectRequest** | [**RejectRequest**](RejectRequest.md)| | [optional]
+ **body** | [**RejectRequest**](RejectRequest.md)| | [optional]
### Return type
@@ -1100,7 +1176,7 @@ No authorization required
[[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)
# **rejectLoginRequest**
-> CompletedRequest rejectLoginRequest(loginChallenge, rejectRequest)
+> CompletedRequest rejectLoginRequest(loginChallenge, body)
Reject a Login Request
@@ -1112,10 +1188,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var loginChallenge = loginChallenge_example; // String |
-var rejectRequest = new RejectRequest(); // RejectRequest |
+var body = new RejectRequest(); // RejectRequest |
try {
- var result = api_instance.rejectLoginRequest(loginChallenge, rejectRequest);
+ var result = api_instance.rejectLoginRequest(loginChallenge, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->rejectLoginRequest: $e\n');
@@ -1127,7 +1203,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loginChallenge** | **String**| |
- **rejectRequest** | [**RejectRequest**](RejectRequest.md)| | [optional]
+ **body** | [**RejectRequest**](RejectRequest.md)| | [optional]
### Return type
@@ -1145,7 +1221,7 @@ No authorization required
[[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)
# **rejectLogoutRequest**
-> rejectLogoutRequest(logoutChallenge, rejectRequest)
+> rejectLogoutRequest(logoutChallenge, body)
Reject a Logout Request
@@ -1157,10 +1233,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var logoutChallenge = logoutChallenge_example; // String |
-var rejectRequest = new RejectRequest(); // RejectRequest |
+var body = new RejectRequest(); // RejectRequest |
try {
- api_instance.rejectLogoutRequest(logoutChallenge, rejectRequest);
+ api_instance.rejectLogoutRequest(logoutChallenge, body);
} catch (e) {
print('Exception when calling AdminApi->rejectLogoutRequest: $e\n');
}
@@ -1171,7 +1247,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**logoutChallenge** | **String**| |
- **rejectRequest** | [**RejectRequest**](RejectRequest.md)| | [optional]
+ **body** | [**RejectRequest**](RejectRequest.md)| | [optional]
### Return type
@@ -1277,7 +1353,7 @@ No authorization required
[[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)
# **trustJwtGrantIssuer**
-> TrustedJwtGrantIssuer trustJwtGrantIssuer(trustJwtGrantIssuerBody)
+> TrustedJwtGrantIssuer trustJwtGrantIssuer(body)
Trust an OAuth2 JWT Bearer Grant Type Issuer
@@ -1288,10 +1364,10 @@ Use this endpoint to establish a trust relationship for a JWT issuer to perform
import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
-var trustJwtGrantIssuerBody = new TrustJwtGrantIssuerBody(); // TrustJwtGrantIssuerBody |
+var body = new TrustJwtGrantIssuerBody(); // TrustJwtGrantIssuerBody |
try {
- var result = api_instance.trustJwtGrantIssuer(trustJwtGrantIssuerBody);
+ var result = api_instance.trustJwtGrantIssuer(body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->trustJwtGrantIssuer: $e\n');
@@ -1302,7 +1378,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **trustJwtGrantIssuerBody** | [**TrustJwtGrantIssuerBody**](TrustJwtGrantIssuerBody.md)| | [optional]
+ **body** | [**TrustJwtGrantIssuerBody**](TrustJwtGrantIssuerBody.md)| | [optional]
### Return type
@@ -1320,7 +1396,7 @@ No authorization required
[[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)
# **updateJsonWebKey**
-> JSONWebKey updateJsonWebKey(kid, set_, jSONWebKey)
+> JSONWebKey updateJsonWebKey(kid, set_, body)
Update a JSON Web Key
@@ -1333,10 +1409,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var kid = kid_example; // String | The kid of the desired key
var set_ = set__example; // String | The set
-var jSONWebKey = new JSONWebKey(); // JSONWebKey |
+var body = new JSONWebKey(); // JSONWebKey |
try {
- var result = api_instance.updateJsonWebKey(kid, set_, jSONWebKey);
+ var result = api_instance.updateJsonWebKey(kid, set_, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->updateJsonWebKey: $e\n');
@@ -1349,7 +1425,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**kid** | **String**| The kid of the desired key |
**set_** | **String**| The set |
- **jSONWebKey** | [**JSONWebKey**](JSONWebKey.md)| | [optional]
+ **body** | [**JSONWebKey**](JSONWebKey.md)| | [optional]
### Return type
@@ -1367,7 +1443,7 @@ No authorization required
[[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)
# **updateJsonWebKeySet**
-> JSONWebKeySet updateJsonWebKeySet(set_, jSONWebKeySet)
+> JSONWebKeySet updateJsonWebKeySet(set_, body)
Update a JSON Web Key Set
@@ -1379,10 +1455,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var set_ = set__example; // String | The set
-var jSONWebKeySet = new JSONWebKeySet(); // JSONWebKeySet |
+var body = new JSONWebKeySet(); // JSONWebKeySet |
try {
- var result = api_instance.updateJsonWebKeySet(set_, jSONWebKeySet);
+ var result = api_instance.updateJsonWebKeySet(set_, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->updateJsonWebKeySet: $e\n');
@@ -1394,7 +1470,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**set_** | **String**| The set |
- **jSONWebKeySet** | [**JSONWebKeySet**](JSONWebKeySet.md)| | [optional]
+ **body** | [**JSONWebKeySet**](JSONWebKeySet.md)| | [optional]
### Return type
@@ -1412,7 +1488,7 @@ No authorization required
[[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)
# **updateOAuth2Client**
-> OAuth2Client updateOAuth2Client(id, oAuth2Client)
+> OAuth2Client updateOAuth2Client(id, body)
Update an OAuth 2.0 Client
@@ -1424,10 +1500,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new AdminApi();
var id = id_example; // String | The id of the OAuth 2.0 Client.
-var oAuth2Client = new OAuth2Client(); // OAuth2Client |
+var body = new OAuth2Client(); // OAuth2Client |
try {
- var result = api_instance.updateOAuth2Client(id, oAuth2Client);
+ var result = api_instance.updateOAuth2Client(id, body);
print(result);
} catch (e) {
print('Exception when calling AdminApi->updateOAuth2Client: $e\n');
@@ -1439,7 +1515,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the OAuth 2.0 Client. |
- **oAuth2Client** | [**OAuth2Client**](OAuth2Client.md)| |
+ **body** | [**OAuth2Client**](OAuth2Client.md)| |
### Return type
diff --git a/clients/hydra/dart/doc/InlineResponse2001.md b/clients/hydra/dart/doc/ContainerWaitOKBodyError.md
similarity index 76%
rename from clients/hydra/dart/doc/InlineResponse2001.md
rename to clients/hydra/dart/doc/ContainerWaitOKBodyError.md
index c19db223d30..c3ea1a41481 100644
--- a/clients/hydra/dart/doc/InlineResponse2001.md
+++ b/clients/hydra/dart/doc/ContainerWaitOKBodyError.md
@@ -1,4 +1,4 @@
-# ory_hydra_client.model.InlineResponse2001
+# ory_hydra_client.model.ContainerWaitOKBodyError
## Load the model package
```dart
@@ -8,7 +8,7 @@ import 'package:ory_hydra_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**version** | **String** | The version of Ory Hydra. | [optional]
+**message** | **String** | Details of an error | [optional]
[[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/clients/hydra/dart/doc/GenericError.md b/clients/hydra/dart/doc/GenericError.md
index b012d362329..ed07c1d79cc 100644
--- a/clients/hydra/dart/doc/GenericError.md
+++ b/clients/hydra/dart/doc/GenericError.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | **int** | The status code | [optional]
**debug** | **String** | Debug information This field is often not exposed to protect against leaking sensitive information. | [optional]
-**details** | [**BuiltMap**](JsonObject.md) | Further error details | [optional]
+**details** | [**JsonObject**](.md) | Further error details | [optional]
**id** | **String** | The error ID Useful when trying to identify various errors in application logic. | [optional]
**message** | **String** | Error message The error's message. |
**reason** | **String** | A human-readable reason for the error | [optional]
diff --git a/clients/hydra/dart/doc/MetadataApi.md b/clients/hydra/dart/doc/MetadataApi.md
index d6c9ddb5941..ccd6a09ac4d 100644
--- a/clients/hydra/dart/doc/MetadataApi.md
+++ b/clients/hydra/dart/doc/MetadataApi.md
@@ -9,17 +9,15 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**getVersion**](MetadataApi.md#getversion) | **GET** /version | Return Running Software Version.
-[**isAlive**](MetadataApi.md#isalive) | **GET** /health/alive | Check HTTP Server Status
-[**isReady**](MetadataApi.md#isready) | **GET** /health/ready | Check HTTP Server and Database Status
+[**prometheus**](MetadataApi.md#prometheus) | **GET** /metrics/prometheus | Get snapshot metrics from the service. If you're using k8s, you can then add annotations to your deployment like so:
-# **getVersion**
-> InlineResponse2001 getVersion()
+# **prometheus**
+> prometheus()
-Return Running Software Version.
+Get snapshot metrics from the service. If you're using k8s, you can then add annotations to your deployment like so:
-This endpoint returns the version of Ory Hydra. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.
+``` metadata: annotations: prometheus.io/port: \"4434\" prometheus.io/path: \"/metrics/prometheus\" ```
### Example
```dart
@@ -28,10 +26,9 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new MetadataApi();
try {
- var result = api_instance.getVersion();
- print(result);
+ api_instance.prometheus();
} catch (e) {
- print('Exception when calling MetadataApi->getVersion: $e\n');
+ print('Exception when calling MetadataApi->prometheus: $e\n');
}
```
@@ -40,7 +37,7 @@ This endpoint does not need any parameter.
### Return type
-[**InlineResponse2001**](InlineResponse2001.md)
+void (empty response body)
### Authorization
@@ -49,85 +46,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/json
-
-[[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)
-
-# **isAlive**
-> HealthStatus isAlive()
-
-Check HTTP Server Status
-
-This endpoint returns a HTTP 200 status code when Ory Hydra is accepting incoming HTTP requests. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
-
-### Example
-```dart
-import 'package:ory_hydra_client/api.dart';
-
-var api_instance = new MetadataApi();
-
-try {
- var result = api_instance.isAlive();
- print(result);
-} catch (e) {
- print('Exception when calling MetadataApi->isAlive: $e\n');
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**HealthStatus**](HealthStatus.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-[[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)
-
-# **isReady**
-> InlineResponse200 isReady()
-
-Check HTTP Server and Database Status
-
-This endpoint returns a HTTP 200 status code when Ory Hydra is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of Ory Hydra, the health status will never refer to the cluster state, only to a single instance.
-
-### Example
-```dart
-import 'package:ory_hydra_client/api.dart';
-
-var api_instance = new MetadataApi();
-
-try {
- var result = api_instance.isReady();
- print(result);
-} catch (e) {
- print('Exception when calling MetadataApi->isReady: $e\n');
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**InlineResponse200**](InlineResponse200.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
+ - **Accept**: Not defined
[[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/clients/hydra/dart/doc/OAuth2TokenIntrospection.md b/clients/hydra/dart/doc/OAuth2TokenIntrospection.md
index 7678de913e6..e52471c7d8b 100644
--- a/clients/hydra/dart/doc/OAuth2TokenIntrospection.md
+++ b/clients/hydra/dart/doc/OAuth2TokenIntrospection.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**aud** | **BuiltList** | Audience contains a list of the token's intended audiences. | [optional]
**clientId** | **String** | ID is aclient identifier for the OAuth 2.0 client that requested this token. | [optional]
**exp** | **int** | Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. | [optional]
-**ext** | [**BuiltMap**](JsonObject.md) | Extra is arbitrary data set by the session. | [optional]
+**ext** | [**JsonObject**](.md) | Extra is arbitrary data set by the session. | [optional]
**iat** | **int** | Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. | [optional]
**iss** | **String** | IssuerURL is a string representing the issuer of this token | [optional]
**nbf** | **int** | NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. | [optional]
diff --git a/clients/hydra/dart/doc/OauthTokenResponse.md b/clients/hydra/dart/doc/OauthTokenResponse.md
deleted file mode 100644
index f4d0fa54606..00000000000
--- a/clients/hydra/dart/doc/OauthTokenResponse.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# ory_hydra_client.model.OauthTokenResponse
-
-## Load the model package
-```dart
-import 'package:ory_hydra_client/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**accessToken** | **String** | The access token issued by the authorization server. | [optional]
-**expiresIn** | **int** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional]
-**idToken** | **int** | To retrieve a refresh token request the id_token scope. | [optional]
-**refreshToken** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional]
-**scope** | **int** | The scope of the access token | [optional]
-**tokenType** | **String** | The type of the token issued | [optional]
-
-[[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/clients/hydra/dart/doc/OpenIDConnectContext.md b/clients/hydra/dart/doc/OpenIDConnectContext.md
index a8be2fb3b34..0f22a5c7a99 100644
--- a/clients/hydra/dart/doc/OpenIDConnectContext.md
+++ b/clients/hydra/dart/doc/OpenIDConnectContext.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**acrValues** | **BuiltList** | ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request. It is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required. OpenID Connect defines it as follows: > Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication performed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a Voluntary Claim by this parameter. | [optional]
**display** | **String** | Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. The defined values are: page: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode. popup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over. touch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface. wap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display. The Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display. | [optional]
-**idTokenHintClaims** | [**BuiltMap**](JsonObject.md) | IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or past authenticated session with the Client. | [optional]
+**idTokenHintClaims** | [**JsonObject**](.md) | IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or past authenticated session with the Client. | [optional]
**loginHint** | **String** | LoginHint hints about the login identifier the End-User might use to log in (if necessary). This hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier) and then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a phone number in the format specified for the phone_number Claim. The use of this parameter is optional. | [optional]
**uiLocales** | **BuiltList** | UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value \"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation), followed by English (without a region designation). An error SHOULD NOT result if some or all of the requested locales are not supported by the OpenID Provider. | [optional]
diff --git a/clients/hydra/dart/doc/PluginConfig.md b/clients/hydra/dart/doc/PluginConfig.md
new file mode 100644
index 00000000000..f36631612b5
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginConfig.md
@@ -0,0 +1,30 @@
+# ory_hydra_client.model.PluginConfig
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**args** | [**PluginConfigArgs**](PluginConfigArgs.md) | |
+**description** | **String** | description |
+**dockerVersion** | **String** | Docker Version used to create the plugin | [optional]
+**documentation** | **String** | documentation |
+**entrypoint** | **BuiltList** | entrypoint |
+**env** | [**BuiltList**](PluginEnv.md) | env |
+**interface_** | [**PluginConfigInterface**](PluginConfigInterface.md) | |
+**ipcHost** | **bool** | ipc host |
+**linux** | [**PluginConfigLinux**](PluginConfigLinux.md) | |
+**mounts** | [**BuiltList**](PluginMount.md) | mounts |
+**network** | [**PluginConfigNetwork**](PluginConfigNetwork.md) | |
+**pidHost** | **bool** | pid host |
+**propagatedMount** | **String** | propagated mount |
+**user** | [**PluginConfigUser**](PluginConfigUser.md) | | [optional]
+**workDir** | **String** | work dir |
+**rootfs** | [**PluginConfigRootfs**](PluginConfigRootfs.md) | | [optional]
+
+[[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/clients/hydra/dart/doc/PluginConfigArgs.md b/clients/hydra/dart/doc/PluginConfigArgs.md
new file mode 100644
index 00000000000..cb530bb5084
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginConfigArgs.md
@@ -0,0 +1,18 @@
+# ory_hydra_client.model.PluginConfigArgs
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **String** | description |
+**name** | **String** | name |
+**settable** | **BuiltList** | settable |
+**value** | **BuiltList** | value |
+
+[[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/clients/hydra/dart/doc/PluginConfigInterface.md b/clients/hydra/dart/doc/PluginConfigInterface.md
new file mode 100644
index 00000000000..aa1dc0d68d0
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginConfigInterface.md
@@ -0,0 +1,17 @@
+# ory_hydra_client.model.PluginConfigInterface
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**protocolScheme** | **String** | Protocol to use for clients connecting to the plugin. | [optional]
+**socket** | **String** | socket |
+**types** | [**BuiltList**](PluginInterfaceType.md) | types |
+
+[[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/clients/hydra/dart/doc/PluginConfigLinux.md b/clients/hydra/dart/doc/PluginConfigLinux.md
new file mode 100644
index 00000000000..2a4abd3cdda
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginConfigLinux.md
@@ -0,0 +1,17 @@
+# ory_hydra_client.model.PluginConfigLinux
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**allowAllDevices** | **bool** | allow all devices |
+**capabilities** | **BuiltList** | capabilities |
+**devices** | [**BuiltList**](PluginDevice.md) | devices |
+
+[[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/clients/hydra/dart/doc/InlineResponse200.md b/clients/hydra/dart/doc/PluginConfigNetwork.md
similarity index 78%
rename from clients/hydra/dart/doc/InlineResponse200.md
rename to clients/hydra/dart/doc/PluginConfigNetwork.md
index 7d79d248d0d..350f714b877 100644
--- a/clients/hydra/dart/doc/InlineResponse200.md
+++ b/clients/hydra/dart/doc/PluginConfigNetwork.md
@@ -1,4 +1,4 @@
-# ory_hydra_client.model.InlineResponse200
+# ory_hydra_client.model.PluginConfigNetwork
## Load the model package
```dart
@@ -8,7 +8,7 @@ import 'package:ory_hydra_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**status** | **String** | Always \"ok\". | [optional]
+**type** | **String** | type |
[[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/clients/hydra/dart/doc/InlineResponse503.md b/clients/hydra/dart/doc/PluginConfigRootfs.md
similarity index 68%
rename from clients/hydra/dart/doc/InlineResponse503.md
rename to clients/hydra/dart/doc/PluginConfigRootfs.md
index d9682a89c4a..54467eabc0d 100644
--- a/clients/hydra/dart/doc/InlineResponse503.md
+++ b/clients/hydra/dart/doc/PluginConfigRootfs.md
@@ -1,4 +1,4 @@
-# ory_hydra_client.model.InlineResponse503
+# ory_hydra_client.model.PluginConfigRootfs
## Load the model package
```dart
@@ -8,7 +8,8 @@ import 'package:ory_hydra_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**errors** | **BuiltMap** | Errors contains a list of errors that caused the not ready status. | [optional]
+**diffIds** | **BuiltList** | diff ids | [optional]
+**type** | **String** | type | [optional]
[[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/clients/hydra/dart/doc/RefreshTokenHookResponse.md b/clients/hydra/dart/doc/PluginConfigUser.md
similarity index 72%
rename from clients/hydra/dart/doc/RefreshTokenHookResponse.md
rename to clients/hydra/dart/doc/PluginConfigUser.md
index 043e81f2b3b..034a8c300f0 100644
--- a/clients/hydra/dart/doc/RefreshTokenHookResponse.md
+++ b/clients/hydra/dart/doc/PluginConfigUser.md
@@ -1,4 +1,4 @@
-# ory_hydra_client.model.RefreshTokenHookResponse
+# ory_hydra_client.model.PluginConfigUser
## Load the model package
```dart
@@ -8,7 +8,8 @@ import 'package:ory_hydra_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**session** | [**ConsentRequestSession**](ConsentRequestSession.md) | | [optional]
+**GID** | **int** | g ID | [optional]
+**UID** | **int** | UID | [optional]
[[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/clients/hydra/dart/doc/PluginDevice.md b/clients/hydra/dart/doc/PluginDevice.md
new file mode 100644
index 00000000000..458c3e947e9
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginDevice.md
@@ -0,0 +1,18 @@
+# ory_hydra_client.model.PluginDevice
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **String** | description |
+**name** | **String** | name |
+**path** | **String** | path |
+**settable** | **BuiltList** | settable |
+
+[[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/clients/hydra/dart/doc/PluginEnv.md b/clients/hydra/dart/doc/PluginEnv.md
new file mode 100644
index 00000000000..4274d13186e
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginEnv.md
@@ -0,0 +1,18 @@
+# ory_hydra_client.model.PluginEnv
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **String** | description |
+**name** | **String** | name |
+**settable** | **BuiltList** | settable |
+**value** | **String** | value |
+
+[[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/clients/hydra/dart/doc/PluginInterfaceType.md b/clients/hydra/dart/doc/PluginInterfaceType.md
new file mode 100644
index 00000000000..748f5e67a81
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginInterfaceType.md
@@ -0,0 +1,17 @@
+# ory_hydra_client.model.PluginInterfaceType
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**capability** | **String** | capability |
+**prefix** | **String** | prefix |
+**version** | **String** | version |
+
+[[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/clients/hydra/dart/doc/FlushLoginConsentRequest.md b/clients/hydra/dart/doc/PluginMount.md
similarity index 52%
rename from clients/hydra/dart/doc/FlushLoginConsentRequest.md
rename to clients/hydra/dart/doc/PluginMount.md
index 5987390a4b6..90086db4750 100644
--- a/clients/hydra/dart/doc/FlushLoginConsentRequest.md
+++ b/clients/hydra/dart/doc/PluginMount.md
@@ -1,4 +1,4 @@
-# ory_hydra_client.model.FlushLoginConsentRequest
+# ory_hydra_client.model.PluginMount
## Load the model package
```dart
@@ -8,7 +8,13 @@ import 'package:ory_hydra_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**notAfter** | [**DateTime**](DateTime.md) | NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history of recent login and consent database entries for auditing. | [optional]
+**description** | **String** | description |
+**destination** | **String** | destination |
+**name** | **String** | name |
+**options** | **BuiltList** | options |
+**settable** | **BuiltList** | settable |
+**source_** | **String** | source |
+**type** | **String** | type |
[[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/clients/hydra/dart/doc/PluginSettings.md b/clients/hydra/dart/doc/PluginSettings.md
new file mode 100644
index 00000000000..2cae7389da2
--- /dev/null
+++ b/clients/hydra/dart/doc/PluginSettings.md
@@ -0,0 +1,18 @@
+# ory_hydra_client.model.PluginSettings
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**args** | **BuiltList** | args |
+**devices** | [**BuiltList**](PluginDevice.md) | devices |
+**env** | **BuiltList** | env |
+**mounts** | [**BuiltList**](PluginMount.md) | mounts |
+
+[[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/clients/hydra/dart/doc/PublicApi.md b/clients/hydra/dart/doc/PublicApi.md
index 30413e5f57d..77ff26b287e 100644
--- a/clients/hydra/dart/doc/PublicApi.md
+++ b/clients/hydra/dart/doc/PublicApi.md
@@ -15,6 +15,7 @@ Method | HTTP request | Description
[**dynamicClientRegistrationDeleteOAuth2Client**](PublicApi.md#dynamicclientregistrationdeleteoauth2client) | **DELETE** /connect/register/{id} | Deletes an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
[**dynamicClientRegistrationGetOAuth2Client**](PublicApi.md#dynamicclientregistrationgetoauth2client) | **GET** /connect/register/{id} | Get an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
[**dynamicClientRegistrationUpdateOAuth2Client**](PublicApi.md#dynamicclientregistrationupdateoauth2client) | **PUT** /connect/register/{id} | Update an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
+[**isInstanceReady**](PublicApi.md#isinstanceready) | **GET** /health/ready | Check Readiness Status
[**oauth2Token**](PublicApi.md#oauth2token) | **POST** /oauth2/token | The OAuth 2.0 Token Endpoint
[**oauthAuth**](PublicApi.md#oauthauth) | **GET** /oauth2/auth | The OAuth 2.0 Authorize Endpoint
[**revokeOAuth2Token**](PublicApi.md#revokeoauth2token) | **POST** /oauth2/revoke | Revoke OAuth2 Tokens
@@ -27,7 +28,7 @@ Method | HTTP request | Description
OpenID Connect Front-Backchannel Enabled Logout
-This endpoint initiates and completes user logout at Ory Hydra and initiates OpenID Connect Front-/Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html Back-channel logout is performed asynchronously and does not affect logout flow.
+This endpoint initiates and completes user logout at Ory Hydra and initiates OpenID Connect Front-/Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html
### Example
```dart
@@ -100,7 +101,7 @@ No authorization required
[[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)
# **dynamicClientRegistrationCreateOAuth2Client**
-> OAuth2Client dynamicClientRegistrationCreateOAuth2Client(oAuth2Client)
+> OAuth2Client dynamicClientRegistrationCreateOAuth2Client(body)
Register an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
@@ -111,10 +112,10 @@ This endpoint behaves like the administrative counterpart (`createOAuth2Client`)
import 'package:ory_hydra_client/api.dart';
var api_instance = new PublicApi();
-var oAuth2Client = new OAuth2Client(); // OAuth2Client |
+var body = new OAuth2Client(); // OAuth2Client |
try {
- var result = api_instance.dynamicClientRegistrationCreateOAuth2Client(oAuth2Client);
+ var result = api_instance.dynamicClientRegistrationCreateOAuth2Client(body);
print(result);
} catch (e) {
print('Exception when calling PublicApi->dynamicClientRegistrationCreateOAuth2Client: $e\n');
@@ -125,7 +126,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **oAuth2Client** | [**OAuth2Client**](OAuth2Client.md)| |
+ **body** | [**OAuth2Client**](OAuth2Client.md)| |
### Return type
@@ -228,7 +229,7 @@ No authorization required
[[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)
# **dynamicClientRegistrationUpdateOAuth2Client**
-> OAuth2Client dynamicClientRegistrationUpdateOAuth2Client(id, oAuth2Client)
+> OAuth2Client dynamicClientRegistrationUpdateOAuth2Client(id, body)
Update an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
@@ -240,10 +241,10 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new PublicApi();
var id = id_example; // String | The id of the OAuth 2.0 Client.
-var oAuth2Client = new OAuth2Client(); // OAuth2Client |
+var body = new OAuth2Client(); // OAuth2Client |
try {
- var result = api_instance.dynamicClientRegistrationUpdateOAuth2Client(id, oAuth2Client);
+ var result = api_instance.dynamicClientRegistrationUpdateOAuth2Client(id, body);
print(result);
} catch (e) {
print('Exception when calling PublicApi->dynamicClientRegistrationUpdateOAuth2Client: $e\n');
@@ -255,7 +256,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the OAuth 2.0 Client. |
- **oAuth2Client** | [**OAuth2Client**](OAuth2Client.md)| |
+ **body** | [**OAuth2Client**](OAuth2Client.md)| |
### Return type
@@ -272,8 +273,47 @@ No authorization required
[[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)
+# **isInstanceReady**
+> HealthStatus isInstanceReady()
+
+Check Readiness Status
+
+This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
+
+### Example
+```dart
+import 'package:ory_hydra_client/api.dart';
+
+var api_instance = new PublicApi();
+
+try {
+ var result = api_instance.isInstanceReady();
+ print(result);
+} catch (e) {
+ print('Exception when calling PublicApi->isInstanceReady: $e\n');
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**HealthStatus**](HealthStatus.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
# **oauth2Token**
-> Oauth2TokenResponse oauth2Token(grantType, clientId, code, redirectUri, refreshToken)
+> Oauth2TokenResponse oauth2Token(grantType, code, refreshToken, redirectUri, clientId)
The OAuth 2.0 Token Endpoint
@@ -290,13 +330,13 @@ import 'package:ory_hydra_client/api.dart';
var api_instance = new PublicApi();
var grantType = grantType_example; // String |
-var clientId = clientId_example; // String |
var code = code_example; // String |
-var redirectUri = redirectUri_example; // String |
var refreshToken = refreshToken_example; // String |
+var redirectUri = redirectUri_example; // String |
+var clientId = clientId_example; // String |
try {
- var result = api_instance.oauth2Token(grantType, clientId, code, redirectUri, refreshToken);
+ var result = api_instance.oauth2Token(grantType, code, refreshToken, redirectUri, clientId);
print(result);
} catch (e) {
print('Exception when calling PublicApi->oauth2Token: $e\n');
@@ -308,10 +348,10 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**grantType** | **String**| |
- **clientId** | **String**| | [optional]
**code** | **String**| | [optional]
- **redirectUri** | **String**| | [optional]
**refreshToken** | **String**| | [optional]
+ **redirectUri** | **String**| | [optional]
+ **clientId** | **String**| | [optional]
### Return type
diff --git a/clients/hydra/dart/doc/RefreshTokenHookRequest.md b/clients/hydra/dart/doc/RefreshTokenHookRequest.md
deleted file mode 100644
index 99223f7ad1f..00000000000
--- a/clients/hydra/dart/doc/RefreshTokenHookRequest.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# ory_hydra_client.model.RefreshTokenHookRequest
-
-## Load the model package
-```dart
-import 'package:ory_hydra_client/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**clientId** | **String** | ClientID is the identifier of the OAuth 2.0 client. | [optional]
-**grantedAudience** | **BuiltList** | GrantedAudience is the list of audiences granted to the OAuth 2.0 client. | [optional]
-**grantedScopes** | **BuiltList** | GrantedScopes is the list of scopes granted to the OAuth 2.0 client. | [optional]
-**subject** | **String** | Subject is the identifier of the authenticated end-user. | [optional]
-
-[[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/clients/hydra/dart/doc/TrustJwtGrantIssuerBody.md b/clients/hydra/dart/doc/TrustJwtGrantIssuerBody.md
index 8eaad75c088..8e09458e767 100644
--- a/clients/hydra/dart/doc/TrustJwtGrantIssuerBody.md
+++ b/clients/hydra/dart/doc/TrustJwtGrantIssuerBody.md
@@ -8,12 +8,11 @@ import 'package:ory_hydra_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**allowAnySubject** | **bool** | The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. | [optional]
**expiresAt** | [**DateTime**](DateTime.md) | The \"expires_at\" indicates, when grant will expire, so we will reject assertion from \"issuer\" targeting \"subject\". |
**issuer** | **String** | The \"issuer\" identifies the principal that issued the JWT assertion (same as \"iss\" claim in JWT). |
**jwk** | [**JSONWebKey**](JSONWebKey.md) | |
**scope** | **BuiltList** | The \"scope\" contains list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) |
-**subject** | **String** | The \"subject\" identifies the principal that is the subject of the JWT. | [optional]
+**subject** | **String** | The \"subject\" identifies the principal that is the subject of the JWT. |
[[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/clients/hydra/dart/doc/TrustedJwtGrantIssuer.md b/clients/hydra/dart/doc/TrustedJwtGrantIssuer.md
index ef1062e1c58..f3098e1516e 100644
--- a/clients/hydra/dart/doc/TrustedJwtGrantIssuer.md
+++ b/clients/hydra/dart/doc/TrustedJwtGrantIssuer.md
@@ -8,7 +8,6 @@ import 'package:ory_hydra_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**allowAnySubject** | **bool** | The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. | [optional]
**createdAt** | [**DateTime**](DateTime.md) | The \"created_at\" indicates, when grant was created. | [optional]
**expiresAt** | [**DateTime**](DateTime.md) | The \"expires_at\" indicates, when grant will expire, so we will reject assertion from \"issuer\" targeting \"subject\". | [optional]
**id** | **String** | | [optional]
diff --git a/clients/hydra/dart/doc/Volume.md b/clients/hydra/dart/doc/Volume.md
new file mode 100644
index 00000000000..beb3b9d3d8c
--- /dev/null
+++ b/clients/hydra/dart/doc/Volume.md
@@ -0,0 +1,23 @@
+# ory_hydra_client.model.Volume
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**createdAt** | **String** | Date/Time the volume was created. | [optional]
+**driver** | **String** | Name of the volume driver used by the volume. |
+**labels** | **BuiltMap** | User-defined key/value metadata. |
+**mountpoint** | **String** | Mount path of the volume on the host. |
+**name** | **String** | Name of the volume. |
+**options** | **BuiltMap** | The driver specific options used when creating the volume. |
+**scope** | **String** | The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. |
+**status** | [**JsonObject**](.md) | Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. | [optional]
+**usageData** | [**VolumeUsageData**](VolumeUsageData.md) | | [optional]
+
+[[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/clients/hydra/dart/doc/VolumeUsageData.md b/clients/hydra/dart/doc/VolumeUsageData.md
new file mode 100644
index 00000000000..6dcf8861ffe
--- /dev/null
+++ b/clients/hydra/dart/doc/VolumeUsageData.md
@@ -0,0 +1,16 @@
+# ory_hydra_client.model.VolumeUsageData
+
+## Load the model package
+```dart
+import 'package:ory_hydra_client/api.dart';
+```
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**refCount** | **int** | The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. |
+**size** | **int** | Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\") |
+
+[[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/clients/hydra/dart/lib/api/admin_api.dart b/clients/hydra/dart/lib/api/admin_api.dart
index 5fc5d54fd65..feceaf2fcdf 100644
--- a/clients/hydra/dart/lib/api/admin_api.dart
+++ b/clients/hydra/dart/lib/api/admin_api.dart
@@ -17,6 +17,7 @@ import 'package:ory_hydra_client/model/completed_request.dart';
import 'package:ory_hydra_client/model/consent_request.dart';
import 'package:ory_hydra_client/model/flush_inactive_o_auth2_tokens_request.dart';
import 'package:ory_hydra_client/model/generic_error.dart';
+import 'package:ory_hydra_client/model/health_status.dart';
import 'package:ory_hydra_client/model/json_error.dart';
import 'package:ory_hydra_client/model/json_web_key.dart';
import 'package:ory_hydra_client/model/json_web_key_set.dart';
@@ -31,6 +32,7 @@ import 'package:ory_hydra_client/model/reject_request.dart';
import 'package:ory_hydra_client/model/request_was_handled_response.dart';
import 'package:ory_hydra_client/model/trust_jwt_grant_issuer_body.dart';
import 'package:ory_hydra_client/model/trusted_jwt_grant_issuer.dart';
+import 'package:ory_hydra_client/model/version.dart';
class AdminApi {
@@ -45,7 +47,7 @@ class AdminApi {
/// When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to.
Future> acceptConsentRequest(
String consentChallenge, {
- AcceptConsentRequest acceptConsentRequest,
+ AcceptConsentRequest body,
CancelToken cancelToken,
Map headers,
Map extra,
@@ -76,7 +78,7 @@ class AdminApi {
dynamic _bodyData;
const _type = FullType(AcceptConsentRequest);
- _bodyData = _serializers.serialize(acceptConsentRequest, specifiedType: _type);
+ _bodyData = _serializers.serialize(body, specifiedType: _type);
final _response = await _dio.request(
_request.path,
@@ -107,7 +109,7 @@ class AdminApi {
/// When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to.
Future> acceptLoginRequest(
String loginChallenge, {
- AcceptLoginRequest acceptLoginRequest,
+ AcceptLoginRequest body,
CancelToken cancelToken,
Map headers,
Map extra,
@@ -138,7 +140,7 @@ class AdminApi {
dynamic _bodyData;
const _type = FullType(AcceptLoginRequest);
- _bodyData = _serializers.serialize(acceptLoginRequest, specifiedType: _type);
+ _bodyData = _serializers.serialize(body, specifiedType: _type);
final _response = await _dio.request(
_request.path,
@@ -227,7 +229,7 @@ class AdminApi {
/// This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
Future> createJsonWebKeySet(
String set_, {
- JsonWebKeySetGeneratorRequest jsonWebKeySetGeneratorRequest,
+ JsonWebKeySetGeneratorRequest body,
CancelToken cancelToken,
Map headers,
Map extra,
@@ -255,7 +257,7 @@ class AdminApi {
dynamic _bodyData;
const _type = FullType(JsonWebKeySetGeneratorRequest);
- _bodyData = _serializers.serialize(jsonWebKeySetGeneratorRequest, specifiedType: _type);
+ _bodyData = _serializers.serialize(body, specifiedType: _type);
final _response = await _dio.request(
_request.path,
@@ -285,7 +287,7 @@ class AdminApi {
///
/// Create a new OAuth 2.0 client If you pass `client_secret` the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
Future> createOAuth2Client(
- OAuth2Client oAuth2Client, {
+ OAuth2Client body, {
CancelToken cancelToken,
Map headers,
Map extra,
@@ -313,7 +315,7 @@ class AdminApi {
dynamic _bodyData;
const _type = FullType(OAuth2Client);
- _bodyData = _serializers.serialize(oAuth2Client, specifiedType: _type);
+ _bodyData = _serializers.serialize(body, specifiedType: _type);
final _response = await _dio.request(
_request.path,
@@ -547,7 +549,7 @@ class AdminApi {
///
/// This endpoint flushes expired OAuth2 access tokens from the database. You can set a time after which no tokens will be not be touched, in case you want to keep recent tokens for auditing. Refresh tokens can not be flushed as they are deleted automatically when performing the refresh flow.
Future> flushInactiveOAuth2Tokens({
- FlushInactiveOAuth2TokensRequest flushInactiveOAuth2TokensRequest,
+ FlushInactiveOAuth2TokensRequest body,
CancelToken cancelToken,
Map headers,
Map extra,
@@ -575,7 +577,7 @@ class AdminApi {
dynamic _bodyData;
const _type = FullType(FlushInactiveOAuth2TokensRequest);
- _bodyData = _serializers.serialize(flushInactiveOAuth2TokensRequest, specifiedType: _type);
+ _bodyData = _serializers.serialize(body, specifiedType: _type);
final _response = await _dio.request(
_request.path,
@@ -981,6 +983,60 @@ class AdminApi {
);
}
+ /// Get Service Version
+ ///
+ /// This endpoint returns the service version typically notated using semantic versioning. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.
+ Future> getVersion({
+ CancelToken cancelToken,
+ Map headers,
+ Map extra,
+ ValidateStatus validateStatus,
+ ProgressCallback onSendProgress,
+ ProgressCallback onReceiveProgress,
+ }) async {
+ final _request = RequestOptions(
+ path: r'/version',
+ method: 'GET',
+ headers: {
+ ...?headers,
+ },
+ extra: {
+ 'secure':