@pga-cinema/contracts 1.0.7 → 1.0.8

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
@@ -45,12 +45,13 @@ export interface TelegramInitResponse {
45
45
  }
46
46
 
47
47
  export interface TelegramVerifyRequest {
48
- query: { [key: string]: string };
49
- }
50
-
51
- export interface TelegramVerifyRequest_QueryEntry {
52
- key: string;
53
- value: string;
48
+ id: number;
49
+ firstName: string;
50
+ lastName: string;
51
+ username: string;
52
+ photoUrl: string;
53
+ authDate: number;
54
+ hash: string;
54
55
  }
55
56
 
56
57
  export interface TelegramVerifyResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pga-cinema/contracts",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
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
@@ -47,7 +47,13 @@ message TelegramInitResponse {
47
47
  }
48
48
 
49
49
  message TelegramVerifyRequest {
50
- map<string, string> query = 1;
50
+ int64 id = 1;
51
+ string first_name = 2;
52
+ string last_name = 3;
53
+ string username = 4;
54
+ string photo_url = 5;
55
+ int64 auth_date = 6;
56
+ string hash = 7;
51
57
  }
52
58
 
53
59
  message TelegramVerifyResponse {