@candesk/contracts 3.4.0 → 3.4.2

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.
@@ -1,5 +1 @@
1
- /**
2
- * How long a Telegram login waits to be finished in the bot: auth-service keeps
3
- * the login session, gateway the poll cookie and bot-service the chat session.
4
- */
5
1
  export declare const TELEGRAM_SESSION_TTL_SECONDS: number;
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TELEGRAM_SESSION_TTL_SECONDS = void 0;
4
- /**
5
- * How long a Telegram login waits to be finished in the bot: auth-service keeps
6
- * the login session, gateway the poll cookie and bot-service the chat session.
7
- */
8
4
  exports.TELEGRAM_SESSION_TTL_SECONDS = 5 * 60;
@@ -44,7 +44,6 @@ export interface LinkTelegramRequest_QueryEntry {
44
44
  }
45
45
  export interface LinkTelegramResponse {
46
46
  linked: boolean;
47
- /** bot link where the user shares the phone number, set only when not linked yet */
48
47
  url: string;
49
48
  }
50
49
  export interface UnlinkTelegramRequest {
@@ -40,11 +40,9 @@ export interface TelegramVerifyRequest_QueryEntry {
40
40
  value: string;
41
41
  }
42
42
  export interface TelegramVerifyResponse {
43
- /** bot link when the phone number is still needed, the tokens are empty then */
44
43
  url: string;
45
44
  accessToken: string;
46
45
  refreshToken: string;
47
- /** secret for the browser that started the login, set only together with url */
48
46
  pollToken: string;
49
47
  }
50
48
  export interface TelegramCompleteRequest {
@@ -54,7 +52,6 @@ export interface TelegramCompleteRequest {
54
52
  }
55
53
  export interface TelegramCompleteResponse {
56
54
  sessionId: string;
57
- /** true when the bot finished linking Telegram to a logged-in account, session_id is empty then */
58
55
  linked: boolean;
59
56
  }
60
57
  export interface TelegramConsumeRequest {
@@ -76,7 +73,6 @@ export interface TelegramStatusRequest {
76
73
  telegramId: string;
77
74
  }
78
75
  export interface TelegramStatusResponse {
79
- /** true when Telegram login lets this user in right away */
80
76
  linked: boolean;
81
77
  }
82
78
  export interface AuthService {
@@ -45,7 +45,6 @@ export interface LinkTelegramRequest_QueryEntry {
45
45
  }
46
46
  export interface LinkTelegramResponse {
47
47
  linked: boolean;
48
- /** bot link where the user shares the phone number, set only when not linked yet */
49
48
  url: string;
50
49
  }
51
50
  export interface UnlinkTelegramRequest {
@@ -41,11 +41,9 @@ export interface TelegramVerifyRequest_QueryEntry {
41
41
  value: string;
42
42
  }
43
43
  export interface TelegramVerifyResponse {
44
- /** bot link when the phone number is still needed, the tokens are empty then */
45
44
  url: string;
46
45
  accessToken: string;
47
46
  refreshToken: string;
48
- /** secret for the browser that started the login, set only together with url */
49
47
  pollToken: string;
50
48
  }
51
49
  export interface TelegramCompleteRequest {
@@ -55,7 +53,6 @@ export interface TelegramCompleteRequest {
55
53
  }
56
54
  export interface TelegramCompleteResponse {
57
55
  sessionId: string;
58
- /** true when the bot finished linking Telegram to a logged-in account, session_id is empty then */
59
56
  linked: boolean;
60
57
  }
61
58
  export interface TelegramConsumeRequest {
@@ -77,7 +74,6 @@ export interface TelegramStatusRequest {
77
74
  telegramId: string;
78
75
  }
79
76
  export interface TelegramStatusResponse {
80
- /** true when Telegram login lets this user in right away */
81
77
  linked: boolean;
82
78
  }
83
79
  export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
@@ -1,7 +1,3 @@
1
- /**
2
- * proto-loader options for every gRPC server and client. Runtime values must match
3
- * the generated types: enums stay numeric, int64 comes as a string (`forceLong=string`).
4
- */
5
1
  export declare const PROTO_LOADER_OPTIONS: {
6
2
  readonly longs: StringConstructor;
7
3
  readonly defaults: true;
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROTO_LOADER_OPTIONS = void 0;
4
- /**
5
- * proto-loader options for every gRPC server and client. Runtime values must match
6
- * the generated types: enums stay numeric, int64 comes as a string (`forceLong=string`).
7
- */
8
4
  exports.PROTO_LOADER_OPTIONS = {
9
5
  longs: String,
10
6
  defaults: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "Protobuf contracts for Candesk microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -53,7 +53,6 @@ message LinkTelegramRequest {
53
53
 
54
54
  message LinkTelegramResponse {
55
55
  bool linked = 1;
56
- // bot link where the user shares the phone number, set only when not linked yet
57
56
  string url = 2;
58
57
  }
59
58
 
package/proto/auth.proto CHANGED
@@ -66,11 +66,9 @@ message TelegramVerifyRequest {
66
66
  }
67
67
 
68
68
  message TelegramVerifyResponse {
69
- // bot link when the phone number is still needed, the tokens are empty then
70
69
  string url = 1;
71
70
  string access_token = 2;
72
71
  string refresh_token = 3;
73
- // secret for the browser that started the login, set only together with url
74
72
  string poll_token = 4;
75
73
  }
76
74
 
@@ -82,7 +80,6 @@ message TelegramCompleteRequest {
82
80
 
83
81
  message TelegramCompleteResponse {
84
82
  string session_id = 1;
85
- // true when the bot finished linking Telegram to a logged-in account, session_id is empty then
86
83
  bool linked = 2;
87
84
  }
88
85
 
@@ -110,6 +107,5 @@ message TelegramStatusRequest {
110
107
  }
111
108
 
112
109
  message TelegramStatusResponse {
113
- // true when Telegram login lets this user in right away
114
110
  bool linked = 1;
115
111
  }