Skip to content

Commit

Permalink
chore: regenerate OpenAPI client v1.1.39-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jun 28, 2023
1 parent 58d1047 commit 2b120a3
Show file tree
Hide file tree
Showing 2,780 changed files with 4,066 additions and 18,719 deletions.
4 changes: 2 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.1.39
- API version: v1.1.39-alpha.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen

## Requirements
Expand All @@ -19,7 +19,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.1.39
ory_client: 1.1.39-alpha.0
```
### Github
Expand Down
6 changes: 4 additions & 2 deletions clients/client/dart/doc/FrontendApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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)

# **createBrowserLogoutFlow**
> LogoutFlow createBrowserLogoutFlow(cookie)
> LogoutFlow createBrowserLogoutFlow(cookie, returnTo)
Create a Logout URL for Browsers

Expand All @@ -105,9 +105,10 @@ import 'package:ory_client/api.dart';
final api = OryClient().getFrontendApi();
final String cookie = cookie_example; // String | HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
final String returnTo = returnTo_example; // String | Return to URL The URL to which the browser should be redirected to after the logout has been performed.
try {
final response = api.createBrowserLogoutFlow(cookie);
final response = api.createBrowserLogoutFlow(cookie, returnTo);
print(response);
} catch on DioError (e) {
print('Exception when calling FrontendApi->createBrowserLogoutFlow: $e\n');
Expand All @@ -119,6 +120,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cookie** | **String**| HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request. | [optional]
**returnTo** | **String**| Return to URL The URL to which the browser should be redirected to after the logout has been performed. | [optional]

### Return type

Expand Down
7 changes: 3 additions & 4 deletions clients/client/dart/doc/IdentityApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void (empty response body)
[[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)

# **deleteIdentityCredentials**
> Identity deleteIdentityCredentials(id, type)
> deleteIdentityCredentials(id, type)
Delete a credential for a specific identity

Expand All @@ -277,8 +277,7 @@ final String id = id_example; // String | ID is the identity's ID.
final String type = type_example; // String | Type is the credential's Type. One of totp, webauthn, lookup
try {
final response = api.deleteIdentityCredentials(id, type);
print(response);
api.deleteIdentityCredentials(id, type);
} catch on DioError (e) {
print('Exception when calling IdentityApi->deleteIdentityCredentials: $e\n');
}
Expand All @@ -293,7 +292,7 @@ Name | Type | Description | Notes

### Return type

[**Identity**](Identity.md)
void (empty response body)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion clients/client/dart/doc/LoginFlow.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**expiresAt** | [**DateTime**](DateTime.md) | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. |
**id** | **String** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> |
**issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the flow started. |
**oauth2LoginChallenge** | **String** | | [optional]
**oauth2LoginChallenge** | **String** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional]
**oauth2LoginRequest** | [**OAuth2LoginRequest**](OAuth2LoginRequest.md) | | [optional]
**refresh** | **bool** | Refresh stores whether this login flow should enforce re-authentication. | [optional]
**requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. |
Expand Down
1 change: 1 addition & 0 deletions clients/client/dart/doc/NormalizedProject.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**slug** | **String** | The project's slug |
**state** | **String** | The state of the project. running Running halted Halted deleted Deleted |
**subscriptionId** | **String** | | [optional]
**subscriptionPlan** | **String** | | [optional]
**updatedAt** | [**DateTime**](DateTime.md) | Last Time Project was Updated |

[[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
2 changes: 1 addition & 1 deletion clients/client/dart/doc/ProjectBranding.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**defaultTheme** | [**ProjectBrandingTheme**](ProjectBrandingTheme.md) | |
**id** | **String** | The customization ID. |
**projectId** | **String** | The Project's ID this customization is associated with |
**themes** | [**BuiltList&lt;ProjectBrandingTheme&gt;**](ProjectBrandingTheme.md) | The Project Branding Themes |
**themes** | [**BuiltList&lt;ProjectBrandingTheme&gt;**](ProjectBrandingTheme.md) | |
**updatedAt** | [**DateTime**](DateTime.md) | Last Time Branding was Updated |

[[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
1 change: 1 addition & 0 deletions clients/client/dart/doc/ProjectMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**slug** | **String** | The project's slug | [optional]
**state** | **String** | The state of the project. running Running halted Halted deleted Deleted |
**subscriptionId** | **String** | | [optional]
**subscriptionPlan** | **String** | | [optional]
**updatedAt** | [**DateTime**](DateTime.md) | Last Time Project was Updated |

[[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
2 changes: 1 addition & 1 deletion clients/client/dart/doc/RegistrationFlow.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**expiresAt** | [**DateTime**](DateTime.md) | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. |
**id** | **String** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> |
**issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the flow occurred. |
**oauth2LoginChallenge** | **String** | | [optional]
**oauth2LoginChallenge** | **String** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional]
**oauth2LoginRequest** | [**OAuth2LoginRequest**](OAuth2LoginRequest.md) | | [optional]
**requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. |
**returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional]
Expand Down
7 changes: 7 additions & 0 deletions clients/client/dart/lib/src/api/frontend_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class FrontendApi {
///
/// Parameters:
/// * [cookie] - HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
/// * [returnTo] - Return to URL The URL to which the browser should be redirected to after the logout has been performed.
/// * [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 All @@ -145,6 +146,7 @@ class FrontendApi {
/// Throws [DioError] if API call or serialization fails
Future<Response<LogoutFlow>> createBrowserLogoutFlow({
String? cookie,
String? returnTo,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
Expand All @@ -166,9 +168,14 @@ class FrontendApi {
validateStatus: validateStatus,
);

final _queryParameters = <String, dynamic>{
if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)),
};

final _response = await _dio.request<Object>(
_path,
options: _options,
queryParameters: _queryParameters,
cancelToken: cancelToken,
onSendProgress: onSendProgress,
onReceiveProgress: onReceiveProgress,
Expand Down
34 changes: 3 additions & 31 deletions clients/client/dart/lib/src/api/identity_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ class IdentityApi {
/// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress
/// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress
///
/// Returns a [Future] containing a [Response] with a [Identity] as data
/// Returns a [Future]
/// Throws [DioError] if API call or serialization fails
Future<Response<Identity>> deleteIdentityCredentials({
Future<Response<void>> deleteIdentityCredentials({
required String id,
required String type,
CancelToken? cancelToken,
Expand Down Expand Up @@ -541,35 +541,7 @@ class IdentityApi {
onReceiveProgress: onReceiveProgress,
);

Identity? _responseData;

try {
final rawResponse = _response.data;
_responseData = rawResponse == null ? null : _serializers.deserialize(
rawResponse,
specifiedType: const FullType(Identity),
) as Identity;

} catch (error, stackTrace) {
throw DioError(
requestOptions: _response.requestOptions,
response: _response,
type: DioErrorType.unknown,
error: error,
stackTrace: stackTrace,
);
}

return Response<Identity>(
data: _responseData,
headers: _response.headers,
isRedirect: _response.isRedirect,
requestOptions: _response.requestOptions,
redirects: _response.redirects,
statusCode: _response.statusCode,
statusMessage: _response.statusMessage,
extra: _response.extra,
);
return _response;
}

/// Delete &amp; Invalidate an Identity&#39;s Sessions
Expand Down
10 changes: 5 additions & 5 deletions clients/client/dart/lib/src/model/login_flow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ part 'login_flow.g.dart';
/// * [expiresAt] - ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
/// * [id] - ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id>
/// * [issuedAt] - IssuedAt is the time (UTC) when the flow started.
/// * [oauth2LoginChallenge]
/// * [oauth2LoginChallenge] - Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.
/// * [oauth2LoginRequest]
/// * [refresh] - Refresh stores whether this login flow should enforce re-authentication.
/// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
Expand Down Expand Up @@ -52,6 +52,7 @@ abstract class LoginFlow implements Built<LoginFlow, LoginFlowBuilder> {
@BuiltValueField(wireName: r'issued_at')
DateTime get issuedAt;

/// Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.
@BuiltValueField(wireName: r'oauth2_login_challenge')
String? get oauth2LoginChallenge;

Expand Down Expand Up @@ -145,7 +146,7 @@ class _$LoginFlowSerializer implements PrimitiveSerializer<LoginFlow> {
yield r'oauth2_login_challenge';
yield serializers.serialize(
object.oauth2LoginChallenge,
specifiedType: const FullType.nullable(String),
specifiedType: const FullType(String),
);
}
if (object.oauth2LoginRequest != null) {
Expand Down Expand Up @@ -266,9 +267,8 @@ class _$LoginFlowSerializer implements PrimitiveSerializer<LoginFlow> {
case r'oauth2_login_challenge':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType.nullable(String),
) as String?;
if (valueDes == null) continue;
specifiedType: const FullType(String),
) as String;
result.oauth2LoginChallenge = valueDes;
break;
case r'oauth2_login_request':
Expand Down
19 changes: 19 additions & 0 deletions clients/client/dart/lib/src/model/normalized_project.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ part 'normalized_project.g.dart';
/// * [slug] - The project's slug
/// * [state] - The state of the project. running Running halted Halted deleted Deleted
/// * [subscriptionId]
/// * [subscriptionPlan]
/// * [updatedAt] - Last Time Project was Updated
@BuiltValue()
abstract class NormalizedProject implements Built<NormalizedProject, NormalizedProjectBuilder> {
Expand Down Expand Up @@ -49,6 +50,9 @@ abstract class NormalizedProject implements Built<NormalizedProject, NormalizedP
@BuiltValueField(wireName: r'subscription_id')
String? get subscriptionId;

@BuiltValueField(wireName: r'subscription_plan')
String? get subscriptionPlan;

/// Last Time Project was Updated
@BuiltValueField(wireName: r'updated_at')
DateTime get updatedAt;
Expand Down Expand Up @@ -113,6 +117,13 @@ class _$NormalizedProjectSerializer implements PrimitiveSerializer<NormalizedPro
specifiedType: const FullType.nullable(String),
);
}
if (object.subscriptionPlan != null) {
yield r'subscription_plan';
yield serializers.serialize(
object.subscriptionPlan,
specifiedType: const FullType.nullable(String),
);
}
yield r'updated_at';
yield serializers.serialize(
object.updatedAt,
Expand Down Expand Up @@ -191,6 +202,14 @@ class _$NormalizedProjectSerializer implements PrimitiveSerializer<NormalizedPro
if (valueDes == null) continue;
result.subscriptionId = valueDes;
break;
case r'subscription_plan':
final valueDes = serializers.deserialize(
value,
specifiedType: const FullType.nullable(String),
) as String?;
if (valueDes == null) continue;
result.subscriptionPlan = valueDes;
break;
case r'updated_at':
final valueDes = serializers.deserialize(
value,
Expand Down
13 changes: 13 additions & 0 deletions clients/client/dart/lib/src/model/normalized_project.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions clients/client/dart/lib/src/model/project_branding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import 'package:built_value/serializer.dart';

part 'project_branding.g.dart';

/// The Project Branding
/// ProjectBranding
///
/// Properties:
/// * [createdAt] - The Customization Creation Date
/// * [defaultTheme]
/// * [id] - The customization ID.
/// * [projectId] - The Project's ID this customization is associated with
/// * [themes] - The Project Branding Themes
/// * [themes]
/// * [updatedAt] - Last Time Branding was Updated
@BuiltValue()
abstract class ProjectBranding implements Built<ProjectBranding, ProjectBrandingBuilder> {
Expand All @@ -36,7 +36,6 @@ abstract class ProjectBranding implements Built<ProjectBranding, ProjectBranding
@BuiltValueField(wireName: r'project_id')
String get projectId;

/// The Project Branding Themes
@BuiltValueField(wireName: r'themes')
BuiltList<ProjectBrandingTheme> get themes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:built_value/serializer.dart';

part 'project_branding_colors.g.dart';

/// The Project Branding Colors
/// ProjectBrandingColors
///
/// Properties:
/// * [accentDefaultColor] - AccentDefaultColor is a hex color code used by the Ory Account Experience theme.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:built_value/serializer.dart';

part 'project_branding_theme.g.dart';

/// The Project Branding Theme
/// ProjectBrandingTheme
///
/// Properties:
/// * [accentDefaultColor] - AccentDefaultColor is a hex color code used by the Ory Account Experience theme.
Expand Down
Loading

0 comments on commit 2b120a3

Please sign in to comment.