Skip to content

Commit

Permalink
chore: regenerate OpenAPI client v1.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Sep 23, 2024
1 parent 094562b commit 951f9e4
Show file tree
Hide file tree
Showing 3,849 changed files with 7,333 additions and 24,946 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions clients/client/dart/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ doc/Identity.md
doc/IdentityApi.md
doc/IdentityCredentials.md
doc/IdentityCredentialsCode.md
doc/IdentityCredentialsCodeAddress.md
doc/IdentityCredentialsOidc.md
doc/IdentityCredentialsOidcProvider.md
doc/IdentityCredentialsPassword.md
Expand Down Expand Up @@ -388,6 +389,7 @@ lib/src/model/health_status.dart
lib/src/model/identity.dart
lib/src/model/identity_credentials.dart
lib/src/model/identity_credentials_code.dart
lib/src/model/identity_credentials_code_address.dart
lib/src/model/identity_credentials_oidc.dart
lib/src/model/identity_credentials_oidc_provider.dart
lib/src/model/identity_credentials_password.dart
Expand Down Expand Up @@ -659,6 +661,7 @@ test/get_version200_response_test.dart
test/health_not_ready_status_test.dart
test/health_status_test.dart
test/identity_api_test.dart
test/identity_credentials_code_address_test.dart
test/identity_credentials_code_test.dart
test/identity_credentials_oidc_provider_test.dart
test/identity_credentials_oidc_test.dart
Expand Down
5 changes: 3 additions & 2 deletions clients/client/dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers.

This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v1.15.0
- API version: v1.15.3
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen

Expand All @@ -20,7 +20,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml
```yaml
dependencies:
ory_client: 1.15.0
ory_client: 1.15.3
```
### Github
Expand Down Expand Up @@ -289,6 +289,7 @@ Class | Method | HTTP request | Description
- [Identity](doc/Identity.md)
- [IdentityCredentials](doc/IdentityCredentials.md)
- [IdentityCredentialsCode](doc/IdentityCredentialsCode.md)
- [IdentityCredentialsCodeAddress](doc/IdentityCredentialsCodeAddress.md)
- [IdentityCredentialsOidc](doc/IdentityCredentialsOidc.md)
- [IdentityCredentialsOidcProvider](doc/IdentityCredentialsOidcProvider.md)
- [IdentityCredentialsPassword](doc/IdentityCredentialsPassword.md)
Expand Down
8 changes: 4 additions & 4 deletions clients/client/dart/doc/FrontendApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final String returnTo = returnTo_example; // String | The URL to return the brow
final String cookie = cookie_example; // String | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
final String loginChallenge = loginChallenge_example; // String | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`).
final String organization = organization_example; // String | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network.
final String via = via_example; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows.
final String via = via_example; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead.
try {
final response = api.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via);
Expand All @@ -79,7 +79,7 @@ Name | Type | Description | Notes
**cookie** | **String**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional]
**loginChallenge** | **String**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional]
**organization** | **String**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional]
**via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional]
**via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead. | [optional]

### Return type

Expand Down Expand Up @@ -338,7 +338,7 @@ final String aal = aal_example; // String | Request a Specific AuthenticationMet
final String xSessionToken = xSessionToken_example; // String | The Session Token of the Identity performing the settings flow.
final bool returnSessionTokenExchangeCode = true; // bool | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed.
final String returnTo = returnTo_example; // String | The URL to return the browser to after the flow was completed.
final String via = via_example; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows.
final String via = via_example; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead.
try {
final response = api.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via);
Expand All @@ -357,7 +357,7 @@ Name | Type | Description | Notes
**xSessionToken** | **String**| The Session Token of the Identity performing the settings flow. | [optional]
**returnSessionTokenExchangeCode** | **bool**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional]
**returnTo** | **String**| The URL to return the browser to after the flow was completed. | [optional]
**via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional]
**via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead. | [optional]

### Return type

