Start migrating to connect-web
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
166
README.md
166
README.md
@@ -6,17 +6,26 @@
|
||||
- [accounts/v1/accounts_v1.proto](#accounts_v1_accounts_v1-proto)
|
||||
- [AccountData](#accounts-v1-AccountData)
|
||||
- [AccountPassword](#accounts-v1-AccountPassword)
|
||||
- [IsEmailUsedRequest](#accounts-v1-IsEmailUsedRequest)
|
||||
- [IsEmailUsedResponse](#accounts-v1-IsEmailUsedResponse)
|
||||
- [IsEmailVerifiedRequest](#accounts-v1-IsEmailVerifiedRequest)
|
||||
- [IsEmailVerifiedResponse](#accounts-v1-IsEmailVerifiedResponse)
|
||||
- [NewPasswordRequest](#accounts-v1-NewPasswordRequest)
|
||||
- [PersonalData](#accounts-v1-PersonalData)
|
||||
- [RefreshSessionRequest](#accounts-v1-RefreshSessionRequest)
|
||||
- [RefreshSessionResponse](#accounts-v1-RefreshSessionResponse)
|
||||
- [RefreshTokenRequest](#accounts-v1-RefreshTokenRequest)
|
||||
- [RemoveSessionRequest](#accounts-v1-RemoveSessionRequest)
|
||||
- [ResetPasswordRequest](#accounts-v1-ResetPasswordRequest)
|
||||
- [SignInRequest](#accounts-v1-SignInRequest)
|
||||
- [SignInResponse](#accounts-v1-SignInResponse)
|
||||
- [SignUpRequest](#accounts-v1-SignUpRequest)
|
||||
- [SignUpResponse](#accounts-v1-SignUpResponse)
|
||||
- [TokenPair](#accounts-v1-TokenPair)
|
||||
|
||||
- [AccountsService](#accounts-v1-AccountsService)
|
||||
- [PublicAccountsService](#accounts-v1-PublicAccountsService)
|
||||
- [RefreshSessionService](#accounts-v1-RefreshSessionService)
|
||||
|
||||
- [projects/v1/projects_v1.proto](#projects_v1_projects_v1-proto)
|
||||
- [CreateProjectRequest](#projects-v1-CreateProjectRequest)
|
||||
@@ -106,6 +115,36 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-IsEmailUsedRequest"></a>
|
||||
|
||||
### IsEmailUsedRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| email | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-IsEmailUsedResponse"></a>
|
||||
|
||||
### IsEmailUsedResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| used | [bool](#bool) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-IsEmailVerifiedRequest"></a>
|
||||
|
||||
### IsEmailVerifiedRequest
|
||||
@@ -169,6 +208,36 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshSessionRequest"></a>
|
||||
|
||||
### RefreshSessionRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| refresh_token | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshSessionResponse"></a>
|
||||
|
||||
### RefreshSessionResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_pair | [TokenPair](#accounts-v1-TokenPair) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshTokenRequest"></a>
|
||||
|
||||
### RefreshTokenRequest
|
||||
@@ -184,6 +253,21 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RemoveSessionRequest"></a>
|
||||
|
||||
### RemoveSessionRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| refresh_token | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-ResetPasswordRequest"></a>
|
||||
|
||||
### ResetPasswordRequest
|
||||
@@ -215,6 +299,21 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-SignInResponse"></a>
|
||||
|
||||
### SignInResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_pair | [TokenPair](#accounts-v1-TokenPair) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-SignUpRequest"></a>
|
||||
|
||||
### SignUpRequest
|
||||
@@ -231,6 +330,37 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-SignUpResponse"></a>
|
||||
|
||||
### SignUpResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_pair | [TokenPair](#accounts-v1-TokenPair) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-TokenPair"></a>
|
||||
|
||||
### TokenPair
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| access_token | [string](#string) | | |
|
||||
| refresh_token | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -246,8 +376,8 @@ Protobuf definitions for the accounts service.
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| IsEmailVerified | [IsEmailVerifiedRequest](#accounts-v1-IsEmailVerifiedRequest) | [IsEmailVerifiedResponse](#accounts-v1-IsEmailVerifiedResponse) | Is email for the current account verified |
|
||||
| RefreshSession | [.google.protobuf.Empty](#google-protobuf-Empty) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
|
||||
| TokenAuthorization | [.google.protobuf.Empty](#google-protobuf-Empty) | [.google.protobuf.Empty](#google-protobuf-Empty) | Authorize using long living tokens |
|
||||
| RemoveSession | [RemoveSessionRequest](#accounts-v1-RemoveSessionRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Remove a session that is associated with a refresh token, should be used for logging out |
|
||||
|
||||
|
||||
<a name="accounts-v1-PublicAccountsService"></a>
|
||||
@@ -257,8 +387,19 @@ Service for handling accounts that do not require authentication
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| SignIn | [SignInRequest](#accounts-v1-SignInRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Sing in into an existing account |
|
||||
| SignUp | [SignUpRequest](#accounts-v1-SignUpRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create a new account |
|
||||
| SignIn | [SignInRequest](#accounts-v1-SignInRequest) | [SignInResponse](#accounts-v1-SignInResponse) | Sing in into an existing account |
|
||||
| SignUp | [SignUpRequest](#accounts-v1-SignUpRequest) | [SignUpResponse](#accounts-v1-SignUpResponse) | Create a new account |
|
||||
| IsEmailUsed | [IsEmailUsedRequest](#accounts-v1-IsEmailUsedRequest) | [IsEmailUsedResponse](#accounts-v1-IsEmailUsedResponse) | Check whether a email is already in use |
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshSessionService"></a>
|
||||
|
||||
### RefreshSessionService
|
||||
Use as a separate service to make it easier to avoid interceptors on the client
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| RefreshSession | [RefreshSessionRequest](#accounts-v1-RefreshSessionRequest) | [RefreshSessionResponse](#accounts-v1-RefreshSessionResponse) | |
|
||||
|
||||
|
||||
|
||||
@@ -274,8 +415,15 @@ Protobuf definitions for the accounts service.
|
||||
<a name="projects-v1-CreateProjectRequest"></a>
|
||||
|
||||
### CreateProjectRequest
|
||||
Create a new project
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| slug | [string](#string) | | |
|
||||
| name | [string](#string) | | |
|
||||
| description | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -287,6 +435,11 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -327,6 +480,13 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
| slug | [string](#string) | | |
|
||||
| name | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
11
buf.gen.yaml
11
buf.gen.yaml
@@ -9,6 +9,10 @@ plugins:
|
||||
out: gen/go
|
||||
opt:
|
||||
- paths=source_relative
|
||||
- remote: buf.build/connectrpc/go
|
||||
out: gen/go
|
||||
opt:
|
||||
- paths=source_relative
|
||||
|
||||
- remote: buf.build/grpc/go
|
||||
out: gen/go
|
||||
@@ -16,12 +20,15 @@ plugins:
|
||||
- paths=source_relative
|
||||
- require_unimplemented_servers=false
|
||||
|
||||
- remote: buf.build/community/pseudomuto-doc:v1.5.1
|
||||
- remote: buf.build/community/pseudomuto-doc
|
||||
out: .
|
||||
opt:
|
||||
- markdown,README.md
|
||||
|
||||
- remote: buf.build/protocolbuffers/dart:v25.0.0
|
||||
- remote: buf.build/connectrpc/dart:v1.0.0
|
||||
out: gen/dart/lib
|
||||
|
||||
- remote: buf.build/protocolbuffers/dart:v22.4.0
|
||||
out: gen/dart/lib
|
||||
opt:
|
||||
- grpc
|
||||
|
||||
Reference in New Issue
Block a user