diff --git a/.woodpecker/dart-generate.yaml b/.woodpecker/dart-generate.yaml index f27529f..d0c7d43 100644 --- a/.woodpecker/dart-generate.yaml +++ b/.woodpecker/dart-generate.yaml @@ -16,14 +16,14 @@ steps: - git -C ./target config user.name "devops-bot" - git -C ./target config user.email "bot@badhouseplants.net" - git -C ./target checkout $CI_COMMIT_BRANCH || git -C ./target checkout -b $CI_COMMIT_BRANCH - - name: Generate go code + - name: Generate code image: bufbuild/buf commands: - buf generate - rm -rf ./target/lib/src - mkdir -p ./target/lib/src - cp -r ./gen/dart/* ./target/ - - name: Push the typescrip repo + - name: Push the dart repo image: alpine environment: GITEA_USER: devops-bot diff --git a/.woodpecker/go-generate.yaml b/.woodpecker/go-generate.yaml index d38c40c..ed4b0d8 100644 --- a/.woodpecker/go-generate.yaml +++ b/.woodpecker/go-generate.yaml @@ -16,7 +16,7 @@ steps: - git -C ./target config user.name "devops-bot" - git -C ./target config user.email "bot@badhouseplants.net" - git -C ./target checkout $CI_COMMIT_BRANCH || git -C ./target checkout -b $CI_COMMIT_BRANCH - - name: Generate go code + - name: Generate code image: bufbuild/buf commands: - buf generate diff --git a/.woodpecker/js-generate.yaml b/.woodpecker/js-generate.yaml index 6f2751b..fa1f5e5 100644 --- a/.woodpecker/js-generate.yaml +++ b/.woodpecker/js-generate.yaml @@ -16,20 +16,14 @@ steps: - git -C ./target config user.name "devops-bot" - git -C ./target config user.email "bot@badhouseplants.net" - git -C ./target checkout $CI_COMMIT_BRANCH || git -C ./target checkout -b $CI_COMMIT_BRANCH - - name: Generate go code + - name: Generate code image: bufbuild/buf commands: - buf generate - rm -rf ./target/src/api - mkdir -p ./target/src/api - cp -r ./gen/ts/* ./target/src/api - - name: Compile typescript - image: docker.io/library/node:25.9.0-alpine3.22 - commands: - - cd ./target - - npm install - - npm run prepare - - name: Push the typescrip repo + - name: Push the typescript repo image: alpine environment: GITEA_USER: devops-bot diff --git a/README.md b/README.md index 9f7a2c9..fc1c78d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ - [SignInRequest](#accounts-v1-SignInRequest) - [SignUpRequest](#accounts-v1-SignUpRequest) - - [AccountsService](#accounts-v1-AccountsService) + - [AccountAuthService](#accounts-v1-AccountAuthService) + - [AccountsNoAuthService](#accounts-v1-AccountsNoAuthService) - [applications/v1/applications_v1.proto](#applications_v1_applications_v1-proto) - [ApplicationFull](#applications-ApplicationFull) @@ -63,7 +64,8 @@ - [PongRequest](#test-v1-PongRequest) - [PongResponse](#test-v1-PongResponse) - - [TestService](#test-v1-TestService) + - [TestAuthService](#test-v1-TestAuthService) + - [TestNoAuthService](#test-v1-TestNoAuthService) - [Scalar Value Types](#scalar-value-types) @@ -73,7 +75,7 @@

Top

## accounts/v1/accounts_v1.proto -This file has messages for describing environments +Protobuf definitions for the accounts service. @@ -207,18 +209,29 @@ This file has messages for describing environments - + -### AccountsService -Service for handling environments +### AccountAuthService +Service for handling accounts that do require authentication +Tokens should be sent via metadata, so the service is able to authenticate a user for a request | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| SignUp | [SignUpRequest](#accounts-v1-SignUpRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | | -| SignIn | [SignInRequest](#accounts-v1-SignInRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | | -| ResetPassword | [ResetPasswordRequest](#accounts-v1-ResetPasswordRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | | -| NewPassword | [NewPasswordRequest](#accounts-v1-NewPasswordRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | | -| IsEmailVerified | [IsEmailVerifiedRequest](#accounts-v1-IsEmailVerifiedRequest) | [IsEmailVerifiedResponse](#accounts-v1-IsEmailVerifiedResponse) | | +| IsEmailVerified | [IsEmailVerifiedRequest](#accounts-v1-IsEmailVerifiedRequest) | [IsEmailVerifiedResponse](#accounts-v1-IsEmailVerifiedResponse) | Is email for the current account verified | + + + + +### AccountsNoAuthService +Service for handling accounts that do not require authentication + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| SignUp | [SignUpRequest](#accounts-v1-SignUpRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create a new user | +| SignIn | [SignInRequest](#accounts-v1-SignInRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Sing in into an existing account | +| ResetPassword | [ResetPasswordRequest](#accounts-v1-ResetPasswordRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Reset the password, if it was lost | +| NewPassword | [NewPasswordRequest](#accounts-v1-NewPasswordRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Set the new password after reset | +| RefreshToken | [.google.protobuf.Empty](#google-protobuf-Empty) | [.google.protobuf.Empty](#google-protobuf-Empty) | Send the refresh token request, token should be passed in the metadata. This rpc does requier auth, but it should be handled not on the middleware level, that's why it set in the NoAuth service | @@ -842,15 +855,24 @@ Service for handling environments - + -### TestService +### TestAuthService + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| Pong | [PongRequest](#test-v1-PongRequest) | [PongResponse](#test-v1-PongResponse) | | + + + + +### TestNoAuthService Service for handling environments | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| | Ping | [PingRequest](#test-v1-PingRequest) | [PingResponse](#test-v1-PingResponse) | | -| Pong | [PongRequest](#test-v1-PongRequest) | [PongResponse](#test-v1-PongResponse) | |