@dynamic-labs/sdk-api 0.184.0 → 0.186.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.184.0",
3
+ "version": "0.186.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -20,6 +20,7 @@ function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
21
21
  'businessAccountSignerId': json['businessAccountSignerId'],
22
22
  'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
23
+ 'businessAccountSignerAddedByUserId': !runtime.exists(json, 'businessAccountSignerAddedByUserId') ? undefined : json['businessAccountSignerAddedByUserId'],
23
24
  'businessAccountMemberRole': json['businessAccountMemberRole'],
24
25
  };
25
26
  }
@@ -37,6 +38,7 @@ function BusinessAccountPropertiesToJSON(value) {
37
38
  'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
38
39
  'businessAccountSignerId': value.businessAccountSignerId,
39
40
  'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
41
+ 'businessAccountSignerAddedByUserId': value.businessAccountSignerAddedByUserId,
40
42
  'businessAccountMemberRole': value.businessAccountMemberRole,
41
43
  };
42
44
  }
@@ -52,6 +52,12 @@ export interface BusinessAccountProperties {
52
52
  * @memberof BusinessAccountProperties
53
53
  */
54
54
  businessAccountSignerType: BusinessAccountSignerType;
55
+ /**
56
+ * `BusinessAccountSigner.addedByUserId` — the user who added this signer to the wallet. When it differs from the credential owner, the share set was provisioned on their behalf (e.g. another member's ceremony), so its encrypted blob was sealed with the adder's credential, not theirs. Nullable for rows created before the field was tracked.
57
+ * @type {string}
58
+ * @memberof BusinessAccountProperties
59
+ */
60
+ businessAccountSignerAddedByUserId?: string | null;
55
61
  /**
56
62
  * The role a member actually holds: a built-in (`owner`, `admin`, `viewer`) or a customer-defined role the account has defined. Wider than AssignableBusinessAccountRoleName because a held role can be `owner`, which cannot be assigned directly.
57
63
  * @type {string}
@@ -16,6 +16,7 @@ function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
17
17
  'businessAccountSignerId': json['businessAccountSignerId'],
18
18
  'businessAccountSignerType': BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
19
+ 'businessAccountSignerAddedByUserId': !exists(json, 'businessAccountSignerAddedByUserId') ? undefined : json['businessAccountSignerAddedByUserId'],
19
20
  'businessAccountMemberRole': json['businessAccountMemberRole'],
20
21
  };
21
22
  }
@@ -33,6 +34,7 @@ function BusinessAccountPropertiesToJSON(value) {
33
34
  'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
34
35
  'businessAccountSignerId': value.businessAccountSignerId,
35
36
  'businessAccountSignerType': BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
37
+ 'businessAccountSignerAddedByUserId': value.businessAccountSignerAddedByUserId,
36
38
  'businessAccountMemberRole': value.businessAccountMemberRole,
37
39
  };
38
40
  }
@@ -31,15 +31,23 @@ function FlowListItemFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'completedAt': !runtime.exists(json, 'completedAt') ? undefined : (json['completedAt'] === null ? null : new Date(json['completedAt'])),
32
32
  'createdAt': (new Date(json['createdAt'])),
33
33
  'currency': json['currency'],
34
+ 'depositAddress': !runtime.exists(json, 'depositAddress') ? undefined : json['depositAddress'],
35
+ 'exchange': !runtime.exists(json, 'exchange') ? undefined : json['exchange'],
34
36
  'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumFromJSON(json['executionState']),
35
37
  'failure': !runtime.exists(json, 'failure') ? undefined : FlowListItemFailure.FlowListItemFailureFromJSON(json['failure']),
38
+ 'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
36
39
  'fromChain': !runtime.exists(json, 'fromChain') ? undefined : json['fromChain'],
37
40
  'fromToken': !runtime.exists(json, 'fromToken') ? undefined : json['fromToken'],
38
41
  'id': json['id'],
42
+ 'inputAmountUsd': !runtime.exists(json, 'inputAmountUsd') ? undefined : json['inputAmountUsd'],
43
+ 'feeUsd': !runtime.exists(json, 'feeUsd') ? undefined : json['feeUsd'],
39
44
  'mode': FlowModeEnum.FlowModeEnumFromJSON(json['mode']),
45
+ 'refundAddress': !runtime.exists(json, 'refundAddress') ? undefined : json['refundAddress'],
40
46
  'settlementState': FlowSettlementStateEnum.FlowSettlementStateEnumFromJSON(json['settlementState']),
41
47
  'settlementTxHash': !runtime.exists(json, 'settlementTxHash') ? undefined : json['settlementTxHash'],
48
+ 'settledAmountUsd': !runtime.exists(json, 'settledAmountUsd') ? undefined : json['settledAmountUsd'],
42
49
  'sourceType': !runtime.exists(json, 'sourceType') ? undefined : json['sourceType'],
50
+ 'toAddress': !runtime.exists(json, 'toAddress') ? undefined : json['toAddress'],
43
51
  'toChain': !runtime.exists(json, 'toChain') ? undefined : json['toChain'],
44
52
  'toToken': !runtime.exists(json, 'toToken') ? undefined : json['toToken'],
45
53
  'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
@@ -57,15 +65,23 @@ function FlowListItemToJSON(value) {
57
65
  'completedAt': value.completedAt === undefined ? undefined : (value.completedAt === null ? null : value.completedAt.toISOString()),
58
66
  'createdAt': (value.createdAt.toISOString()),
59
67
  'currency': value.currency,
68
+ 'depositAddress': value.depositAddress,
69
+ 'exchange': value.exchange,
60
70
  'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumToJSON(value.executionState),
61
71
  'failure': FlowListItemFailure.FlowListItemFailureToJSON(value.failure),
72
+ 'fromAddress': value.fromAddress,
62
73
  'fromChain': value.fromChain,
63
74
  'fromToken': value.fromToken,
64
75
  'id': value.id,
76
+ 'inputAmountUsd': value.inputAmountUsd,
77
+ 'feeUsd': value.feeUsd,
65
78
  'mode': FlowModeEnum.FlowModeEnumToJSON(value.mode),
79
+ 'refundAddress': value.refundAddress,
66
80
  'settlementState': FlowSettlementStateEnum.FlowSettlementStateEnumToJSON(value.settlementState),
67
81
  'settlementTxHash': value.settlementTxHash,
82
+ 'settledAmountUsd': value.settledAmountUsd,
68
83
  'sourceType': value.sourceType,
84
+ 'toAddress': value.toAddress,
69
85
  'toChain': value.toChain,
70
86
  'toToken': value.toToken,
71
87
  'txHash': value.txHash,
@@ -43,6 +43,18 @@ export interface FlowListItem {
43
43
  * @memberof FlowListItem
44
44
  */
45
45
  currency: string;
46
+ /**
47
+ * Latest deposit address issued for a deposit_address source
48
+ * @type {string}
49
+ * @memberof FlowListItem
50
+ */
51
+ depositAddress?: string | null;
52
+ /**
53
+ * Exchange provider for an exchange source, when set
54
+ * @type {string}
55
+ * @memberof FlowListItem
56
+ */
57
+ exchange?: string | null;
46
58
  /**
47
59
  *
48
60
  * @type {FlowExecutionStateEnum}
@@ -55,6 +67,12 @@ export interface FlowListItem {
55
67
  * @memberof FlowListItem
56
68
  */
57
69
  failure?: FlowListItemFailure | null;
70
+ /**
71
+ * Address the source funds were sent from, when known
72
+ * @type {string}
73
+ * @memberof FlowListItem
74
+ */
75
+ fromAddress?: string | null;
58
76
  /**
59
77
  *
60
78
  * @type {string}
@@ -73,12 +91,30 @@ export interface FlowListItem {
73
91
  * @memberof FlowListItem
74
92
  */
75
93
  id: string;
94
+ /**
95
+ * Actual amount the payer was charged in USD, when known
96
+ * @type {string}
97
+ * @memberof FlowListItem
98
+ */
99
+ inputAmountUsd?: string | null;
100
+ /**
101
+ * Total fee charged on the flow in USD, when known
102
+ * @type {string}
103
+ * @memberof FlowListItem
104
+ */
105
+ feeUsd?: string | null;
76
106
  /**
77
107
  *
78
108
  * @type {FlowModeEnum}
79
109
  * @memberof FlowListItem
80
110
  */
81
111
  mode: FlowModeEnum;
112
+ /**
113
+ * Refund destination for a deposit_address source, when set
114
+ * @type {string}
115
+ * @memberof FlowListItem
116
+ */
117
+ refundAddress?: string | null;
82
118
  /**
83
119
  *
84
120
  * @type {FlowSettlementStateEnum}
@@ -91,12 +127,24 @@ export interface FlowListItem {
91
127
  * @memberof FlowListItem
92
128
  */
93
129
  settlementTxHash?: string | null;
130
+ /**
131
+ * Actual delivered amount in USD recorded at settlement, when known
132
+ * @type {string}
133
+ * @memberof FlowListItem
134
+ */
135
+ settledAmountUsd?: string | null;
94
136
  /**
95
137
  *
96
138
  * @type {string}
97
139
  * @memberof FlowListItem
98
140
  */
99
141
  sourceType?: FlowListItemSourceTypeEnum;
142
+ /**
143
+ * Destination address on the target chain, when known
144
+ * @type {string}
145
+ * @memberof FlowListItem
146
+ */
147
+ toAddress?: string | null;
100
148
  /**
101
149
  *
102
150
  * @type {string}
@@ -27,15 +27,23 @@ function FlowListItemFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'completedAt': !exists(json, 'completedAt') ? undefined : (json['completedAt'] === null ? null : new Date(json['completedAt'])),
28
28
  'createdAt': (new Date(json['createdAt'])),
29
29
  'currency': json['currency'],
30
+ 'depositAddress': !exists(json, 'depositAddress') ? undefined : json['depositAddress'],
31
+ 'exchange': !exists(json, 'exchange') ? undefined : json['exchange'],
30
32
  'executionState': FlowExecutionStateEnumFromJSON(json['executionState']),
31
33
  'failure': !exists(json, 'failure') ? undefined : FlowListItemFailureFromJSON(json['failure']),
34
+ 'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
32
35
  'fromChain': !exists(json, 'fromChain') ? undefined : json['fromChain'],
33
36
  'fromToken': !exists(json, 'fromToken') ? undefined : json['fromToken'],
34
37
  'id': json['id'],
38
+ 'inputAmountUsd': !exists(json, 'inputAmountUsd') ? undefined : json['inputAmountUsd'],
39
+ 'feeUsd': !exists(json, 'feeUsd') ? undefined : json['feeUsd'],
35
40
  'mode': FlowModeEnumFromJSON(json['mode']),
41
+ 'refundAddress': !exists(json, 'refundAddress') ? undefined : json['refundAddress'],
36
42
  'settlementState': FlowSettlementStateEnumFromJSON(json['settlementState']),
37
43
  'settlementTxHash': !exists(json, 'settlementTxHash') ? undefined : json['settlementTxHash'],
44
+ 'settledAmountUsd': !exists(json, 'settledAmountUsd') ? undefined : json['settledAmountUsd'],
38
45
  'sourceType': !exists(json, 'sourceType') ? undefined : json['sourceType'],
46
+ 'toAddress': !exists(json, 'toAddress') ? undefined : json['toAddress'],
39
47
  'toChain': !exists(json, 'toChain') ? undefined : json['toChain'],
40
48
  'toToken': !exists(json, 'toToken') ? undefined : json['toToken'],
41
49
  'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
@@ -53,15 +61,23 @@ function FlowListItemToJSON(value) {
53
61
  'completedAt': value.completedAt === undefined ? undefined : (value.completedAt === null ? null : value.completedAt.toISOString()),
54
62
  'createdAt': (value.createdAt.toISOString()),
55
63
  'currency': value.currency,
64
+ 'depositAddress': value.depositAddress,
65
+ 'exchange': value.exchange,
56
66
  'executionState': FlowExecutionStateEnumToJSON(value.executionState),
57
67
  'failure': FlowListItemFailureToJSON(value.failure),
68
+ 'fromAddress': value.fromAddress,
58
69
  'fromChain': value.fromChain,
59
70
  'fromToken': value.fromToken,
60
71
  'id': value.id,
72
+ 'inputAmountUsd': value.inputAmountUsd,
73
+ 'feeUsd': value.feeUsd,
61
74
  'mode': FlowModeEnumToJSON(value.mode),
75
+ 'refundAddress': value.refundAddress,
62
76
  'settlementState': FlowSettlementStateEnumToJSON(value.settlementState),
63
77
  'settlementTxHash': value.settlementTxHash,
78
+ 'settledAmountUsd': value.settledAmountUsd,
64
79
  'sourceType': value.sourceType,
80
+ 'toAddress': value.toAddress,
65
81
  'toChain': value.toChain,
66
82
  'toToken': value.toToken,
67
83
  'txHash': value.txHash,