@dynamic-labs/sdk-api 0.46.0 → 0.47.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 +1 -1
- package/src/apis/SDKApi.cjs +2 -2
- package/src/apis/SDKApi.d.ts +2 -2
- package/src/apis/SDKApi.js +2 -2
- package/src/models/BusinessAccountApprovalsPending.cjs +3 -4
- package/src/models/BusinessAccountApprovalsPending.d.ts +6 -7
- package/src/models/BusinessAccountApprovalsPending.js +3 -4
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +1 -0
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- package/src/models/UnprocessableEntityErrorPayload.cjs +2 -0
- package/src/models/UnprocessableEntityErrorPayload.d.ts +9 -0
- package/src/models/UnprocessableEntityErrorPayload.js +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -8979,7 +8979,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8979
8979
|
await this.screenTransactionOptionsRaw(requestParameters, initOverrides);
|
|
8980
8980
|
}
|
|
8981
8981
|
/**
|
|
8982
|
-
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember`
|
|
8982
|
+
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
8983
8983
|
* SDK — add a member to a business account
|
|
8984
8984
|
*/
|
|
8985
8985
|
async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
|
|
@@ -9012,7 +9012,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9012
9012
|
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMember.BusinessAccountMemberFromJSON(jsonValue));
|
|
9013
9013
|
}
|
|
9014
9014
|
/**
|
|
9015
|
-
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember`
|
|
9015
|
+
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
9016
9016
|
* SDK — add a member to a business account
|
|
9017
9017
|
*/
|
|
9018
9018
|
async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -4228,12 +4228,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4228
4228
|
*/
|
|
4229
4229
|
screenTransactionOptions(requestParameters: ScreenTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4230
4230
|
/**
|
|
4231
|
-
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember`
|
|
4231
|
+
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
4232
4232
|
* SDK — add a member to a business account
|
|
4233
4233
|
*/
|
|
4234
4234
|
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMember>>;
|
|
4235
4235
|
/**
|
|
4236
|
-
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember`
|
|
4236
|
+
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
4237
4237
|
* SDK — add a member to a business account
|
|
4238
4238
|
*/
|
|
4239
4239
|
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -8975,7 +8975,7 @@ class SDKApi extends BaseAPI {
|
|
|
8975
8975
|
await this.screenTransactionOptionsRaw(requestParameters, initOverrides);
|
|
8976
8976
|
}
|
|
8977
8977
|
/**
|
|
8978
|
-
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember`
|
|
8978
|
+
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
8979
8979
|
* SDK — add a member to a business account
|
|
8980
8980
|
*/
|
|
8981
8981
|
async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
|
|
@@ -9008,7 +9008,7 @@ class SDKApi extends BaseAPI {
|
|
|
9008
9008
|
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberFromJSON(jsonValue));
|
|
9009
9009
|
}
|
|
9010
9010
|
/**
|
|
9011
|
-
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember`
|
|
9011
|
+
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
9012
9012
|
* SDK — add a member to a business account
|
|
9013
9013
|
*/
|
|
9014
9014
|
async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
|
|
@@ -12,7 +12,6 @@ var BusinessAccountApprovalRequirementStatus = require('./BusinessAccountApprova
|
|
|
12
12
|
*/
|
|
13
13
|
exports.BusinessAccountApprovalsPendingReasonEnum = void 0;
|
|
14
14
|
(function (BusinessAccountApprovalsPendingReasonEnum) {
|
|
15
|
-
BusinessAccountApprovalsPendingReasonEnum["IntentRequired"] = "INTENT_REQUIRED";
|
|
16
15
|
BusinessAccountApprovalsPendingReasonEnum["ApprovalsRequired"] = "APPROVALS_REQUIRED";
|
|
17
16
|
})(exports.BusinessAccountApprovalsPendingReasonEnum || (exports.BusinessAccountApprovalsPendingReasonEnum = {}));
|
|
18
17
|
function BusinessAccountApprovalsPendingFromJSON(json) {
|
|
@@ -26,8 +25,8 @@ function BusinessAccountApprovalsPendingFromJSONTyped(json, ignoreDiscriminator)
|
|
|
26
25
|
'reason': json['reason'],
|
|
27
26
|
'intent': json['intent'],
|
|
28
27
|
'message': !runtime.exists(json, 'message') ? undefined : json['message'],
|
|
29
|
-
'proposalId':
|
|
30
|
-
'approvalRequirements':
|
|
28
|
+
'proposalId': json['proposalId'],
|
|
29
|
+
'approvalRequirements': (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusFromJSON)),
|
|
31
30
|
};
|
|
32
31
|
}
|
|
33
32
|
function BusinessAccountApprovalsPendingToJSON(value) {
|
|
@@ -42,7 +41,7 @@ function BusinessAccountApprovalsPendingToJSON(value) {
|
|
|
42
41
|
'intent': value.intent,
|
|
43
42
|
'message': value.message,
|
|
44
43
|
'proposalId': value.proposalId,
|
|
45
|
-
'approvalRequirements':
|
|
44
|
+
'approvalRequirements': (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusToJSON)),
|
|
46
45
|
};
|
|
47
46
|
}
|
|
48
47
|
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { BusinessAccountApprovalRequirementStatus } from './BusinessAccountApprovalRequirementStatus';
|
|
13
13
|
/**
|
|
14
|
-
* The action is governed and
|
|
15
|
-
*
|
|
14
|
+
* The action is governed, signed, and short of quorum — not a refusal: the caller may perform it, they have simply not collected every approval it requires. `proposalId` is the proposal collecting approvals, and `approvalRequirements` says what each rule still needs.
|
|
15
|
+
* A missing signed intent is a different case entirely and is reported as `422 intent_required` (see `UnprocessableEntity`), not this response — the caller made a mistake (nothing to sign yet was supplied) rather than something outstanding.
|
|
16
16
|
* @export
|
|
17
17
|
* @interface BusinessAccountApprovalsPending
|
|
18
18
|
*/
|
|
@@ -39,24 +39,23 @@ export interface BusinessAccountApprovalsPending {
|
|
|
39
39
|
*/
|
|
40
40
|
message?: string;
|
|
41
41
|
/**
|
|
42
|
-
* The proposal collecting approvals.
|
|
42
|
+
* The proposal collecting approvals.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof BusinessAccountApprovalsPending
|
|
45
45
|
*/
|
|
46
|
-
proposalId
|
|
46
|
+
proposalId: string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Every matching requirement, met or not, so a client can render progress per rule.
|
|
49
49
|
* @type {Array<BusinessAccountApprovalRequirementStatus>}
|
|
50
50
|
* @memberof BusinessAccountApprovalsPending
|
|
51
51
|
*/
|
|
52
|
-
approvalRequirements
|
|
52
|
+
approvalRequirements: Array<BusinessAccountApprovalRequirementStatus>;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* @export
|
|
56
56
|
* @enum {string}
|
|
57
57
|
*/
|
|
58
58
|
export declare enum BusinessAccountApprovalsPendingReasonEnum {
|
|
59
|
-
IntentRequired = "INTENT_REQUIRED",
|
|
60
59
|
ApprovalsRequired = "APPROVALS_REQUIRED"
|
|
61
60
|
}
|
|
62
61
|
export declare function BusinessAccountApprovalsPendingFromJSON(json: any): BusinessAccountApprovalsPending;
|
|
@@ -8,7 +8,6 @@ import { BusinessAccountApprovalRequirementStatusFromJSON, BusinessAccountApprov
|
|
|
8
8
|
*/
|
|
9
9
|
var BusinessAccountApprovalsPendingReasonEnum;
|
|
10
10
|
(function (BusinessAccountApprovalsPendingReasonEnum) {
|
|
11
|
-
BusinessAccountApprovalsPendingReasonEnum["IntentRequired"] = "INTENT_REQUIRED";
|
|
12
11
|
BusinessAccountApprovalsPendingReasonEnum["ApprovalsRequired"] = "APPROVALS_REQUIRED";
|
|
13
12
|
})(BusinessAccountApprovalsPendingReasonEnum || (BusinessAccountApprovalsPendingReasonEnum = {}));
|
|
14
13
|
function BusinessAccountApprovalsPendingFromJSON(json) {
|
|
@@ -22,8 +21,8 @@ function BusinessAccountApprovalsPendingFromJSONTyped(json, ignoreDiscriminator)
|
|
|
22
21
|
'reason': json['reason'],
|
|
23
22
|
'intent': json['intent'],
|
|
24
23
|
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
25
|
-
'proposalId':
|
|
26
|
-
'approvalRequirements':
|
|
24
|
+
'proposalId': json['proposalId'],
|
|
25
|
+
'approvalRequirements': (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatusFromJSON)),
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
28
|
function BusinessAccountApprovalsPendingToJSON(value) {
|
|
@@ -38,7 +37,7 @@ function BusinessAccountApprovalsPendingToJSON(value) {
|
|
|
38
37
|
'intent': value.intent,
|
|
39
38
|
'message': value.message,
|
|
40
39
|
'proposalId': value.proposalId,
|
|
41
|
-
'approvalRequirements':
|
|
40
|
+
'approvalRequirements': (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatusToJSON)),
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -30,6 +30,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
30
30
|
UnprocessableEntityErrorCode["UnknownTransferError"] = "unknown_transfer_error";
|
|
31
31
|
UnprocessableEntityErrorCode["TransferMfaRequired"] = "transfer_mfa_required";
|
|
32
32
|
UnprocessableEntityErrorCode["TransferMfaFailed"] = "transfer_mfa_failed";
|
|
33
|
+
UnprocessableEntityErrorCode["IntentRequired"] = "intent_required";
|
|
33
34
|
UnprocessableEntityErrorCode["InvalidTransferFunds"] = "invalid_transfer_funds";
|
|
34
35
|
UnprocessableEntityErrorCode["InvalidTransferCurrency"] = "invalid_transfer_currency";
|
|
35
36
|
UnprocessableEntityErrorCode["InvalidExchangeProvider"] = "invalid_exchange_provider";
|
|
@@ -23,6 +23,7 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
23
23
|
UnknownTransferError = "unknown_transfer_error",
|
|
24
24
|
TransferMfaRequired = "transfer_mfa_required",
|
|
25
25
|
TransferMfaFailed = "transfer_mfa_failed",
|
|
26
|
+
IntentRequired = "intent_required",
|
|
26
27
|
InvalidTransferFunds = "invalid_transfer_funds",
|
|
27
28
|
InvalidTransferCurrency = "invalid_transfer_currency",
|
|
28
29
|
InvalidExchangeProvider = "invalid_exchange_provider",
|
|
@@ -26,6 +26,7 @@ var UnprocessableEntityErrorCode;
|
|
|
26
26
|
UnprocessableEntityErrorCode["UnknownTransferError"] = "unknown_transfer_error";
|
|
27
27
|
UnprocessableEntityErrorCode["TransferMfaRequired"] = "transfer_mfa_required";
|
|
28
28
|
UnprocessableEntityErrorCode["TransferMfaFailed"] = "transfer_mfa_failed";
|
|
29
|
+
UnprocessableEntityErrorCode["IntentRequired"] = "intent_required";
|
|
29
30
|
UnprocessableEntityErrorCode["InvalidTransferFunds"] = "invalid_transfer_funds";
|
|
30
31
|
UnprocessableEntityErrorCode["InvalidTransferCurrency"] = "invalid_transfer_currency";
|
|
31
32
|
UnprocessableEntityErrorCode["InvalidExchangeProvider"] = "invalid_exchange_provider";
|
|
@@ -20,6 +20,7 @@ function UnprocessableEntityErrorPayloadFromJSONTyped(json, ignoreDiscriminator)
|
|
|
20
20
|
'embeddedWalletName': !runtime.exists(json, 'embeddedWalletName') ? undefined : json['embeddedWalletName'],
|
|
21
21
|
'embeddedSocialSigninProvider': !runtime.exists(json, 'embeddedSocialSigninProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['embeddedSocialSigninProvider']),
|
|
22
22
|
'mergeConflicts': !runtime.exists(json, 'mergeConflicts') ? undefined : MergeConflicts.MergeConflictsFromJSON(json['mergeConflicts']),
|
|
23
|
+
'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
|
|
23
24
|
'additionalMessages': !runtime.exists(json, 'additionalMessages') ? undefined : json['additionalMessages'],
|
|
24
25
|
};
|
|
25
26
|
}
|
|
@@ -36,6 +37,7 @@ function UnprocessableEntityErrorPayloadToJSON(value) {
|
|
|
36
37
|
'embeddedWalletName': value.embeddedWalletName,
|
|
37
38
|
'embeddedSocialSigninProvider': ProviderEnum.ProviderEnumToJSON(value.embeddedSocialSigninProvider),
|
|
38
39
|
'mergeConflicts': MergeConflicts.MergeConflictsToJSON(value.mergeConflicts),
|
|
40
|
+
'intent': value.intent,
|
|
39
41
|
'additionalMessages': value.additionalMessages,
|
|
40
42
|
};
|
|
41
43
|
}
|
|
@@ -47,6 +47,15 @@ export interface UnprocessableEntityErrorPayload {
|
|
|
47
47
|
* @memberof UnprocessableEntityErrorPayload
|
|
48
48
|
*/
|
|
49
49
|
mergeConflicts?: MergeConflicts;
|
|
50
|
+
/**
|
|
51
|
+
* The initiator's proposal, signed with their session key. Built by the API, not the client — sign these exact bytes verbatim, because re-serializing can change them and invalidate the signature.
|
|
52
|
+
* `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
|
|
53
|
+
* @type {{ [key: string]: object; }}
|
|
54
|
+
* @memberof UnprocessableEntityErrorPayload
|
|
55
|
+
*/
|
|
56
|
+
intent?: {
|
|
57
|
+
[key: string]: object;
|
|
58
|
+
};
|
|
50
59
|
/**
|
|
51
60
|
* List of additional validation error messages
|
|
52
61
|
* @type {Array<string>}
|
|
@@ -16,6 +16,7 @@ function UnprocessableEntityErrorPayloadFromJSONTyped(json, ignoreDiscriminator)
|
|
|
16
16
|
'embeddedWalletName': !exists(json, 'embeddedWalletName') ? undefined : json['embeddedWalletName'],
|
|
17
17
|
'embeddedSocialSigninProvider': !exists(json, 'embeddedSocialSigninProvider') ? undefined : ProviderEnumFromJSON(json['embeddedSocialSigninProvider']),
|
|
18
18
|
'mergeConflicts': !exists(json, 'mergeConflicts') ? undefined : MergeConflictsFromJSON(json['mergeConflicts']),
|
|
19
|
+
'intent': !exists(json, 'intent') ? undefined : json['intent'],
|
|
19
20
|
'additionalMessages': !exists(json, 'additionalMessages') ? undefined : json['additionalMessages'],
|
|
20
21
|
};
|
|
21
22
|
}
|
|
@@ -32,6 +33,7 @@ function UnprocessableEntityErrorPayloadToJSON(value) {
|
|
|
32
33
|
'embeddedWalletName': value.embeddedWalletName,
|
|
33
34
|
'embeddedSocialSigninProvider': ProviderEnumToJSON(value.embeddedSocialSigninProvider),
|
|
34
35
|
'mergeConflicts': MergeConflictsToJSON(value.mergeConflicts),
|
|
36
|
+
'intent': value.intent,
|
|
35
37
|
'additionalMessages': value.additionalMessages,
|
|
36
38
|
};
|
|
37
39
|
}
|