Skip to content

Commit

Permalink
chore: regenerate OpenAPI client v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 11, 2024
1 parent 9ddd79a commit ba31715
Show file tree
Hide file tree
Showing 3,266 changed files with 12,705 additions and 21,384 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 @@ -53,6 +53,7 @@ doc/ErrorFlowReplaced.md
doc/ErrorGeneric.md
doc/ErrorOAuth2.md
doc/EventStream.md
doc/EventsApi.md
doc/ExpandedPermissionTree.md
doc/FlowError.md
doc/FrontendApi.md
Expand Down Expand Up @@ -261,6 +262,7 @@ doc/Workspace.md
lib/ory_client.dart
lib/src/api.dart
lib/src/api/courier_api.dart
lib/src/api/events_api.dart
lib/src/api/frontend_api.dart
lib/src/api/identity_api.dart
lib/src/api/jwk_api.dart
Expand Down Expand Up @@ -577,6 +579,7 @@ test/error_flow_replaced_test.dart
test/error_generic_test.dart
test/error_o_auth2_test.dart
test/event_stream_test.dart
test/events_api_test.dart
test/expanded_permission_tree_test.dart
test/flow_error_test.dart
test/frontend_api_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.5.0
- API version: v1.5.1
- 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.5.0
ory_client: 1.5.1
```
### Github
Expand Down Expand Up @@ -68,6 +68,10 @@ Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
[*CourierApi*](doc/CourierApi.md) | [**getCourierMessage**](doc/CourierApi.md#getcouriermessage) | **GET** /admin/courier/messages/{id} | Get a Message
[*CourierApi*](doc/CourierApi.md) | [**listCourierMessages**](doc/CourierApi.md#listcouriermessages) | **GET** /admin/courier/messages | List Messages
[*EventsApi*](doc/EventsApi.md) | [**createEventStream**](doc/EventsApi.md#createeventstream) | **POST** /projects/{project_id}/eventstreams | Create an event stream for your project.
[*EventsApi*](doc/EventsApi.md) | [**deleteEventStream**](doc/EventsApi.md#deleteeventstream) | **DELETE** /projects/{project_id}/eventstreams/{event_stream_id} | Remove an event stream from a project
[*EventsApi*](doc/EventsApi.md) | [**listEventStreams**](doc/EventsApi.md#listeventstreams) | **GET** /projects/{project_id}/eventstreams | List all event streams for the project. This endpoint is not paginated.
[*EventsApi*](doc/EventsApi.md) | [**setEventStream**](doc/EventsApi.md#seteventstream) | **PUT** /projects/{project_id}/eventstreams/{event_stream_id} | Update an event stream for a project.
[*FrontendApi*](doc/FrontendApi.md) | [**createBrowserLoginFlow**](doc/FrontendApi.md#createbrowserloginflow) | **GET** /self-service/login/browser | Create Login Flow for Browsers
[*FrontendApi*](doc/FrontendApi.md) | [**createBrowserLogoutFlow**](doc/FrontendApi.md#createbrowserlogoutflow) | **GET** /self-service/logout/browser | Create a Logout URL for Browsers
[*FrontendApi*](doc/FrontendApi.md) | [**createBrowserRecoveryFlow**](doc/FrontendApi.md#createbrowserrecoveryflow) | **GET** /self-service/recovery/browser | Create Recovery Flow for Browsers
Expand Down
202 changes: 202 additions & 0 deletions clients/client/dart/doc/EventsApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
# ory_client.api.EventsApi

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

All URIs are relative to *https://playground.projects.oryapis.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createEventStream**](EventsApi.md#createeventstream) | **POST** /projects/{project_id}/eventstreams | Create an event stream for your project.
[**deleteEventStream**](EventsApi.md#deleteeventstream) | **DELETE** /projects/{project_id}/eventstreams/{event_stream_id} | Remove an event stream from a project
[**listEventStreams**](EventsApi.md#listeventstreams) | **GET** /projects/{project_id}/eventstreams | List all event streams for the project. This endpoint is not paginated.
[**setEventStream**](EventsApi.md#seteventstream) | **PUT** /projects/{project_id}/eventstreams/{event_stream_id} | Update an event stream for a project.


# **createEventStream**
> EventStream createEventStream(projectId, createEventStreamBody)
Create an event stream for your project.

### Example
```dart
import 'package:ory_client/api.dart';
// TODO Configure HTTP basic authorization: oryAccessToken
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').password = 'YOUR_PASSWORD';
final api = OryClient().getEventsApi();
final String projectId = projectId_example; // String | Project ID The project's ID.
final CreateEventStreamBody createEventStreamBody = ; // CreateEventStreamBody |
try {
final response = api.createEventStream(projectId, createEventStreamBody);
print(response);
} catch on DioError (e) {
print('Exception when calling EventsApi->createEventStream: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | **String**| Project ID The project's ID. |
**createEventStreamBody** | [**CreateEventStreamBody**](CreateEventStreamBody.md)| |

### Return type

[**EventStream**](EventStream.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)

# **deleteEventStream**
> deleteEventStream(projectId, eventStreamId)
Remove an event stream from a project

Remove an event stream from a project.

### Example
```dart
import 'package:ory_client/api.dart';
// TODO Configure HTTP basic authorization: oryAccessToken
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').password = 'YOUR_PASSWORD';
final api = OryClient().getEventsApi();
final String projectId = projectId_example; // String | Project ID The project's ID.
final String eventStreamId = eventStreamId_example; // String | Event Stream ID The ID of the event stream to be deleted, as returned when created.
try {
api.deleteEventStream(projectId, eventStreamId);
} catch on DioError (e) {
print('Exception when calling EventsApi->deleteEventStream: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | **String**| Project ID The project's ID. |
**eventStreamId** | **String**| Event Stream ID The ID of the event stream to be deleted, as returned when created. |

### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **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)

# **listEventStreams**
> ListEventStreams listEventStreams(projectId)
List all event streams for the project. This endpoint is not paginated.

### Example
```dart
import 'package:ory_client/api.dart';
// TODO Configure HTTP basic authorization: oryAccessToken
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').password = 'YOUR_PASSWORD';
final api = OryClient().getEventsApi();
final String projectId = projectId_example; // String | Project ID The project's ID.
try {
final response = api.listEventStreams(projectId);
print(response);
} catch on DioError (e) {
print('Exception when calling EventsApi->listEventStreams: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | **String**| Project ID The project's ID. |

### Return type

[**ListEventStreams**](ListEventStreams.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **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)

# **setEventStream**
> EventStream setEventStream(projectId, eventStreamId, setEventStreamBody)
Update an event stream for a project.

### Example
```dart
import 'package:ory_client/api.dart';
// TODO Configure HTTP basic authorization: oryAccessToken
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('oryAccessToken').password = 'YOUR_PASSWORD';
final api = OryClient().getEventsApi();
final String projectId = projectId_example; // String | Project ID The project's ID.
final String eventStreamId = eventStreamId_example; // String | Event Stream ID The event stream's ID.
final SetEventStreamBody setEventStreamBody = ; // SetEventStreamBody |
try {
final response = api.setEventStream(projectId, eventStreamId, setEventStreamBody);
print(response);
} catch on DioError (e) {
print('Exception when calling EventsApi->setEventStream: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | **String**| Project ID The project's ID. |
**eventStreamId** | **String**| Event Stream ID The event stream's ID. |
**setEventStreamBody** | [**SetEventStreamBody**](SetEventStreamBody.md)| | [optional]

### Return type

[**EventStream**](EventStream.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)

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 @@ -10,6 +10,7 @@ export 'package:ory_client/src/serializers.dart';
export 'package:ory_client/src/model/date.dart';

export 'package:ory_client/src/api/courier_api.dart';
export 'package:ory_client/src/api/events_api.dart';
export 'package:ory_client/src/api/frontend_api.dart';
export 'package:ory_client/src/api/identity_api.dart';
export 'package:ory_client/src/api/jwk_api.dart';
Expand Down
7 changes: 7 additions & 0 deletions clients/client/dart/lib/src/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import 'package:ory_client/src/auth/basic_auth.dart';
import 'package:ory_client/src/auth/bearer_auth.dart';
import 'package:ory_client/src/auth/oauth.dart';
import 'package:ory_client/src/api/courier_api.dart';
import 'package:ory_client/src/api/events_api.dart';
import 'package:ory_client/src/api/frontend_api.dart';
import 'package:ory_client/src/api/identity_api.dart';
import 'package:ory_client/src/api/jwk_api.dart';
Expand Down Expand Up @@ -81,6 +82,12 @@ class OryClient {
return CourierApi(dio, serializers);
}

/// Get EventsApi instance, base route and serializer can be overridden by a given but be careful,
/// by doing that all interceptors will not be executed
EventsApi getEventsApi() {
return EventsApi(dio, serializers);
}

/// Get FrontendApi instance, base route and serializer can be overridden by a given but be careful,
/// by doing that all interceptors will not be executed
FrontendApi getFrontendApi() {
Expand Down
Loading

0 comments on commit ba31715

Please sign in to comment.