@ciganov/contracts 1.0.0 → 1.0.1

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.
@@ -2,14 +2,12 @@ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "auth.v1";
3
3
  export interface SendOtpRequest {
4
4
  identifier: string;
5
- type: string;
6
5
  }
7
6
  export interface SendOtpResponse {
8
7
  ok: boolean;
9
8
  }
10
9
  export interface VerifyOtpRequest {
11
10
  identifier: string;
12
- type: string;
13
11
  code: string;
14
12
  }
15
13
  export interface VerifyOtpResponse {
package/dist/gen/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.6
4
+ // protoc-gen-ts_proto v2.10.1
5
5
  // protoc v6.33.2
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciganov/contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Protobuf definitions and generated ts types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -9,7 +9,6 @@ service AuthService {
9
9
 
10
10
  message SendOtpRequest {
11
11
  string identifier = 1;
12
- string type = 2;
13
12
  }
14
13
 
15
14
  message SendOtpResponse {
@@ -18,8 +17,7 @@ message SendOtpResponse {
18
17
 
19
18
  message VerifyOtpRequest {
20
19
  string identifier = 1;
21
- string type = 2;
22
- string code = 3;
20
+ string code = 2;
23
21
  }
24
22
 
25
23
  message VerifyOtpResponse {