Expand Down
3 changes: 1 addition & 2 deletions clients/client/dart/doc/IdentityCredentialsCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import 'package:ory_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**addressType** | **String** | The type of the address for this code | [optional]
**usedAt** | [**DateTime**](DateTime.md) | | [optional]
**addresses** | [**BuiltList<IdentityCredentialsCodeAddress>**](IdentityCredentialsCodeAddress.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)

Expand Down
16 changes: 16 additions & 0 deletions clients/client/dart/doc/IdentityCredentialsCodeAddress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ory_client.model.IdentityCredentialsCodeAddress

## Load the model package
```dart
import 'package:ory_client/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address** | **String** | The address for this code | [optional]
**channel** | **String** | | [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)


8 changes: 4 additions & 4 deletions clients/client/dart/doc/OAuth2Api.md
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ Name | Type | Description | Notes
OAuth 2.0 Authorize Endpoint

Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries at https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly.
Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries at https://oauth.net/code/ This endpoint should not be used via the Ory SDK and is only included for technical reasons. Instead, use one of the libraries linked above.

### Example
```dart
Expand Down Expand Up @@ -790,7 +790,7 @@ No authorization required
The OAuth 2.0 Token Endpoint

Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly.
Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ This endpoint should not be used via the Ory SDK and is only included for technical reasons. Instead, use one of the libraries linked above.

