@candesk/contracts 3.4.1 → 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 {
@@ -43,7 +43,6 @@ export interface TelegramVerifyResponse {
43
43
  url: string;
44
44
  accessToken: string;
45
45
  refreshToken: string;
46
- /** secret for the browser that started the login, set only together with url */
47
46
  pollToken: string;
48
47
  }
49
48
  export interface TelegramCompleteRequest {
@@ -53,7 +52,6 @@ export interface TelegramCompleteRequest {
53
52
  }
54
53
  export interface TelegramCompleteResponse {
55
54
  sessionId: string;
56
- /** true when the bot finished linking Telegram to a logged-in account, session_id is empty then */
57
55
  linked: boolean;
58
56
  }
59
57
  export interface TelegramConsumeRequest {
@@ -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 {
@@ -44,7 +44,6 @@ export interface TelegramVerifyResponse {
44
44
  url: string;
45
45
  accessToken: string;
46
46
  refreshToken: string;
47
- /** secret for the browser that started the login, set only together with url */
48
47
  pollToken: string;
49
48
  }
50
49
  export interface TelegramCompleteRequest {
@@ -54,7 +53,6 @@ export interface TelegramCompleteRequest {
54
53
  }
55
54
  export interface TelegramCompleteResponse {
56
55
  sessionId: string;
57
- /** true when the bot finished linking Telegram to a logged-in account, session_id is empty then */
58
56
  linked: boolean;
59
57
  }
60
58
  export interface TelegramConsumeRequest {
@@ -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.1",
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
@@ -69,7 +69,6 @@ message TelegramVerifyResponse {
69
69
  string url = 1;
70
70
  string access_token = 2;
71
71
  string refresh_token = 3;
72
- // secret for the browser that started the login, set only together with url
73
72
  string poll_token = 4;
74
73
  }
75
74
 
@@ -81,7 +80,6 @@ message TelegramCompleteRequest {
81
80
 
82
81
  message TelegramCompleteResponse {
83
82
  string session_id = 1;
84
- // true when the bot finished linking Telegram to a logged-in account, session_id is empty then
85
83
  bool linked = 2;
86
84
  }
87
85