@meshtrade/api-node 1.30.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/README.md +93 -0
- package/dist/buf/validate/validate_pb.d.ts +4597 -0
- package/dist/buf/validate/validate_pb.js +354 -0
- package/dist/google/type/date_pb.d.ts +52 -0
- package/dist/google/type/date_pb.js +26 -0
- package/dist/meshtrade/common/config.d.ts +50 -0
- package/dist/meshtrade/common/config.js +34 -0
- package/dist/meshtrade/common/connectInterceptors.d.ts +137 -0
- package/dist/meshtrade/common/connectInterceptors.js +233 -0
- package/dist/meshtrade/common/validation.d.ts +62 -0
- package/dist/meshtrade/common/validation.js +77 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.d.ts +138 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.js +23 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +313 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.js +100 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.d.ts +81 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.js +22 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.d.ts +88 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.js +95 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.d.ts +55 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.js +62 -0
- package/dist/meshtrade/compliance/client/v1/index.d.ts +16 -0
- package/dist/meshtrade/compliance/client/v1/index.js +59 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +86 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +16 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.d.ts +133 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.js +140 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.d.ts +143 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.js +24 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.d.ts +46 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.js +53 -0
- package/dist/meshtrade/compliance/client/v1/service_node_meshts.d.ts +78 -0
- package/dist/meshtrade/compliance/client/v1/service_node_meshts.js +141 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +123 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +45 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.d.ts +180 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.js +187 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.d.ts +40 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.js +17 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.d.ts +57 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.js +64 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.d.ts +43 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.js +17 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +152 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +95 -0
- package/dist/meshtrade/iam/api_user/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/api_user/v1/index.js +45 -0
- package/dist/meshtrade/iam/api_user/v1/service_node_meshts.d.ts +114 -0
- package/dist/meshtrade/iam/api_user/v1/service_node_meshts.js +201 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.d.ts +343 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +86 -0
- package/dist/meshtrade/iam/group/v1/group_pb.d.ts +58 -0
- package/dist/meshtrade/iam/group/v1/group_pb.js +17 -0
- package/dist/meshtrade/iam/group/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/group/v1/index.js +44 -0
- package/dist/meshtrade/iam/group/v1/service_node_meshts.d.ts +90 -0
- package/dist/meshtrade/iam/group/v1/service_node_meshts.js +161 -0
- package/dist/meshtrade/iam/group/v1/service_pb.d.ts +306 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +75 -0
- package/dist/meshtrade/iam/role/v1/index.d.ts +2 -0
- package/dist/meshtrade/iam/role/v1/index.js +43 -0
- package/dist/meshtrade/iam/role/v1/role.d.ts +71 -0
- package/dist/meshtrade/iam/role/v1/role.js +192 -0
- package/dist/meshtrade/iam/role/v1/role_pb.d.ts +164 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +171 -0
- package/dist/meshtrade/iam/user/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/user/v1/index.js +44 -0
- package/dist/meshtrade/iam/user/v1/service_node_meshts.d.ts +108 -0
- package/dist/meshtrade/iam/user/v1/service_node_meshts.js +191 -0
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +379 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +90 -0
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +58 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +17 -0
- package/dist/meshtrade/ledger/transaction/v1/index.d.ts +5 -0
- package/dist/meshtrade/ledger/transaction/v1/index.js +46 -0
- package/dist/meshtrade/ledger/transaction/v1/service_node_meshts.d.ts +80 -0
- package/dist/meshtrade/ledger/transaction/v1/service_node_meshts.js +140 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.d.ts +102 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +41 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.d.ts +46 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.js +53 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.d.ts +14 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.js +64 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.js +57 -0
- package/dist/meshtrade/market_data/price/v1/index.d.ts +3 -0
- package/dist/meshtrade/market_data/price/v1/index.js +44 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.d.ts +50 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.js +19 -0
- package/dist/meshtrade/market_data/price/v1/service_node_meshts.d.ts +66 -0
- package/dist/meshtrade/market_data/price/v1/service_node_meshts.js +121 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.d.ts +48 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +27 -0
- package/dist/meshtrade/option/method_options/v1/index.d.ts +1 -0
- package/dist/meshtrade/option/method_options/v1/index.js +42 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +132 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +108 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.d.ts +136 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.js +28 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.d.ts +39 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.js +16 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.d.ts +66 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.js +18 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.d.ts +139 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.js +80 -0
- package/dist/meshtrade/reporting/account_report/v1/index.d.ts +7 -0
- package/dist/meshtrade/reporting/account_report/v1/index.js +48 -0
- package/dist/meshtrade/reporting/account_report/v1/service_node_meshts.d.ts +72 -0
- package/dist/meshtrade/reporting/account_report/v1/service_node_meshts.js +131 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.d.ts +162 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +46 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.d.ts +80 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/index.d.ts +3 -0
- package/dist/meshtrade/studio/instrument/v1/index.js +44 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.d.ts +53 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.d.ts +214 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.js +221 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.d.ts +148 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.js +155 -0
- package/dist/meshtrade/trading/limit_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/limit_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +211 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +111 -0
- package/dist/meshtrade/trading/limit_order/v1/service_node_meshts.d.ts +111 -0
- package/dist/meshtrade/trading/limit_order/v1/service_node_meshts.js +190 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +357 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +73 -0
- package/dist/meshtrade/trading/market_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/market_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.d.ts +20 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.js +16 -0
- package/dist/meshtrade/trading/market_order/v1/service_node_meshts.d.ts +66 -0
- package/dist/meshtrade/trading/market_order/v1/service_node_meshts.js +121 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.d.ts +34 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +22 -0
- package/dist/meshtrade/type/v1/address_pb.d.ts +82 -0
- package/dist/meshtrade/type/v1/address_pb.js +16 -0
- package/dist/meshtrade/type/v1/amount.d.ts +13 -0
- package/dist/meshtrade/type/v1/amount.js +68 -0
- package/dist/meshtrade/type/v1/amountWrapper.d.ts +74 -0
- package/dist/meshtrade/type/v1/amountWrapper.js +98 -0
- package/dist/meshtrade/type/v1/amount_pb.d.ts +44 -0
- package/dist/meshtrade/type/v1/amount_pb.js +18 -0
- package/dist/meshtrade/type/v1/contact_details_pb.d.ts +98 -0
- package/dist/meshtrade/type/v1/contact_details_pb.js +16 -0
- package/dist/meshtrade/type/v1/date.d.ts +49 -0
- package/dist/meshtrade/type/v1/date.js +136 -0
- package/dist/meshtrade/type/v1/date_pb.d.ts +50 -0
- package/dist/meshtrade/type/v1/date_pb.js +16 -0
- package/dist/meshtrade/type/v1/decimalConversions.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimalConversions.js +39 -0
- package/dist/meshtrade/type/v1/decimal_pb.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimal_pb.js +16 -0
- package/dist/meshtrade/type/v1/index.d.ts +15 -0
- package/dist/meshtrade/type/v1/index.js +56 -0
- package/dist/meshtrade/type/v1/ledger.d.ts +27 -0
- package/dist/meshtrade/type/v1/ledger.js +115 -0
- package/dist/meshtrade/type/v1/ledger_pb.d.ts +83 -0
- package/dist/meshtrade/type/v1/ledger_pb.js +90 -0
- package/dist/meshtrade/type/v1/sorting_pb.d.ts +35 -0
- package/dist/meshtrade/type/v1/sorting_pb.js +42 -0
- package/dist/meshtrade/type/v1/time_of_day.d.ts +74 -0
- package/dist/meshtrade/type/v1/time_of_day.js +199 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.d.ts +67 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.js +16 -0
- package/dist/meshtrade/type/v1/token.d.ts +4 -0
- package/dist/meshtrade/type/v1/token.js +23 -0
- package/dist/meshtrade/type/v1/tokenWrapper.d.ts +49 -0
- package/dist/meshtrade/type/v1/tokenWrapper.js +92 -0
- package/dist/meshtrade/type/v1/token_pb.d.ts +56 -0
- package/dist/meshtrade/type/v1/token_pb.js +17 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +264 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +74 -0
- package/dist/meshtrade/wallet/account/v1/index.d.ts +3 -0
- package/dist/meshtrade/wallet/account/v1/index.js +44 -0
- package/dist/meshtrade/wallet/account/v1/service_node_meshts.d.ts +114 -0
- package/dist/meshtrade/wallet/account/v1/service_node_meshts.js +201 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +559 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +112 -0
- package/package.json +171 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/iam/role/v1/role.proto (package meshtrade.iam.role.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RoleSchema = exports.Role = exports.file_meshtrade_iam_role_v1_role = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file meshtrade/iam/role/v1/role.proto.
|
|
10
|
+
*/
|
|
11
|
+
exports.file_meshtrade_iam_role_v1_role = (0, codegenv2_1.fileDesc)("CiBtZXNodHJhZGUvaWFtL3JvbGUvdjEvcm9sZS5wcm90bxIVbWVzaHRyYWRlLmlhbS5yb2xlLnYxKscICgRSb2xlEhQKEFJPTEVfVU5TUEVDSUZJRUQQABIXChFST0xFX1dBTExFVF9BRE1JThDAhD0SGAoSUk9MRV9XQUxMRVRfVklFV0VSEMGEPRIfChlST0xFX1dBTExFVF9BQ0NPVU5UX0FETUlOEMKEPRIgChpST0xFX1dBTExFVF9BQ0NPVU5UX1ZJRVdFUhDDhD0SGwoVUk9MRV9DT01QTElBTkNFX0FETUlOEICJehIcChZST0xFX0NPTVBMSUFOQ0VfVklFV0VSEIGJehIiChxST0xFX0NPTVBMSUFOQ0VfQ0xJRU5UX0FETUlOEIKJehIjCh1ST0xFX0NPTVBMSUFOQ0VfQ0xJRU5UX1ZJRVdFUhCDiXoSFQoOUk9MRV9JQU1fQURNSU4QwI23ARIWCg9ST0xFX0lBTV9WSUVXRVIQwY23ARIeChdST0xFX0lBTV9BUElfVVNFUl9BRE1JThDCjbcBEh8KGFJPTEVfSUFNX0FQSV9VU0VSX1ZJRVdFUhDDjbcBEhsKFFJPTEVfSUFNX0dST1VQX0FETUlOEMSNtwESHAoVUk9MRV9JQU1fR1JPVVBfVklFV0VSEMWNtwESGgoTUk9MRV9JQU1fVVNFUl9BRE1JThDGjbcBEhsKFFJPTEVfSUFNX1VTRVJfVklFV0VSEMeNtwESGAoRUk9MRV9TVFVESU9fQURNSU4QgJL0ARIZChJST0xFX1NUVURJT19WSUVXRVIQgZL0ARIjChxST0xFX1NUVURJT19JTlNUUlVNRU5UX0FETUlOEIKS9AESJAodUk9MRV9TVFVESU9fSU5TVFJVTUVOVF9WSUVXRVIQg5L0ARIZChJST0xFX1RSQURJTkdfQURNSU4QwJaxAhIaChNST0xFX1RSQURJTkdfVklFV0VSEMGWsQISJQoeUk9MRV9UUkFESU5HX0xJTUlUX09SREVSX0FETUlOEMKWsQISJgofUk9MRV9UUkFESU5HX0xJTUlUX09SREVSX1ZJRVdFUhDDlrECEhsKFFJPTEVfUkVQT1JUSU5HX0FETUlOEICb7gISHAoVUk9MRV9SRVBPUlRJTkdfVklFV0VSEIGb7gISGAoRUk9MRV9MRURHRVJfQURNSU4QwJ+rAxIZChJST0xFX0xFREdFUl9WSUVXRVIQwZ+rAxIkCh1ST0xFX0xFREdFUl9UUkFOU0FDVElPTl9BRE1JThDCn6sDEiUKHlJPTEVfTEVER0VSX1RSQU5TQUNUSU9OX1ZJRVdFUhDDn6sDEh0KFlJPTEVfTUFSS0VUX0RBVEFfQURNSU4QgKToAxIeChdST0xFX01BUktFVF9EQVRBX1ZJRVdFUhCBpOgDEiMKHFJPTEVfTUFSS0VUX0RBVEFfUFJJQ0VfQURNSU4QgqToAxIkCh1ST0xFX01BUktFVF9EQVRBX1BSSUNFX1ZJRVdFUhCDpOgDQk8KHGNvLm1lc2h0cmFkZS5hcGkuaWFtLnJvbGUudjFaL2dpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby9pYW0vcm9sZS92MTtyb2xlX3YxYgZwcm90bzM");
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* Role defines a named collection of permissions.
|
|
15
|
+
* This allows for the creation of business-level roles (e.g., "AccountReader", "AccountAdmin")
|
|
16
|
+
* that group a set of granular, string-based permissions. Roles are
|
|
17
|
+
* defined at the file level in a service's `.proto` file.
|
|
18
|
+
*
|
|
19
|
+
* @generated from enum meshtrade.iam.role.v1.Role
|
|
20
|
+
*/
|
|
21
|
+
var Role;
|
|
22
|
+
(function (Role) {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* The default value, indicating the role is unknown or not specified.
|
|
26
|
+
* This should be treated as an error and not be used explicitly.
|
|
27
|
+
*
|
|
28
|
+
* @generated from enum value: ROLE_UNSPECIFIED = 0;
|
|
29
|
+
*/
|
|
30
|
+
Role[Role["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: ROLE_WALLET_ADMIN = 1000000;
|
|
33
|
+
*/
|
|
34
|
+
Role[Role["WALLET_ADMIN"] = 1000000] = "WALLET_ADMIN";
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: ROLE_WALLET_VIEWER = 1000001;
|
|
37
|
+
*/
|
|
38
|
+
Role[Role["WALLET_VIEWER"] = 1000001] = "WALLET_VIEWER";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: ROLE_WALLET_ACCOUNT_ADMIN = 1000002;
|
|
41
|
+
*/
|
|
42
|
+
Role[Role["WALLET_ACCOUNT_ADMIN"] = 1000002] = "WALLET_ACCOUNT_ADMIN";
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: ROLE_WALLET_ACCOUNT_VIEWER = 1000003;
|
|
45
|
+
*/
|
|
46
|
+
Role[Role["WALLET_ACCOUNT_VIEWER"] = 1000003] = "WALLET_ACCOUNT_VIEWER";
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: ROLE_COMPLIANCE_ADMIN = 2000000;
|
|
49
|
+
*/
|
|
50
|
+
Role[Role["COMPLIANCE_ADMIN"] = 2000000] = "COMPLIANCE_ADMIN";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: ROLE_COMPLIANCE_VIEWER = 2000001;
|
|
53
|
+
*/
|
|
54
|
+
Role[Role["COMPLIANCE_VIEWER"] = 2000001] = "COMPLIANCE_VIEWER";
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: ROLE_COMPLIANCE_CLIENT_ADMIN = 2000002;
|
|
57
|
+
*/
|
|
58
|
+
Role[Role["COMPLIANCE_CLIENT_ADMIN"] = 2000002] = "COMPLIANCE_CLIENT_ADMIN";
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: ROLE_COMPLIANCE_CLIENT_VIEWER = 2000003;
|
|
61
|
+
*/
|
|
62
|
+
Role[Role["COMPLIANCE_CLIENT_VIEWER"] = 2000003] = "COMPLIANCE_CLIENT_VIEWER";
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: ROLE_IAM_ADMIN = 3000000;
|
|
65
|
+
*/
|
|
66
|
+
Role[Role["IAM_ADMIN"] = 3000000] = "IAM_ADMIN";
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: ROLE_IAM_VIEWER = 3000001;
|
|
69
|
+
*/
|
|
70
|
+
Role[Role["IAM_VIEWER"] = 3000001] = "IAM_VIEWER";
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: ROLE_IAM_API_USER_ADMIN = 3000002;
|
|
73
|
+
*/
|
|
74
|
+
Role[Role["IAM_API_USER_ADMIN"] = 3000002] = "IAM_API_USER_ADMIN";
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum value: ROLE_IAM_API_USER_VIEWER = 3000003;
|
|
77
|
+
*/
|
|
78
|
+
Role[Role["IAM_API_USER_VIEWER"] = 3000003] = "IAM_API_USER_VIEWER";
|
|
79
|
+
/**
|
|
80
|
+
* @generated from enum value: ROLE_IAM_GROUP_ADMIN = 3000004;
|
|
81
|
+
*/
|
|
82
|
+
Role[Role["IAM_GROUP_ADMIN"] = 3000004] = "IAM_GROUP_ADMIN";
|
|
83
|
+
/**
|
|
84
|
+
* @generated from enum value: ROLE_IAM_GROUP_VIEWER = 3000005;
|
|
85
|
+
*/
|
|
86
|
+
Role[Role["IAM_GROUP_VIEWER"] = 3000005] = "IAM_GROUP_VIEWER";
|
|
87
|
+
/**
|
|
88
|
+
* @generated from enum value: ROLE_IAM_USER_ADMIN = 3000006;
|
|
89
|
+
*/
|
|
90
|
+
Role[Role["IAM_USER_ADMIN"] = 3000006] = "IAM_USER_ADMIN";
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum value: ROLE_IAM_USER_VIEWER = 3000007;
|
|
93
|
+
*/
|
|
94
|
+
Role[Role["IAM_USER_VIEWER"] = 3000007] = "IAM_USER_VIEWER";
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: ROLE_STUDIO_ADMIN = 4000000;
|
|
97
|
+
*/
|
|
98
|
+
Role[Role["STUDIO_ADMIN"] = 4000000] = "STUDIO_ADMIN";
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum value: ROLE_STUDIO_VIEWER = 4000001;
|
|
101
|
+
*/
|
|
102
|
+
Role[Role["STUDIO_VIEWER"] = 4000001] = "STUDIO_VIEWER";
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: ROLE_STUDIO_INSTRUMENT_ADMIN = 4000002;
|
|
105
|
+
*/
|
|
106
|
+
Role[Role["STUDIO_INSTRUMENT_ADMIN"] = 4000002] = "STUDIO_INSTRUMENT_ADMIN";
|
|
107
|
+
/**
|
|
108
|
+
* @generated from enum value: ROLE_STUDIO_INSTRUMENT_VIEWER = 4000003;
|
|
109
|
+
*/
|
|
110
|
+
Role[Role["STUDIO_INSTRUMENT_VIEWER"] = 4000003] = "STUDIO_INSTRUMENT_VIEWER";
|
|
111
|
+
/**
|
|
112
|
+
* @generated from enum value: ROLE_TRADING_ADMIN = 5000000;
|
|
113
|
+
*/
|
|
114
|
+
Role[Role["TRADING_ADMIN"] = 5000000] = "TRADING_ADMIN";
|
|
115
|
+
/**
|
|
116
|
+
* @generated from enum value: ROLE_TRADING_VIEWER = 5000001;
|
|
117
|
+
*/
|
|
118
|
+
Role[Role["TRADING_VIEWER"] = 5000001] = "TRADING_VIEWER";
|
|
119
|
+
/**
|
|
120
|
+
* @generated from enum value: ROLE_TRADING_LIMIT_ORDER_ADMIN = 5000002;
|
|
121
|
+
*/
|
|
122
|
+
Role[Role["TRADING_LIMIT_ORDER_ADMIN"] = 5000002] = "TRADING_LIMIT_ORDER_ADMIN";
|
|
123
|
+
/**
|
|
124
|
+
* @generated from enum value: ROLE_TRADING_LIMIT_ORDER_VIEWER = 5000003;
|
|
125
|
+
*/
|
|
126
|
+
Role[Role["TRADING_LIMIT_ORDER_VIEWER"] = 5000003] = "TRADING_LIMIT_ORDER_VIEWER";
|
|
127
|
+
/**
|
|
128
|
+
* @generated from enum value: ROLE_REPORTING_ADMIN = 6000000;
|
|
129
|
+
*/
|
|
130
|
+
Role[Role["REPORTING_ADMIN"] = 6000000] = "REPORTING_ADMIN";
|
|
131
|
+
/**
|
|
132
|
+
* @generated from enum value: ROLE_REPORTING_VIEWER = 6000001;
|
|
133
|
+
*/
|
|
134
|
+
Role[Role["REPORTING_VIEWER"] = 6000001] = "REPORTING_VIEWER";
|
|
135
|
+
/**
|
|
136
|
+
* @generated from enum value: ROLE_LEDGER_ADMIN = 7000000;
|
|
137
|
+
*/
|
|
138
|
+
Role[Role["LEDGER_ADMIN"] = 7000000] = "LEDGER_ADMIN";
|
|
139
|
+
/**
|
|
140
|
+
* @generated from enum value: ROLE_LEDGER_VIEWER = 7000001;
|
|
141
|
+
*/
|
|
142
|
+
Role[Role["LEDGER_VIEWER"] = 7000001] = "LEDGER_VIEWER";
|
|
143
|
+
/**
|
|
144
|
+
* @generated from enum value: ROLE_LEDGER_TRANSACTION_ADMIN = 7000002;
|
|
145
|
+
*/
|
|
146
|
+
Role[Role["LEDGER_TRANSACTION_ADMIN"] = 7000002] = "LEDGER_TRANSACTION_ADMIN";
|
|
147
|
+
/**
|
|
148
|
+
* @generated from enum value: ROLE_LEDGER_TRANSACTION_VIEWER = 7000003;
|
|
149
|
+
*/
|
|
150
|
+
Role[Role["LEDGER_TRANSACTION_VIEWER"] = 7000003] = "LEDGER_TRANSACTION_VIEWER";
|
|
151
|
+
/**
|
|
152
|
+
* @generated from enum value: ROLE_MARKET_DATA_ADMIN = 8000000;
|
|
153
|
+
*/
|
|
154
|
+
Role[Role["MARKET_DATA_ADMIN"] = 8000000] = "MARKET_DATA_ADMIN";
|
|
155
|
+
/**
|
|
156
|
+
* @generated from enum value: ROLE_MARKET_DATA_VIEWER = 8000001;
|
|
157
|
+
*/
|
|
158
|
+
Role[Role["MARKET_DATA_VIEWER"] = 8000001] = "MARKET_DATA_VIEWER";
|
|
159
|
+
/**
|
|
160
|
+
* @generated from enum value: ROLE_MARKET_DATA_PRICE_ADMIN = 8000002;
|
|
161
|
+
*/
|
|
162
|
+
Role[Role["MARKET_DATA_PRICE_ADMIN"] = 8000002] = "MARKET_DATA_PRICE_ADMIN";
|
|
163
|
+
/**
|
|
164
|
+
* @generated from enum value: ROLE_MARKET_DATA_PRICE_VIEWER = 8000003;
|
|
165
|
+
*/
|
|
166
|
+
Role[Role["MARKET_DATA_PRICE_VIEWER"] = 8000003] = "MARKET_DATA_PRICE_VIEWER";
|
|
167
|
+
})(Role || (exports.Role = Role = {}));
|
|
168
|
+
/**
|
|
169
|
+
* Describes the enum meshtrade.iam.role.v1.Role.
|
|
170
|
+
*/
|
|
171
|
+
exports.RoleSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_iam_role_v1_role, 0);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ===================================================================
|
|
3
|
+
// AUTO-GENERATED SECTION - ONLY EDIT BELOW THE CLOSING COMMENT BLOCK
|
|
4
|
+
// ===================================================================
|
|
5
|
+
// This section is automatically managed by protoc-gen-meshts.
|
|
6
|
+
//
|
|
7
|
+
// DO NOT EDIT ANYTHING IN THIS SECTION MANUALLY!
|
|
8
|
+
// Your changes will be overwritten during code generation.
|
|
9
|
+
//
|
|
10
|
+
// To add custom exports, scroll down to the
|
|
11
|
+
// "MANUAL EXPORTS" section indicated below.
|
|
12
|
+
// ===================================================================
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
// Generated exports
|
|
29
|
+
__exportStar(require("./service_node_meshts"), exports);
|
|
30
|
+
__exportStar(require("./service_pb"), exports);
|
|
31
|
+
__exportStar(require("./user_pb"), exports);
|
|
32
|
+
// ===================================================================
|
|
33
|
+
// END OF AUTO-GENERATED SECTION
|
|
34
|
+
// ===================================================================
|
|
35
|
+
//
|
|
36
|
+
// MANUAL EXPORTS - ADD YOUR CUSTOM EXPORTS BELOW
|
|
37
|
+
//
|
|
38
|
+
// You can safely add your own export statements in this section.
|
|
39
|
+
// They will be preserved across code generation.
|
|
40
|
+
//
|
|
41
|
+
// Example:
|
|
42
|
+
// export * from "./my_custom_module";
|
|
43
|
+
// export { MyCustomClass } from "./another_module";
|
|
44
|
+
// ===================================================================
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Interceptor } from "@connectrpc/connect";
|
|
2
|
+
import { AssignRolesToUserRequest, CreateUserRequest, GetUserByEmailRequest, GetUserRequest, ListUsersRequest, ListUsersResponse, RevokeRolesFromUserRequest, SearchUsersRequest, SearchUsersResponse, UpdateUserRequest } from "./service_pb";
|
|
3
|
+
import { User } from "./user_pb";
|
|
4
|
+
import { ConfigOpts } from "../../../common/config";
|
|
5
|
+
/**
|
|
6
|
+
* Node.js client for interacting with the meshtrade.iam.user.v1 user v1 API resource service.
|
|
7
|
+
* Uses Connect-ES with gRPC transport for Node.js gRPC communication.
|
|
8
|
+
*
|
|
9
|
+
* Supports three authentication modes:
|
|
10
|
+
*
|
|
11
|
+
* 1. **No Authentication** (public APIs):
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const client = new UserServiceNode({ apiServerURL: "http://localhost:10000" });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* 2. **API Key Authentication** (backend services):
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const client = new UserServiceNode({
|
|
19
|
+
* apiServerURL: "https://api.example.com",
|
|
20
|
+
* apiKey: "your-api-key",
|
|
21
|
+
* group: "groups/01ARZ3NDEKTSV4YWVF8F5BH32"
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* 3. **JWT Token Authentication** (Next.js backend with user session):
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const client = new UserServiceNode({
|
|
28
|
+
* apiServerURL: "https://api.example.com",
|
|
29
|
+
* jwtToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class UserServiceNode {
|
|
34
|
+
private _client;
|
|
35
|
+
private readonly _config;
|
|
36
|
+
private readonly _interceptors;
|
|
37
|
+
/**
|
|
38
|
+
* Constructs an instance of UserServiceNode.
|
|
39
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
40
|
+
* @param {Interceptor[]} [interceptors] - For internal use by `withGroup`.
|
|
41
|
+
*/
|
|
42
|
+
constructor(config?: ConfigOpts, interceptors?: Interceptor[]);
|
|
43
|
+
/**
|
|
44
|
+
* Returns a new client instance configured to send the specified group
|
|
45
|
+
* resource name in the request headers for subsequent API calls.
|
|
46
|
+
*
|
|
47
|
+
* **Important**: This method only works with API key authentication.
|
|
48
|
+
* - For **API key auth**: Creates a new client with updated group context
|
|
49
|
+
* - For **JWT auth**: Throws error (group comes from JWT token claims)
|
|
50
|
+
* - For **no auth**: Throws error (group requires authentication)
|
|
51
|
+
*
|
|
52
|
+
* @param {string} group - The operating group context to inject into the request
|
|
53
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
54
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
55
|
+
* @returns {UserServiceNode} A new, configured instance of the client.
|
|
56
|
+
* @throws {Error} If used with JWT authentication or no authentication
|
|
57
|
+
* @throws {Error} If the group format is invalid
|
|
58
|
+
*/
|
|
59
|
+
withGroup(group: string): UserServiceNode;
|
|
60
|
+
/**
|
|
61
|
+
* Performs assignrolestouser operation on user.
|
|
62
|
+
* @param {AssignRolesToUserRequest} request - The request object for assignrolestouser.
|
|
63
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
64
|
+
*/
|
|
65
|
+
assignRolesToUser(request: AssignRolesToUserRequest): Promise<User>;
|
|
66
|
+
/**
|
|
67
|
+
* Performs revokerolesfromuser operation on user.
|
|
68
|
+
* @param {RevokeRolesFromUserRequest} request - The request object for revokerolesfromuser.
|
|
69
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
70
|
+
*/
|
|
71
|
+
revokeRolesFromUser(request: RevokeRolesFromUserRequest): Promise<User>;
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves an user.
|
|
74
|
+
* @param {GetUserRequest} request - The request object for getuser.
|
|
75
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
76
|
+
*/
|
|
77
|
+
getUser(request: GetUserRequest): Promise<User>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves an user.
|
|
80
|
+
* @param {GetUserByEmailRequest} request - The request object for getuserbyemail.
|
|
81
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
82
|
+
*/
|
|
83
|
+
getUserByEmail(request: GetUserByEmailRequest): Promise<User>;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieves a list of users.
|
|
86
|
+
* @param {ListUsersRequest} request - The request object for listusers.
|
|
87
|
+
* @returns {Promise<ListUsersResponse>} A promise that resolves with the list of users.
|
|
88
|
+
*/
|
|
89
|
+
listUsers(request: ListUsersRequest): Promise<ListUsersResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* Searches for users.
|
|
92
|
+
* @param {SearchUsersRequest} request - The request object for searchusers.
|
|
93
|
+
* @returns {Promise<SearchUsersResponse>} A promise that resolves with the search results.
|
|
94
|
+
*/
|
|
95
|
+
searchUsers(request: SearchUsersRequest): Promise<SearchUsersResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Creates a new user.
|
|
98
|
+
* @param {CreateUserRequest} request - The request object for createuser.
|
|
99
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
100
|
+
*/
|
|
101
|
+
createUser(request: CreateUserRequest): Promise<User>;
|
|
102
|
+
/**
|
|
103
|
+
* Updates an existing user.
|
|
104
|
+
* @param {UpdateUserRequest} request - The request object for updateuser.
|
|
105
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
106
|
+
*/
|
|
107
|
+
updateUser(request: UpdateUserRequest): Promise<User>;
|
|
108
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-meshts v1
|
|
3
|
+
// @generated from file meshtrade/iam/user/v1/service.proto (package meshtrade.iam.user.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UserServiceNode = void 0;
|
|
7
|
+
const connect_1 = require("@connectrpc/connect");
|
|
8
|
+
const connect_node_1 = require("@connectrpc/connect-node");
|
|
9
|
+
const service_pb_1 = require("./service_pb");
|
|
10
|
+
const config_1 = require("../../../common/config");
|
|
11
|
+
const validation_1 = require("../../../common/validation");
|
|
12
|
+
const connectInterceptors_1 = require("../../../common/connectInterceptors");
|
|
13
|
+
/**
|
|
14
|
+
* Node.js client for interacting with the meshtrade.iam.user.v1 user v1 API resource service.
|
|
15
|
+
* Uses Connect-ES with gRPC transport for Node.js gRPC communication.
|
|
16
|
+
*
|
|
17
|
+
* Supports three authentication modes:
|
|
18
|
+
*
|
|
19
|
+
* 1. **No Authentication** (public APIs):
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const client = new UserServiceNode({ apiServerURL: "http://localhost:10000" });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* 2. **API Key Authentication** (backend services):
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const client = new UserServiceNode({
|
|
27
|
+
* apiServerURL: "https://api.example.com",
|
|
28
|
+
* apiKey: "your-api-key",
|
|
29
|
+
* group: "groups/01ARZ3NDEKTSV4YWVF8F5BH32"
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* 3. **JWT Token Authentication** (Next.js backend with user session):
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const client = new UserServiceNode({
|
|
36
|
+
* apiServerURL: "https://api.example.com",
|
|
37
|
+
* jwtToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
class UserServiceNode {
|
|
42
|
+
/**
|
|
43
|
+
* Constructs an instance of UserServiceNode.
|
|
44
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
45
|
+
* @param {Interceptor[]} [interceptors] - For internal use by `withGroup`.
|
|
46
|
+
*/
|
|
47
|
+
constructor(config, interceptors) {
|
|
48
|
+
this._config = (0, config_1.getConfigFromOpts)(config);
|
|
49
|
+
// If interceptors are provided (from withGroup), use them
|
|
50
|
+
// Otherwise, create auth interceptors based on config
|
|
51
|
+
if (interceptors) {
|
|
52
|
+
this._interceptors = interceptors;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this._interceptors = [];
|
|
56
|
+
// Add authentication interceptor based on configuration
|
|
57
|
+
if (this._config.apiKey && this._config.group) {
|
|
58
|
+
// API Key authentication mode
|
|
59
|
+
this._interceptors.push((0, connectInterceptors_1.createApiKeyInterceptor)(this._config.apiKey, this._config.group));
|
|
60
|
+
}
|
|
61
|
+
else if (this._config.jwtToken) {
|
|
62
|
+
// JWT authentication mode
|
|
63
|
+
this._interceptors.push((0, connectInterceptors_1.createJwtInterceptor)(this._config.jwtToken));
|
|
64
|
+
}
|
|
65
|
+
// If neither is configured, no authentication (public API mode)
|
|
66
|
+
}
|
|
67
|
+
// Create the gRPC transport for Node.js with interceptors
|
|
68
|
+
// Note: gRPC transport uses HTTP/2 by default
|
|
69
|
+
const transport = (0, connect_node_1.createGrpcTransport)({
|
|
70
|
+
baseUrl: this._config.apiServerURL,
|
|
71
|
+
interceptors: this._interceptors,
|
|
72
|
+
});
|
|
73
|
+
// Construct the Connect-ES client
|
|
74
|
+
this._client = (0, connect_1.createClient)(service_pb_1.UserService, transport);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Returns a new client instance configured to send the specified group
|
|
78
|
+
* resource name in the request headers for subsequent API calls.
|
|
79
|
+
*
|
|
80
|
+
* **Important**: This method only works with API key authentication.
|
|
81
|
+
* - For **API key auth**: Creates a new client with updated group context
|
|
82
|
+
* - For **JWT auth**: Throws error (group comes from JWT token claims)
|
|
83
|
+
* - For **no auth**: Throws error (group requires authentication)
|
|
84
|
+
*
|
|
85
|
+
* @param {string} group - The operating group context to inject into the request
|
|
86
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
87
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
88
|
+
* @returns {UserServiceNode} A new, configured instance of the client.
|
|
89
|
+
* @throws {Error} If used with JWT authentication or no authentication
|
|
90
|
+
* @throws {Error} If the group format is invalid
|
|
91
|
+
*/
|
|
92
|
+
withGroup(group) {
|
|
93
|
+
// Check authentication mode
|
|
94
|
+
if (this._config.jwtToken) {
|
|
95
|
+
throw new Error("Cannot use withGroup() with JWT authentication. " +
|
|
96
|
+
"The group context is determined by the JWT token claims.");
|
|
97
|
+
}
|
|
98
|
+
if (!this._config.apiKey) {
|
|
99
|
+
throw new Error("Cannot use withGroup() without authentication. " +
|
|
100
|
+
"Please configure API key authentication to use group context.");
|
|
101
|
+
}
|
|
102
|
+
// For API key authentication, create new client with updated group
|
|
103
|
+
// Replace the existing API key interceptor with one that has the new group
|
|
104
|
+
const newInterceptors = [
|
|
105
|
+
(0, connectInterceptors_1.createApiKeyInterceptor)(this._config.apiKey, group)
|
|
106
|
+
];
|
|
107
|
+
// Return a new client instance with updated group context
|
|
108
|
+
return new UserServiceNode(this._config, newInterceptors);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Performs assignrolestouser operation on user.
|
|
112
|
+
* @param {AssignRolesToUserRequest} request - The request object for assignrolestouser.
|
|
113
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
114
|
+
*/
|
|
115
|
+
assignRolesToUser(request) {
|
|
116
|
+
// Validate request
|
|
117
|
+
(0, validation_1.validateRequest)(request);
|
|
118
|
+
return this._client.assignRolesToUser(request);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Performs revokerolesfromuser operation on user.
|
|
122
|
+
* @param {RevokeRolesFromUserRequest} request - The request object for revokerolesfromuser.
|
|
123
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
124
|
+
*/
|
|
125
|
+
revokeRolesFromUser(request) {
|
|
126
|
+
// Validate request
|
|
127
|
+
(0, validation_1.validateRequest)(request);
|
|
128
|
+
return this._client.revokeRolesFromUser(request);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Retrieves an user.
|
|
132
|
+
* @param {GetUserRequest} request - The request object for getuser.
|
|
133
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
134
|
+
*/
|
|
135
|
+
getUser(request) {
|
|
136
|
+
// Validate request
|
|
137
|
+
(0, validation_1.validateRequest)(request);
|
|
138
|
+
return this._client.getUser(request);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Retrieves an user.
|
|
142
|
+
* @param {GetUserByEmailRequest} request - The request object for getuserbyemail.
|
|
143
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
144
|
+
*/
|
|
145
|
+
getUserByEmail(request) {
|
|
146
|
+
// Validate request
|
|
147
|
+
(0, validation_1.validateRequest)(request);
|
|
148
|
+
return this._client.getUserByEmail(request);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Retrieves a list of users.
|
|
152
|
+
* @param {ListUsersRequest} request - The request object for listusers.
|
|
153
|
+
* @returns {Promise<ListUsersResponse>} A promise that resolves with the list of users.
|
|
154
|
+
*/
|
|
155
|
+
listUsers(request) {
|
|
156
|
+
// Validate request
|
|
157
|
+
(0, validation_1.validateRequest)(request);
|
|
158
|
+
return this._client.listUsers(request);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Searches for users.
|
|
162
|
+
* @param {SearchUsersRequest} request - The request object for searchusers.
|
|
163
|
+
* @returns {Promise<SearchUsersResponse>} A promise that resolves with the search results.
|
|
164
|
+
*/
|
|
165
|
+
searchUsers(request) {
|
|
166
|
+
// Validate request
|
|
167
|
+
(0, validation_1.validateRequest)(request);
|
|
168
|
+
return this._client.searchUsers(request);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Creates a new user.
|
|
172
|
+
* @param {CreateUserRequest} request - The request object for createuser.
|
|
173
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
174
|
+
*/
|
|
175
|
+
createUser(request) {
|
|
176
|
+
// Validate request
|
|
177
|
+
(0, validation_1.validateRequest)(request);
|
|
178
|
+
return this._client.createUser(request);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Updates an existing user.
|
|
182
|
+
* @param {UpdateUserRequest} request - The request object for updateuser.
|
|
183
|
+
* @returns {Promise<User>} A promise that resolves with the user.
|
|
184
|
+
*/
|
|
185
|
+
updateUser(request) {
|
|
186
|
+
// Validate request
|
|
187
|
+
(0, validation_1.validateRequest)(request);
|
|
188
|
+
return this._client.updateUser(request);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.UserServiceNode = UserServiceNode;
|