### Example
```dart
Expand Down Expand Up @@ -1077,7 +1077,7 @@ import 'package:ory_client/api.dart';
final api = OryClient().getOAuth2Api();
final String subject = subject_example; // String | OAuth 2.0 Subject The subject to revoke authentication sessions for.
final String sid = sid_example; // String | OAuth 2.0 Subject The subject to revoke authentication sessions for.
final String sid = sid_example; // String | Login Session ID The login session to revoke.
try {
api.revokeOAuth2LoginSessions(subject, sid);
Expand All @@ -1091,7 +1091,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**subject** | **String**| OAuth 2.0 Subject The subject to revoke authentication sessions for. | [optional]
**sid** | **String**| OAuth 2.0 Subject The subject to revoke authentication sessions for. | [optional]
**sid** | **String**| Login Session ID The login session to revoke. | [optional]

### Return type

Expand Down
1 change: 1 addition & 0 deletions clients/client/dart/doc/UpdateLoginFlowBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Description | Notes
**totpCode** | **String** | The TOTP code. |
**webauthnLogin** | **String** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional]
**lookupSecret** | **String** | The lookup secret. |
**address** | **String** | Address is the address to send the code to, in case that there are multiple addresses. This field is only used in two-factor flows and is ineffective for passwordless flows. | [optional]
**code** | **String** | Code is the 6 digits code sent to the user | [optional]
**resend** | **String** | Resend is set when the user wants to resend the code | [optional]
**passkeyLogin** | **String** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional]
Expand Down
1 change: 1 addition & 0 deletions clients/client/dart/doc/UpdateLoginFlowWithCodeMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:ory_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address** | **String** | Address is the address to send the code to, in case that there are multiple addresses. This field is only used in two-factor flows and is ineffective for passwordless flows. | [optional]
**code** | **String** | Code is the 6 digits code sent to the user | [optional]
**csrfToken** | **String** | CSRFToken is the anti-CSRF token |
**identifier** | **String** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional]
Expand Down
1 change: 1 addition & 0 deletions clients/client/dart/lib/ory_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export 'package:ory_client/src/model/health_status.dart';
export 'package:ory_client/src/model/identity.dart';
export 'package:ory_client/src/model/identity_credentials.dart';
export 'package:ory_client/src/model/identity_credentials_code.dart';
export 'package:ory_client/src/model/identity_credentials_code_address.dart';
export 'package:ory_client/src/model/identity_credentials_oidc.dart';
export 'package:ory_client/src/model/identity_credentials_oidc_provider.dart';
export 'package:ory_client/src/model/identity_credentials_password.dart';
Expand Down
4 changes: 2 additions & 2 deletions clients/client/dart/lib/src/api/frontend_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class FrontendApi {
/// * [cookie] - HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
/// * [loginChallenge] - An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`).
/// * [organization] - An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network.
/// * [via] - Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows.
/// * [via] - Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead.
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
Expand Down Expand Up @@ -559,7 +559,7 @@ class FrontendApi {
/// * [xSessionToken] - The Session Token of the Identity performing the settings flow.
/// * [returnSessionTokenExchangeCode] - EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed.
/// * [returnTo] - The URL to return the browser to after the flow was completed.
/// * [via] - Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows.
/// * [via] - Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead.
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
Expand Down
6 changes: 3 additions & 3 deletions clients/client/dart/lib/src/api/o_auth2_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ class OAuth2Api {
}

/// OAuth 2.0 Authorize Endpoint
/// Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries at https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly.
/// Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries at https://oauth.net/code/ This endpoint should not be used via the Ory SDK and is only included for technical reasons. Instead, use one of the libraries linked above.
///
/// Parameters:
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
Expand Down Expand Up @@ -1485,7 +1485,7 @@ class OAuth2Api {
}

/// The OAuth 2.0 Token Endpoint
/// Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly.
/// Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ This endpoint should not be used via the Ory SDK and is only included for technical reasons. Instead, use one of the libraries linked above.
///
/// Parameters:
/// * [grantType]
Expand Down Expand Up @@ -2049,7 +2049,7 @@ class OAuth2Api {
///
/// Parameters:
/// * [subject] - OAuth 2.0 Subject The subject to revoke authentication sessions for.
/// * [sid] - OAuth 2.0 Subject The subject to revoke authentication sessions for.
/// * [sid] - Login Session ID The login session to revoke.
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
Expand Down
44 changes: 13 additions & 31 deletions clients/client/dart/lib/src/model/identity_credentials_code.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//

// ignore_for_file: unused_element
import 'package:built_collection/built_collection.dart';
import 'package:ory_client/src/model/identity_credentials_code_address.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';

Expand All @@ -11,16 +13,11 @@ part 'identity_credentials_code.g.dart';
/// CredentialsCode represents a one time login/registration code
///
/// Properties:
/// * [addressType] - The type of the address for this code
/// * [usedAt]
/// * [addresses]
@BuiltValue()
abstract class IdentityCredentialsCode implements Built<IdentityCredentialsCode, IdentityCredentialsCodeBuilder> {
/// The type of the address for this code
@BuiltValueField(wireName: r'address_type')
String? get addressType;

@BuiltValueField(wireName: r'used_at')
DateTime? get usedAt;
@BuiltValueField(wireName: r'addresses')
BuiltList<IdentityCredentialsCodeAddress>? get addresses;

IdentityCredentialsCode._();

Expand All @@ -45,18 +42,11 @@ class _$IdentityCredentialsCodeSerializer implements PrimitiveSerializer<Identit
IdentityCredentialsCode object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
if (object.addressType != null) {
yield r'address_type';
yield serializers.serialize(
object.addressType,
specifiedType: const FullType(String),
);
}
if (object.usedAt != null) {
yield r'used_at';
if (object.addresses != null) {
yield r'addresses';
yield serializers.serialize(
object.usedAt,
specifiedType: const FullType.nullable(DateTime),
object.addresses,
specifiedType: const FullType(BuiltList, [FullType(IdentityCredentialsCodeAddress)]),
);
}
}
Expand All @@ -82,20 +72,12 @@ class _$IdentityCredentialsCodeSerializer implements PrimitiveSerializer<Identit
final key = serializedList[i] as String;
final value = serializedList[i + 1];
switch (key) {
case r'address_type':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType(String),
) as String;
result.addressType = valueDes;
break;
case r'used_at':
case r'addresses':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType.nullable(DateTime),
) as DateTime?;
if (valueDes == null) continue;
result.usedAt = valueDes;
specifiedType: const FullType(BuiltList, [FullType(IdentityCredentialsCodeAddress)]),
) as BuiltList<IdentityCredentialsCodeAddress>;
result.addresses.replace(valueDes);
break;
default:
unhandled.add(key);
Expand Down
Loading

0 comments on commit 951f9e4

Please sign in to comment.