Skip to content

Commit

Permalink
chore: regenerate OpenAPI client v1.14.4
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 26, 2024
1 parent b2cfd07 commit 9158def
Show file tree
Hide file tree
Showing 3,842 changed files with 13,838 additions and 24,310 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 9 additions & 0 deletions clients/client/dart/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ doc/Attribute.md
doc/AttributeFilter.md
doc/AttributesCountDatapoint.md
doc/AuthenticatorAssuranceLevel.md
doc/BatchCheckPermissionBody.md
doc/BatchCheckPermissionResult.md
doc/BatchPatchIdentitiesResponse.md
doc/BillingPeriodBucket.md
doc/CheckOplSyntaxResult.md
doc/CheckPermissionResult.md
doc/CheckPermissionResultWithError.md
doc/CloudAccount.md
doc/ConsistencyRequestParameters.md
doc/ContinueWith.md
Expand Down Expand Up @@ -313,10 +316,13 @@ lib/src/model/attribute.dart
lib/src/model/attribute_filter.dart
lib/src/model/attributes_count_datapoint.dart
lib/src/model/authenticator_assurance_level.dart
lib/src/model/batch_check_permission_body.dart
lib/src/model/batch_check_permission_result.dart
lib/src/model/batch_patch_identities_response.dart
lib/src/model/billing_period_bucket.dart
lib/src/model/check_opl_syntax_result.dart
lib/src/model/check_permission_result.dart
lib/src/model/check_permission_result_with_error.dart
lib/src/model/cloud_account.dart
lib/src/model/consistency_request_parameters.dart
lib/src/model/continue_with.dart
Expand Down Expand Up @@ -581,10 +587,13 @@ test/attribute_filter_test.dart
test/attribute_test.dart
test/attributes_count_datapoint_test.dart
test/authenticator_assurance_level_test.dart
test/batch_check_permission_body_test.dart
test/batch_check_permission_result_test.dart
test/batch_patch_identities_response_test.dart
test/billing_period_bucket_test.dart
test/check_opl_syntax_result_test.dart
test/check_permission_result_test.dart
test/check_permission_result_with_error_test.dart
test/cloud_account_test.dart
test/consistency_request_parameters_test.dart
test/continue_with_recovery_ui_flow_test.dart
Expand Down
8 changes: 6 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.14.3
- API version: v1.14.4
- 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.14.3
ory_client: 1.14.4
```
### Github
Expand Down Expand Up @@ -165,6 +165,7 @@ Class | Method | HTTP request | Description
[*OidcApi*](doc/OidcApi.md) | [**getOidcUserInfo**](doc/OidcApi.md#getoidcuserinfo) | **GET** /userinfo | OpenID Connect Userinfo
[*OidcApi*](doc/OidcApi.md) | [**revokeOidcSession**](doc/OidcApi.md#revokeoidcsession) | **GET** /oauth2/sessions/logout | OpenID Connect Front- and Back-channel Enabled Logout
[*OidcApi*](doc/OidcApi.md) | [**setOidcDynamicClient**](doc/OidcApi.md#setoidcdynamicclient) | **PUT** /oauth2/register/{id} | Set OAuth2 Client using OpenID Dynamic Client Registration
[*PermissionApi*](doc/PermissionApi.md) | [**batchCheckPermission**](doc/PermissionApi.md#batchcheckpermission) | **POST** /relation-tuples/batch/check | Batch check permissions
[*PermissionApi*](doc/PermissionApi.md) | [**checkPermission**](doc/PermissionApi.md#checkpermission) | **GET** /relation-tuples/check/openapi | Check a permission
[*PermissionApi*](doc/PermissionApi.md) | [**checkPermissionOrError**](doc/PermissionApi.md#checkpermissionorerror) | **GET** /relation-tuples/check | Check a permission
[*PermissionApi*](doc/PermissionApi.md) | [**expandPermissions**](doc/PermissionApi.md#expandpermissions) | **GET** /relation-tuples/expand | Expand a Relationship into permissions.
Expand Down Expand Up @@ -216,10 +217,13 @@ Class | Method | HTTP request | Description
- [AttributeFilter](doc/AttributeFilter.md)
- [AttributesCountDatapoint](doc/AttributesCountDatapoint.md)
- [AuthenticatorAssuranceLevel](doc/AuthenticatorAssuranceLevel.md)
- [BatchCheckPermissionBody](doc/BatchCheckPermissionBody.md)
- [BatchCheckPermissionResult](doc/BatchCheckPermissionResult.md)
- [BatchPatchIdentitiesResponse](doc/BatchPatchIdentitiesResponse.md)
- [BillingPeriodBucket](doc/BillingPeriodBucket.md)
- [CheckOplSyntaxResult](doc/CheckOplSyntaxResult.md)
- [CheckPermissionResult](doc/CheckPermissionResult.md)
- [CheckPermissionResultWithError](doc/CheckPermissionResultWithError.md)
- [CloudAccount](doc/CloudAccount.md)
- [ConsistencyRequestParameters](doc/ConsistencyRequestParameters.md)
- [ContinueWith](doc/ContinueWith.md)
Expand Down
15 changes: 15 additions & 0 deletions clients/client/dart/doc/BatchCheckPermissionBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ory_client.model.BatchCheckPermissionBody

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**tuples** | [**BuiltList<Relationship>**](Relationship.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)


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

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**results** | [**BuiltList<CheckPermissionResultWithError>**](CheckPermissionResultWithError.md) | An array of check results. The order aligns with the input order. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


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

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowed** | **bool** | whether the relation tuple is allowed |
**error** | **String** | any error generated while checking the relation tuple | [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)


3 changes: 2 additions & 1 deletion clients/client/dart/doc/InvoiceDataV1.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**billingPeriod** | [**TimeInterval**](TimeInterval.md) | |
**currency** | **String** | The currency of the invoice. |
**deleted** | **bool** | Deleted is true if the invoice has been soft-deleted. | [optional]
**items** | [**BuiltList<LineItemV1>**](LineItemV1.md) | The items that are part of this invoice. |
**plan** | **String** | The plan that this invoice is based on. | [optional]
**plan** | **String** | The plan that this invoice is based on, in the format \"Name@version\". | [optional]
**stripeInvoiceItem** | **String** | | [optional]
**stripeInvoiceStatus** | **String** | The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/docs/billing/invoices/workflow#workflow-overview) | [optional]
**stripeLink** | **String** | An optional link to the invoice on Stripe. | [optional]
Expand Down
46 changes: 46 additions & 0 deletions clients/client/dart/doc/PermissionApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,59 @@ All URIs are relative to *https://.projects.oryapis.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**batchCheckPermission**](PermissionApi.md#batchcheckpermission) | **POST** /relation-tuples/batch/check | Batch check permissions
[**checkPermission**](PermissionApi.md#checkpermission) | **GET** /relation-tuples/check/openapi | Check a permission
[**checkPermissionOrError**](PermissionApi.md#checkpermissionorerror) | **GET** /relation-tuples/check | Check a permission
[**expandPermissions**](PermissionApi.md#expandpermissions) | **GET** /relation-tuples/expand | Expand a Relationship into permissions.
[**postCheckPermission**](PermissionApi.md#postcheckpermission) | **POST** /relation-tuples/check/openapi | Check a permission
[**postCheckPermissionOrError**](PermissionApi.md#postcheckpermissionorerror) | **POST** /relation-tuples/check | Check a permission


# **batchCheckPermission**
> BatchCheckPermissionResult batchCheckPermission(maxDepth, batchCheckPermissionBody)
Batch check permissions

To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).

### Example
```dart
import 'package:ory_client/api.dart';
final api = OryClient().getPermissionApi();
final int maxDepth = 789; // int |
final BatchCheckPermissionBody batchCheckPermissionBody = ; // BatchCheckPermissionBody |
try {
final response = api.batchCheckPermission(maxDepth, batchCheckPermissionBody);
print(response);
} catch on DioException (e) {
print('Exception when calling PermissionApi->batchCheckPermission: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**maxDepth** | **int**| | [optional]
**batchCheckPermissionBody** | [**BatchCheckPermissionBody**](BatchCheckPermissionBody.md)| | [optional]

### Return type

[**BatchCheckPermissionResult**](BatchCheckPermissionResult.md)

### Authorization

[oryAccessToken](../README.md#oryAccessToken)

### HTTP request headers

- **Content-Type**: application/json
- **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)

# **checkPermission**
> CheckPermissionResult checkPermission(namespace, object, relation, subjectId, subjectSetPeriodNamespace, subjectSetPeriodObject, subjectSetPeriodRelation, maxDepth)
Expand Down
2 changes: 1 addition & 1 deletion clients/client/dart/doc/ProjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ Name | Type | Description | Notes
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 !!
!! 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. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.

### Example
```dart
Expand Down
3 changes: 3 additions & 0 deletions clients/client/dart/lib/ory_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ export 'package:ory_client/src/model/attribute.dart';
export 'package:ory_client/src/model/attribute_filter.dart';
export 'package:ory_client/src/model/attributes_count_datapoint.dart';
export 'package:ory_client/src/model/authenticator_assurance_level.dart';
export 'package:ory_client/src/model/batch_check_permission_body.dart';
export 'package:ory_client/src/model/batch_check_permission_result.dart';
export 'package:ory_client/src/model/batch_patch_identities_response.dart';
export 'package:ory_client/src/model/billing_period_bucket.dart';
export 'package:ory_client/src/model/check_opl_syntax_result.dart';
export 'package:ory_client/src/model/check_permission_result.dart';
export 'package:ory_client/src/model/check_permission_result_with_error.dart';
export 'package:ory_client/src/model/cloud_account.dart';
export 'package:ory_client/src/model/consistency_request_parameters.dart';
export 'package:ory_client/src/model/continue_with.dart';
Expand Down
111 changes: 111 additions & 0 deletions clients/client/dart/lib/src/api/permission_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'package:built_value/serializer.dart';
import 'package:dio/dio.dart';

import 'package:ory_client/src/api_util.dart';
import 'package:ory_client/src/model/batch_check_permission_body.dart';
import 'package:ory_client/src/model/batch_check_permission_result.dart';
import 'package:ory_client/src/model/check_permission_result.dart';
import 'package:ory_client/src/model/error_generic.dart';
import 'package:ory_client/src/model/expanded_permission_tree.dart';
Expand All @@ -22,6 +24,115 @@ class PermissionApi {

const PermissionApi(this._dio, this._serializers);

/// Batch check permissions
/// To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
///
/// Parameters:
/// * [maxDepth]
/// * [batchCheckPermissionBody]
/// * [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
/// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response
/// * [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 [BatchCheckPermissionResult] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<BatchCheckPermissionResult>> batchCheckPermission({
int? maxDepth,
BatchCheckPermissionBody? batchCheckPermissionBody,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
ValidateStatus? validateStatus,
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
}) async {
final _path = r'/relation-tuples/batch/check';
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
...?headers,
},
extra: <String, dynamic>{
'secure': <Map<String, String>>[
{
'type': 'http',
'scheme': 'bearer',
'name': 'oryAccessToken',
},
],
...?extra,
},
contentType: 'application/json',
validateStatus: validateStatus,
);

final _queryParameters = <String, dynamic>{
if (maxDepth != null) r'max-depth': encodeQueryParameter(_serializers, maxDepth, const FullType(int)),
};

dynamic _bodyData;

try {
const _type = FullType(BatchCheckPermissionBody);
_bodyData = batchCheckPermissionBody == null ? null : _serializers.serialize(batchCheckPermissionBody, specifiedType: _type);

} catch(error, stackTrace) {
throw DioException(
requestOptions: _options.compose(
_dio.options,
_path,
queryParameters: _queryParameters,
),
type: DioExceptionType.unknown,
error: error,
stackTrace: stackTrace,
);
}

final _response = await _dio.request<Object>(
_path,
data: _bodyData,
options: _options,
queryParameters: _queryParameters,
cancelToken: cancelToken,
onSendProgress: onSendProgress,
onReceiveProgress: onReceiveProgress,
);

BatchCheckPermissionResult? _responseData;

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

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

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

/// Check a permission
/// To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
///
Expand Down
2 changes: 1 addition & 1 deletion clients/client/dart/lib/src/api/project_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ class ProjectApi {
}

/// 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 !!
/// !! 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. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
///
/// Parameters:
/// * [projectId] - Project ID The project's ID.
Expand Down
Loading

0 comments on commit 9158def

Please sign in to comment.