@meshtrade/api-old 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 +117 -0
- package/dist/buf/validate/validate_pb.js +17134 -0
- package/dist/meshtrade/common/config.d.ts +7 -0
- package/dist/meshtrade/common/config.js +9 -0
- package/dist/meshtrade/common/groupHeaderInterceptor.d.ts +64 -0
- package/dist/meshtrade/common/groupHeaderInterceptor.js +76 -0
- package/dist/meshtrade/common/grpc_web.d.ts +18 -0
- package/dist/meshtrade/common/grpc_web.js +34 -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 +91 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.js +645 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +178 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.js +1322 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.d.ts +56 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.js +422 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.d.ts +15 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.js +40 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +42 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.js +321 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.d.ts +11 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.js +36 -0
- package/dist/meshtrade/compliance/client/v1/index.d.ts +18 -0
- package/dist/meshtrade/compliance/client/v1/index.js +61 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +50 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +386 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.d.ts +22 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.js +47 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.d.ts +94 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.js +729 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.d.ts +10 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.js +35 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.d.ts +47 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.js +78 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.d.ts +56 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.js +270 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +79 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +660 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.d.ts +29 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.js +54 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.d.ts +27 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.js +208 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +42 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.js +321 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.d.ts +11 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.js +36 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.d.ts +27 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.js +208 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +57 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +376 -0
- package/dist/meshtrade/iam/api_user/v1/index.d.ts +5 -0
- package/dist/meshtrade/iam/api_user/v1/index.js +46 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_client_meshts.d.ts +83 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_client_meshts.js +126 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_pb.d.ts +128 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_pb.js +636 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.d.ts +219 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +1866 -0
- package/dist/meshtrade/iam/group/v1/group_pb.d.ts +35 -0
- package/dist/meshtrade/iam/group/v1/group_pb.js +268 -0
- package/dist/meshtrade/iam/group/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/group/v1/index.js +45 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_client_meshts.d.ts +59 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_client_meshts.js +94 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_pb.d.ts +80 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_pb.js +394 -0
- package/dist/meshtrade/iam/group/v1/service_pb.d.ts +200 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +1664 -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 +41 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +66 -0
- package/dist/meshtrade/iam/user/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/user/v1/index.js +45 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.d.ts +77 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +118 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.d.ts +116 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.js +577 -0
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +262 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +2202 -0
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +37 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +294 -0
- package/dist/meshtrade/ledger/transaction/v1/index.d.ts +6 -0
- package/dist/meshtrade/ledger/transaction/v1/index.js +47 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_client_meshts.d.ts +56 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_client_meshts.js +96 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_pb.d.ts +41 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_pb.js +204 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.d.ts +79 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +638 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.d.ts +13 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.js +38 -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 +14 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.js +39 -0
- package/dist/meshtrade/market_data/price/v1/index.d.ts +4 -0
- package/dist/meshtrade/market_data/price/v1/index.js +45 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.d.ts +45 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.js +356 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_client_meshts.d.ts +35 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_client_meshts.js +62 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_pb.d.ts +32 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_pb.js +150 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.d.ts +34 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +256 -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 +44 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +314 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.d.ts +112 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.js +897 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.d.ts +26 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.js +206 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.d.ts +50 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.js +393 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.d.ts +66 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.js +460 -0
- package/dist/meshtrade/reporting/account_report/v1/index.d.ts +8 -0
- package/dist/meshtrade/reporting/account_report/v1/index.js +49 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_client_meshts.d.ts +41 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_client_meshts.js +70 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_pb.d.ts +44 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_pb.js +213 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.d.ts +99 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +796 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.d.ts +62 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.js +495 -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 +38 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +291 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.d.ts +34 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.js +59 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.d.ts +25 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.js +50 -0
- package/dist/meshtrade/trading/limit_order/v1/index.d.ts +4 -0
- package/dist/meshtrade/trading/limit_order/v1/index.js +45 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +83 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +559 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_client_meshts.d.ts +87 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_client_meshts.js +136 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_pb.d.ts +102 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_pb.js +509 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +203 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +1692 -0
- package/dist/meshtrade/trading/market_order/v1/index.d.ts +4 -0
- package/dist/meshtrade/trading/market_order/v1/index.js +45 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.d.ts +22 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.js +176 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_client_meshts.d.ts +35 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_client_meshts.js +62 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_pb.d.ts +32 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_pb.js +146 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.d.ts +24 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +180 -0
- package/dist/meshtrade/type/v1/address_pb.d.ts +44 -0
- package/dist/meshtrade/type/v1/address_pb.js +352 -0
- package/dist/meshtrade/type/v1/amount.d.ts +13 -0
- package/dist/meshtrade/type/v1/amount.js +66 -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 +32 -0
- package/dist/meshtrade/type/v1/amount_pb.js +252 -0
- package/dist/meshtrade/type/v1/contact_details_pb.d.ts +54 -0
- package/dist/meshtrade/type/v1/contact_details_pb.js +416 -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 +30 -0
- package/dist/meshtrade/type/v1/date_pb.js +236 -0
- package/dist/meshtrade/type/v1/decimalConversions.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimalConversions.js +40 -0
- package/dist/meshtrade/type/v1/decimal_pb.d.ts +22 -0
- package/dist/meshtrade/type/v1/decimal_pb.js +176 -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 +14 -0
- package/dist/meshtrade/type/v1/ledger_pb.js +39 -0
- package/dist/meshtrade/type/v1/sorting_pb.d.ts +9 -0
- package/dist/meshtrade/type/v1/sorting_pb.js +34 -0
- package/dist/meshtrade/type/v1/time_of_day.d.ts +74 -0
- package/dist/meshtrade/type/v1/time_of_day.js +205 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.d.ts +34 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.js +266 -0
- package/dist/meshtrade/type/v1/token.d.ts +4 -0
- package/dist/meshtrade/type/v1/token.js +24 -0
- package/dist/meshtrade/type/v1/tokenWrapper.d.ts +49 -0
- package/dist/meshtrade/type/v1/tokenWrapper.js +76 -0
- package/dist/meshtrade/type/v1/token_pb.d.ts +31 -0
- package/dist/meshtrade/type/v1/token_pb.js +238 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +149 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +1160 -0
- package/dist/meshtrade/wallet/account/v1/index.d.ts +4 -0
- package/dist/meshtrade/wallet/account/v1/index.js +45 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.d.ts +83 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.js +126 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.d.ts +128 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.js +638 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +350 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +2930 -0
- package/package.json +171 -0
|
@@ -0,0 +1,46 @@
|
|
|
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("./api_credentials_pb"), exports);
|
|
30
|
+
__exportStar(require("./api_user_pb"), exports);
|
|
31
|
+
__exportStar(require("./service_grpc_web_client_meshts"), exports);
|
|
32
|
+
__exportStar(require("./service_grpc_web_pb"), exports);
|
|
33
|
+
__exportStar(require("./service_pb"), exports);
|
|
34
|
+
// ===================================================================
|
|
35
|
+
// END OF AUTO-GENERATED SECTION
|
|
36
|
+
// ===================================================================
|
|
37
|
+
//
|
|
38
|
+
// MANUAL EXPORTS - ADD YOUR CUSTOM EXPORTS BELOW
|
|
39
|
+
//
|
|
40
|
+
// You can safely add your own export statements in this section.
|
|
41
|
+
// They will be preserved across code generation.
|
|
42
|
+
//
|
|
43
|
+
// Example:
|
|
44
|
+
// export * from "./my_custom_module";
|
|
45
|
+
// export { MyCustomClass } from "./another_module";
|
|
46
|
+
// ===================================================================
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ActivateAPIUserRequest, AssignRolesToAPIUserRequest, CreateAPIUserRequest, DeactivateAPIUserRequest, GetAPIUserByKeyHashRequest, GetAPIUserRequest, ListAPIUsersRequest, ListAPIUsersResponse, RevokeRolesFromAPIUserRequest, SearchAPIUsersRequest, SearchAPIUsersResponse } from "./service_pb";
|
|
2
|
+
import { APIUser } from "./api_user_pb";
|
|
3
|
+
import { UnaryInterceptor } from "grpc-web";
|
|
4
|
+
import { ConfigOpts } from "../../../common/config";
|
|
5
|
+
/**
|
|
6
|
+
* Client for interacting with the meshtrade.iam.api_user.v1 apiuser v1 API resource service.
|
|
7
|
+
*/
|
|
8
|
+
export declare class APIUserServiceGrpcWebClientV1 {
|
|
9
|
+
private _service;
|
|
10
|
+
private readonly _config;
|
|
11
|
+
private readonly _interceptors;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs an instance of APIUserServiceGrpcWebClientV1.
|
|
14
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
15
|
+
* @param {UnaryInterceptor<any, any>[]} [interceptors] - For internal use by `withGroup`.
|
|
16
|
+
*/
|
|
17
|
+
constructor(config?: ConfigOpts, interceptors?: UnaryInterceptor<any, any>[]);
|
|
18
|
+
/**
|
|
19
|
+
* Returns a new client instance configured to send the specified group
|
|
20
|
+
* resource name in the request headers for subsequent API calls.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} group - The operating group context to inject into the request
|
|
23
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
24
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
25
|
+
* @returns {APIUserServiceGrpcWebClientV1} A new, configured instance of the client.
|
|
26
|
+
* @throws {Error} If the group format is invalid (validation occurs in GroupHeaderInterceptor)
|
|
27
|
+
*/
|
|
28
|
+
withGroup(group: string): APIUserServiceGrpcWebClientV1;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves an apiuser.
|
|
31
|
+
* @param {GetAPIUserRequest} request - The request object for getapiuser.
|
|
32
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
33
|
+
*/
|
|
34
|
+
getAPIUser(request: GetAPIUserRequest): Promise<APIUser>;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new apiuser.
|
|
37
|
+
* @param {CreateAPIUserRequest} request - The request object for createapiuser.
|
|
38
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
39
|
+
*/
|
|
40
|
+
createAPIUser(request: CreateAPIUserRequest): Promise<APIUser>;
|
|
41
|
+
/**
|
|
42
|
+
* Performs assignrolestoapiuser operation on apiuser.
|
|
43
|
+
* @param {AssignRolesToAPIUserRequest} request - The request object for assignrolestoapiuser.
|
|
44
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
45
|
+
*/
|
|
46
|
+
assignRolesToAPIUser(request: AssignRolesToAPIUserRequest): Promise<APIUser>;
|
|
47
|
+
/**
|
|
48
|
+
* Performs revokerolesfromapiuser operation on apiuser.
|
|
49
|
+
* @param {RevokeRolesFromAPIUserRequest} request - The request object for revokerolesfromapiuser.
|
|
50
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
51
|
+
*/
|
|
52
|
+
revokeRolesFromAPIUser(request: RevokeRolesFromAPIUserRequest): Promise<APIUser>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves a list of apiusers.
|
|
55
|
+
* @param {ListAPIUsersRequest} request - The request object for listapiusers.
|
|
56
|
+
* @returns {Promise<ListAPIUsersResponse>} A promise that resolves with the list of apiusers.
|
|
57
|
+
*/
|
|
58
|
+
listAPIUsers(request: ListAPIUsersRequest): Promise<ListAPIUsersResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Searches for apiusers.
|
|
61
|
+
* @param {SearchAPIUsersRequest} request - The request object for searchapiusers.
|
|
62
|
+
* @returns {Promise<SearchAPIUsersResponse>} A promise that resolves with the search results.
|
|
63
|
+
*/
|
|
64
|
+
searchAPIUsers(request: SearchAPIUsersRequest): Promise<SearchAPIUsersResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Activates an apiuser.
|
|
67
|
+
* @param {ActivateAPIUserRequest} request - The request object for activateapiuser.
|
|
68
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
69
|
+
*/
|
|
70
|
+
activateAPIUser(request: ActivateAPIUserRequest): Promise<APIUser>;
|
|
71
|
+
/**
|
|
72
|
+
* Deactivates an apiuser.
|
|
73
|
+
* @param {DeactivateAPIUserRequest} request - The request object for deactivateapiuser.
|
|
74
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
75
|
+
*/
|
|
76
|
+
deactivateAPIUser(request: DeactivateAPIUserRequest): Promise<APIUser>;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieves an apiuser.
|
|
79
|
+
* @param {GetAPIUserByKeyHashRequest} request - The request object for getapiuserbykeyhash.
|
|
80
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
81
|
+
*/
|
|
82
|
+
getAPIUserByKeyHash(request: GetAPIUserByKeyHashRequest): Promise<APIUser>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-meshts v1
|
|
3
|
+
// @generated from file meshtrade/iam/api_user/v1/service.proto (package meshtrade.iam.api_user.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.APIUserServiceGrpcWebClientV1 = void 0;
|
|
7
|
+
const grpc_web_1 = require("../../../common/grpc_web");
|
|
8
|
+
const service_grpc_web_pb_1 = require("./service_grpc_web_pb");
|
|
9
|
+
const config_1 = require("../../../common/config");
|
|
10
|
+
const groupHeaderInterceptor_1 = require("../../../common/groupHeaderInterceptor");
|
|
11
|
+
/**
|
|
12
|
+
* Client for interacting with the meshtrade.iam.api_user.v1 apiuser v1 API resource service.
|
|
13
|
+
*/
|
|
14
|
+
class APIUserServiceGrpcWebClientV1 {
|
|
15
|
+
/**
|
|
16
|
+
* Constructs an instance of APIUserServiceGrpcWebClientV1.
|
|
17
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
18
|
+
* @param {UnaryInterceptor<any, any>[]} [interceptors] - For internal use by `withGroup`.
|
|
19
|
+
*/
|
|
20
|
+
constructor(config, interceptors) {
|
|
21
|
+
this._config = (0, config_1.getConfigFromOpts)(config);
|
|
22
|
+
this._interceptors = interceptors || [new grpc_web_1.LoggingInterceptor()];
|
|
23
|
+
// Construct the underlying gRPC-web service client
|
|
24
|
+
this._service = new service_grpc_web_pb_1.APIUserServicePromiseClient(this._config.apiServerURL, null, {
|
|
25
|
+
withCredentials: true,
|
|
26
|
+
unaryInterceptors: this._interceptors,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns a new client instance configured to send the specified group
|
|
31
|
+
* resource name in the request headers for subsequent API calls.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} group - The operating group context to inject into the request
|
|
34
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
35
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
36
|
+
* @returns {APIUserServiceGrpcWebClientV1} A new, configured instance of the client.
|
|
37
|
+
* @throws {Error} If the group format is invalid (validation occurs in GroupHeaderInterceptor)
|
|
38
|
+
*/
|
|
39
|
+
withGroup(group) {
|
|
40
|
+
// Check if a GroupHeaderInterceptor already exists.
|
|
41
|
+
const hasGroupInterceptor = this._interceptors.some((interceptor) => interceptor instanceof groupHeaderInterceptor_1.GroupHeaderInterceptor);
|
|
42
|
+
if (hasGroupInterceptor) {
|
|
43
|
+
throw new Error("Attempted to set group context twice. A group has already been set for this client instance.");
|
|
44
|
+
}
|
|
45
|
+
// Create a new interceptor for the group context
|
|
46
|
+
const groupInterceptor = new groupHeaderInterceptor_1.GroupHeaderInterceptor(group);
|
|
47
|
+
// Return a new client instance with the existing interceptors plus the new one
|
|
48
|
+
return new APIUserServiceGrpcWebClientV1(this._config, [
|
|
49
|
+
...this._interceptors,
|
|
50
|
+
groupInterceptor,
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves an apiuser.
|
|
55
|
+
* @param {GetAPIUserRequest} request - The request object for getapiuser.
|
|
56
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
57
|
+
*/
|
|
58
|
+
getAPIUser(request) {
|
|
59
|
+
return this._service.getAPIUser(request);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new apiuser.
|
|
63
|
+
* @param {CreateAPIUserRequest} request - The request object for createapiuser.
|
|
64
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
65
|
+
*/
|
|
66
|
+
createAPIUser(request) {
|
|
67
|
+
return this._service.createAPIUser(request);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Performs assignrolestoapiuser operation on apiuser.
|
|
71
|
+
* @param {AssignRolesToAPIUserRequest} request - The request object for assignrolestoapiuser.
|
|
72
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
73
|
+
*/
|
|
74
|
+
assignRolesToAPIUser(request) {
|
|
75
|
+
return this._service.assignRolesToAPIUser(request);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Performs revokerolesfromapiuser operation on apiuser.
|
|
79
|
+
* @param {RevokeRolesFromAPIUserRequest} request - The request object for revokerolesfromapiuser.
|
|
80
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
81
|
+
*/
|
|
82
|
+
revokeRolesFromAPIUser(request) {
|
|
83
|
+
return this._service.revokeRolesFromAPIUser(request);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves a list of apiusers.
|
|
87
|
+
* @param {ListAPIUsersRequest} request - The request object for listapiusers.
|
|
88
|
+
* @returns {Promise<ListAPIUsersResponse>} A promise that resolves with the list of apiusers.
|
|
89
|
+
*/
|
|
90
|
+
listAPIUsers(request) {
|
|
91
|
+
return this._service.listAPIUsers(request);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Searches for apiusers.
|
|
95
|
+
* @param {SearchAPIUsersRequest} request - The request object for searchapiusers.
|
|
96
|
+
* @returns {Promise<SearchAPIUsersResponse>} A promise that resolves with the search results.
|
|
97
|
+
*/
|
|
98
|
+
searchAPIUsers(request) {
|
|
99
|
+
return this._service.searchAPIUsers(request);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Activates an apiuser.
|
|
103
|
+
* @param {ActivateAPIUserRequest} request - The request object for activateapiuser.
|
|
104
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
105
|
+
*/
|
|
106
|
+
activateAPIUser(request) {
|
|
107
|
+
return this._service.activateAPIUser(request);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Deactivates an apiuser.
|
|
111
|
+
* @param {DeactivateAPIUserRequest} request - The request object for deactivateapiuser.
|
|
112
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
113
|
+
*/
|
|
114
|
+
deactivateAPIUser(request) {
|
|
115
|
+
return this._service.deactivateAPIUser(request);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Retrieves an apiuser.
|
|
119
|
+
* @param {GetAPIUserByKeyHashRequest} request - The request object for getapiuserbykeyhash.
|
|
120
|
+
* @returns {Promise<APIUser>} A promise that resolves with the apiuser.
|
|
121
|
+
*/
|
|
122
|
+
getAPIUserByKeyHash(request) {
|
|
123
|
+
return this._service.getAPIUserByKeyHash(request);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.APIUserServiceGrpcWebClientV1 = APIUserServiceGrpcWebClientV1;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
2
|
+
|
|
3
|
+
import * as meshtrade_iam_api_user_v1_api_user_pb from '../../../../meshtrade/iam/api_user/v1/api_user_pb'; // proto import: "meshtrade/iam/api_user/v1/api_user.proto"
|
|
4
|
+
import * as meshtrade_iam_api_user_v1_service_pb from '../../../../meshtrade/iam/api_user/v1/service_pb'; // proto import: "meshtrade/iam/api_user/v1/service.proto"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class APIUserServiceClient {
|
|
8
|
+
constructor (hostname: string,
|
|
9
|
+
credentials?: null | { [index: string]: string; },
|
|
10
|
+
options?: null | { [index: string]: any; });
|
|
11
|
+
|
|
12
|
+
getAPIUser(
|
|
13
|
+
request: meshtrade_iam_api_user_v1_service_pb.GetAPIUserRequest,
|
|
14
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
15
|
+
callback: (err: grpcWeb.RpcError,
|
|
16
|
+
response: meshtrade_iam_api_user_v1_api_user_pb.APIUser) => void
|
|
17
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
18
|
+
|
|
19
|
+
createAPIUser(
|
|
20
|
+
request: meshtrade_iam_api_user_v1_service_pb.CreateAPIUserRequest,
|
|
21
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
22
|
+
callback: (err: grpcWeb.RpcError,
|
|
23
|
+
response: meshtrade_iam_api_user_v1_api_user_pb.APIUser) => void
|
|
24
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
25
|
+
|
|
26
|
+
assignRolesToAPIUser(
|
|
27
|
+
request: meshtrade_iam_api_user_v1_service_pb.AssignRolesToAPIUserRequest,
|
|
28
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
29
|
+
callback: (err: grpcWeb.RpcError,
|
|
30
|
+
response: meshtrade_iam_api_user_v1_api_user_pb.APIUser) => void
|
|
31
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
32
|
+
|
|
33
|
+
revokeRolesFromAPIUser(
|
|
34
|
+
request: meshtrade_iam_api_user_v1_service_pb.RevokeRolesFromAPIUserRequest,
|
|
35
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
36
|
+
callback: (err: grpcWeb.RpcError,
|
|
37
|
+
response: meshtrade_iam_api_user_v1_api_user_pb.APIUser) => void
|
|
38
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
39
|
+
|
|
40
|
+
listAPIUsers(
|
|
41
|
+
request: meshtrade_iam_api_user_v1_service_pb.ListAPIUsersRequest,
|
|
42
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
43
|
+
callback: (err: grpcWeb.RpcError,
|
|
44
|
+
response: meshtrade_iam_api_user_v1_service_pb.ListAPIUsersResponse) => void
|
|
45
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_service_pb.ListAPIUsersResponse>;
|
|
46
|
+
|
|
47
|
+
searchAPIUsers(
|
|
48
|
+
request: meshtrade_iam_api_user_v1_service_pb.SearchAPIUsersRequest,
|
|
49
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
50
|
+
callback: (err: grpcWeb.RpcError,
|
|
51
|
+
response: meshtrade_iam_api_user_v1_service_pb.SearchAPIUsersResponse) => void
|
|
52
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_service_pb.SearchAPIUsersResponse>;
|
|
53
|
+
|
|
54
|
+
activateAPIUser(
|
|
55
|
+
request: meshtrade_iam_api_user_v1_service_pb.ActivateAPIUserRequest,
|
|
56
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
57
|
+
callback: (err: grpcWeb.RpcError,
|
|
58
|
+
response: meshtrade_iam_api_user_v1_api_user_pb.APIUser) => void
|
|
59
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
60
|
+
|
|
61
|
+
deactivateAPIUser(
|
|
62
|
+
request: meshtrade_iam_api_user_v1_service_pb.DeactivateAPIUserRequest,
|
|
63
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
64
|
+
callback: (err: grpcWeb.RpcError,
|
|
65
|
+
response: meshtrade_iam_api_user_v1_api_user_pb.APIUser) => void
|
|
66
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
67
|
+
|
|
68
|
+
getAPIUserByKeyHash(
|
|
69
|
+
request: meshtrade_iam_api_user_v1_service_pb.GetAPIUserByKeyHashRequest,
|
|
70
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
71
|
+
callback: (err: grpcWeb.RpcError,
|
|
72
|
+
response: meshtrade_iam_api_user_v1_api_user_pb.APIUser) => void
|
|
73
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class APIUserServicePromiseClient {
|
|
78
|
+
constructor (hostname: string,
|
|
79
|
+
credentials?: null | { [index: string]: string; },
|
|
80
|
+
options?: null | { [index: string]: any; });
|
|
81
|
+
|
|
82
|
+
getAPIUser(
|
|
83
|
+
request: meshtrade_iam_api_user_v1_service_pb.GetAPIUserRequest,
|
|
84
|
+
metadata?: grpcWeb.Metadata
|
|
85
|
+
): Promise<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
86
|
+
|
|
87
|
+
createAPIUser(
|
|
88
|
+
request: meshtrade_iam_api_user_v1_service_pb.CreateAPIUserRequest,
|
|
89
|
+
metadata?: grpcWeb.Metadata
|
|
90
|
+
): Promise<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
91
|
+
|
|
92
|
+
assignRolesToAPIUser(
|
|
93
|
+
request: meshtrade_iam_api_user_v1_service_pb.AssignRolesToAPIUserRequest,
|
|
94
|
+
metadata?: grpcWeb.Metadata
|
|
95
|
+
): Promise<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
96
|
+
|
|
97
|
+
revokeRolesFromAPIUser(
|
|
98
|
+
request: meshtrade_iam_api_user_v1_service_pb.RevokeRolesFromAPIUserRequest,
|
|
99
|
+
metadata?: grpcWeb.Metadata
|
|
100
|
+
): Promise<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
101
|
+
|
|
102
|
+
listAPIUsers(
|
|
103
|
+
request: meshtrade_iam_api_user_v1_service_pb.ListAPIUsersRequest,
|
|
104
|
+
metadata?: grpcWeb.Metadata
|
|
105
|
+
): Promise<meshtrade_iam_api_user_v1_service_pb.ListAPIUsersResponse>;
|
|
106
|
+
|
|
107
|
+
searchAPIUsers(
|
|
108
|
+
request: meshtrade_iam_api_user_v1_service_pb.SearchAPIUsersRequest,
|
|
109
|
+
metadata?: grpcWeb.Metadata
|
|
110
|
+
): Promise<meshtrade_iam_api_user_v1_service_pb.SearchAPIUsersResponse>;
|
|
111
|
+
|
|
112
|
+
activateAPIUser(
|
|
113
|
+
request: meshtrade_iam_api_user_v1_service_pb.ActivateAPIUserRequest,
|
|
114
|
+
metadata?: grpcWeb.Metadata
|
|
115
|
+
): Promise<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
116
|
+
|
|
117
|
+
deactivateAPIUser(
|
|
118
|
+
request: meshtrade_iam_api_user_v1_service_pb.DeactivateAPIUserRequest,
|
|
119
|
+
metadata?: grpcWeb.Metadata
|
|
120
|
+
): Promise<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
121
|
+
|
|
122
|
+
getAPIUserByKeyHash(
|
|
123
|
+
request: meshtrade_iam_api_user_v1_service_pb.GetAPIUserByKeyHashRequest,
|
|
124
|
+
metadata?: grpcWeb.Metadata
|
|
125
|
+
): Promise<meshtrade_iam_api_user_v1_api_user_pb.APIUser>;
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
|