@meshtrade/api-node 1.52.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.d.ts +14 -7
- package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.js +1 -1
- package/dist/meshtrade/type/v1/token.d.ts +9 -0
- package/dist/meshtrade/type/v1/token.js +10 -0
- package/dist/meshtrade/type/v1/token_pb.d.ts +8 -5
- package/package.json +1 -1
|
@@ -73,20 +73,27 @@ export type UserProfile = Message<"meshtrade.iam.user_profile.v1.UserProfile"> &
|
|
|
73
73
|
profilePictureUrl: string;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* The
|
|
77
|
-
* This field is required and
|
|
78
|
-
* May be the user's full name, nickname, or preferred identifier.
|
|
76
|
+
* The user's first name (given name).
|
|
77
|
+
* This field is required and is used for user identification and communication.
|
|
79
78
|
*
|
|
80
|
-
* @generated from field: string
|
|
79
|
+
* @generated from field: string first_name = 7;
|
|
81
80
|
*/
|
|
82
|
-
|
|
81
|
+
firstName: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* The user's last name (family name/surname).
|
|
85
|
+
* This field is required and is used for user identification and communication.
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: string last_name = 8;
|
|
88
|
+
*/
|
|
89
|
+
lastName: string;
|
|
83
90
|
/**
|
|
84
91
|
*
|
|
85
92
|
* The preferred currency token for displaying monetary values to this user.
|
|
86
93
|
* Used as the default currency for presenting prices, balances, and trading values.
|
|
87
94
|
* References a token from the meshtrade.type.v1.Token definition.
|
|
88
95
|
*
|
|
89
|
-
* @generated from field: meshtrade.type.v1.Token display_currency =
|
|
96
|
+
* @generated from field: meshtrade.type.v1.Token display_currency = 9;
|
|
90
97
|
*/
|
|
91
98
|
displayCurrency?: Token;
|
|
92
99
|
/**
|
|
@@ -95,7 +102,7 @@ export type UserProfile = Message<"meshtrade.iam.user_profile.v1.UserProfile"> &
|
|
|
95
102
|
* This may differ from display_currency and is used for official records and statements.
|
|
96
103
|
* References a token from the meshtrade.type.v1.Token definition.
|
|
97
104
|
*
|
|
98
|
-
* @generated from field: meshtrade.type.v1.Token reporting_currency =
|
|
105
|
+
* @generated from field: meshtrade.type.v1.Token reporting_currency = 10;
|
|
99
106
|
*/
|
|
100
107
|
reportingCurrency?: Token;
|
|
101
108
|
};
|
|
@@ -10,7 +10,7 @@ const token_pb_1 = require("../../../type/v1/token_pb");
|
|
|
10
10
|
/**
|
|
11
11
|
* Describes the file meshtrade/iam/user_profile/v1/user_profile.proto.
|
|
12
12
|
*/
|
|
13
|
-
exports.file_meshtrade_iam_user_profile_v1_user_profile = (0, codegenv2_1.fileDesc)("
|
|
13
|
+
exports.file_meshtrade_iam_user_profile_v1_user_profile = (0, codegenv2_1.fileDesc)("CjBtZXNodHJhZGUvaWFtL3VzZXJfcHJvZmlsZS92MS91c2VyX3Byb2ZpbGUucHJvdG8SHW1lc2h0cmFkZS5pYW0udXNlcl9wcm9maWxlLnYxIuoJCgtVc2VyUHJvZmlsZRLMAQoEbmFtZRgBIAEoCUK9AbpIuQG6AbUBChRuYW1lLmZvcm1hdC5vcHRpb25hbBI+bmFtZSBtdXN0IGJlIGVtcHR5IG9yIGluIHRoZSBmb3JtYXQgaWFtL3VzZXJfcHJvZmlsZXMve1VMSUR2Mn0aXXNpemUodGhpcykgPT0gMCB8fCB0aGlzLm1hdGNoZXMoJ15pYW0vdXNlcl9wcm9maWxlcy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSQnKRJLCgVvd25lchgCIAEoCUI8ukg5yAEBcjQyL15ncm91cHMvWzAxMjM0NTY3ODlBQkNERUZHSEpLTU5QUVJTVFZXWFlaXXsyNn0kmAEhEk4KBm93bmVycxgDIAMoCUI+ukg7kgE4IjZyNDIvXmdyb3Vwcy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRU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KAsyGC5tZXNodHJhZGUudHlwZS52MS5Ub2tlbhI0ChJyZXBvcnRpbmdfY3VycmVuY3kYCiABKAsyGC5tZXNodHJhZGUudHlwZS52MS5Ub2tlbkJnCiRjby5tZXNodHJhZGUuYXBpLmlhbS51c2VyX3Byb2ZpbGUudjFaP2dpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby9pYW0vdXNlcl9wcm9maWxlL3YxO3VzZXJfcHJvZmlsZV92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate, token_pb_1.file_meshtrade_type_v1_token]);
|
|
14
14
|
/**
|
|
15
15
|
* Describes the message meshtrade.iam.user_profile.v1.UserProfile.
|
|
16
16
|
* Use `create(UserProfileSchema)` to create a new message.
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { Token } from "./token_pb";
|
|
2
|
+
/**
|
|
3
|
+
* The reserved issuer value for assets that are native to their ledger's protocol
|
|
4
|
+
* layer. Each ledger typically has one native asset (e.g., ETH on Ethereum, SOL on
|
|
5
|
+
* Solana, XLM on Stellar, SUI on Sui) — a base-layer token which has no issuing
|
|
6
|
+
* contract or account. For all other assets (e.g., ERC-20 tokens, Stellar credit
|
|
7
|
+
* assets), the issuer field should contain the unique identifier of the issuing
|
|
8
|
+
* entity, such as a smart contract address or issuance account public key.
|
|
9
|
+
*/
|
|
10
|
+
export declare const NativeAssetIssuer = "__LEDGER__";
|
|
2
11
|
export declare function tokensAreEqual(t?: Token, t2?: Token): boolean;
|
|
3
12
|
export declare function tokenIsUndefined(t?: Token): boolean;
|
|
4
13
|
export declare function tokenToString(t?: Token): string;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NativeAssetIssuer = void 0;
|
|
3
4
|
exports.tokensAreEqual = tokensAreEqual;
|
|
4
5
|
exports.tokenIsUndefined = tokenIsUndefined;
|
|
5
6
|
exports.tokenToString = tokenToString;
|
|
6
7
|
const ledger_pb_1 = require("./ledger_pb");
|
|
8
|
+
/**
|
|
9
|
+
* The reserved issuer value for assets that are native to their ledger's protocol
|
|
10
|
+
* layer. Each ledger typically has one native asset (e.g., ETH on Ethereum, SOL on
|
|
11
|
+
* Solana, XLM on Stellar, SUI on Sui) — a base-layer token which has no issuing
|
|
12
|
+
* contract or account. For all other assets (e.g., ERC-20 tokens, Stellar credit
|
|
13
|
+
* assets), the issuer field should contain the unique identifier of the issuing
|
|
14
|
+
* entity, such as a smart contract address or issuance account public key.
|
|
15
|
+
*/
|
|
16
|
+
exports.NativeAssetIssuer = "__LEDGER__";
|
|
7
17
|
function tokensAreEqual(t, t2) {
|
|
8
18
|
return ((t?.code ?? "") === (t2?.code ?? "") &&
|
|
9
19
|
(t?.issuer ?? "") === (t2?.issuer ?? "") &&
|
|
@@ -28,11 +28,14 @@ export type Token = Message<"meshtrade.type.v1.Token"> & {
|
|
|
28
28
|
code: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* Issuer is a reference to issuing entity of the token.
|
|
32
|
-
* For NATIVE assets on a ledger (e.g., ETH on Ethereum
|
|
33
|
-
* represented by the reserved string __LEDGER__.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
31
|
+
* Issuer is a reference to the issuing entity of the token.
|
|
32
|
+
* For NATIVE assets on a ledger (e.g., ETH on Ethereum, SOL on Solana, XLM on Stellar),
|
|
33
|
+
* the issuer is the ledger itself, represented by the reserved string __LEDGER__.
|
|
34
|
+
* All Mesh SDKs expose a constant for this value (e.g., NativeAssetIssuer in Go and
|
|
35
|
+
* TypeScript, NATIVE_ASSET_ISSUER in Python and Java).
|
|
36
|
+
* For ALL other issued assets (e.g., ERC-20 tokens), this is the unique identifier of
|
|
37
|
+
* the issuing entity, such as a smart contract address on Ethereum or an issuance
|
|
38
|
+
* account public key on Stellar.
|
|
36
39
|
* Required field.
|
|
37
40
|
*
|
|
38
41
|
* @generated from field: string issuer = 2;
|