Skip to content

Commit

Permalink
autogen: regenerate SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Feb 28, 2022
1 parent d88c56f commit a118413
Show file tree
Hide file tree
Showing 30 changed files with 2,660 additions and 75 deletions.
18 changes: 18 additions & 0 deletions internal/httpclient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ api_v0alpha2.go
client.go
configuration.go
docs/AdminCreateIdentityBody.md
docs/AdminCreateIdentityImportCredentialsOidc.md
docs/AdminCreateIdentityImportCredentialsOidcConfig.md
docs/AdminCreateIdentityImportCredentialsOidcProvider.md
docs/AdminCreateIdentityImportCredentialsPassword.md
docs/AdminCreateIdentityImportCredentialsPasswordConfig.md
docs/AdminCreateSelfServiceRecoveryLinkBody.md
docs/AdminIdentityImportCredentials.md
docs/AdminUpdateIdentityBody.md
docs/AuthenticatorAssuranceLevel.md
docs/ErrorAuthenticatorAssuranceLevelNotSatisfied.md
Expand All @@ -17,6 +23,9 @@ docs/HealthNotReadyStatus.md
docs/HealthStatus.md
docs/Identity.md
docs/IdentityCredentials.md
docs/IdentityCredentialsOidc.md
docs/IdentityCredentialsOidcProvider.md
docs/IdentityCredentialsPassword.md
docs/IdentityCredentialsType.md
docs/IdentitySchema.md
docs/IdentityState.md
Expand Down Expand Up @@ -86,7 +95,13 @@ git_push.sh
go.mod
go.sum
model_admin_create_identity_body.go
model_admin_create_identity_import_credentials_oidc.go
model_admin_create_identity_import_credentials_oidc_config.go
model_admin_create_identity_import_credentials_oidc_provider.go
model_admin_create_identity_import_credentials_password.go
model_admin_create_identity_import_credentials_password_config.go
model_admin_create_self_service_recovery_link_body.go
model_admin_identity_import_credentials.go
model_admin_update_identity_body.go
model_authenticator_assurance_level.go
model_error_authenticator_assurance_level_not_satisfied.go
Expand All @@ -95,6 +110,9 @@ model_health_not_ready_status.go
model_health_status.go
model_identity.go
model_identity_credentials.go
model_identity_credentials_oidc.go
model_identity_credentials_oidc_provider.go
model_identity_credentials_password.go
model_identity_credentials_type.go
model_identity_schema.go
model_identity_state.go
Expand Down
9 changes: 9 additions & 0 deletions internal/httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@ Class | Method | HTTP request | Description
## Documentation For Models

