@alebooking/contracts 1.0.13 → 1.0.14

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
@@ -44,17 +44,13 @@ export interface TelegramInitResponse {
44
44
  url: string;
45
45
  }
46
46
 
47
- export interface TelegramVerifyRequestQuery {
48
- id: number;
49
- firstName: string;
50
- lastName: string;
51
- username: string;
52
- photoUrl: string;
53
- hash: string;
47
+ export interface TelegramVerifyRequest {
48
+ query: { [key: string]: string };
54
49
  }
55
50
 
56
- export interface TelegramVerifyRequest {
57
- query: TelegramVerifyRequestQuery | undefined;
51
+ export interface TelegramVerifyRequest_QueryEntry {
52
+ key: string;
53
+ value: string;
58
54
  }
59
55
 
60
56
  export interface TelegramVerifyResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alebooking/contracts",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Protobug definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -46,16 +46,8 @@ message TelegramInitResponse {
46
46
  string url = 1;
47
47
  }
48
48
 
49
- message TelegramVerifyRequestQuery {
50
- int32 id = 1;
51
- string first_name = 2;
52
- string last_name = 3;
53
- string username = 4;
54
- string photo_url = 5;
55
- string hash = 7;
56
- }
57
49
  message TelegramVerifyRequest {
58
- TelegramVerifyRequestQuery query = 1;
50
+ map<string, string> query = 1;
59
51
  }
60
52
 
61
53
  message TelegramVerifyResponse {