@citec-spbu/contracts 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ export interface GithubLoginRequest {
12
12
  username: string;
13
13
  profileUrl: string;
14
14
  avatarUrl: string;
15
- role?: Role | undefined;
15
+ role: Role;
16
16
  }
17
17
  export interface GithubLoginResponse {
18
18
  tokens: TokenPair | undefined;
@@ -1,4 +1,5 @@
1
1
  export declare const PROTO_PATHS: {
2
+ readonly ROOT: string;
2
3
  readonly AUTH: string;
3
4
  readonly ACCOUNT: string;
4
5
  readonly USERS: string;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROTO_PATHS = void 0;
4
4
  const node_path_1 = require("node:path");
5
5
  exports.PROTO_PATHS = {
6
+ ROOT: (0, node_path_1.join)(__dirname, "../../proto/"),
6
7
  AUTH: (0, node_path_1.join)(__dirname, "../../proto/auth.proto"),
7
8
  ACCOUNT: (0, node_path_1.join)(__dirname, "../../proto/account.proto"),
8
9
  USERS: (0, node_path_1.join)(__dirname, "../../proto/users.proto"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citec-spbu/contracts",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -18,7 +18,7 @@ message GithubLoginRequest {
18
18
  string username = 3;
19
19
  string profile_url = 4;
20
20
  string avatar_url = 5;
21
- optional account.v1.Role role = 6;
21
+ account.v1.Role role = 6;
22
22
  }
23
23
 
24
24
  message GithubLoginResponse {