-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/users-user_id
- Loading branch information
Showing
15 changed files
with
501 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: rebase and rebuild openapi | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
rebase_and_rebuild_openapi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.inputs.ref }} | ||
- name: Rebase | ||
run: git rebase main | ||
- name: Rebuild OpenAPI | ||
run: | | ||
make build | ||
- name: Commit and push | ||
run: | | ||
git config --global user.name "GitHub Actions Bot" | ||
git config --global user.email "<[email protected]>" | ||
git add . | ||
git commit -m "Rebuild OpenAPI" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
syntax = "proto3"; | ||
|
||
package proto.schema.auth.discord; | ||
|
||
import "proto/third_party/google/api/annotations.proto"; | ||
import "proto/third_party/google/api/empty.proto"; | ||
import "proto/third_party/google/api/wrappers.proto"; | ||
|
||
option go_package = "./"; | ||
|
||
service DiscordService { | ||
rpc GetDiscord(google.protobuf.Empty) returns (google.protobuf.StringValue) { | ||
option (google.api.http) = { | ||
post : "/v1/auth/discord" | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
syntax = "proto3"; | ||
|
||
package proto.schema.auth.sign_up.resources; | ||
|
||
option go_package = "./"; | ||
|
||
message InitialAccountTemplate { | ||
string name = 1; | ||
string email = 2; | ||
string password = 3; | ||
string display_name = 4; | ||
string avatar_url = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
|
||
package proto.schema.auth.sign_up; | ||
|
||
import "proto/schema/auth/sign_up/resources/signup.proto"; | ||
import "proto/schema/users/me/resources/me.proto"; | ||
|
||
import "proto/third_party/google/api/annotations.proto"; | ||
|
||
option go_package = "./"; | ||
|
||
service SignUpService { | ||
rpc PostSignUp(proto.schema.auth.sign_up.resources.InitialAccountTemplate) | ||
returns (proto.schema.users.me.resources.Account) { | ||
option (google.api.http) = { | ||
post : "/v1/auth/sign_up" | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
syntax = "proto3"; | ||
|
||
package proto.schema.auth.token.rpc; | ||
|
||
option go_package = "./"; | ||
|
||
message PostTokenRequest { string refresh_token = 1; } | ||
|
||
message PostTokenResponse { | ||
string expired_at = 1; | ||
string refresh_token = 2; | ||
string access_token = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
syntax = "proto3"; | ||
|
||
package proto.token; | ||
|
||
import "proto/schema/auth/token/rpc/token.proto"; | ||
import "proto/third_party/google/api/annotations.proto"; | ||
|
||
option go_package = "./"; | ||
|
||
service TokenService { | ||
rpc PostToken(proto.schema.auth.token.rpc.PostTokenRequest) | ||
returns (proto.schema.auth.token.rpc.PostTokenResponse) { | ||
option (google.api.http) = { | ||
post : "/v1/auth/token" | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
syntax = "proto3"; | ||
|
||
package proto.schema.users.me; | ||
|
||
import "proto/schema/users/me/resources/me.proto"; | ||
import "proto/schema/users/me/rpc/me.proto"; | ||
|
||
import "proto/third_party/google/api/empty.proto"; | ||
import "proto/third_party/google/api/annotations.proto"; | ||
|
||
option go_package = "./"; | ||
|
||
service MeService { | ||
rpc GetMe(google.protobuf.Empty) | ||
returns (proto.schema.users.me.resources.Account) { | ||
option (google.api.http) = { | ||
get : "/v1/users/@me" | ||
}; | ||
}; | ||
|
||
rpc PutMe(proto.schema.users.me.rpc.AccountPatcher) | ||
returns (proto.schema.users.me.resources.Account) { | ||
option (google.api.http) = { | ||
put : "/v1/users/@me" | ||
body : "*" | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ message Account { | |
"\"updated_at\": \"2024-01-11T07:56:02.206Z\"" | ||
"}" | ||
}; | ||
} | ||
} |
Oops, something went wrong.