@arbiwallet/contracts 1.0.17 → 1.0.19

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
@@ -30,6 +30,18 @@ export interface GoogleAuthRequest {
30
30
  idToken: string;
31
31
  }
32
32
 
33
+ export interface GoogleAuthStartRequest {
34
+ }
35
+
36
+ export interface GoogleAuthStartResponse {
37
+ authUrl: string;
38
+ }
39
+
40
+ export interface GoogleAuthCallbackRequest {
41
+ code: string;
42
+ state: string;
43
+ }
44
+
33
45
  export interface AppleAuthRequest {
34
46
  identityToken: string;
35
47
  }
@@ -77,6 +89,10 @@ export interface AuthServiceClient {
77
89
 
78
90
  telegramLoginWidgetAuth(request: TelegramLoginWidgetAuthRequest): Observable<AuthTokensResponse>;
79
91
 
92
+ googleAuthStart(request: GoogleAuthStartRequest): Observable<GoogleAuthStartResponse>;
93
+
94
+ googleAuthCallback(request: GoogleAuthCallbackRequest): Observable<AuthTokensResponse>;
95
+
80
96
  googleAuth(request: GoogleAuthRequest): Observable<AuthTokensResponse>;
81
97
 
82
98
  appleAuth(request: AppleAuthRequest): Observable<AuthTokensResponse>;
@@ -101,6 +117,14 @@ export interface AuthServiceController {
101
117
  request: TelegramLoginWidgetAuthRequest,
102
118
  ): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
103
119
 
120
+ googleAuthStart(
121
+ request: GoogleAuthStartRequest,
122
+ ): Promise<GoogleAuthStartResponse> | Observable<GoogleAuthStartResponse> | GoogleAuthStartResponse;
123
+
124
+ googleAuthCallback(
125
+ request: GoogleAuthCallbackRequest,
126
+ ): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
127
+
104
128
  googleAuth(
105
129
  request: GoogleAuthRequest,
106
130
  ): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
@@ -131,6 +155,8 @@ export function AuthServiceControllerMethods() {
131
155
  const grpcMethods: string[] = [
132
156
  "telegramMiniAppAuth",
133
157
  "telegramLoginWidgetAuth",
158
+ "googleAuthStart",
159
+ "googleAuthCallback",
134
160
  "googleAuth",
135
161
  "appleAuth",
136
162
  "requestContactCode",
package/gen/kyc.ts CHANGED
@@ -57,36 +57,12 @@ export interface GetVerificationStatusResponse {
57
57
  updatedAtMs: number;
58
58
  }
59
59
 
60
- export interface SumsubWebhookVerification {
60
+ export interface ApplySumsubWebhookRequest {
61
61
  payloadDigest: string;
62
62
  payloadDigestAlg: string;
63
63
  rawBody: Uint8Array;
64
64
  }
65
65
 
66
- export interface WebhookReviewResultMessage {
67
- reviewAnswer: string;
68
- rejectLabels: string[];
69
- reviewRejectType: string;
70
- moderationComment: string;
71
- clientComment: string;
72
- }
73
-
74
- export interface SumsubWebhookPayload {
75
- applicantId: string;
76
- externalUserId: string;
77
- type: string;
78
- correlationId: string;
79
- reviewStatus: string;
80
- reviewResult: WebhookReviewResultMessage | undefined;
81
- createdAtMs: number;
82
- inspectionId: string;
83
- }
84
-
85
- export interface ApplySumsubWebhookRequest {
86
- verification: SumsubWebhookVerification | undefined;
87
- payload: SumsubWebhookPayload | undefined;
88
- }
89
-
90
66
  export interface ApplySumsubWebhookResponse {
91
67
  ok: boolean;
92
68
  }
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.17",
4
+ "version": "1.0.19",
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
@@ -4,6 +4,8 @@ package auth;
4
4
  service AuthService {
5
5
  rpc TelegramMiniAppAuth (TelegramMiniAppAuthRequest) returns (AuthTokensResponse);
6
6
  rpc TelegramLoginWidgetAuth (TelegramLoginWidgetAuthRequest) returns (AuthTokensResponse);
7
+ rpc GoogleAuthStart (GoogleAuthStartRequest) returns (GoogleAuthStartResponse);
8
+ rpc GoogleAuthCallback (GoogleAuthCallbackRequest) returns (AuthTokensResponse);
7
9
  rpc GoogleAuth (GoogleAuthRequest) returns (AuthTokensResponse);
8
10
  rpc AppleAuth (AppleAuthRequest) returns (AuthTokensResponse);
9
11
  rpc RequestContactCode (ContactCodeRequest) returns (MessageResponse);
@@ -33,6 +35,17 @@ message GoogleAuthRequest {
33
35
  string id_token = 1;
34
36
  }
35
37
 
38
+ message GoogleAuthStartRequest {}
39
+
40
+ message GoogleAuthStartResponse {
41
+ string auth_url = 1;
42
+ }
43
+
44
+ message GoogleAuthCallbackRequest {
45
+ string code = 1;
46
+ string state = 2;
47
+ }
48
+
36
49
  message AppleAuthRequest {
37
50
  string identity_token = 1;
38
51
  }
package/proto/kyc.proto CHANGED
@@ -57,36 +57,12 @@ message GetVerificationStatusResponse {
57
57
  int64 updated_at_ms = 9;
58
58
  }
59
59
 
60
- message SumsubWebhookVerification {
60
+ message ApplySumsubWebhookRequest {
61
61
  string payloadDigest = 1;
62
62
  string payloadDigestAlg = 2;
63
63
  bytes rawBody = 3;
64
64
  }
65
65
 
66
- message WebhookReviewResultMessage {
67
- string reviewAnswer = 1;
68
- repeated string rejectLabels = 2;
69
- string reviewRejectType = 3;
70
- string moderationComment = 4;
71
- string clientComment = 5;
72
- }
73
-
74
- message SumsubWebhookPayload {
75
- string applicantId = 1;
76
- string externalUserId = 2;
77
- string type = 3;
78
- string correlationId = 4;
79
- string reviewStatus = 5;
80
- WebhookReviewResultMessage reviewResult = 6;
81
- int64 createdAtMs = 7;
82
- string inspectionId = 8;
83
- }
84
-
85
- message ApplySumsubWebhookRequest {
86
- SumsubWebhookVerification verification = 1;
87
- SumsubWebhookPayload payload = 2;
88
- }
89
-
90
66
  message ApplySumsubWebhookResponse {
91
67
  bool ok = 1;
92
68
  }