@arbiwallet/contracts 1.0.15 → 1.0.17
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 +0 -7
- package/gen/kyc.ts +8 -8
- package/package.json +1 -1
- package/proto/auth.proto +0 -1
- package/proto/kyc.proto +21 -21
package/gen/auth.ts
CHANGED
|
@@ -73,8 +73,6 @@ export interface MeResponse {
|
|
|
73
73
|
export const AUTH_PACKAGE_NAME = "auth";
|
|
74
74
|
|
|
75
75
|
export interface AuthServiceClient {
|
|
76
|
-
telegramAuth(request: TelegramLoginWidgetAuthRequest): Observable<AuthTokensResponse>;
|
|
77
|
-
|
|
78
76
|
telegramMiniAppAuth(request: TelegramMiniAppAuthRequest): Observable<AuthTokensResponse>;
|
|
79
77
|
|
|
80
78
|
telegramLoginWidgetAuth(request: TelegramLoginWidgetAuthRequest): Observable<AuthTokensResponse>;
|
|
@@ -95,10 +93,6 @@ export interface AuthServiceClient {
|
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
export interface AuthServiceController {
|
|
98
|
-
telegramAuth(
|
|
99
|
-
request: TelegramLoginWidgetAuthRequest,
|
|
100
|
-
): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
|
|
101
|
-
|
|
102
96
|
telegramMiniAppAuth(
|
|
103
97
|
request: TelegramMiniAppAuthRequest,
|
|
104
98
|
): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
|
|
@@ -135,7 +129,6 @@ export interface AuthServiceController {
|
|
|
135
129
|
export function AuthServiceControllerMethods() {
|
|
136
130
|
return function (constructor: Function) {
|
|
137
131
|
const grpcMethods: string[] = [
|
|
138
|
-
"telegramAuth",
|
|
139
132
|
"telegramMiniAppAuth",
|
|
140
133
|
"telegramLoginWidgetAuth",
|
|
141
134
|
"googleAuth",
|
package/gen/kyc.ts
CHANGED
|
@@ -57,6 +57,12 @@ export interface GetVerificationStatusResponse {
|
|
|
57
57
|
updatedAtMs: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export interface SumsubWebhookVerification {
|
|
61
|
+
payloadDigest: string;
|
|
62
|
+
payloadDigestAlg: string;
|
|
63
|
+
rawBody: Uint8Array;
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
export interface WebhookReviewResultMessage {
|
|
61
67
|
reviewAnswer: string;
|
|
62
68
|
rejectLabels: string[];
|
|
@@ -68,7 +74,7 @@ export interface WebhookReviewResultMessage {
|
|
|
68
74
|
export interface SumsubWebhookPayload {
|
|
69
75
|
applicantId: string;
|
|
70
76
|
externalUserId: string;
|
|
71
|
-
|
|
77
|
+
type: string;
|
|
72
78
|
correlationId: string;
|
|
73
79
|
reviewStatus: string;
|
|
74
80
|
reviewResult: WebhookReviewResultMessage | undefined;
|
|
@@ -76,15 +82,9 @@ export interface SumsubWebhookPayload {
|
|
|
76
82
|
inspectionId: string;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
|
-
export interface SumsubWebhookVerification {
|
|
80
|
-
payloadDigest: string;
|
|
81
|
-
payloadDigestAlg: string;
|
|
82
|
-
rawBody: Uint8Array;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
85
|
export interface ApplySumsubWebhookRequest {
|
|
86
|
-
payload: SumsubWebhookPayload | undefined;
|
|
87
86
|
verification: SumsubWebhookVerification | undefined;
|
|
87
|
+
payload: SumsubWebhookPayload | undefined;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export interface ApplySumsubWebhookResponse {
|
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.
|
|
4
|
+
"version": "1.0.17",
|
|
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
|
@@ -2,7 +2,6 @@ syntax = "proto3";
|
|
|
2
2
|
package auth;
|
|
3
3
|
|
|
4
4
|
service AuthService {
|
|
5
|
-
rpc TelegramAuth (TelegramLoginWidgetAuthRequest) returns (AuthTokensResponse);
|
|
6
5
|
rpc TelegramMiniAppAuth (TelegramMiniAppAuthRequest) returns (AuthTokensResponse);
|
|
7
6
|
rpc TelegramLoginWidgetAuth (TelegramLoginWidgetAuthRequest) returns (AuthTokensResponse);
|
|
8
7
|
rpc GoogleAuth (GoogleAuthRequest) returns (AuthTokensResponse);
|
package/proto/kyc.proto
CHANGED
|
@@ -57,34 +57,34 @@ message GetVerificationStatusResponse {
|
|
|
57
57
|
int64 updated_at_ms = 9;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
message
|
|
61
|
-
string
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
string moderation_comment = 4;
|
|
65
|
-
string client_comment = 5;
|
|
60
|
+
message SumsubWebhookVerification {
|
|
61
|
+
string payloadDigest = 1;
|
|
62
|
+
string payloadDigestAlg = 2;
|
|
63
|
+
bytes rawBody = 3;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
|
-
message
|
|
69
|
-
string
|
|
70
|
-
string
|
|
71
|
-
string
|
|
72
|
-
string
|
|
73
|
-
string
|
|
74
|
-
WebhookReviewResultMessage review_result = 6;
|
|
75
|
-
int64 created_at_ms = 7;
|
|
76
|
-
string inspection_id = 8;
|
|
66
|
+
message WebhookReviewResultMessage {
|
|
67
|
+
string reviewAnswer = 1;
|
|
68
|
+
repeated string rejectLabels = 2;
|
|
69
|
+
string reviewRejectType = 3;
|
|
70
|
+
string moderationComment = 4;
|
|
71
|
+
string clientComment = 5;
|
|
77
72
|
}
|
|
78
73
|
|
|
79
|
-
message
|
|
80
|
-
string
|
|
81
|
-
string
|
|
82
|
-
|
|
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
83
|
}
|
|
84
84
|
|
|
85
85
|
message ApplySumsubWebhookRequest {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
SumsubWebhookVerification verification = 1;
|
|
87
|
+
SumsubWebhookPayload payload = 2;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
message ApplySumsubWebhookResponse {
|