@meshtrade/api-web 1.57.0 → 1.59.0
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/dist/meshtrade/compliance/client/v1/client_pb.d.ts +73 -9
- package/dist/meshtrade/compliance/client/v1/client_pb.js +2 -1
- package/dist/meshtrade/compliance/client/v1/client_status_pb.d.ts +46 -0
- package/dist/meshtrade/compliance/client/v1/client_status_pb.js +53 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +52 -5
- package/dist/meshtrade/compliance/client/v1/company_pb.js +24 -1
- package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +6 -4
- package/dist/meshtrade/compliance/client/v1/fund_pb.js +2 -1
- package/dist/meshtrade/compliance/client/v1/index.d.ts +1 -0
- package/dist/meshtrade/compliance/client/v1/index.js +1 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +14 -12
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +2 -1
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +160 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +26 -5
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.d.ts +25 -1
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.js +68 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +6 -4
- package/dist/meshtrade/compliance/client/v1/trust_pb.js +2 -1
- package/dist/meshtrade/iam/group/v1/service_pb.d.ts +9 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +1 -1
- package/dist/meshtrade/iam/user_profile/v1/service_pb.d.ts +73 -0
- package/dist/meshtrade/iam/user_profile/v1/service_pb.js +12 -2
- package/dist/meshtrade/iam/user_profile/v1/service_web_meshts.d.ts +7 -1
- package/dist/meshtrade/iam/user_profile/v1/service_web_meshts.js +17 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import type { Company } from "./company_pb";
|
|
|
4
4
|
import type { Fund } from "./fund_pb";
|
|
5
5
|
import type { NaturalPerson } from "./natural_person_pb";
|
|
6
6
|
import type { Trust } from "./trust_pb";
|
|
7
|
+
import type { ClientStatus } from "./client_status_pb";
|
|
7
8
|
import type { VerificationStatus } from "./verification_status_pb";
|
|
8
9
|
import type { Message } from "@bufbuild/protobuf";
|
|
9
10
|
/**
|
|
@@ -56,6 +57,15 @@ export type Client = Message<"meshtrade.compliance.client.v1.Client"> & {
|
|
|
56
57
|
* @generated from field: string display_name = 4;
|
|
57
58
|
*/
|
|
58
59
|
displayName: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* A short, abbreviated name for the client, used for compact display
|
|
63
|
+
* in tables, lists, and other space-constrained UI contexts.
|
|
64
|
+
* Must be 3-4 uppercase alphanumeric characters (e.g., "BTC", "MSFT") or blank.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string short_name = 5;
|
|
67
|
+
*/
|
|
68
|
+
shortName: string;
|
|
59
69
|
/**
|
|
60
70
|
*
|
|
61
71
|
* Contains the specific data for the legal entity type.
|
|
@@ -68,7 +78,7 @@ export type Client = Message<"meshtrade.compliance.client.v1.Client"> & {
|
|
|
68
78
|
*
|
|
69
79
|
* Set when the legal entity is an individual human being.
|
|
70
80
|
*
|
|
71
|
-
* @generated from field: meshtrade.compliance.client.v1.NaturalPerson natural_person =
|
|
81
|
+
* @generated from field: meshtrade.compliance.client.v1.NaturalPerson natural_person = 6;
|
|
72
82
|
*/
|
|
73
83
|
value: NaturalPerson;
|
|
74
84
|
case: "naturalPerson";
|
|
@@ -77,7 +87,7 @@ export type Client = Message<"meshtrade.compliance.client.v1.Client"> & {
|
|
|
77
87
|
*
|
|
78
88
|
* Set when the legal entity is a company or corporation.
|
|
79
89
|
*
|
|
80
|
-
* @generated from field: meshtrade.compliance.client.v1.Company company =
|
|
90
|
+
* @generated from field: meshtrade.compliance.client.v1.Company company = 7;
|
|
81
91
|
*/
|
|
82
92
|
value: Company;
|
|
83
93
|
case: "company";
|
|
@@ -86,7 +96,7 @@ export type Client = Message<"meshtrade.compliance.client.v1.Client"> & {
|
|
|
86
96
|
*
|
|
87
97
|
* Set when the legal entity is an investment fund.
|
|
88
98
|
*
|
|
89
|
-
* @generated from field: meshtrade.compliance.client.v1.Fund fund =
|
|
99
|
+
* @generated from field: meshtrade.compliance.client.v1.Fund fund = 8;
|
|
90
100
|
*/
|
|
91
101
|
value: Fund;
|
|
92
102
|
case: "fund";
|
|
@@ -95,7 +105,7 @@ export type Client = Message<"meshtrade.compliance.client.v1.Client"> & {
|
|
|
95
105
|
*
|
|
96
106
|
* Set when the legal entity is a trust.
|
|
97
107
|
*
|
|
98
|
-
* @generated from field: meshtrade.compliance.client.v1.Trust trust =
|
|
108
|
+
* @generated from field: meshtrade.compliance.client.v1.Trust trust = 9;
|
|
99
109
|
*/
|
|
100
110
|
value: Trust;
|
|
101
111
|
case: "trust";
|
|
@@ -108,25 +118,34 @@ export type Client = Message<"meshtrade.compliance.client.v1.Client"> & {
|
|
|
108
118
|
* The definitive, most recent compliance status of the client (e.g., VERIFICATION_STATUS_VERIFIED, VERIFICATION_STATUS_FAILED).
|
|
109
119
|
* Must always be a valid field
|
|
110
120
|
*
|
|
111
|
-
* @generated from field: meshtrade.compliance.client.v1.VerificationStatus verification_status =
|
|
121
|
+
* @generated from field: meshtrade.compliance.client.v1.VerificationStatus verification_status = 10;
|
|
112
122
|
*/
|
|
113
123
|
verificationStatus: VerificationStatus;
|
|
114
124
|
/**
|
|
115
125
|
*
|
|
116
126
|
* The resource name of the client (acting as a verifier) that last set the
|
|
117
127
|
* `verification_status`. This provides an audit trail for status changes.
|
|
118
|
-
* System
|
|
128
|
+
* System controlled.
|
|
119
129
|
*
|
|
120
|
-
* @generated from field: string verification_authority =
|
|
130
|
+
* @generated from field: string verification_authority = 11;
|
|
121
131
|
*/
|
|
122
132
|
verificationAuthority: string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* The resource name of the client (acting as a verifier) that last set the
|
|
136
|
+
* `verification_status`. This provides an audit trail for status changes.
|
|
137
|
+
* System controlled.
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: string verification_authority_display_name = 12;
|
|
140
|
+
*/
|
|
141
|
+
verificationAuthorityDisplayName: string;
|
|
123
142
|
/**
|
|
124
143
|
*
|
|
125
144
|
* The timestamp when the `verification_status` was last set to a conclusive
|
|
126
145
|
* state, specifically `VERIFICATION_STATUS_VERIFIED`.
|
|
127
146
|
* System set when verification_status changes to VERIFICATION_STATUS_VERIFIED.
|
|
128
147
|
*
|
|
129
|
-
* @generated from field: google.protobuf.Timestamp verification_date =
|
|
148
|
+
* @generated from field: google.protobuf.Timestamp verification_date = 13;
|
|
130
149
|
*/
|
|
131
150
|
verificationDate?: Timestamp;
|
|
132
151
|
/**
|
|
@@ -135,9 +154,54 @@ export type Client = Message<"meshtrade.compliance.client.v1.Client"> & {
|
|
|
135
154
|
* is due. This field drives re-verification workflows.
|
|
136
155
|
* Optional for Verification.
|
|
137
156
|
*
|
|
138
|
-
* @generated from field: google.protobuf.Timestamp next_verification_date =
|
|
157
|
+
* @generated from field: google.protobuf.Timestamp next_verification_date = 14;
|
|
139
158
|
*/
|
|
140
159
|
nextVerificationDate?: Timestamp;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* The date when the client was first registered on the platform.
|
|
163
|
+
* System set on creation.
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: google.protobuf.Timestamp creation_date = 15;
|
|
166
|
+
*/
|
|
167
|
+
creationDate?: Timestamp;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* The operational status of the client on the platform (e.g., active, inactive).
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: meshtrade.compliance.client.v1.ClientStatus status = 16;
|
|
173
|
+
*/
|
|
174
|
+
status: ClientStatus;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* A human-readable reason for the current verification status.
|
|
178
|
+
* For example, this may contain the reason why a verification attempt failed.
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: string verification_status_reason = 17;
|
|
181
|
+
*/
|
|
182
|
+
verificationStatusReason: string;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* A free-text description of the client.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: string description = 18;
|
|
188
|
+
*/
|
|
189
|
+
description: string;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* The version identifier of the Platform-as-a-Service agreement accepted by the client.
|
|
193
|
+
*
|
|
194
|
+
* @generated from field: string paas_agreement_version = 19;
|
|
195
|
+
*/
|
|
196
|
+
paasAgreementVersion: string;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* The role type identifiers that users within this client's group structure may be assigned.
|
|
200
|
+
* These are integer representations of the role enums.
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: repeated int32 roles = 20;
|
|
203
|
+
*/
|
|
204
|
+
roles: number[];
|
|
141
205
|
};
|
|
142
206
|
/**
|
|
143
207
|
* Describes the message meshtrade.compliance.client.v1.Client.
|
|
@@ -11,11 +11,12 @@ const company_pb_1 = require("./company_pb");
|
|
|
11
11
|
const fund_pb_1 = require("./fund_pb");
|
|
12
12
|
const natural_person_pb_1 = require("./natural_person_pb");
|
|
13
13
|
const trust_pb_1 = require("./trust_pb");
|
|
14
|
+
const client_status_pb_1 = require("./client_status_pb");
|
|
14
15
|
const verification_status_pb_1 = require("./verification_status_pb");
|
|
15
16
|
/**
|
|
16
17
|
* Describes the file meshtrade/compliance/client/v1/client.proto.
|
|
17
18
|
*/
|
|
18
|
-
exports.file_meshtrade_compliance_client_v1_client = (0, codegenv2_1.fileDesc)("
|
|
19
|
+
exports.file_meshtrade_compliance_client_v1_client = (0, codegenv2_1.fileDesc)("CittZXNodHJhZGUvY29tcGxpYW5jZS9jbGllbnQvdjEvY2xpZW50LnByb3RvEh5tZXNodHJhZGUuY29tcGxpYW5jZS5jbGllbnQudjEi4AwKBkNsaWVudBLOAQoEbmFtZRgBIAEoC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RlLmFwaS5jb21wbGlhbmNlLmNsaWVudC52MVo6Z2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL2NvbXBsaWFuY2UvY2xpZW50L3YxO2NsaWVudF92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate, wkt_1.file_google_protobuf_timestamp, company_pb_1.file_meshtrade_compliance_client_v1_company, fund_pb_1.file_meshtrade_compliance_client_v1_fund, natural_person_pb_1.file_meshtrade_compliance_client_v1_natural_person, trust_pb_1.file_meshtrade_compliance_client_v1_trust, client_status_pb_1.file_meshtrade_compliance_client_v1_client_status, verification_status_pb_1.file_meshtrade_compliance_client_v1_verification_status]);
|
|
19
20
|
/**
|
|
20
21
|
* Describes the message meshtrade.compliance.client.v1.Client.
|
|
21
22
|
* Use `create(ClientSchema)` to create a new message.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
/**
|
|
3
|
+
* Describes the file meshtrade/compliance/client/v1/client_status.proto.
|
|
4
|
+
*/
|
|
5
|
+
export declare const file_meshtrade_compliance_client_v1_client_status: GenFile;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* ClientStatus defines the operational status of a client on the platform.
|
|
9
|
+
*
|
|
10
|
+
* @generated from enum meshtrade.compliance.client.v1.ClientStatus
|
|
11
|
+
*/
|
|
12
|
+
export declare enum ClientStatus {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Unknown or not specified.
|
|
16
|
+
* This is a default value to prevent accidental assignment and should not be used.
|
|
17
|
+
*
|
|
18
|
+
* @generated from enum value: CLIENT_STATUS_UNSPECIFIED = 0;
|
|
19
|
+
*/
|
|
20
|
+
UNSPECIFIED = 0,
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* The client is active and can operate on the platform.
|
|
24
|
+
*
|
|
25
|
+
* @generated from enum value: CLIENT_STATUS_ACTIVE = 1;
|
|
26
|
+
*/
|
|
27
|
+
ACTIVE = 1,
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* The client has been deactivated and cannot operate on the platform.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum value: CLIENT_STATUS_INACTIVE = 2;
|
|
33
|
+
*/
|
|
34
|
+
INACTIVE = 2,
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* The client's profile is still being completed and is not yet ready for verification.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: CLIENT_STATUS_COMPLETE_PROFILE = 3;
|
|
40
|
+
*/
|
|
41
|
+
COMPLETE_PROFILE = 3
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Describes the enum meshtrade.compliance.client.v1.ClientStatus.
|
|
45
|
+
*/
|
|
46
|
+
export declare const ClientStatusSchema: GenEnum<ClientStatus>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/compliance/client/v1/client_status.proto (package meshtrade.compliance.client.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ClientStatusSchema = exports.ClientStatus = exports.file_meshtrade_compliance_client_v1_client_status = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file meshtrade/compliance/client/v1/client_status.proto.
|
|
10
|
+
*/
|
|
11
|
+
exports.file_meshtrade_compliance_client_v1_client_status = (0, codegenv2_1.fileDesc)("CjJtZXNodHJhZGUvY29tcGxpYW5jZS9jbGllbnQvdjEvY2xpZW50X3N0YXR1cy5wcm90bxIebWVzaHRyYWRlLmNvbXBsaWFuY2UuY2xpZW50LnYxKocBCgxDbGllbnRTdGF0dXMSHQoZQ0xJRU5UX1NUQVRVU19VTlNQRUNJRklFRBAAEhgKFENMSUVOVF9TVEFUVVNfQUNUSVZFEAESGgoWQ0xJRU5UX1NUQVRVU19JTkFDVElWRRACEiIKHkNMSUVOVF9TVEFUVVNfQ09NUExFVEVfUFJPRklMRRADQmMKJWNvLm1lc2h0cmFkZS5hcGkuY29tcGxpYW5jZS5jbGllbnQudjFaOmdpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby9jb21wbGlhbmNlL2NsaWVudC92MTtjbGllbnRfdjFiBnByb3RvMw");
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* ClientStatus defines the operational status of a client on the platform.
|
|
15
|
+
*
|
|
16
|
+
* @generated from enum meshtrade.compliance.client.v1.ClientStatus
|
|
17
|
+
*/
|
|
18
|
+
var ClientStatus;
|
|
19
|
+
(function (ClientStatus) {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* Unknown or not specified.
|
|
23
|
+
* This is a default value to prevent accidental assignment and should not be used.
|
|
24
|
+
*
|
|
25
|
+
* @generated from enum value: CLIENT_STATUS_UNSPECIFIED = 0;
|
|
26
|
+
*/
|
|
27
|
+
ClientStatus[ClientStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* The client is active and can operate on the platform.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum value: CLIENT_STATUS_ACTIVE = 1;
|
|
33
|
+
*/
|
|
34
|
+
ClientStatus[ClientStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* The client has been deactivated and cannot operate on the platform.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: CLIENT_STATUS_INACTIVE = 2;
|
|
40
|
+
*/
|
|
41
|
+
ClientStatus[ClientStatus["INACTIVE"] = 2] = "INACTIVE";
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* The client's profile is still being completed and is not yet ready for verification.
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum value: CLIENT_STATUS_COMPLETE_PROFILE = 3;
|
|
47
|
+
*/
|
|
48
|
+
ClientStatus[ClientStatus["COMPLETE_PROFILE"] = 3] = "COMPLETE_PROFILE";
|
|
49
|
+
})(ClientStatus || (exports.ClientStatus = ClientStatus = {}));
|
|
50
|
+
/**
|
|
51
|
+
* Describes the enum meshtrade.compliance.client.v1.ClientStatus.
|
|
52
|
+
*/
|
|
53
|
+
exports.ClientStatusSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_compliance_client_v1_client_status, 0);
|
|
@@ -4,8 +4,10 @@ import type { CompanyRepresentative } from "./company_representative_pb";
|
|
|
4
4
|
import type { Fund } from "./fund_pb";
|
|
5
5
|
import type { IndustryClassification } from "./industry_classification_pb";
|
|
6
6
|
import type { NaturalPerson } from "./natural_person_pb";
|
|
7
|
+
import type { TaxResidency } from "./tax_residency_pb";
|
|
7
8
|
import type { Trust } from "./trust_pb";
|
|
8
9
|
import type { Address } from "../../../type/v1/address_pb";
|
|
10
|
+
import type { ContactDetails } from "../../../type/v1/contact_details_pb";
|
|
9
11
|
import type { Decimal } from "../../../type/v1/decimal_pb";
|
|
10
12
|
import type { Message } from "@bufbuild/protobuf";
|
|
11
13
|
/**
|
|
@@ -29,6 +31,14 @@ export type Company = Message<"meshtrade.compliance.client.v1.Company"> & {
|
|
|
29
31
|
* @generated from field: string registered_name = 1;
|
|
30
32
|
*/
|
|
31
33
|
registeredName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* The business or trading name, which may differ from the official registered name.
|
|
37
|
+
* For example, a company registered as "Acme Corp (Pty) Ltd" may trade as "Acme".
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: string business_name = 2;
|
|
40
|
+
*/
|
|
41
|
+
businessName: string;
|
|
32
42
|
/**
|
|
33
43
|
*
|
|
34
44
|
* The unique number assigned by the relevant companies registry upon incorporation.
|
|
@@ -40,12 +50,13 @@ export type Company = Message<"meshtrade.compliance.client.v1.Company"> & {
|
|
|
40
50
|
registrationNumber: string;
|
|
41
51
|
/**
|
|
42
52
|
*
|
|
43
|
-
* The
|
|
44
|
-
*
|
|
53
|
+
* The company's tax residency information, required for CRS/FATCA reporting.
|
|
54
|
+
* A company can be a tax resident in multiple jurisdictions.
|
|
55
|
+
* Required for verification.
|
|
45
56
|
*
|
|
46
|
-
* @generated from field:
|
|
57
|
+
* @generated from field: repeated meshtrade.compliance.client.v1.TaxResidency tax_residencies = 4;
|
|
47
58
|
*/
|
|
48
|
-
|
|
59
|
+
taxResidencies: TaxResidency[];
|
|
49
60
|
/**
|
|
50
61
|
*
|
|
51
62
|
* The ISO 3166-1 alpha-2 country code where the company was incorporated (e.g., "ZA", "NL").
|
|
@@ -137,6 +148,21 @@ export type Company = Message<"meshtrade.compliance.client.v1.Company"> & {
|
|
|
137
148
|
* @generated from field: string listing_reference = 15;
|
|
138
149
|
*/
|
|
139
150
|
listingReference: string;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* The company's VAT registration number, distinct from the tax reference number (TIN).
|
|
154
|
+
* Required for verification in applicable jurisdictions.
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: string vat_registration_number = 16;
|
|
157
|
+
*/
|
|
158
|
+
vatRegistrationNumber: string;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* The company's public contact information (email, phone, etc.).
|
|
162
|
+
*
|
|
163
|
+
* @generated from field: meshtrade.type.v1.ContactDetails contact_details = 17;
|
|
164
|
+
*/
|
|
165
|
+
contactDetails?: ContactDetails;
|
|
140
166
|
};
|
|
141
167
|
/**
|
|
142
168
|
* Describes the message meshtrade.compliance.client.v1.Company.
|
|
@@ -305,7 +331,28 @@ export declare enum LegalPersonConnectionType {
|
|
|
305
331
|
*
|
|
306
332
|
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_GUARANTOR = 6;
|
|
307
333
|
*/
|
|
308
|
-
GUARANTOR = 6
|
|
334
|
+
GUARANTOR = 6,
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* The legal person holds a management role in the company.
|
|
338
|
+
*
|
|
339
|
+
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_MANAGER = 7;
|
|
340
|
+
*/
|
|
341
|
+
MANAGER = 7,
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* The legal person acts as an agent on behalf of the company.
|
|
345
|
+
*
|
|
346
|
+
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_AGENT = 8;
|
|
347
|
+
*/
|
|
348
|
+
AGENT = 8,
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* The legal person is the sole proprietor of the business.
|
|
352
|
+
*
|
|
353
|
+
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_SOLE_PROPRIETOR = 9;
|
|
354
|
+
*/
|
|
355
|
+
SOLE_PROPRIETOR = 9
|
|
309
356
|
}
|
|
310
357
|
/**
|
|
311
358
|
* Describes the enum meshtrade.compliance.client.v1.LegalPersonConnectionType.
|
|
@@ -11,13 +11,15 @@ const company_representative_pb_1 = require("./company_representative_pb");
|
|
|
11
11
|
const fund_pb_1 = require("./fund_pb");
|
|
12
12
|
const industry_classification_pb_1 = require("./industry_classification_pb");
|
|
13
13
|
const natural_person_pb_1 = require("./natural_person_pb");
|
|
14
|
+
const tax_residency_pb_1 = require("./tax_residency_pb");
|
|
14
15
|
const trust_pb_1 = require("./trust_pb");
|
|
15
16
|
const address_pb_1 = require("../../../type/v1/address_pb");
|
|
17
|
+
const contact_details_pb_1 = require("../../../type/v1/contact_details_pb");
|
|
16
18
|
const decimal_pb_1 = require("../../../type/v1/decimal_pb");
|
|
17
19
|
/**
|
|
18
20
|
* Describes the file meshtrade/compliance/client/v1/company.proto.
|
|
19
21
|
*/
|
|
20
|
-
exports.file_meshtrade_compliance_client_v1_company = (0, codegenv2_1.fileDesc)("
|
|
22
|
+
exports.file_meshtrade_compliance_client_v1_company = (0, codegenv2_1.fileDesc)("CixtZXNodHJhZGUvY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50YWdlGAcgASgLMhoubWVzaHRyYWRlLnR5cGUudjEuRGVjaW1hbBIoChZjb25uZWN0aW9uX2Rlc2NyaXB0aW9uGAggASgJQgi6SAVyAxj0A0IOCgxsZWdhbF9wZXJzb24q5wMKGUxlZ2FsUGVyc29uQ29ubmVjdGlvblR5cGUSLAooTEVHQUxfUEVSU09OX0NPTk5FQ1RJT05fVFlQRV9VTlNQRUNJRklFRBAAEiwKKExFR0FMX1BFUlNPTl9DT05ORUNUSU9OX1RZUEVfU0hBUkVIT0xERVIQARIvCitMRUdBTF9QRVJTT05fQ09OTkVDVElPTl9UWVBFX1BBUkVOVF9DT01QQU5ZEAISMwovTEVHQUxfUEVSU09OX0NPTk5FQ1RJT05fVFlQRV9DT1JQT1JBVEVfRElSRUNUT1IQAxImCiJMRUdBTF9QRVJTT05fQ09OTkVDVElPTl9UWVBFX1RSVVNUEAQSMAosTEVHQUxfUEVSU09OX0NPTk5FQ1RJT05fVFlQRV9HRU5FUkFMX1BBUlRORVIQBRIqCiZMRUdBTF9QRVJTT05fQ09OTkVDVElPTl9UWVBFX0dVQVJBTlRPUhAGEigKJExFR0FMX1BFUlNPTl9DT05ORUNUSU9OX1RZUEVfTUFOQUdFUhAHEiYKIkxFR0FMX1BFUlNPTl9DT05ORUNUSU9OX1RZUEVfQUdFTlQQCBIwCixMRUdBTF9QRVJTT05fQ09OTkVDVElPTl9UWVBFX1NPTEVfUFJPUFJJRVRPUhAJQmMKJWNvLm1lc2h0cmFkZS5hcGkuY29tcGxpYW5jZS5jbGllbnQudjFaOmdpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby9jb21wbGlhbmNlL2NsaWVudC92MTtjbGllbnRfdjFiBnByb3RvMw", [validate_pb_1.file_buf_validate_validate, date_pb_1.file_google_type_date, company_representative_pb_1.file_meshtrade_compliance_client_v1_company_representative, fund_pb_1.file_meshtrade_compliance_client_v1_fund, industry_classification_pb_1.file_meshtrade_compliance_client_v1_industry_classification, natural_person_pb_1.file_meshtrade_compliance_client_v1_natural_person, tax_residency_pb_1.file_meshtrade_compliance_client_v1_tax_residency, trust_pb_1.file_meshtrade_compliance_client_v1_trust, address_pb_1.file_meshtrade_type_v1_address, contact_details_pb_1.file_meshtrade_type_v1_contact_details, decimal_pb_1.file_meshtrade_type_v1_decimal]);
|
|
21
23
|
/**
|
|
22
24
|
* Describes the message meshtrade.compliance.client.v1.Company.
|
|
23
25
|
* Use `create(CompanySchema)` to create a new message.
|
|
@@ -93,6 +95,27 @@ var LegalPersonConnectionType;
|
|
|
93
95
|
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_GUARANTOR = 6;
|
|
94
96
|
*/
|
|
95
97
|
LegalPersonConnectionType[LegalPersonConnectionType["GUARANTOR"] = 6] = "GUARANTOR";
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* The legal person holds a management role in the company.
|
|
101
|
+
*
|
|
102
|
+
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_MANAGER = 7;
|
|
103
|
+
*/
|
|
104
|
+
LegalPersonConnectionType[LegalPersonConnectionType["MANAGER"] = 7] = "MANAGER";
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* The legal person acts as an agent on behalf of the company.
|
|
108
|
+
*
|
|
109
|
+
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_AGENT = 8;
|
|
110
|
+
*/
|
|
111
|
+
LegalPersonConnectionType[LegalPersonConnectionType["AGENT"] = 8] = "AGENT";
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* The legal person is the sole proprietor of the business.
|
|
115
|
+
*
|
|
116
|
+
* @generated from enum value: LEGAL_PERSON_CONNECTION_TYPE_SOLE_PROPRIETOR = 9;
|
|
117
|
+
*/
|
|
118
|
+
LegalPersonConnectionType[LegalPersonConnectionType["SOLE_PROPRIETOR"] = 9] = "SOLE_PROPRIETOR";
|
|
96
119
|
})(LegalPersonConnectionType || (exports.LegalPersonConnectionType = LegalPersonConnectionType = {}));
|
|
97
120
|
/**
|
|
98
121
|
* Describes the enum meshtrade.compliance.client.v1.LegalPersonConnectionType.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { Date } from "../../../../google/type/date_pb";
|
|
3
|
+
import type { TaxResidency } from "./tax_residency_pb";
|
|
3
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
5
|
/**
|
|
5
6
|
* Describes the file meshtrade/compliance/client/v1/fund.proto.
|
|
@@ -33,12 +34,13 @@ export type Fund = Message<"meshtrade.compliance.client.v1.Fund"> & {
|
|
|
33
34
|
registrationNumber: string;
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
36
|
-
* The
|
|
37
|
-
*
|
|
37
|
+
* The fund's tax residency information, required for CRS/FATCA reporting.
|
|
38
|
+
* A fund can be a tax resident in multiple jurisdictions.
|
|
39
|
+
* Required for verification.
|
|
38
40
|
*
|
|
39
|
-
* @generated from field:
|
|
41
|
+
* @generated from field: repeated meshtrade.compliance.client.v1.TaxResidency tax_residencies = 3;
|
|
40
42
|
*/
|
|
41
|
-
|
|
43
|
+
taxResidencies: TaxResidency[];
|
|
42
44
|
/**
|
|
43
45
|
*
|
|
44
46
|
* The ISO 3166-1 alpha-2 country code where the fund is domiciled (e.g., "KY" for Cayman Islands, "LU" for Luxembourg).
|
|
@@ -7,10 +7,11 @@ exports.FundSchema = exports.file_meshtrade_compliance_client_v1_fund = void 0;
|
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
8
|
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
9
|
const date_pb_1 = require("../../../../google/type/date_pb");
|
|
10
|
+
const tax_residency_pb_1 = require("./tax_residency_pb");
|
|
10
11
|
/**
|
|
11
12
|
* Describes the file meshtrade/compliance/client/v1/fund.proto.
|
|
12
13
|
*/
|
|
13
|
-
exports.file_meshtrade_compliance_client_v1_fund = (0, codegenv2_1.fileDesc)("
|
|
14
|
+
exports.file_meshtrade_compliance_client_v1_fund = (0, codegenv2_1.fileDesc)("CiltZXNodHJhZGUvY29tcGxpYW5jZS9jbGllbnQvdjEvZnVuZC5wcm90bxIebWVzaHRyYWRlLmNvbXBsaWFuY2UuY2xpZW50LnYxIogDCgRGdW5kEiEKD3JlZ2lzdGVyZWRfbmFtZRgBIAEoCUIIukgFcgMY/wESJAoTcmVnaXN0cmF0aW9uX251bWJlchgCIAEoCUIHukgEcgIYZBJFCg90YXhfcmVzaWRlbmNpZXMYAyADKAsyLC5tZXNodHJhZGUuY29tcGxpYW5jZS5jbGllbnQudjEuVGF4UmVzaWRlbmN5EsEBChNjb3VudHJ5X29mX2RvbWljaWxlGAQgASgJQqMBukifAboBmwEKHGNvdW50cnlfY29kZS5mb3JtYXQub3B0aW9uYWwSTGNvdW50cnlfb2ZfZG9taWNpbGUgbXVzdCBiZSBlbXB0eSBvciBhIHZhbGlkIElTTyAzMTY2LTEgYWxwaGEtMiBjb3VudHJ5IGNvZGUaLXNpemUodGhpcykgPT0gMCB8fCB0aGlzLm1hdGNoZXMoJ15bQS1aXXsyfSQnKRIsChFkYXRlX29mX2luY2VwdGlvbhgFIAEoCzIRLmdvb2dsZS50eXBlLkRhdGVCYwolY28ubWVzaHRyYWRlLmFwaS5jb21wbGlhbmNlLmNsaWVudC52MVo6Z2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL2NvbXBsaWFuY2UvY2xpZW50L3YxO2NsaWVudF92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate, date_pb_1.file_google_type_date, tax_residency_pb_1.file_meshtrade_compliance_client_v1_tax_residency]);
|
|
14
15
|
/**
|
|
15
16
|
* Describes the message meshtrade.compliance.client.v1.Fund.
|
|
16
17
|
* Use `create(FundSchema)` to create a new message.
|
|
@@ -27,6 +27,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
// Generated exports
|
|
29
29
|
__exportStar(require("./client_pb"), exports);
|
|
30
|
+
__exportStar(require("./client_status_pb"), exports);
|
|
30
31
|
__exportStar(require("./company_pb"), exports);
|
|
31
32
|
__exportStar(require("./company_representative_pb"), exports);
|
|
32
33
|
__exportStar(require("./company_representative_role_pb"), exports);
|
|
@@ -8,16 +8,18 @@ export declare const file_meshtrade_compliance_client_v1_industry_classification
|
|
|
8
8
|
*
|
|
9
9
|
* IndustryClassification holds the detailed industry classification for a business entity
|
|
10
10
|
* using the GICS (Global Industry Classification Standard) hierarchy.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* DESIGN NOTE: All codes are defined as 'string' rather than 'int' to preserve
|
|
13
|
+
* leading zeros (e.g., "05") which would be truncated by integer types,
|
|
14
|
+
* and to treat these values as unique identifiers rather than numeric quantities.
|
|
13
15
|
*
|
|
14
16
|
* @generated from message meshtrade.compliance.client.v1.IndustryClassification
|
|
15
17
|
*/
|
|
16
18
|
export type IndustryClassification = Message<"meshtrade.compliance.client.v1.IndustryClassification"> & {
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
19
|
-
* The 2-digit GICS Sector code
|
|
20
|
-
*
|
|
21
|
+
* The 2-digit GICS Sector code.
|
|
22
|
+
* Validation: If set, must be exactly 2 digits.
|
|
21
23
|
*
|
|
22
24
|
* @generated from field: string sector_code = 1;
|
|
23
25
|
*/
|
|
@@ -25,7 +27,7 @@ export type IndustryClassification = Message<"meshtrade.compliance.client.v1.Ind
|
|
|
25
27
|
/**
|
|
26
28
|
*
|
|
27
29
|
* The human-readable name of the GICS Sector.
|
|
28
|
-
*
|
|
30
|
+
* Validation: Max 255 characters.
|
|
29
31
|
*
|
|
30
32
|
* @generated from field: string sector_name = 2;
|
|
31
33
|
*/
|
|
@@ -33,7 +35,7 @@ export type IndustryClassification = Message<"meshtrade.compliance.client.v1.Ind
|
|
|
33
35
|
/**
|
|
34
36
|
*
|
|
35
37
|
* The 4-digit GICS Industry Group code.
|
|
36
|
-
*
|
|
38
|
+
* Validation: If set, must be exactly 4 digits.
|
|
37
39
|
*
|
|
38
40
|
* @generated from field: string industry_group_code = 3;
|
|
39
41
|
*/
|
|
@@ -41,7 +43,7 @@ export type IndustryClassification = Message<"meshtrade.compliance.client.v1.Ind
|
|
|
41
43
|
/**
|
|
42
44
|
*
|
|
43
45
|
* The human-readable name of the GICS Industry Group.
|
|
44
|
-
*
|
|
46
|
+
* Validation: Max 255 characters.
|
|
45
47
|
*
|
|
46
48
|
* @generated from field: string industry_group_name = 4;
|
|
47
49
|
*/
|
|
@@ -49,7 +51,7 @@ export type IndustryClassification = Message<"meshtrade.compliance.client.v1.Ind
|
|
|
49
51
|
/**
|
|
50
52
|
*
|
|
51
53
|
* The 6-digit GICS Industry code.
|
|
52
|
-
*
|
|
54
|
+
* Validation: If set, must be exactly 6 digits.
|
|
53
55
|
*
|
|
54
56
|
* @generated from field: string industry_code = 5;
|
|
55
57
|
*/
|
|
@@ -57,15 +59,15 @@ export type IndustryClassification = Message<"meshtrade.compliance.client.v1.Ind
|
|
|
57
59
|
/**
|
|
58
60
|
*
|
|
59
61
|
* The human-readable name of the GICS Industry.
|
|
60
|
-
*
|
|
62
|
+
* Validation: Max 255 characters.
|
|
61
63
|
*
|
|
62
64
|
* @generated from field: string industry_name = 6;
|
|
63
65
|
*/
|
|
64
66
|
industryName: string;
|
|
65
67
|
/**
|
|
66
68
|
*
|
|
67
|
-
* The 8-digit GICS Sub-Industry code
|
|
68
|
-
*
|
|
69
|
+
* The 8-digit GICS Sub-Industry code.
|
|
70
|
+
* Validation: If set, must be exactly 8 digits.
|
|
69
71
|
*
|
|
70
72
|
* @generated from field: string sub_industry_code = 7;
|
|
71
73
|
*/
|
|
@@ -73,7 +75,7 @@ export type IndustryClassification = Message<"meshtrade.compliance.client.v1.Ind
|
|
|
73
75
|
/**
|
|
74
76
|
*
|
|
75
77
|
* The human-readable name of the GICS Sub-Industry.
|
|
76
|
-
*
|
|
78
|
+
* Validation: Max 255 characters.
|
|
77
79
|
*
|
|
78
80
|
* @generated from field: string sub_industry_name = 8;
|
|
79
81
|
*/
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IndustryClassificationSchema = exports.file_meshtrade_compliance_client_v1_industry_classification = void 0;
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
8
9
|
/**
|
|
9
10
|
* Describes the file meshtrade/compliance/client/v1/industry_classification.proto.
|
|
10
11
|
*/
|
|
11
|
-
exports.file_meshtrade_compliance_client_v1_industry_classification = (0, codegenv2_1.fileDesc)("
|
|
12
|
+
exports.file_meshtrade_compliance_client_v1_industry_classification = (0, codegenv2_1.fileDesc)("CjxtZXNodHJhZGUvY29tcGxpYW5jZS9jbGllbnQvdjEvaW5kdXN0cnlfY2xhc3NpZmljYXRpb24ucHJvdG8SHm1lc2h0cmFkZS5jb21wbGlhbmNlLmNsaWVudC52MSKZBgoWSW5kdXN0cnlDbGFzc2lmaWNhdGlvbhKNAQoLc2VjdG9yX2NvZGUYASABKAlCeLpIdboBcgoSc2VjdG9yX2NvZGUuZm9ybWF0Ei1zZWN0b3JfY29kZSBtdXN0IGJlIGVtcHR5IG9yIGV4YWN0bHkgMiBkaWdpdHMaLXNpemUodGhpcykgPT0gMCB8fCB0aGlzLm1hdGNoZXMoJ15bMC05XXsyfSQnKRIdCgtzZWN0b3JfbmFtZRgCIAEoCUIIukgFcgMY/wESqAEKE2luZHVzdHJ5X2dyb3VwX2NvZGUYAyABKAlCigG6SIYBugGCAQoaaW5kdXN0cnlfZ3JvdXBfY29kZS5mb3JtYXQSNWluZHVzdHJ5X2dyb3VwX2NvZGUgbXVzdCBiZSBlbXB0eSBvciBleGFjdGx5IDQgZGlnaXRzGi1zaXplKHRoaXMpID09IDAgfHwgdGhpcy5tYXRjaGVzKCdeWzAtOV17NH0kJykSJQoTaW5kdXN0cnlfZ3JvdXBfbmFtZRgEIAEoCUIIukgFcgMY/wESkwEKDWluZHVzdHJ5X2NvZGUYBSABKAlCfLpIeboBdgoUaW5kdXN0cnlfY29kZS5mb3JtYXQSL2luZHVzdHJ5X2NvZGUgbXVzdCBiZSBlbXB0eSBvciBleGFjdGx5IDYgZGlnaXRzGi1zaXplKHRoaXMpID09IDAgfHwgdGhpcy5tYXRjaGVzKCdeWzAtOV17Nn0kJykSHwoNaW5kdXN0cnlfbmFtZRgGIAEoCUIIukgFcgMY/wESoQEKEXN1Yl9pbmR1c3RyeV9jb2RlGAcgASgJQoUBukiBAboBfgoYc3ViX2luZHVzdHJ5X2NvZGUuZm9ybWF0EjNzdWJfaW5kdXN0cnlfY29kZSBtdXN0IGJlIGVtcHR5IG9yIGV4YWN0bHkgOCBkaWdpdHMaLXNpemUodGhpcykgPT0gMCB8fCB0aGlzLm1hdGNoZXMoJ15bMC05XXs4fSQnKRIjChFzdWJfaW5kdXN0cnlfbmFtZRgIIAEoCUIIukgFcgMY/wFCYwolY28ubWVzaHRyYWRlLmFwaS5jb21wbGlhbmNlLmNsaWVudC52MVo6Z2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL2NvbXBsaWFuY2UvY2xpZW50L3YxO2NsaWVudF92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate]);
|
|
12
13
|
/**
|
|
13
14
|
* Describes the message meshtrade.compliance.client.v1.IndustryClassification.
|
|
14
15
|
* Use `create(IndustryClassificationSchema)` to create a new message.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
2
3
|
import type { Client, ClientSchema } from "./client_pb";
|
|
3
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
5
|
/**
|
|
@@ -43,6 +44,27 @@ export type CreateClientRequest = Message<"meshtrade.compliance.client.v1.Create
|
|
|
43
44
|
* Use `create(CreateClientRequestSchema)` to create a new message.
|
|
44
45
|
*/
|
|
45
46
|
export declare const CreateClientRequestSchema: GenMessage<CreateClientRequest>;
|
|
47
|
+
/**
|
|
48
|
+
* UpdateClientRequest is the message used to update a single client resource.
|
|
49
|
+
*
|
|
50
|
+
* @generated from message meshtrade.compliance.client.v1.UpdateClientRequest
|
|
51
|
+
*/
|
|
52
|
+
export type UpdateClientRequest = Message<"meshtrade.compliance.client.v1.UpdateClientRequest"> & {
|
|
53
|
+
/**
|
|
54
|
+
* The client resource with updated values.
|
|
55
|
+
* The name field must be set to identify which client to update.
|
|
56
|
+
* Only provided fields will be modified, subject to the state-based
|
|
57
|
+
* access restrictions documented on UpdateClient.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: meshtrade.compliance.client.v1.Client client = 1;
|
|
60
|
+
*/
|
|
61
|
+
client?: Client;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message meshtrade.compliance.client.v1.UpdateClientRequest.
|
|
65
|
+
* Use `create(UpdateClientRequestSchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
export declare const UpdateClientRequestSchema: GenMessage<UpdateClientRequest>;
|
|
46
68
|
/**
|
|
47
69
|
* GetGroupClientRequest is the message used to request a client resource by its owning group.
|
|
48
70
|
*
|
|
@@ -62,6 +84,79 @@ export type GetGroupClientRequest = Message<"meshtrade.compliance.client.v1.GetG
|
|
|
62
84
|
* Use `create(GetGroupClientRequestSchema)` to create a new message.
|
|
63
85
|
*/
|
|
64
86
|
export declare const GetGroupClientRequestSchema: GenMessage<GetGroupClientRequest>;
|
|
87
|
+
/**
|
|
88
|
+
* StartClientVerificationRequest is the message used to start verification for a client.
|
|
89
|
+
*
|
|
90
|
+
* @generated from message meshtrade.compliance.client.v1.StartClientVerificationRequest
|
|
91
|
+
*/
|
|
92
|
+
export type StartClientVerificationRequest = Message<"meshtrade.compliance.client.v1.StartClientVerificationRequest"> & {
|
|
93
|
+
/**
|
|
94
|
+
* The resource name of the client to start verification for.
|
|
95
|
+
* Format: "compliance/clients/{client_id}"
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: string client = 1;
|
|
98
|
+
*/
|
|
99
|
+
client: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Describes the message meshtrade.compliance.client.v1.StartClientVerificationRequest.
|
|
103
|
+
* Use `create(StartClientVerificationRequestSchema)` to create a new message.
|
|
104
|
+
*/
|
|
105
|
+
export declare const StartClientVerificationRequestSchema: GenMessage<StartClientVerificationRequest>;
|
|
106
|
+
/**
|
|
107
|
+
* FailClientVerificationRequest is the message used to fail verification for a client.
|
|
108
|
+
*
|
|
109
|
+
* @generated from message meshtrade.compliance.client.v1.FailClientVerificationRequest
|
|
110
|
+
*/
|
|
111
|
+
export type FailClientVerificationRequest = Message<"meshtrade.compliance.client.v1.FailClientVerificationRequest"> & {
|
|
112
|
+
/**
|
|
113
|
+
* The resource name of the client whose verification has failed.
|
|
114
|
+
* Format: "compliance/clients/{client_id}"
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: string client = 1;
|
|
117
|
+
*/
|
|
118
|
+
client: string;
|
|
119
|
+
/**
|
|
120
|
+
* Comments explaining the reason for verification failure.
|
|
121
|
+
* At least one comment is required.
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: repeated string comments = 2;
|
|
124
|
+
*/
|
|
125
|
+
comments: string[];
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Describes the message meshtrade.compliance.client.v1.FailClientVerificationRequest.
|
|
129
|
+
* Use `create(FailClientVerificationRequestSchema)` to create a new message.
|
|
130
|
+
*/
|
|
131
|
+
export declare const FailClientVerificationRequestSchema: GenMessage<FailClientVerificationRequest>;
|
|
132
|
+
/**
|
|
133
|
+
* MarkClientVerifiedRequest is the message used to mark a client as verified.
|
|
134
|
+
*
|
|
135
|
+
* @generated from message meshtrade.compliance.client.v1.MarkClientVerifiedRequest
|
|
136
|
+
*/
|
|
137
|
+
export type MarkClientVerifiedRequest = Message<"meshtrade.compliance.client.v1.MarkClientVerifiedRequest"> & {
|
|
138
|
+
/**
|
|
139
|
+
* The resource name of the client to mark as verified.
|
|
140
|
+
* Format: "compliance/clients/{client_id}"
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: string client = 1;
|
|
143
|
+
*/
|
|
144
|
+
client: string;
|
|
145
|
+
/**
|
|
146
|
+
* The date when the next periodic compliance review is due.
|
|
147
|
+
* Optional. If not provided, defaults to a system-configured value.
|
|
148
|
+
* When provided, must be in the future and after the client's existing
|
|
149
|
+
* verification_date and next_verification_date (if those fields are set).
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: google.protobuf.Timestamp next_verification_date = 2;
|
|
152
|
+
*/
|
|
153
|
+
nextVerificationDate?: Timestamp;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message meshtrade.compliance.client.v1.MarkClientVerifiedRequest.
|
|
157
|
+
* Use `create(MarkClientVerifiedRequestSchema)` to create a new message.
|
|
158
|
+
*/
|
|
159
|
+
export declare const MarkClientVerifiedRequestSchema: GenMessage<MarkClientVerifiedRequest>;
|
|
65
160
|
/**
|
|
66
161
|
* ListClientsRequest is the message used to request a list of client resources.
|
|
67
162
|
*
|
|
@@ -139,6 +234,71 @@ export declare const ClientService: GenService<{
|
|
|
139
234
|
input: typeof GetGroupClientRequestSchema;
|
|
140
235
|
output: typeof ClientSchema;
|
|
141
236
|
};
|
|
237
|
+
/**
|
|
238
|
+
* UpdateClient updates a single client's compliance profile.
|
|
239
|
+
*
|
|
240
|
+
* Update access is restricted based on the client's current verification status:
|
|
241
|
+
*
|
|
242
|
+
* When status is VERIFICATION_STATUS_NOT_STARTED or VERIFICATION_STATUS_FAILED:
|
|
243
|
+
* - Full update access to all mutable fields.
|
|
244
|
+
* - The following fields are never updatable: name, owner, owners,
|
|
245
|
+
* verification_status, verification_date, next_verification_date.
|
|
246
|
+
*
|
|
247
|
+
* When status is VERIFICATION_STATUS_PENDING or VERIFICATION_STATUS_VERIFIED:
|
|
248
|
+
* - Only the verification authority may update the client.
|
|
249
|
+
* - The following fields remain non-updatable: name, owner, owners.
|
|
250
|
+
*
|
|
251
|
+
* @generated from rpc meshtrade.compliance.client.v1.ClientService.UpdateClient
|
|
252
|
+
*/
|
|
253
|
+
updateClient: {
|
|
254
|
+
methodKind: "unary";
|
|
255
|
+
input: typeof UpdateClientRequestSchema;
|
|
256
|
+
output: typeof ClientSchema;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* StartClientVerification transitions a client to VERIFICATION_STATUS_PENDING.
|
|
260
|
+
*
|
|
261
|
+
* Valid only when the client's current status is VERIFICATION_STATUS_NOT_STARTED
|
|
262
|
+
* or VERIFICATION_STATUS_FAILED. Callable by either the verification authority
|
|
263
|
+
* or the client's owning group.
|
|
264
|
+
*
|
|
265
|
+
* @generated from rpc meshtrade.compliance.client.v1.ClientService.StartClientVerification
|
|
266
|
+
*/
|
|
267
|
+
startClientVerification: {
|
|
268
|
+
methodKind: "unary";
|
|
269
|
+
input: typeof StartClientVerificationRequestSchema;
|
|
270
|
+
output: typeof ClientSchema;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* FailClientVerification transitions a client to VERIFICATION_STATUS_FAILED.
|
|
274
|
+
*
|
|
275
|
+
* Valid only when the client's current status is VERIFICATION_STATUS_PENDING.
|
|
276
|
+
* Only callable by the verification authority. Requires comments explaining
|
|
277
|
+
* the reason for failure.
|
|
278
|
+
*
|
|
279
|
+
* @generated from rpc meshtrade.compliance.client.v1.ClientService.FailClientVerification
|
|
280
|
+
*/
|
|
281
|
+
failClientVerification: {
|
|
282
|
+
methodKind: "unary";
|
|
283
|
+
input: typeof FailClientVerificationRequestSchema;
|
|
284
|
+
output: typeof ClientSchema;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* MarkClientVerified transitions a client to VERIFICATION_STATUS_VERIFIED.
|
|
288
|
+
*
|
|
289
|
+
* Valid only when the client's current status is VERIFICATION_STATUS_PENDING.
|
|
290
|
+
* Only callable by the verification authority. Sets verification_date to now
|
|
291
|
+
* and next_verification_date to the provided value.
|
|
292
|
+
* The next_verification_date must be after the existing verification_date and
|
|
293
|
+
* next_verification_date (if set).
|
|
294
|
+
*
|
|
295
|
+
* @generated from rpc meshtrade.compliance.client.v1.ClientService.MarkClientVerified
|
|
296
|
+
*/
|
|
297
|
+
markClientVerified: {
|
|
298
|
+
methodKind: "unary";
|
|
299
|
+
input: typeof MarkClientVerifiedRequestSchema;
|
|
300
|
+
output: typeof ClientSchema;
|
|
301
|
+
};
|
|
142
302
|
/**
|
|
143
303
|
* ListClients retrieves a collection of client compliance profiles.
|
|
144
304
|
*
|
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
// @generated from file meshtrade/compliance/client/v1/service.proto (package meshtrade.compliance.client.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ClientService = exports.ListClientsResponseSchema = exports.ListClientsRequestSchema = exports.GetGroupClientRequestSchema = exports.CreateClientRequestSchema = exports.GetClientRequestSchema = exports.file_meshtrade_compliance_client_v1_service = void 0;
|
|
6
|
+
exports.ClientService = exports.ListClientsResponseSchema = exports.ListClientsRequestSchema = exports.MarkClientVerifiedRequestSchema = exports.FailClientVerificationRequestSchema = exports.StartClientVerificationRequestSchema = exports.GetGroupClientRequestSchema = exports.UpdateClientRequestSchema = exports.CreateClientRequestSchema = exports.GetClientRequestSchema = exports.file_meshtrade_compliance_client_v1_service = void 0;
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
8
|
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
9
10
|
const client_pb_1 = require("./client_pb");
|
|
10
11
|
const method_options_pb_1 = require("../../../option/method_options/v1/method_options_pb");
|
|
11
12
|
/**
|
|
12
13
|
* Describes the file meshtrade/compliance/client/v1/service.proto.
|
|
13
14
|
*/
|
|
14
|
-
exports.file_meshtrade_compliance_client_v1_service = (0, codegenv2_1.fileDesc)("
|
|
15
|
+
exports.file_meshtrade_compliance_client_v1_service = (0, codegenv2_1.fileDesc)("CixtZXNodHJhZGUvY29tcGxpYW5jZS9jbGllbnQvdjEvc2VydmljZS5wcm90bxIebWVzaHRyYWRlLmNvbXBsaWFuY2UuY2xpZW50LnYxImoKEEdldENsaWVudFJlcXVlc3QSVgoEbmFtZRgBIAEoCUJIukhFyAEBckAyO15jb21wbGlhbmNlL2NsaWVudHMvWzAxMjM0NTY3ODlBQkNERUZHSEpLTU5QUVJTVFZXWFlaXXsyNn0kmAEtIlUKE0NyZWF0ZUNsaWVudFJlcXVlc3QSPgoGY2xpZW50GAEgASgLMiYubWVzaHRyYWRlLmNvbXBsaWFuY2UuY2xpZW50LnYxLkNsaWVudEIGukgDyAEBIlUKE1VwZGF0ZUNsaWVudFJlcXVlc3QSPgoGY2xpZW50GAEgASgLMiYubWVzaHRyYWRlLmNvbXBsaWFuY2UuY2xpZW50LnYxLkNsaWVudEIGukgDyAEBImQKFUdldEdyb3VwQ2xpZW50UmVxdWVzdBJLCgVncm91cBgBIAEoCUI8ukg5yAEBcjQyL15ncm91cHMvWzAxMjM0NTY3ODlBQkNERUZHSEpLTU5QUVJTVFZXWFlaXXsyNn0kmAEhInoKHlN0YXJ0Q2xpZW50VmVyaWZpY2F0aW9uUmVxdWVzdBJYCgZjbGllbnQYASABKAlCSLpIRcgBAXJAMjteY29tcGxpYW5jZS9jbGllbnRzL1swMTIzNDU2Nzg5QUJDREVGR0hKS01OUFFSU1RWV1hZWl17MjZ9JJgBLSKhAQodRmFpbENsaWVudFZlcmlmaWNhdGlvblJlcXVlc3QSWAoGY2xpZW50GAEgASgJQki6SEXIAQFyQDI7XmNvbXBsaWFuY2UvY2xpZW50cy9bM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, client_pb_1.file_meshtrade_compliance_client_v1_client, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options]);
|
|
15
16
|
/**
|
|
16
17
|
* Describes the message meshtrade.compliance.client.v1.GetClientRequest.
|
|
17
18
|
* Use `create(GetClientRequestSchema)` to create a new message.
|
|
@@ -22,21 +23,41 @@ exports.GetClientRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_mesht
|
|
|
22
23
|
* Use `create(CreateClientRequestSchema)` to create a new message.
|
|
23
24
|
*/
|
|
24
25
|
exports.CreateClientRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 1);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message meshtrade.compliance.client.v1.UpdateClientRequest.
|
|
28
|
+
* Use `create(UpdateClientRequestSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
exports.UpdateClientRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 2);
|
|
25
31
|
/**
|
|
26
32
|
* Describes the message meshtrade.compliance.client.v1.GetGroupClientRequest.
|
|
27
33
|
* Use `create(GetGroupClientRequestSchema)` to create a new message.
|
|
28
34
|
*/
|
|
29
|
-
exports.GetGroupClientRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service,
|
|
35
|
+
exports.GetGroupClientRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 3);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message meshtrade.compliance.client.v1.StartClientVerificationRequest.
|
|
38
|
+
* Use `create(StartClientVerificationRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
exports.StartClientVerificationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 4);
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message meshtrade.compliance.client.v1.FailClientVerificationRequest.
|
|
43
|
+
* Use `create(FailClientVerificationRequestSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
exports.FailClientVerificationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 5);
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message meshtrade.compliance.client.v1.MarkClientVerifiedRequest.
|
|
48
|
+
* Use `create(MarkClientVerifiedRequestSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
exports.MarkClientVerifiedRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 6);
|
|
30
51
|
/**
|
|
31
52
|
* Describes the message meshtrade.compliance.client.v1.ListClientsRequest.
|
|
32
53
|
* Use `create(ListClientsRequestSchema)` to create a new message.
|
|
33
54
|
*/
|
|
34
|
-
exports.ListClientsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service,
|
|
55
|
+
exports.ListClientsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 7);
|
|
35
56
|
/**
|
|
36
57
|
* Describes the message meshtrade.compliance.client.v1.ListClientsResponse.
|
|
37
58
|
* Use `create(ListClientsResponseSchema)` to create a new message.
|
|
38
59
|
*/
|
|
39
|
-
exports.ListClientsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service,
|
|
60
|
+
exports.ListClientsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_compliance_client_v1_service, 8);
|
|
40
61
|
/**
|
|
41
62
|
* Service manages client profiles for compliance and Know Your Customer (KYC)
|
|
42
63
|
* purposes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateClientRequest, GetClientRequest, GetGroupClientRequest, ListClientsRequest, ListClientsResponse } from "./service_pb";
|
|
1
|
+
import { CreateClientRequest, FailClientVerificationRequest, GetClientRequest, GetGroupClientRequest, ListClientsRequest, ListClientsResponse, MarkClientVerifiedRequest, StartClientVerificationRequest, UpdateClientRequest } from "./service_pb";
|
|
2
2
|
import { Client } from "./client_pb";
|
|
3
3
|
import { ClientOption } from "../../../config";
|
|
4
4
|
/**
|
|
@@ -100,6 +100,30 @@ export declare class ClientServiceWeb {
|
|
|
100
100
|
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
101
101
|
*/
|
|
102
102
|
getGroupClient(request: GetGroupClientRequest): Promise<Client>;
|
|
103
|
+
/**
|
|
104
|
+
* Updates an existing client.
|
|
105
|
+
* @param {UpdateClientRequest} request - The request object for updateclient.
|
|
106
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
107
|
+
*/
|
|
108
|
+
updateClient(request: UpdateClientRequest): Promise<Client>;
|
|
109
|
+
/**
|
|
110
|
+
* Performs startclientverification operation on client.
|
|
111
|
+
* @param {StartClientVerificationRequest} request - The request object for startclientverification.
|
|
112
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
113
|
+
*/
|
|
114
|
+
startClientVerification(request: StartClientVerificationRequest): Promise<Client>;
|
|
115
|
+
/**
|
|
116
|
+
* Performs failclientverification operation on client.
|
|
117
|
+
* @param {FailClientVerificationRequest} request - The request object for failclientverification.
|
|
118
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
119
|
+
*/
|
|
120
|
+
failClientVerification(request: FailClientVerificationRequest): Promise<Client>;
|
|
121
|
+
/**
|
|
122
|
+
* Performs markclientverified operation on client.
|
|
123
|
+
* @param {MarkClientVerifiedRequest} request - The request object for markclientverified.
|
|
124
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
125
|
+
*/
|
|
126
|
+
markClientVerified(request: MarkClientVerifiedRequest): Promise<Client>;
|
|
103
127
|
/**
|
|
104
128
|
* Retrieves a list of clients.
|
|
105
129
|
* @param {ListClientsRequest} request - The request object for listclients.
|
|
@@ -181,6 +181,74 @@ class ClientServiceWeb {
|
|
|
181
181
|
}
|
|
182
182
|
return this._client.getGroupClient(request);
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Updates an existing client.
|
|
186
|
+
* @param {UpdateClientRequest} request - The request object for updateclient.
|
|
187
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
188
|
+
*/
|
|
189
|
+
updateClient(request) {
|
|
190
|
+
// Validate request
|
|
191
|
+
const result = this._validator.validate(service_pb_2.UpdateClientRequestSchema, request);
|
|
192
|
+
if (result.kind === "invalid") {
|
|
193
|
+
const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
|
|
194
|
+
throw new Error(`Validation failed: ${violations}`);
|
|
195
|
+
}
|
|
196
|
+
else if (result.kind === "error") {
|
|
197
|
+
throw result.error;
|
|
198
|
+
}
|
|
199
|
+
return this._client.updateClient(request);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Performs startclientverification operation on client.
|
|
203
|
+
* @param {StartClientVerificationRequest} request - The request object for startclientverification.
|
|
204
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
205
|
+
*/
|
|
206
|
+
startClientVerification(request) {
|
|
207
|
+
// Validate request
|
|
208
|
+
const result = this._validator.validate(service_pb_2.StartClientVerificationRequestSchema, request);
|
|
209
|
+
if (result.kind === "invalid") {
|
|
210
|
+
const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
|
|
211
|
+
throw new Error(`Validation failed: ${violations}`);
|
|
212
|
+
}
|
|
213
|
+
else if (result.kind === "error") {
|
|
214
|
+
throw result.error;
|
|
215
|
+
}
|
|
216
|
+
return this._client.startClientVerification(request);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Performs failclientverification operation on client.
|
|
220
|
+
* @param {FailClientVerificationRequest} request - The request object for failclientverification.
|
|
221
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
222
|
+
*/
|
|
223
|
+
failClientVerification(request) {
|
|
224
|
+
// Validate request
|
|
225
|
+
const result = this._validator.validate(service_pb_2.FailClientVerificationRequestSchema, request);
|
|
226
|
+
if (result.kind === "invalid") {
|
|
227
|
+
const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
|
|
228
|
+
throw new Error(`Validation failed: ${violations}`);
|
|
229
|
+
}
|
|
230
|
+
else if (result.kind === "error") {
|
|
231
|
+
throw result.error;
|
|
232
|
+
}
|
|
233
|
+
return this._client.failClientVerification(request);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Performs markclientverified operation on client.
|
|
237
|
+
* @param {MarkClientVerifiedRequest} request - The request object for markclientverified.
|
|
238
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
239
|
+
*/
|
|
240
|
+
markClientVerified(request) {
|
|
241
|
+
// Validate request
|
|
242
|
+
const result = this._validator.validate(service_pb_2.MarkClientVerifiedRequestSchema, request);
|
|
243
|
+
if (result.kind === "invalid") {
|
|
244
|
+
const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
|
|
245
|
+
throw new Error(`Validation failed: ${violations}`);
|
|
246
|
+
}
|
|
247
|
+
else if (result.kind === "error") {
|
|
248
|
+
throw result.error;
|
|
249
|
+
}
|
|
250
|
+
return this._client.markClientVerified(request);
|
|
251
|
+
}
|
|
184
252
|
/**
|
|
185
253
|
* Retrieves a list of clients.
|
|
186
254
|
* @param {ListClientsRequest} request - The request object for listclients.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { Date } from "../../../../google/type/date_pb";
|
|
3
|
+
import type { TaxResidency } from "./tax_residency_pb";
|
|
3
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
5
|
/**
|
|
5
6
|
* Describes the file meshtrade/compliance/client/v1/trust.proto.
|
|
@@ -33,12 +34,13 @@ export type Trust = Message<"meshtrade.compliance.client.v1.Trust"> & {
|
|
|
33
34
|
registrationNumber: string;
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
36
|
-
* The
|
|
37
|
-
*
|
|
37
|
+
* The trust's tax residency information, required for CRS/FATCA reporting.
|
|
38
|
+
* A trust can be a tax resident in multiple jurisdictions.
|
|
39
|
+
* Required for verification.
|
|
38
40
|
*
|
|
39
|
-
* @generated from field:
|
|
41
|
+
* @generated from field: repeated meshtrade.compliance.client.v1.TaxResidency tax_residencies = 3;
|
|
40
42
|
*/
|
|
41
|
-
|
|
43
|
+
taxResidencies: TaxResidency[];
|
|
42
44
|
/**
|
|
43
45
|
*
|
|
44
46
|
* The ISO 3166-1 alpha-2 country code where the trust is domiciled (e.g., "KY" for Cayman Islands, "LU" for Luxembourg).
|
|
@@ -7,10 +7,11 @@ exports.TrustSchema = exports.file_meshtrade_compliance_client_v1_trust = void 0
|
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
8
|
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
9
|
const date_pb_1 = require("../../../../google/type/date_pb");
|
|
10
|
+
const tax_residency_pb_1 = require("./tax_residency_pb");
|
|
10
11
|
/**
|
|
11
12
|
* Describes the file meshtrade/compliance/client/v1/trust.proto.
|
|
12
13
|
*/
|
|
13
|
-
exports.file_meshtrade_compliance_client_v1_trust = (0, codegenv2_1.fileDesc)("
|
|
14
|
+
exports.file_meshtrade_compliance_client_v1_trust = (0, codegenv2_1.fileDesc)("CiptZXNodHJhZGUvY29tcGxpYW5jZS9jbGllbnQvdjEvdHJ1c3QucHJvdG8SHm1lc2h0cmFkZS5jb21wbGlhbmNlLmNsaWVudC52MSKJAwoFVHJ1c3QSIQoPcmVnaXN0ZXJlZF9uYW1lGAEgASgJQgi6SAVyAxj/ARIkChNyZWdpc3RyYXRpb25fbnVtYmVyGAIgASgJQge6SARyAhhkEkUKD3RheF9yZXNpZGVuY2llcxgDIAMoCzIsLm1lc2h0cmFkZS5jb21wbGlhbmNlLmNsaWVudC52MS5UYXhSZXNpZGVuY3kSwQEKE2NvdW50cnlfb2ZfZG9taWNpbGUYBCABKAlCowG6SJ8BugGbAQocY291bnRyeV9jb2RlLmZvcm1hdC5vcHRpb25hbBJMY291bnRyeV9vZl9kb21pY2lsZSBtdXN0IGJlIGVtcHR5IG9yIGEgdmFsaWQgSVNPIDMxNjYtMSBhbHBoYS0yIGNvdW50cnkgY29kZRotc2l6ZSh0aGlzKSA9PSAwIHx8IHRoaXMubWF0Y2hlcygnXltBLVpdezJ9JCcpEiwKEWRhdGVfb2ZfaW5jZXB0aW9uGAUgASgLMhEuZ29vZ2xlLnR5cGUuRGF0ZUJjCiVjby5tZXNodHJhZGUuYXBpLmNvbXBsaWFuY2UuY2xpZW50LnYxWjpnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vY29tcGxpYW5jZS9jbGllbnQvdjE7Y2xpZW50X3YxYgZwcm90bzM", [validate_pb_1.file_buf_validate_validate, date_pb_1.file_google_type_date, tax_residency_pb_1.file_meshtrade_compliance_client_v1_tax_residency]);
|
|
14
15
|
/**
|
|
15
16
|
* Describes the message meshtrade.compliance.client.v1.Trust.
|
|
16
17
|
* Use `create(TrustSchema)` to create a new message.
|
|
@@ -145,6 +145,15 @@ export type SearchGroupsRequest = Message<"meshtrade.iam.group.v1.SearchGroupsRe
|
|
|
145
145
|
* @generated from field: meshtrade.iam.group.v1.SearchGroupsRequest.Sorting sorting = 3;
|
|
146
146
|
*/
|
|
147
147
|
sorting?: SearchGroupsRequest_Sorting;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* Optional list of group resource names to filter by.
|
|
151
|
+
* Format: groups/{ULIDv2}.
|
|
152
|
+
* When provided, only groups matching the specified names are returned.
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: repeated string names = 4;
|
|
155
|
+
*/
|
|
156
|
+
names: string[];
|
|
148
157
|
};
|
|
149
158
|
/**
|
|
150
159
|
* Describes the message meshtrade.iam.group.v1.SearchGroupsRequest.
|
|
@@ -12,7 +12,7 @@ const sorting_pb_1 = require("../../../type/v1/sorting_pb");
|
|
|
12
12
|
/**
|
|
13
13
|
* Describes the file meshtrade/iam/group/v1/service.proto.
|
|
14
14
|
*/
|
|
15
|
-
exports.file_meshtrade_iam_group_v1_service = (0, codegenv2_1.fileDesc)("
|
|
15
|
+
exports.file_meshtrade_iam_group_v1_service = (0, codegenv2_1.fileDesc)("CiRtZXNodHJhZGUvaWFtL2dyb3VwL3YxL3NlcnZpY2UucHJvdG8SFm1lc2h0cmFkZS5pYW0uZ3JvdXAudjEiSgoSQ3JlYXRlR3JvdXBSZXF1ZXN0EjQKBWdyb3VwGAEgASgLMh0ubWVzaHRyYWRlLmlhbS5ncm91cC52MS5Hcm91cEIGukgDyAEBIkoKElVwZGF0ZUdyb3VwUmVxdWVzdBI0CgVncm91cBgBIAEoCzIdLm1lc2h0cmFkZS5pYW0uZ3JvdXAudjEuR3JvdXBCBrpIA8gBASKsAgoRTGlzdEdyb3Vwc1JlcXVlc3QSQgoHc29ydGluZxgBIAEoCzIxLm1lc2h0cmFkZS5pYW0uZ3JvdXAudjEuTGlzdEdyb3Vwc1JlcXVlc3QuU29ydGluZxrSAQoHU29ydGluZxKWAQoFZmllbGQYASABKAlChgG6SIIBugFnCgtmaWVsZC52YWxpZBIyZmllbGQgbXVzdCBiZSBvbmUgb2Y6IG5hbWUsIGRpc3BsYXlfbmFtZSwgb3IgZW1wdHkaJHRoaXMgaW4gWycnLCAnbmFtZScsICdkaXNwbGF5X25hbWUnXXIWUgBSBG5hbWVSDGRpc3BsYXlfbmFtZRIuCgVvcmRlchgCIAEoDjIfLm1lc2h0cmFkZS50eXBlLnYxLlNvcnRpbmdPcmRlciJDChJMaXN0R3JvdXBzUmVzcG9uc2USLQoGZ3JvdXBzGAEgAygLMh0ubWVzaHRyYWRlLmlhbS5ncm91cC52MS5Hcm91cCKNBQoTU2VhcmNoR3JvdXBzUmVxdWVzdBKGAQoMZGlzcGxheV9uYW1lGAEgASgJQnC6SG26AWUKF2Rpc3BsYXlfbmFtZS5tYXhfbGVuZ3RoEjdkaXNwbGF5X25hbWUgc2VhcmNoIHRlcm0gbXVzdCBub3QgZXhjZWVkI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HWNvLm1lc2h0cmFkZS5hcGkuaWFtLmdyb3VwLnYxWjFnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vaWFtL2dyb3VwL3YxO2dyb3VwX3YxYgZwcm90bzM", [validate_pb_1.file_buf_validate_validate, group_pb_1.file_meshtrade_iam_group_v1_group, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options, sorting_pb_1.file_meshtrade_type_v1_sorting]);
|
|
16
16
|
/**
|
|
17
17
|
* Describes the message meshtrade.iam.group.v1.CreateGroupRequest.
|
|
18
18
|
* Use `create(CreateGroupRequestSchema)` to create a new message.
|
|
@@ -174,6 +174,65 @@ export type GetUserProfilePictureUploadUrlResponse = Message<"meshtrade.iam.user
|
|
|
174
174
|
* Use `create(GetUserProfilePictureUploadUrlResponseSchema)` to create a new message.
|
|
175
175
|
*/
|
|
176
176
|
export declare const GetUserProfilePictureUploadUrlResponseSchema: GenMessage<GetUserProfilePictureUploadUrlResponse>;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* Request message for SearchUserProfiles.
|
|
180
|
+
*
|
|
181
|
+
* Searches user profiles by first name or last name substring matching.
|
|
182
|
+
*
|
|
183
|
+
* @generated from message meshtrade.iam.user_profile.v1.SearchUserProfilesRequest
|
|
184
|
+
*/
|
|
185
|
+
export type SearchUserProfilesRequest = Message<"meshtrade.iam.user_profile.v1.SearchUserProfilesRequest"> & {
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* Optional substring to match against user profile first names.
|
|
189
|
+
* The search is case-insensitive.
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: string first_name = 1;
|
|
192
|
+
*/
|
|
193
|
+
firstName: string;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* Optional substring to match against user profile last names.
|
|
197
|
+
* The search is case-insensitive.
|
|
198
|
+
*
|
|
199
|
+
* @generated from field: string last_name = 2;
|
|
200
|
+
*/
|
|
201
|
+
lastName: string;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* Optional list of user resource names to filter by.
|
|
205
|
+
* Format: users/{ULIDv2}.
|
|
206
|
+
* When provided, only profiles associated with the specified users are returned.
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: repeated string users = 3;
|
|
209
|
+
*/
|
|
210
|
+
users: string[];
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Describes the message meshtrade.iam.user_profile.v1.SearchUserProfilesRequest.
|
|
214
|
+
* Use `create(SearchUserProfilesRequestSchema)` to create a new message.
|
|
215
|
+
*/
|
|
216
|
+
export declare const SearchUserProfilesRequestSchema: GenMessage<SearchUserProfilesRequest>;
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* Response message for SearchUserProfiles.
|
|
220
|
+
*
|
|
221
|
+
* Contains the collection of user profiles matching the search criteria.
|
|
222
|
+
*
|
|
223
|
+
* @generated from message meshtrade.iam.user_profile.v1.SearchUserProfilesResponse
|
|
224
|
+
*/
|
|
225
|
+
export type SearchUserProfilesResponse = Message<"meshtrade.iam.user_profile.v1.SearchUserProfilesResponse"> & {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: repeated meshtrade.iam.user_profile.v1.UserProfile user_profiles = 1;
|
|
228
|
+
*/
|
|
229
|
+
userProfiles: UserProfile[];
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Describes the message meshtrade.iam.user_profile.v1.SearchUserProfilesResponse.
|
|
233
|
+
* Use `create(SearchUserProfilesResponseSchema)` to create a new message.
|
|
234
|
+
*/
|
|
235
|
+
export declare const SearchUserProfilesResponseSchema: GenMessage<SearchUserProfilesResponse>;
|
|
177
236
|
/**
|
|
178
237
|
*
|
|
179
238
|
* UserProfileService manages user profile information and preferences.
|
|
@@ -251,6 +310,20 @@ export declare const UserProfileService: GenService<{
|
|
|
251
310
|
input: typeof ListUserProfilesRequestSchema;
|
|
252
311
|
output: typeof ListUserProfilesResponseSchema;
|
|
253
312
|
};
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* Searches user profiles using first name, last name, or user resource name filtering.
|
|
316
|
+
*
|
|
317
|
+
* Performs substring matching on user profile first and last names,
|
|
318
|
+
* or exact matching on user resource names within the authenticated group context.
|
|
319
|
+
*
|
|
320
|
+
* @generated from rpc meshtrade.iam.user_profile.v1.UserProfileService.SearchUserProfiles
|
|
321
|
+
*/
|
|
322
|
+
searchUserProfiles: {
|
|
323
|
+
methodKind: "unary";
|
|
324
|
+
input: typeof SearchUserProfilesRequestSchema;
|
|
325
|
+
output: typeof SearchUserProfilesResponseSchema;
|
|
326
|
+
};
|
|
254
327
|
/**
|
|
255
328
|
*
|
|
256
329
|
* Retrieves a presigned upload URL for a user profile picture.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// @generated from file meshtrade/iam/user_profile/v1/service.proto (package meshtrade.iam.user_profile.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UserProfileService = exports.GetUserProfilePictureUploadUrlResponseSchema = exports.GetUserProfilePictureUploadUrlRequestSchema = exports.ListUserProfilesResponseSchema = exports.ListUserProfilesRequestSchema = exports.GetUserProfileRequestSchema = exports.UpdateUserProfileRequestSchema = exports.GetUserProfileByUserRequestSchema = exports.file_meshtrade_iam_user_profile_v1_service = void 0;
|
|
6
|
+
exports.UserProfileService = exports.SearchUserProfilesResponseSchema = exports.SearchUserProfilesRequestSchema = exports.GetUserProfilePictureUploadUrlResponseSchema = exports.GetUserProfilePictureUploadUrlRequestSchema = exports.ListUserProfilesResponseSchema = exports.ListUserProfilesRequestSchema = exports.GetUserProfileRequestSchema = exports.UpdateUserProfileRequestSchema = exports.GetUserProfileByUserRequestSchema = exports.file_meshtrade_iam_user_profile_v1_service = void 0;
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
8
|
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
9
|
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
@@ -12,7 +12,7 @@ const method_options_pb_1 = require("../../../option/method_options/v1/method_op
|
|
|
12
12
|
/**
|
|
13
13
|
* Describes the file meshtrade/iam/user_profile/v1/service.proto.
|
|
14
14
|
*/
|
|
15
|
-
exports.file_meshtrade_iam_user_profile_v1_service = (0, codegenv2_1.fileDesc)("CittZXNodHJhZGUvaWFtL3VzZXJfcHJvZmlsZS92MS9zZXJ2aWNlLnByb3RvEh1tZXNodHJhZGUuaWFtLnVzZXJfcHJvZmlsZS52MSL4AgobR2V0VXNlclByb2ZpbGVCeVVzZXJSZXF1ZXN0EtgCCgR1c2VyGAEgASgJQskCukjFAroBVgoNdXNlci5yZXF1aXJlZBI1dXNlciBpcyByZXF1aXJlZCBhbmQgbXVzdCBiZSBpbiBmb3JtYXQgdXNlcnMve1VMSUR2Mn0aDnNpemUodGhpcykgPiAwugGxAQoLdXNlci5mb3JtYXQSYm5hbWUgbXVzdCBiZSBpbiBmb3JtYXQgdXNlcnMve1VMSUR2Mn0gd2hlcmUgdWxpZHYyIGlzIGV4YWN0bHkgMjYgdXBwZXJjYXNlIGFscGhhbnVtZXJpYyBjaGFyYWN0ZXJzGj50aGlzLm1hdGNoZXMoJ151c2Vycy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSQnKcgBAXIyEAEyLl51c2Vycy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSQiZAoYVXBkYXRlVXNlclByb2ZpbGVSZXF1ZXN0EkgKDHVzZXJfcHJvZmlsZRgBIAEoCzIqLm1lc2h0cmFkZS5pYW0udXNlcl9wcm9maWxlLnYxLlVzZXJQcm9maWxlQga6SAPIAQEiogMKFUdldFVzZXJQcm9maWxlUmVxdWVzdBKIAwoEbmFtZRgBIAEoCUL5ArpI9QK6AWIKDW5hbWUucmVxdWlyZWQSQW5hbWUgaXMgcmVxdWlyZWQgYW5kIG11c3QgYmU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JjaFVzZXJQcm9maWxlcxI4Lm1lc2h0cmFkZS5pYW0udXNlcl9wcm9maWxlLnYxLlNlYXJjaFVzZXJQcm9maWxlc1JlcXVlc3QaOS5tZXNodHJhZGUuaWFtLnVzZXJfcHJvZmlsZS52MS5TZWFyY2hVc2VyUHJvZmlsZXNSZXNwb25zZSIasrUYFggBEAIaEMCNtwHBjbcByI23AcmNtwESwQEKHkdldFVzZXJQcm9maWxlUGljdHVyZVVwbG9hZFVybBJELm1lc2h0cmFkZS5pYW0udXNlcl9wcm9maWxlLnYxLkdldFVzZXJQcm9maWxlUGljdHVyZVVwbG9hZFVybFJlcXVlc3QaRS5tZXNodHJhZGUuaWFtLnVzZXJfcHJvZmlsZS52MS5HZXRVc2VyUHJvZmlsZVBpY3R1cmVVcGxvYWRVcmxSZXNwb25zZSISsrUYDggBEAIaCMCNtwHIjbcBQmcKJGNvLm1lc2h0cmFkZS5hcGkuaWFtLnVzZXJfcHJvZmlsZS52MVo/Z2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL2lhbS91c2VyX3Byb2ZpbGUvdjE7dXNlcl9wcm9maWxlX3YxYgZwcm90bzM", [validate_pb_1.file_buf_validate_validate, wkt_1.file_google_protobuf_timestamp, user_profile_pb_1.file_meshtrade_iam_user_profile_v1_user_profile, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options]);
|
|
16
16
|
/**
|
|
17
17
|
* Describes the message meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.
|
|
18
18
|
* Use `create(GetUserProfileByUserRequestSchema)` to create a new message.
|
|
@@ -48,6 +48,16 @@ exports.GetUserProfilePictureUploadUrlRequestSchema = (0, codegenv2_1.messageDes
|
|
|
48
48
|
* Use `create(GetUserProfilePictureUploadUrlResponseSchema)` to create a new message.
|
|
49
49
|
*/
|
|
50
50
|
exports.GetUserProfilePictureUploadUrlResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_user_profile_v1_service, 6);
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message meshtrade.iam.user_profile.v1.SearchUserProfilesRequest.
|
|
53
|
+
* Use `create(SearchUserProfilesRequestSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
exports.SearchUserProfilesRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_user_profile_v1_service, 7);
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message meshtrade.iam.user_profile.v1.SearchUserProfilesResponse.
|
|
58
|
+
* Use `create(SearchUserProfilesResponseSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
exports.SearchUserProfilesResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_user_profile_v1_service, 8);
|
|
51
61
|
/**
|
|
52
62
|
*
|
|
53
63
|
* UserProfileService manages user profile information and preferences.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetUserProfileByUserRequest, GetUserProfilePictureUploadUrlRequest, GetUserProfilePictureUploadUrlResponse, GetUserProfileRequest, ListUserProfilesRequest, ListUserProfilesResponse, UpdateUserProfileRequest } from "./service_pb";
|
|
1
|
+
import { GetUserProfileByUserRequest, GetUserProfilePictureUploadUrlRequest, GetUserProfilePictureUploadUrlResponse, GetUserProfileRequest, ListUserProfilesRequest, ListUserProfilesResponse, SearchUserProfilesRequest, SearchUserProfilesResponse, UpdateUserProfileRequest } from "./service_pb";
|
|
2
2
|
import { UserProfile } from "./user_profile_pb";
|
|
3
3
|
import { ClientOption } from "../../../config";
|
|
4
4
|
/**
|
|
@@ -106,6 +106,12 @@ export declare class UserProfileServiceWeb {
|
|
|
106
106
|
* @returns {Promise<ListUserProfilesResponse>} A promise that resolves with the list of user profiles.
|
|
107
107
|
*/
|
|
108
108
|
listUserProfiles(request: ListUserProfilesRequest): Promise<ListUserProfilesResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Searches for user profiles.
|
|
111
|
+
* @param {SearchUserProfilesRequest} request - The request object for searchuserprofiles.
|
|
112
|
+
* @returns {Promise<SearchUserProfilesResponse>} A promise that resolves with the search results.
|
|
113
|
+
*/
|
|
114
|
+
searchUserProfiles(request: SearchUserProfilesRequest): Promise<SearchUserProfilesResponse>;
|
|
109
115
|
/**
|
|
110
116
|
* Retrieves an user profile.
|
|
111
117
|
* @param {GetUserProfilePictureUploadUrlRequest} request - The request object for getuserprofilepictureuploadurl.
|
|
@@ -198,6 +198,23 @@ class UserProfileServiceWeb {
|
|
|
198
198
|
}
|
|
199
199
|
return this._client.listUserProfiles(request);
|
|
200
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Searches for user profiles.
|
|
203
|
+
* @param {SearchUserProfilesRequest} request - The request object for searchuserprofiles.
|
|
204
|
+
* @returns {Promise<SearchUserProfilesResponse>} A promise that resolves with the search results.
|
|
205
|
+
*/
|
|
206
|
+
searchUserProfiles(request) {
|
|
207
|
+
// Validate request
|
|
208
|
+
const result = this._validator.validate(service_pb_2.SearchUserProfilesRequestSchema, request);
|
|
209
|
+
if (result.kind === "invalid") {
|
|
210
|
+
const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
|
|
211
|
+
throw new Error(`Validation failed: ${violations}`);
|
|
212
|
+
}
|
|
213
|
+
else if (result.kind === "error") {
|
|
214
|
+
throw result.error;
|
|
215
|
+
}
|
|
216
|
+
return this._client.searchUserProfiles(request);
|
|
217
|
+
}
|
|
201
218
|
/**
|
|
202
219
|
* Retrieves an user profile.
|
|
203
220
|
* @param {GetUserProfilePictureUploadUrlRequest} request - The request object for getuserprofilepictureuploadurl.
|