@arbiwallet/contracts 1.0.3 → 1.0.4

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
@@ -11,20 +11,10 @@ import { Observable } from "rxjs";
11
11
  export const protobufPackage = "auth";
12
12
 
13
13
  export interface TelegramAuthRequest {
14
- /** Telegram user id */
15
- id: number;
16
- /** может быть пустым */
17
- username: string;
18
- /** может быть пустым */
19
- firstName: string;
20
- /** может быть пустым */
21
- lastName: string;
22
- /** может быть пустым */
23
- photoUrl: string;
24
- /** unix time (seconds) */
25
- authDate: number;
26
- /** подпись от Telegram */
27
- hash: string;
14
+ /**
15
+ * Telegram.WebApp.initData (raw query string).
16
+ * Contains auth_date, hash, user (JSON), query_id, etc.
17
+ */
28
18
  initData: string;
29
19
  }
30
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
package/proto/auth.proto CHANGED
@@ -6,14 +6,9 @@ service TelegramAuthService {
6
6
  }
7
7
 
8
8
  message TelegramAuthRequest {
9
- int64 id = 1; // Telegram user id
10
- string username = 2; // может быть пустым
11
- string first_name = 3; // может быть пустым
12
- string last_name = 4; // может быть пустым
13
- string photo_url = 5; // может быть пустым
14
- int64 auth_date = 6; // unix time (seconds)
15
- string hash = 7; // подпись от Telegram
16
- string init_data = 8;
9
+ // Telegram.WebApp.initData (raw query string).
10
+ // Contains auth_date, hash, user (JSON), query_id, etc.
11
+ string init_data = 1;
17
12
  }
18
13
 
19
14
  message TelegramAuthResponse {