- [AdminCreateIdentityBody](docs/AdminCreateIdentityBody.md)
- [AdminCreateIdentityImportCredentialsOidc](docs/AdminCreateIdentityImportCredentialsOidc.md)
- [AdminCreateIdentityImportCredentialsOidcConfig](docs/AdminCreateIdentityImportCredentialsOidcConfig.md)
- [AdminCreateIdentityImportCredentialsOidcProvider](docs/AdminCreateIdentityImportCredentialsOidcProvider.md)
- [AdminCreateIdentityImportCredentialsPassword](docs/AdminCreateIdentityImportCredentialsPassword.md)
- [AdminCreateIdentityImportCredentialsPasswordConfig](docs/AdminCreateIdentityImportCredentialsPasswordConfig.md)
- [AdminCreateSelfServiceRecoveryLinkBody](docs/AdminCreateSelfServiceRecoveryLinkBody.md)
- [AdminIdentityImportCredentials](docs/AdminIdentityImportCredentials.md)
- [AdminUpdateIdentityBody](docs/AdminUpdateIdentityBody.md)
- [AuthenticatorAssuranceLevel](docs/AuthenticatorAssuranceLevel.md)
- [ErrorAuthenticatorAssuranceLevelNotSatisfied](docs/ErrorAuthenticatorAssuranceLevelNotSatisfied.md)
Expand All @@ -139,6 +145,9 @@ Class | Method | HTTP request | Description
- [HealthStatus](docs/HealthStatus.md)
- [Identity](docs/Identity.md)
- [IdentityCredentials](docs/IdentityCredentials.md)
- [IdentityCredentialsOidc](docs/IdentityCredentialsOidc.md)
- [IdentityCredentialsOidcProvider](docs/IdentityCredentialsOidcProvider.md)
- [IdentityCredentialsPassword](docs/IdentityCredentialsPassword.md)
- [IdentityCredentialsType](docs/IdentityCredentialsType.md)
- [IdentitySchema](docs/IdentitySchema.md)
- [IdentityState](docs/IdentityState.md)
Expand Down
124 changes: 115 additions & 9 deletions internal/httpclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ paths:
<script src="https://public-kratos.example.org/.well-known/ory/webauthn.js" type="script" async />
```
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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: getWebAuthnJavaScript
responses:
"200":
Expand Down Expand Up @@ -677,7 +677,7 @@ paths:
`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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: submitSelfServiceLoginFlow
parameters:
- description: |-
Expand Down Expand Up @@ -762,7 +762,7 @@ paths:
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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: initializeSelfServiceLoginFlowWithoutBrowser
parameters:
- description: |-
Expand Down Expand Up @@ -843,7 +843,7 @@ paths:
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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: initializeSelfServiceLoginFlowForBrowsers
parameters:
- description: |-
Expand Down Expand Up @@ -931,7 +931,7 @@ paths:
`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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: getSelfServiceLoginFlow
parameters:
- description: |-
Expand Down Expand Up @@ -1407,7 +1407,7 @@ paths:
`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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: submitSelfServiceRegistrationFlow
parameters:
- description: |-
Expand Down Expand Up @@ -1483,7 +1483,7 @@ paths:
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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: initializeSelfServiceRegistrationFlowWithoutBrowser
responses:
"200":
Expand Down Expand Up @@ -1534,7 +1534,7 @@ paths:
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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: initializeSelfServiceRegistrationFlowForBrowsers
parameters:
- description: The URL to return the browser to after the flow was completed.
Expand Down Expand Up @@ -1589,7 +1589,7 @@ paths:
`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).
More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
operationId: getSelfServiceRegistrationFlow
parameters:
- description: |-
Expand Down Expand Up @@ -2589,6 +2589,7 @@ components:
in `schema_id`.
type: object
required:
- schema_id
- state
- traits
type: object
Expand Down Expand Up @@ -2641,6 +2642,18 @@ components:
type: string
adminCreateIdentityBody:
properties:
credentials:
$ref: '#/components/schemas/adminIdentityImportCredentials'
recovery_addresses:
description: |-
RecoveryAddresses contains all the addresses that can be used to recover an identity.
Use this structure to import recovery addresses for an identity. Please keep in mind
that the address needs to be represented in the Identity Schema or this field will be overwritten
on the next identity update.
items:
$ref: '#/components/schemas/RecoveryAddress'
type: array
schema_id:
description: SchemaID is the ID of the JSON Schema to be used for validating
the identity's traits.
Expand All @@ -2653,10 +2666,63 @@ components:
in a self-service manner. The input will always be validated against the JSON Schema defined
in `schema_url`.
type: object
verifiable_addresses:
description: |-
VerifiableAddresses contains all the addresses that can be verified by the user.
Use this structure to import verified addresses for an identity. Please keep in mind
that the address needs to be represented in the Identity Schema or this field will be overwritten
on the next identity update.
items:
$ref: '#/components/schemas/verifiableIdentityAddress'
type: array
required:
- schema_id
- traits
type: object
adminCreateIdentityImportCredentialsOidc:
properties:
config:
$ref: '#/components/schemas/adminCreateIdentityImportCredentialsOidcConfig'
type: object
adminCreateIdentityImportCredentialsOidcConfig:
properties:
config:
$ref: '#/components/schemas/adminCreateIdentityImportCredentialsPasswordConfig'
providers:
description: A list of OpenID Connect Providers
items:
$ref: '#/components/schemas/adminCreateIdentityImportCredentialsOidcProvider'
type: array
type: object
adminCreateIdentityImportCredentialsOidcProvider:
properties:
provider:
description: The OpenID Connect provider to link the subject to. Usually
something like `google` or `github`.
type: string
subject:
description: The subject (`sub`) of the OpenID Connect connection. Usually
the `sub` field of the ID Token.
type: string
required:
- provider
- subject
type: object
adminCreateIdentityImportCredentialsPassword:
properties:
config:
$ref: '#/components/schemas/adminCreateIdentityImportCredentialsPasswordConfig'
type: object
adminCreateIdentityImportCredentialsPasswordConfig:
properties:
hashed_password:
description: The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format)
type: string
password:
description: The password in plain text if no hash is available.
type: string
type: object
adminCreateSelfServiceRecoveryLinkBody:
properties:
expires_in:
Expand All @@ -2673,6 +2739,13 @@ components:
required:
- identity_id
type: object
adminIdentityImportCredentials:
properties:
oidc:
$ref: '#/components/schemas/adminCreateIdentityImportCredentialsOidc'
password:
$ref: '#/components/schemas/adminCreateIdentityImportCredentialsPassword'
type: object
authenticatorAssuranceLevel:
description: |-
The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder
Expand Down Expand Up @@ -2949,6 +3022,38 @@ components:
format: date-time
type: string
type: object
identityCredentialsOidc:
properties:
providers:
items:
$ref: '#/components/schemas/identityCredentialsOidcProvider'
type: array
title: CredentialsOIDC is contains the configuration for credentials of the
type oidc.
type: object
identityCredentialsOidcProvider:
properties:
initial_access_token:
type: string
initial_id_token:
type: string
initial_refresh_token:
type: string
provider:
type: string
subject:
type: string
title: CredentialsOIDCProvider is contains a specific OpenID COnnect credential
for a particular connection (e.g. Google).
type: object
identityCredentialsPassword:
properties:
hashed_password:
description: HashedPassword is a hash-representation of the password.
type: string
title: CredentialsPassword is contains the configuration for credentials of
the type password.
type: object
identityCredentialsType:
description: and so on.
enum:
Expand Down Expand Up @@ -4005,6 +4110,7 @@ components:
- totp
- oidc
- webauthn
- lookup_secret
title: The method used
type: string
title: AuthenticationMethod identifies an authentication method
Expand Down
Loading

0 comments on commit a118413

Please sign in to comment.