@teacinema-st/contracts 1.0.1 → 1.0.3

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.
package/gen/auth.ts CHANGED
@@ -7,7 +7,6 @@
7
7
  /* eslint-disable */
8
8
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
9
  import { Observable } from "rxjs";
10
- import { Timestamp } from "./google/protobuf/timestamp";
11
10
 
12
11
  export const protobufPackage = "auth.v1";
13
12
 
@@ -22,14 +21,13 @@ export interface SendOtpResponse {
22
21
 
23
22
  export interface VerifyOtpRequest {
24
23
  identifier: string;
24
+ type: string;
25
25
  code: string;
26
26
  }
27
27
 
28
28
  export interface VerifyOtpResponse {
29
29
  accessToken: string;
30
30
  refreshToken: string;
31
- accessTokenExpiresAt: Timestamp | undefined;
32
- refreshTokenExpiresAt: Timestamp | undefined;
33
31
  }
34
32
 
35
33
  export const AUTH_V1_PACKAGE_NAME = "auth.v1";
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@teacinema-st/contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
+ "main": ".dist/index.js",
6
+ "types": ".dist/index.d.ts",
5
7
  "scripts": {
8
+ "build": "tsc -p tsconfig.build.json",
6
9
  "generate": "npx protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
10
  },
8
11
  "files": [
@@ -17,5 +20,9 @@
17
20
  "@nestjs/microservices": "^11.1.12",
18
21
  "rxjs": "^7.8.2",
19
22
  "ts-proto": "^2.11.0"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^25.1.0",
26
+ "typescript": "^5.9.3"
20
27
  }
21
28
  }
package/proto/auth.proto CHANGED
@@ -22,12 +22,11 @@ message SendOtpResponse {
22
22
 
23
23
  message VerifyOtpRequest {
24
24
  string identifier = 1;
25
- string code = 2;
25
+ string type = 2;
26
+ string code = 3;
26
27
  }
27
28
 
28
29
  message VerifyOtpResponse {
29
30
  string access_token = 1;
30
31
  string refresh_token = 2;
31
- google.protobuf.Timestamp access_token_expires_at = 3;
32
- google.protobuf.Timestamp refresh_token_expires_at = 4;
33
32
  }