@meshtrade/api-web 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 +68 -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 +7 -0
- package/dist/meshtrade/common/config.js +9 -0
- package/dist/meshtrade/common/connectInterceptors.d.ts +73 -0
- package/dist/meshtrade/common/connectInterceptors.js +126 -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_pb.d.ts +123 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +45 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.d.ts +48 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.js +92 -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_pb.d.ts +343 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +86 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.js +152 -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_pb.d.ts +306 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +75 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.d.ts +60 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.js +112 -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_pb.d.ts +379 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +90 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.d.ts +78 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.js +142 -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_pb.d.ts +102 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +41 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.js +91 -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_pb.d.ts +48 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +27 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.js +72 -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_pb.d.ts +162 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +46 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.d.ts +42 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.js +82 -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_pb.d.ts +357 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +73 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.d.ts +81 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.js +141 -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_pb.d.ts +34 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +22 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.js +72 -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_pb.d.ts +559 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +112 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.js +152 -0
- package/package.json +171 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/compliance/client/v1/verification_status.proto (package meshtrade.compliance.client.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VerificationStatusSchema = exports.VerificationStatus = exports.file_meshtrade_compliance_client_v1_verification_status = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file meshtrade/compliance/client/v1/verification_status.proto.
|
|
10
|
+
*/
|
|
11
|
+
exports.file_meshtrade_compliance_client_v1_verification_status = (0, codegenv2_1.fileDesc)("CjhtZXNodHJhZGUvY29tcGxpYW5jZS9jbGllbnQvdjEvdmVyaWZpY2F0aW9uX3N0YXR1cy5wcm90bxIebWVzaHRyYWRlLmNvbXBsaWFuY2UuY2xpZW50LnYxKsEBChJWZXJpZmljYXRpb25TdGF0dXMSIwofVkVSSUZJQ0FUSU9OX1NUQVRVU19VTlNQRUNJRklFRBAAEiMKH1ZFUklGSUNBVElPTl9TVEFUVVNfTk9UX1NUQVJURUQQARIfChtWRVJJRklDQVRJT05fU1RBVFVTX1BFTkRJTkcQAhIgChxWRVJJRklDQVRJT05fU1RBVFVTX1ZFUklGSUVEEAMSHgoaVkVSSUZJQ0FUSU9OX1NUQVRVU19GQUlMRUQQBEJjCiVjby5tZXNodHJhZGUuYXBpLmNvbXBsaWFuY2UuY2xpZW50LnYxWjpnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vY29tcGxpYW5jZS9jbGllbnQvdjE7Y2xpZW50X3YxYgZwcm90bzM");
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* VerificationStatus defines the possible states of a KYC/KYB verification process.
|
|
15
|
+
*
|
|
16
|
+
* @generated from enum meshtrade.compliance.client.v1.VerificationStatus
|
|
17
|
+
*/
|
|
18
|
+
var VerificationStatus;
|
|
19
|
+
(function (VerificationStatus) {
|
|
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: VERIFICATION_STATUS_UNSPECIFIED = 0;
|
|
26
|
+
*/
|
|
27
|
+
VerificationStatus[VerificationStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* No verification has been initiated yet, or no information has been submitted.
|
|
31
|
+
* This is the initial state for a new client.
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: VERIFICATION_STATUS_NOT_STARTED = 1;
|
|
34
|
+
*/
|
|
35
|
+
VerificationStatus[VerificationStatus["NOT_STARTED"] = 1] = "NOT_STARTED";
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* The client has submitted their information, and it is pending review.
|
|
39
|
+
* The client should wait for the review to be completed.
|
|
40
|
+
*
|
|
41
|
+
* @generated from enum value: VERIFICATION_STATUS_PENDING = 2;
|
|
42
|
+
*/
|
|
43
|
+
VerificationStatus[VerificationStatus["PENDING"] = 2] = "PENDING";
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* The client's information has been successfully reviewed and verified.
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: VERIFICATION_STATUS_VERIFIED = 3;
|
|
49
|
+
*/
|
|
50
|
+
VerificationStatus[VerificationStatus["VERIFIED"] = 3] = "VERIFIED";
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* The verification has failed. This could be due to invalid documents,
|
|
54
|
+
* mismatched information, or other compliance reasons. The client may need
|
|
55
|
+
* to resubmit information.
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: VERIFICATION_STATUS_FAILED = 4;
|
|
58
|
+
*/
|
|
59
|
+
VerificationStatus[VerificationStatus["FAILED"] = 4] = "FAILED";
|
|
60
|
+
})(VerificationStatus || (exports.VerificationStatus = VerificationStatus = {}));
|
|
61
|
+
/**
|
|
62
|
+
* Describes the enum meshtrade.compliance.client.v1.VerificationStatus.
|
|
63
|
+
*/
|
|
64
|
+
exports.VerificationStatusSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_compliance_client_v1_verification_status, 0);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file meshtrade/iam/api_user/v1/api_credentials.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_meshtrade_iam_api_user_v1_api_credentials: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* Represents API credentials used for authentication with the Mesh API.
|
|
10
|
+
*
|
|
11
|
+
* API credentials consist of an API key for authentication and a group
|
|
12
|
+
* identifier that specifies the organizational context for API operations.
|
|
13
|
+
* The group field must be in the format groups/{group_id} where group_id
|
|
14
|
+
* is the unique identifier of the owning group.
|
|
15
|
+
*
|
|
16
|
+
* @generated from message meshtrade.iam.api_user.v1.APICredentials
|
|
17
|
+
*/
|
|
18
|
+
export type APICredentials = Message<"meshtrade.iam.api_user.v1.APICredentials"> & {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* The API key used for x-api-key header authentication.
|
|
22
|
+
* This should be kept secure and never exposed in logs or version control.
|
|
23
|
+
* Required field.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string api_key = 1;
|
|
26
|
+
*/
|
|
27
|
+
apiKey: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* The group resource name in the format groups/{group_id}.
|
|
31
|
+
* This identifies the organizational context for API operations and
|
|
32
|
+
* is used for authorization and resource scoping.
|
|
33
|
+
* Required field with strict format validation.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: string group = 2;
|
|
36
|
+
*/
|
|
37
|
+
group: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message meshtrade.iam.api_user.v1.APICredentials.
|
|
41
|
+
* Use `create(APICredentialsSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export declare const APICredentialsSchema: GenMessage<APICredentials>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/iam/api_user/v1/api_credentials.proto (package meshtrade.iam.api_user.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.APICredentialsSchema = exports.file_meshtrade_iam_api_user_v1_api_credentials = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file meshtrade/iam/api_user/v1/api_credentials.proto.
|
|
11
|
+
*/
|
|
12
|
+
exports.file_meshtrade_iam_api_user_v1_api_credentials = (0, codegenv2_1.fileDesc)("Ci9tZXNodHJhZGUvaWFtL2FwaV91c2VyL3YxL2FwaV9jcmVkZW50aWFscy5wcm90bxIZbWVzaHRyYWRlLmlhbS5hcGlfdXNlci52MSKhAwoOQVBJQ3JlZGVudGlhbHMSMQoHYXBpX2tleRgBIAEoCUIgukgdyAEBchgyE15bQS1aYS16MC05Xy1dezQzfSSYASsS2wIKBWdyb3VwGAIgASgJQssCukjHAroBWQoOZ3JvdXAucmVxdWlyZWQSNWdyb3VwIGlzIHJlcXVpcmVkIGFuZCBtdXN0IGJlIGluIGZvcm1hdCBncm91cHMve3VsaWR9GhBzaXplKHRoaXMpID09IDMzugGxAQoMZ3JvdXAuZm9ybWF0EmBncm91cCBtdXN0IGJlIGluIGZvcm1hdCBncm91cHMve3VsaWR9IHdoZXJlIHVsaWQgaXMgYSAyNi1jaGFyYWN0ZXIgVUxJRCAodXBwZXJjYXNlIGFscGhhbnVtZXJpYykaP3RoaXMubWF0Y2hlcygnXmdyb3Vwcy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSQnKXI0Mi9eZ3JvdXBzL1swMTIzNDU2Nzg5QUJDREVGR0hKS01OUFFSU1RWV1hZWl17MjZ9JJgBIUJbCiBjby5tZXNodHJhZGUuYXBpLmlhbS5hcGlfdXNlci52MVo3Z2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL2lhbS9hcGlfdXNlci92MTthcGlfdXNlcl92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message meshtrade.iam.api_user.v1.APICredentials.
|
|
15
|
+
* Use `create(APICredentialsSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
exports.APICredentialsSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_api_user_v1_api_credentials, 0);
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file meshtrade/iam/api_user/v1/api_user.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_meshtrade_iam_api_user_v1_api_user: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* Represents an API user for automated authentication and authorization.
|
|
10
|
+
*
|
|
11
|
+
* API users enable programmatic access to the Mesh API through API key
|
|
12
|
+
* authentication. Each API user belongs to a specific group and has
|
|
13
|
+
* defined roles that determine their permissions within that group.
|
|
14
|
+
*
|
|
15
|
+
* @generated from message meshtrade.iam.api_user.v1.APIUser
|
|
16
|
+
*/
|
|
17
|
+
export type APIUser = Message<"meshtrade.iam.api_user.v1.APIUser"> & {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* The unique resource name for the API user.
|
|
21
|
+
* Format: api_users/{ULIDv2}.
|
|
22
|
+
* This field is system-generated and immutable upon creation.
|
|
23
|
+
* Any value provided on creation is ignored.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string name = 1;
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* The resource name of the parent group that owns this API user.
|
|
31
|
+
* This field is required on creation and establishes the direct ownership link.
|
|
32
|
+
* Format: groups/{ULIDv2}.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: string owner = 2;
|
|
35
|
+
*/
|
|
36
|
+
owner: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* A non-unique, user-provided name for the API user, used for display purposes.
|
|
40
|
+
* Required on creation.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: string display_name = 3;
|
|
43
|
+
*/
|
|
44
|
+
displayName: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* The current state of the API user (active or inactive).
|
|
48
|
+
* System set on creation to default value of inactive.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: meshtrade.iam.api_user.v1.APIUserState state = 4;
|
|
51
|
+
*/
|
|
52
|
+
state: APIUserState;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* Roles is a list of the standard roles assigned to this API user,
|
|
56
|
+
* prepended by the name of the group in which they have been assigned that role.
|
|
57
|
+
* e.g. groups/{ULIDv2}/roles/{role}, where role is a value of the meshtrade.iam.role.v1.Role enum.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: repeated string roles = 5;
|
|
60
|
+
*/
|
|
61
|
+
roles: string[];
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* The plaintext API key for the API user.
|
|
65
|
+
* This field is only populated on the entity the first time it is returned after creation - it is NOT stored.
|
|
66
|
+
* Populated once by system on creation.
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: string api_key = 6;
|
|
69
|
+
*/
|
|
70
|
+
apiKey: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message meshtrade.iam.api_user.v1.APIUser.
|
|
74
|
+
* Use `create(APIUserSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export declare const APIUserSchema: GenMessage<APIUser>;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from enum meshtrade.iam.api_user.v1.APIUserState
|
|
79
|
+
*/
|
|
80
|
+
export declare enum APIUserState {
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* Unknown or not specified.
|
|
84
|
+
* This is a default value to prevent accidental assignment and should not be used.
|
|
85
|
+
*
|
|
86
|
+
* @generated from enum value: API_USER_STATE_UNSPECIFIED = 0;
|
|
87
|
+
*/
|
|
88
|
+
API_USER_STATE_UNSPECIFIED = 0,
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* API user is active and associated API keys can be used.
|
|
92
|
+
*
|
|
93
|
+
* @generated from enum value: API_USER_STATE_ACTIVE = 1;
|
|
94
|
+
*/
|
|
95
|
+
API_USER_STATE_ACTIVE = 1,
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* API user is inactive and associated API keys cannot be used.
|
|
99
|
+
*
|
|
100
|
+
* @generated from enum value: API_USER_STATE_INACTIVE = 2;
|
|
101
|
+
*/
|
|
102
|
+
API_USER_STATE_INACTIVE = 2
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Describes the enum meshtrade.iam.api_user.v1.APIUserState.
|
|
106
|
+
*/
|
|
107
|
+
export declare const APIUserStateSchema: GenEnum<APIUserState>;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum meshtrade.iam.api_user.v1.APIUserAction
|
|
110
|
+
*/
|
|
111
|
+
export declare enum APIUserAction {
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* Unknown or not specified.
|
|
115
|
+
* This is a default value to prevent accidental assignment and should not be used.
|
|
116
|
+
*
|
|
117
|
+
* @generated from enum value: API_USER_ACTION_UNSPECIFIED = 0;
|
|
118
|
+
*/
|
|
119
|
+
API_USER_ACTION_UNSPECIFIED = 0,
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* Activate an API user.
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum value: API_USER_ACTION_ACTIVATE = 1;
|
|
125
|
+
*/
|
|
126
|
+
API_USER_ACTION_ACTIVATE = 1,
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* Deactivate an API user.
|
|
130
|
+
*
|
|
131
|
+
* @generated from enum value: API_USER_ACTION_DEACTIVATE = 2;
|
|
132
|
+
*/
|
|
133
|
+
API_USER_ACTION_DEACTIVATE = 2,
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* Create an API user.
|
|
137
|
+
*
|
|
138
|
+
* @generated from enum value: API_USER_ACTION_CREATE = 3;
|
|
139
|
+
*/
|
|
140
|
+
API_USER_ACTION_CREATE = 3,
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* Update an API user.
|
|
144
|
+
*
|
|
145
|
+
* @generated from enum value: API_USER_ACTION_UPDATE = 4;
|
|
146
|
+
*/
|
|
147
|
+
API_USER_ACTION_UPDATE = 4
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Describes the enum meshtrade.iam.api_user.v1.APIUserAction.
|
|
151
|
+
*/
|
|
152
|
+
export declare const APIUserActionSchema: GenEnum<APIUserAction>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/iam/api_user/v1/api_user.proto (package meshtrade.iam.api_user.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.APIUserActionSchema = exports.APIUserAction = exports.APIUserStateSchema = exports.APIUserState = exports.APIUserSchema = exports.file_meshtrade_iam_api_user_v1_api_user = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file meshtrade/iam/api_user/v1/api_user.proto.
|
|
11
|
+
*/
|
|
12
|
+
exports.file_meshtrade_iam_api_user_v1_api_user = (0, codegenv2_1.fileDesc)("CihtZXNodHJhZGUvaWFtL2FwaV91c2VyL3YxL2FwaV91c2VyLnByb3RvEhltZXNodHJhZGUuaWFtLmFwaV91c2VyLnYxIvAFCgdBUElVc2VyErwBCgRuYW1lGAEgASgJQq0BukipAboBpQEKFG5hbWUuZm9ybWF0Lm9wdGlvbmFsEjZuYW1lIG11c3QgYmUgZW1wdHkgb3IgaW4gdGhlIGZvcm1hdCBhcGlfdXNlcnMve1VMSUR2Mn0aVXNpemUodGhpcykgPT0gMCB8fCB0aGlzLm1hdGNoZXMoJ15hcGlfdXNlcnMvWzAxMjM0NTY3ODlBQkNERUZHSEpLTU5QUVJTVFZXWFlaXXsyNn0kJykSSwoFb3duZXIYAiABKAlCPLpIOcgBAXI0Mi9eZ3JvdXBzL1swMTIzNDU2Nzg5QUJDREVGR0hKS01OUFFSU1RWV1hZWl17MjZ9JJgBIRKnAQoMZGlzcGxheV9uYW1lGAMgASgJQpABukiMAboBfwoVZGlzcGxheV9uYW1lLnJlcXVpcmVkEkFkaXNwbGF5IG5hbWUgaXMgcmVxdWlyZWQgYW5kIG11c3QgYmUgYmV0d2VlbiAxIGFuZCAyNTUgY2hhcmFjdGVycxojc2l6ZSh0aGlzKSA+IDAgJiYgc2l6ZSh0aGlzKSA8PSAyNTXIAQFyBRABGP8BErcBCgVzdGF0ZRgEIAEoDjInLm1lc2h0cmFkZS5pYW0uYXBpX3VzZXIudjEuQVBJVXNlclN0YXRlQn+6SHy6AXQKC3N0YXRlLnZhbGlkEi9zdGF0ZSBtdXN0IGJlIGEgdmFsaWQgQVBJVXNlclN0YXRlIGlmIHNwZWNpZmllZBo0aW50KHRoaXMpID09IDAgfHwgKGludCh0aGlzKSA+PSAxICYmIGludCh0aGlzKSA8PSAyKYIBAhABEmQKBXJvbGVzGAUgAygJQlW6SFKSAU8iTXJLEC8YMDJFXmdyb3Vwcy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fS9yb2xlcy9bMS05XVswLTldezYsN30kEg8KB2FwaV9rZXkYBiABKAkqZgoMQVBJVXNlclN0YXRlEh4KGkFQSV9VU0VSX1NUQVRFX1VOU1BFQ0lGSUVEEAASGQoVQVBJX1VTRVJfU1RBVEVfQUNUSVZFEAESGwoXQVBJX1VTRVJfU1RBVEVfSU5BQ1RJVkUQAiqmAQoNQVBJVXNlckFjdGlvbhIfChtBUElfVVNFUl9BQ1RJT05fVU5TUEVDSUZJRUQQABIcChhBUElfVVNFUl9BQ1RJT05fQUNUSVZBVEUQARIeChpBUElfVVNFUl9BQ1RJT05fREVBQ1RJVkFURRACEhoKFkFQSV9VU0VSX0FDVElPTl9DUkVBVEUQAxIaChZBUElfVVNFUl9BQ1RJT05fVVBEQVRFEARCWwogY28ubWVzaHRyYWRlLmFwaS5pYW0uYXBpX3VzZXIudjFaN2dpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby9pYW0vYXBpX3VzZXIvdjE7YXBpX3VzZXJfdjFiBnByb3RvMw", [validate_pb_1.file_buf_validate_validate]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message meshtrade.iam.api_user.v1.APIUser.
|
|
15
|
+
* Use `create(APIUserSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
exports.APIUserSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_iam_api_user_v1_api_user, 0);
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum meshtrade.iam.api_user.v1.APIUserState
|
|
20
|
+
*/
|
|
21
|
+
var APIUserState;
|
|
22
|
+
(function (APIUserState) {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* Unknown or not specified.
|
|
26
|
+
* This is a default value to prevent accidental assignment and should not be used.
|
|
27
|
+
*
|
|
28
|
+
* @generated from enum value: API_USER_STATE_UNSPECIFIED = 0;
|
|
29
|
+
*/
|
|
30
|
+
APIUserState[APIUserState["API_USER_STATE_UNSPECIFIED"] = 0] = "API_USER_STATE_UNSPECIFIED";
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* API user is active and associated API keys can be used.
|
|
34
|
+
*
|
|
35
|
+
* @generated from enum value: API_USER_STATE_ACTIVE = 1;
|
|
36
|
+
*/
|
|
37
|
+
APIUserState[APIUserState["API_USER_STATE_ACTIVE"] = 1] = "API_USER_STATE_ACTIVE";
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* API user is inactive and associated API keys cannot be used.
|
|
41
|
+
*
|
|
42
|
+
* @generated from enum value: API_USER_STATE_INACTIVE = 2;
|
|
43
|
+
*/
|
|
44
|
+
APIUserState[APIUserState["API_USER_STATE_INACTIVE"] = 2] = "API_USER_STATE_INACTIVE";
|
|
45
|
+
})(APIUserState || (exports.APIUserState = APIUserState = {}));
|
|
46
|
+
/**
|
|
47
|
+
* Describes the enum meshtrade.iam.api_user.v1.APIUserState.
|
|
48
|
+
*/
|
|
49
|
+
exports.APIUserStateSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_iam_api_user_v1_api_user, 0);
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum meshtrade.iam.api_user.v1.APIUserAction
|
|
52
|
+
*/
|
|
53
|
+
var APIUserAction;
|
|
54
|
+
(function (APIUserAction) {
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* Unknown or not specified.
|
|
58
|
+
* This is a default value to prevent accidental assignment and should not be used.
|
|
59
|
+
*
|
|
60
|
+
* @generated from enum value: API_USER_ACTION_UNSPECIFIED = 0;
|
|
61
|
+
*/
|
|
62
|
+
APIUserAction[APIUserAction["API_USER_ACTION_UNSPECIFIED"] = 0] = "API_USER_ACTION_UNSPECIFIED";
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* Activate an API user.
|
|
66
|
+
*
|
|
67
|
+
* @generated from enum value: API_USER_ACTION_ACTIVATE = 1;
|
|
68
|
+
*/
|
|
69
|
+
APIUserAction[APIUserAction["API_USER_ACTION_ACTIVATE"] = 1] = "API_USER_ACTION_ACTIVATE";
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* Deactivate an API user.
|
|
73
|
+
*
|
|
74
|
+
* @generated from enum value: API_USER_ACTION_DEACTIVATE = 2;
|
|
75
|
+
*/
|
|
76
|
+
APIUserAction[APIUserAction["API_USER_ACTION_DEACTIVATE"] = 2] = "API_USER_ACTION_DEACTIVATE";
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* Create an API user.
|
|
80
|
+
*
|
|
81
|
+
* @generated from enum value: API_USER_ACTION_CREATE = 3;
|
|
82
|
+
*/
|
|
83
|
+
APIUserAction[APIUserAction["API_USER_ACTION_CREATE"] = 3] = "API_USER_ACTION_CREATE";
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* Update an API user.
|
|
87
|
+
*
|
|
88
|
+
* @generated from enum value: API_USER_ACTION_UPDATE = 4;
|
|
89
|
+
*/
|
|
90
|
+
APIUserAction[APIUserAction["API_USER_ACTION_UPDATE"] = 4] = "API_USER_ACTION_UPDATE";
|
|
91
|
+
})(APIUserAction || (exports.APIUserAction = APIUserAction = {}));
|
|
92
|
+
/**
|
|
93
|
+
* Describes the enum meshtrade.iam.api_user.v1.APIUserAction.
|
|
94
|
+
*/
|
|
95
|
+
exports.APIUserActionSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_iam_api_user_v1_api_user, 1);
|
|
@@ -0,0 +1,45 @@
|
|
|
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_pb"), exports);
|
|
32
|
+
__exportStar(require("./service_web_meshts"), exports);
|
|
33
|
+
// ===================================================================
|
|
34
|
+
// END OF AUTO-GENERATED SECTION
|
|
35
|
+
// ===================================================================
|
|
36
|
+
//
|
|
37
|
+
// MANUAL EXPORTS - ADD YOUR CUSTOM EXPORTS BELOW
|
|
38
|
+
//
|
|
39
|
+
// You can safely add your own export statements in this section.
|
|
40
|
+
// They will be preserved across code generation.
|
|
41
|
+
//
|
|
42
|
+
// Example:
|
|
43
|
+
// export * from "./my_custom_module";
|
|
44
|
+
// export { MyCustomClass } from "./another_module";
|
|
45
|
+
// ===================================================================
|