Skip to content

Commit

Permalink
chore: regenerate OpenAPI client v1.1.39
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 5, 2023
1 parent 848c109 commit ce1c551
Show file tree
Hide file tree
Showing 2,717 changed files with 4,345 additions and 19,245 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-alpha.0
- API version: v1.1.39
- 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-alpha.0
ory_client: 1.1.39
```
### Github
Expand Down
6 changes: 2 additions & 4 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, returnTo)
> LogoutFlow createBrowserLogoutFlow(cookie)
Create a Logout URL for Browsers

Expand All @@ -105,10 +105,9 @@ 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, returnTo);
final response = api.createBrowserLogoutFlow(cookie);
print(response);
} catch on DioError (e) {
print('Exception when calling FrontendApi->createBrowserLogoutFlow: $e\n');
Expand All @@ -120,7 +119,6 @@ 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: 4 additions & 3 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**
> deleteIdentityCredentials(id, type)
> Identity deleteIdentityCredentials(id, type)
Delete a credential for a specific identity

Expand All @@ -277,7 +277,8 @@ 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 {
api.deleteIdentityCredentials(id, type);
final response = api.deleteIdentityCredentials(id, type);
print(response);
} catch on DioError (e) {
print('Exception when calling IdentityApi->deleteIdentityCredentials: $e\n');
}
Expand All @@ -292,7 +293,7 @@ Name | Type | Description | Notes

### Return type

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

### Authorization

Expand Down
8 changes: 4 additions & 4 deletions clients/client/dart/doc/NormalizedProjectRevision.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ Name | Type | Description | Notes
**hydraOidcSubjectIdentifiersSupportedTypes** | **BuiltList<String>** | | [optional]
**hydraSecretsCookie** | **BuiltList<String>** | | [optional]
**hydraSecretsSystem** | **BuiltList<String>** | | [optional]
**hydraServeAdminCorsAllowedOrigins** | **BuiltList<String>** | | [optional]
**hydraServeAdminCorsEnabled** | **bool** | Configures the Ory Hydra CORS Settings This governs the \"serve.admin.cors.enabled\" setting. | [optional]
**hydraServeCookiesSameSiteLegacyWorkaround** | **bool** | Configures the Ory Hydra Cookie Same Site Legacy Workaround This governs the \"serve.cookies.same_site_legacy_workaround\" setting. | [optional]
**hydraServeCookiesSameSiteMode** | **String** | Configures the Ory Hydra Cookie Same Site Mode This governs the \"serve.cookies.same_site_mode\" setting. | [optional]
**hydraServePublicCorsAllowedOrigins** | **BuiltList<String>** | | [optional]
**hydraServePublicCorsEnabled** | **bool** | Configures the Ory Hydra CORS Settings This governs the \"serve.public.cors.enabled\" setting. | [optional]
**hydraStrategiesAccessToken** | **String** | Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens This governs the \"strategies.access_token\" setting. opaque Oauth2AccessTokenStrategyOpaque jwt Oauth2AccessTokenStrategyJwt | [optional] [default to 'opaque']
**hydraStrategiesScope** | **String** | Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes This governs the \"strategies.scope\" setting. exact Oauth2ScopeStrategyExact wildcard Oauth2ScopeStrategyWildcard | [optional] [default to 'wildcard']
**hydraTtlAccessToken** | **String** | This governs the \"ttl.access_token\" setting. | [optional] [default to '30m']
Expand Down Expand Up @@ -160,6 +156,10 @@ Name | Type | Description | Notes
**name** | **String** | The project's name. |
**production** | **bool** | Whether this project is in production mode or not. In development mode, a low-security profile is used making it easier to develop against your, for example, local environment. | [optional]
**projectId** | **String** | The Revision's Project ID | [optional]
**serveAdminCorsAllowedOrigins** | **BuiltList<String>** | | [optional]
**serveAdminCorsEnabled** | **bool** | Enable CORS headers on all admin APIs This governs the \"serve.admin.cors.enabled\" setting. | [optional]
**servePublicCorsAllowedOrigins** | **BuiltList<String>** | | [optional]
**servePublicCorsEnabled** | **bool** | Enable CORS headers on all public APIs This governs the \"serve.public.cors.enabled\" setting. | [optional]
**updatedAt** | [**DateTime**](DateTime.md) | Last Time Project's Revision was Updated | [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
7 changes: 0 additions & 7 deletions clients/client/dart/lib/src/api/frontend_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ 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 @@ -146,7 +145,6 @@ 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 @@ -168,14 +166,9 @@ 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: 31 additions & 3 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]
/// Returns a [Future] containing a [Response] with a [Identity] as data
/// Throws [DioError] if API call or serialization fails
Future<Response<void>> deleteIdentityCredentials({
Future<Response<Identity>> deleteIdentityCredentials({
required String id,
required String type,
CancelToken? cancelToken,
Expand Down Expand Up @@ -541,7 +541,35 @@ class IdentityApi {
onReceiveProgress: onReceiveProgress,
);

return _response;
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,
);
}

/// Delete &amp; Invalidate an Identity&#39;s Sessions
Expand Down
Loading

0 comments on commit ce1c551

Please sign in to comment.