@dynamic-labs/sdk-api 0.88.0 → 0.90.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/AdminActionsApi.cjs +1 -0
- package/src/apis/AdminActionsApi.js +1 -0
- package/src/apis/AllowlistsApi.cjs +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/AuthorizedClientsApi.cjs +1 -0
- package/src/apis/AuthorizedClientsApi.js +1 -0
- package/src/apis/BusinessAccountsApi.cjs +1 -0
- package/src/apis/BusinessAccountsApi.js +1 -0
- package/src/apis/CaptchaApi.cjs +1 -0
- package/src/apis/CaptchaApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/ChainsApi.cjs +1 -0
- package/src/apis/ChainsApi.js +1 -0
- package/src/apis/CheckoutApi.cjs +1 -0
- package/src/apis/CheckoutApi.js +1 -0
- package/src/apis/ClientGrantApi.cjs +1 -0
- package/src/apis/ClientGrantApi.js +1 -0
- package/src/apis/CustomFieldsApi.cjs +1 -0
- package/src/apis/CustomFieldsApi.js +1 -0
- package/src/apis/CustomHostnamesApi.cjs +1 -0
- package/src/apis/CustomHostnamesApi.js +1 -0
- package/src/apis/CustomNetworksApi.cjs +1 -0
- package/src/apis/CustomNetworksApi.js +1 -0
- package/src/apis/DeeplinkUrlsApi.cjs +1 -0
- package/src/apis/DeeplinkUrlsApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/EventsApi.cjs +1 -0
- package/src/apis/EventsApi.js +1 -0
- package/src/apis/ExchangesApi.cjs +1 -0
- package/src/apis/ExchangesApi.js +1 -0
- package/src/apis/ExportsApi.cjs +1 -0
- package/src/apis/ExportsApi.js +1 -0
- package/src/apis/ExternalJwtApi.cjs +1 -0
- package/src/apis/ExternalJwtApi.js +1 -0
- package/src/apis/FlowAnalyticsApi.cjs +1 -0
- package/src/apis/FlowAnalyticsApi.js +1 -0
- package/src/apis/GaslessApi.cjs +1 -0
- package/src/apis/GaslessApi.js +1 -0
- package/src/apis/GatesApi.cjs +1 -0
- package/src/apis/GatesApi.js +1 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
- package/src/apis/GlobalWalletAccessControlApi.js +1 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
- package/src/apis/GlobalWalletConnectionsApi.js +1 -0
- package/src/apis/GlobalWalletsApi.cjs +1 -0
- package/src/apis/GlobalWalletsApi.js +1 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/KybApi.cjs +1 -0
- package/src/apis/KybApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/MfaSettingsApi.cjs +1 -0
- package/src/apis/MfaSettingsApi.js +1 -0
- package/src/apis/NameServicesApi.cjs +1 -0
- package/src/apis/NameServicesApi.js +1 -0
- package/src/apis/OrganizationSettingsApi.cjs +1 -0
- package/src/apis/OrganizationSettingsApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/ProvidersApi.cjs +1 -0
- package/src/apis/ProvidersApi.js +1 -0
- package/src/apis/SDKApi.cjs +1 -0
- package/src/apis/SDKApi.js +1 -0
- package/src/apis/SDKViewsApi.cjs +1 -0
- package/src/apis/SDKViewsApi.js +1 -0
- package/src/apis/ScreeningPoliciesApi.cjs +1 -0
- package/src/apis/ScreeningPoliciesApi.js +1 -0
- package/src/apis/ServerApi.cjs +1 -0
- package/src/apis/ServerApi.js +1 -0
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/TestAccountApi.cjs +1 -0
- package/src/apis/TestAccountApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UserApiTokensApi.cjs +1 -0
- package/src/apis/UserApiTokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WalletConnectApi.cjs +1 -0
- package/src/apis/WalletConnectApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/WebhooksApi.cjs +1 -0
- package/src/apis/WebhooksApi.js +1 -0
- package/src/apis/YieldApi.cjs +1 -0
- package/src/apis/YieldApi.js +1 -0
- package/src/apis/ZendeskApi.cjs +1 -0
- package/src/apis/ZendeskApi.js +1 -0
- package/src/index.cjs +8 -12
- package/src/index.js +2 -4
- package/src/models/BusinessAccountAdminDetail.d.ts +1 -1
- package/src/models/BusinessAccountGovernedAction.cjs +1 -0
- package/src/models/BusinessAccountGovernedAction.d.ts +1 -0
- package/src/models/BusinessAccountGovernedAction.js +1 -0
- package/src/models/BusinessAccountMember.cjs +2 -0
- package/src/models/BusinessAccountMember.d.ts +6 -0
- package/src/models/BusinessAccountMember.js +2 -0
- package/src/models/BusinessAccountRequirementCondition.cjs +12 -0
- package/src/models/BusinessAccountRequirementCondition.d.ts +15 -0
- package/src/models/BusinessAccountRequirementCondition.js +13 -1
- package/src/models/BusinessAccountSummary.d.ts +1 -1
- package/src/models/BusinessAccountSummaryAllOf.d.ts +1 -1
- package/src/models/{WaasBroadcastSvmTransaction.cjs → WaasBroadcastOptions.cjs} +7 -9
- package/src/models/{WaasBroadcastSvmTransaction.d.ts → WaasBroadcastOptions.d.ts} +8 -14
- package/src/models/{WaasBroadcastSvmTransaction.js → WaasBroadcastOptions.js} +5 -7
- package/src/models/WaasSignAndBroadcastRequest.cjs +9 -3
- package/src/models/WaasSignAndBroadcastRequest.d.ts +21 -7
- package/src/models/WaasSignAndBroadcastRequest.js +9 -3
- package/src/models/index.d.ts +1 -3
- package/src/models/WaasBroadcastEvmTransaction.cjs +0 -48
- package/src/models/WaasBroadcastEvmTransaction.d.ts +0 -70
- package/src/models/WaasBroadcastEvmTransaction.js +0 -42
- package/src/models/WaasBroadcastTransaction.cjs +0 -37
- package/src/models/WaasBroadcastTransaction.d.ts +0 -35
- package/src/models/WaasBroadcastTransaction.js +0 -31
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
|
|
3
3
|
/* tslint:disable */
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var BusinessAccountRequirementConditionPolicyLayerScopesEnum;
|
|
9
|
+
(function (BusinessAccountRequirementConditionPolicyLayerScopesEnum) {
|
|
10
|
+
BusinessAccountRequirementConditionPolicyLayerScopesEnum["Account"] = "account";
|
|
11
|
+
BusinessAccountRequirementConditionPolicyLayerScopesEnum["Wallet"] = "wallet";
|
|
12
|
+
BusinessAccountRequirementConditionPolicyLayerScopesEnum["Signer"] = "signer";
|
|
13
|
+
})(BusinessAccountRequirementConditionPolicyLayerScopesEnum || (BusinessAccountRequirementConditionPolicyLayerScopesEnum = {}));
|
|
4
14
|
function BusinessAccountRequirementConditionFromJSON(json) {
|
|
5
15
|
return BusinessAccountRequirementConditionFromJSONTyped(json);
|
|
6
16
|
}
|
|
@@ -12,6 +22,7 @@ function BusinessAccountRequirementConditionFromJSONTyped(json, ignoreDiscrimina
|
|
|
12
22
|
'role': !exists(json, 'role') ? undefined : json['role'],
|
|
13
23
|
'newRole': !exists(json, 'newRole') ? undefined : json['newRole'],
|
|
14
24
|
'walletIds': !exists(json, 'walletIds') ? undefined : json['walletIds'],
|
|
25
|
+
'policyLayerScopes': !exists(json, 'policyLayerScopes') ? undefined : json['policyLayerScopes'],
|
|
15
26
|
'targetUserIds': !exists(json, 'targetUserIds') ? undefined : json['targetUserIds'],
|
|
16
27
|
'initiatorRoles': !exists(json, 'initiatorRoles') ? undefined : json['initiatorRoles'],
|
|
17
28
|
'initiatorUserIds': !exists(json, 'initiatorUserIds') ? undefined : json['initiatorUserIds'],
|
|
@@ -28,10 +39,11 @@ function BusinessAccountRequirementConditionToJSON(value) {
|
|
|
28
39
|
'role': value.role,
|
|
29
40
|
'newRole': value.newRole,
|
|
30
41
|
'walletIds': value.walletIds,
|
|
42
|
+
'policyLayerScopes': value.policyLayerScopes,
|
|
31
43
|
'targetUserIds': value.targetUserIds,
|
|
32
44
|
'initiatorRoles': value.initiatorRoles,
|
|
33
45
|
'initiatorUserIds': value.initiatorUserIds,
|
|
34
46
|
};
|
|
35
47
|
}
|
|
36
48
|
|
|
37
|
-
export { BusinessAccountRequirementConditionFromJSON, BusinessAccountRequirementConditionFromJSONTyped, BusinessAccountRequirementConditionToJSON };
|
|
49
|
+
export { BusinessAccountRequirementConditionFromJSON, BusinessAccountRequirementConditionFromJSONTyped, BusinessAccountRequirementConditionPolicyLayerScopesEnum, BusinessAccountRequirementConditionToJSON };
|
|
@@ -65,7 +65,7 @@ export interface BusinessAccountSummary {
|
|
|
65
65
|
*/
|
|
66
66
|
memberCount: number;
|
|
67
67
|
/**
|
|
68
|
-
* Number of active, unrevoked
|
|
68
|
+
* Number of distinct users with an active, unrevoked signer assignment — a user signing multiple wallets counts once
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof BusinessAccountSummary
|
|
71
71
|
*/
|
|
@@ -23,7 +23,7 @@ export interface BusinessAccountSummaryAllOf {
|
|
|
23
23
|
*/
|
|
24
24
|
memberCount: number;
|
|
25
25
|
/**
|
|
26
|
-
* Number of active, unrevoked
|
|
26
|
+
* Number of distinct users with an active, unrevoked signer assignment — a user signing multiple wallets counts once
|
|
27
27
|
* @type {number}
|
|
28
28
|
* @memberof BusinessAccountSummaryAllOf
|
|
29
29
|
*/
|
|
@@ -6,20 +6,19 @@ var runtime = require('../runtime.cjs');
|
|
|
6
6
|
var WaasBroadcastSvmCosignerSignature = require('./WaasBroadcastSvmCosignerSignature.cjs');
|
|
7
7
|
|
|
8
8
|
/* tslint:disable */
|
|
9
|
-
function
|
|
10
|
-
return
|
|
9
|
+
function WaasBroadcastOptionsFromJSON(json) {
|
|
10
|
+
return WaasBroadcastOptionsFromJSONTyped(json);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function WaasBroadcastOptionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
13
|
if ((json === undefined) || (json === null)) {
|
|
14
14
|
return json;
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
17
|
-
'serializedTransactions': json['serializedTransactions'],
|
|
18
17
|
'cosignerSignatures': !runtime.exists(json, 'cosignerSignatures') ? undefined : (json['cosignerSignatures'].map(WaasBroadcastSvmCosignerSignature.WaasBroadcastSvmCosignerSignatureFromJSON)),
|
|
19
18
|
'skipPreflight': !runtime.exists(json, 'skipPreflight') ? undefined : json['skipPreflight'],
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function WaasBroadcastOptionsToJSON(value) {
|
|
23
22
|
if (value === undefined) {
|
|
24
23
|
return undefined;
|
|
25
24
|
}
|
|
@@ -27,12 +26,11 @@ function WaasBroadcastSvmTransactionToJSON(value) {
|
|
|
27
26
|
return null;
|
|
28
27
|
}
|
|
29
28
|
return {
|
|
30
|
-
'serializedTransactions': value.serializedTransactions,
|
|
31
29
|
'cosignerSignatures': value.cosignerSignatures === undefined ? undefined : (value.cosignerSignatures.map(WaasBroadcastSvmCosignerSignature.WaasBroadcastSvmCosignerSignatureToJSON)),
|
|
32
30
|
'skipPreflight': value.skipPreflight,
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
34
|
+
exports.WaasBroadcastOptionsFromJSON = WaasBroadcastOptionsFromJSON;
|
|
35
|
+
exports.WaasBroadcastOptionsFromJSONTyped = WaasBroadcastOptionsFromJSONTyped;
|
|
36
|
+
exports.WaasBroadcastOptionsToJSON = WaasBroadcastOptionsToJSON;
|
|
@@ -11,30 +11,24 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { WaasBroadcastSvmCosignerSignature } from './WaasBroadcastSvmCosignerSignature';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* How to send the signed transaction. Solana only.
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface WaasBroadcastOptions
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
19
|
-
/**
|
|
20
|
-
* Exactly one Solana transaction, base64-encoded.
|
|
21
|
-
* @type {Array<string>}
|
|
22
|
-
* @memberof WaasBroadcastSvmTransaction
|
|
23
|
-
*/
|
|
24
|
-
serializedTransactions: Array<string>;
|
|
18
|
+
export interface WaasBroadcastOptions {
|
|
25
19
|
/**
|
|
26
20
|
* Signatures from the transaction's other required signers. Dynamic adds only the wallet's own; a missing one is rejected with `missing_cosigner`.
|
|
27
21
|
* @type {Array<WaasBroadcastSvmCosignerSignature>}
|
|
28
|
-
* @memberof
|
|
22
|
+
* @memberof WaasBroadcastOptions
|
|
29
23
|
*/
|
|
30
24
|
cosignerSignatures?: Array<WaasBroadcastSvmCosignerSignature>;
|
|
31
25
|
/**
|
|
32
26
|
* Skip the network's pre-broadcast simulation.
|
|
33
27
|
* @type {boolean}
|
|
34
|
-
* @memberof
|
|
28
|
+
* @memberof WaasBroadcastOptions
|
|
35
29
|
*/
|
|
36
30
|
skipPreflight?: boolean;
|
|
37
31
|
}
|
|
38
|
-
export declare function
|
|
39
|
-
export declare function
|
|
40
|
-
export declare function
|
|
32
|
+
export declare function WaasBroadcastOptionsFromJSON(json: any): WaasBroadcastOptions;
|
|
33
|
+
export declare function WaasBroadcastOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasBroadcastOptions;
|
|
34
|
+
export declare function WaasBroadcastOptionsToJSON(value?: WaasBroadcastOptions | null): any;
|
|
@@ -2,20 +2,19 @@ import { exists } from '../runtime.js';
|
|
|
2
2
|
import { WaasBroadcastSvmCosignerSignatureFromJSON, WaasBroadcastSvmCosignerSignatureToJSON } from './WaasBroadcastSvmCosignerSignature.js';
|
|
3
3
|
|
|
4
4
|
/* tslint:disable */
|
|
5
|
-
function
|
|
6
|
-
return
|
|
5
|
+
function WaasBroadcastOptionsFromJSON(json) {
|
|
6
|
+
return WaasBroadcastOptionsFromJSONTyped(json);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function WaasBroadcastOptionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
9
|
if ((json === undefined) || (json === null)) {
|
|
10
10
|
return json;
|
|
11
11
|
}
|
|
12
12
|
return {
|
|
13
|
-
'serializedTransactions': json['serializedTransactions'],
|
|
14
13
|
'cosignerSignatures': !exists(json, 'cosignerSignatures') ? undefined : (json['cosignerSignatures'].map(WaasBroadcastSvmCosignerSignatureFromJSON)),
|
|
15
14
|
'skipPreflight': !exists(json, 'skipPreflight') ? undefined : json['skipPreflight'],
|
|
16
15
|
};
|
|
17
16
|
}
|
|
18
|
-
function
|
|
17
|
+
function WaasBroadcastOptionsToJSON(value) {
|
|
19
18
|
if (value === undefined) {
|
|
20
19
|
return undefined;
|
|
21
20
|
}
|
|
@@ -23,10 +22,9 @@ function WaasBroadcastSvmTransactionToJSON(value) {
|
|
|
23
22
|
return null;
|
|
24
23
|
}
|
|
25
24
|
return {
|
|
26
|
-
'serializedTransactions': value.serializedTransactions,
|
|
27
25
|
'cosignerSignatures': value.cosignerSignatures === undefined ? undefined : (value.cosignerSignatures.map(WaasBroadcastSvmCosignerSignatureToJSON)),
|
|
28
26
|
'skipPreflight': value.skipPreflight,
|
|
29
27
|
};
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
export {
|
|
30
|
+
export { WaasBroadcastOptionsFromJSON, WaasBroadcastOptionsFromJSONTyped, WaasBroadcastOptionsToJSON };
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
-
var
|
|
6
|
+
var SignMessageApprovalQuorum = require('./SignMessageApprovalQuorum.cjs');
|
|
7
|
+
var SignMessageContext = require('./SignMessageContext.cjs');
|
|
8
|
+
var WaasBroadcastOptions = require('./WaasBroadcastOptions.cjs');
|
|
7
9
|
|
|
8
10
|
/* tslint:disable */
|
|
9
11
|
function WaasSignAndBroadcastRequestFromJSON(json) {
|
|
@@ -14,12 +16,14 @@ function WaasSignAndBroadcastRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
16
|
return json;
|
|
15
17
|
}
|
|
16
18
|
return {
|
|
17
|
-
'transaction': WaasBroadcastTransaction.WaasBroadcastTransactionFromJSON(json['transaction']),
|
|
18
19
|
'messages': json['messages'],
|
|
20
|
+
'contexts': (json['contexts'].map(SignMessageContext.SignMessageContextFromJSON)),
|
|
21
|
+
'broadcastOptions': !runtime.exists(json, 'broadcastOptions') ? undefined : WaasBroadcastOptions.WaasBroadcastOptionsFromJSON(json['broadcastOptions']),
|
|
19
22
|
'isFormatted': !runtime.exists(json, 'isFormatted') ? undefined : json['isFormatted'],
|
|
20
23
|
'requestedCertainty': !runtime.exists(json, 'requestedCertainty') ? undefined : json['requestedCertainty'],
|
|
21
24
|
'externalReference': !runtime.exists(json, 'externalReference') ? undefined : json['externalReference'],
|
|
22
25
|
'roomIds': !runtime.exists(json, 'roomIds') ? undefined : json['roomIds'],
|
|
26
|
+
'approvalQuorum': !runtime.exists(json, 'approvalQuorum') ? undefined : SignMessageApprovalQuorum.SignMessageApprovalQuorumFromJSON(json['approvalQuorum']),
|
|
23
27
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
24
28
|
};
|
|
25
29
|
}
|
|
@@ -31,12 +35,14 @@ function WaasSignAndBroadcastRequestToJSON(value) {
|
|
|
31
35
|
return null;
|
|
32
36
|
}
|
|
33
37
|
return {
|
|
34
|
-
'transaction': WaasBroadcastTransaction.WaasBroadcastTransactionToJSON(value.transaction),
|
|
35
38
|
'messages': value.messages,
|
|
39
|
+
'contexts': (value.contexts.map(SignMessageContext.SignMessageContextToJSON)),
|
|
40
|
+
'broadcastOptions': WaasBroadcastOptions.WaasBroadcastOptionsToJSON(value.broadcastOptions),
|
|
36
41
|
'isFormatted': value.isFormatted,
|
|
37
42
|
'requestedCertainty': value.requestedCertainty,
|
|
38
43
|
'externalReference': value.externalReference,
|
|
39
44
|
'roomIds': value.roomIds,
|
|
45
|
+
'approvalQuorum': SignMessageApprovalQuorum.SignMessageApprovalQuorumToJSON(value.approvalQuorum),
|
|
40
46
|
'shareSetId': value.shareSetId,
|
|
41
47
|
};
|
|
42
48
|
}
|
|
@@ -9,25 +9,33 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { SignMessageApprovalQuorum } from './SignMessageApprovalQuorum';
|
|
13
|
+
import { SignMessageContext } from './SignMessageContext';
|
|
14
|
+
import { WaasBroadcastOptions } from './WaasBroadcastOptions';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
15
17
|
* @export
|
|
16
18
|
* @interface WaasSignAndBroadcastRequest
|
|
17
19
|
*/
|
|
18
20
|
export interface WaasSignAndBroadcastRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {WaasBroadcastTransaction}
|
|
22
|
-
* @memberof WaasSignAndBroadcastRequest
|
|
23
|
-
*/
|
|
24
|
-
transaction: WaasBroadcastTransaction;
|
|
25
21
|
/**
|
|
26
22
|
* One per fee attempt, in fee order: the serialized unsigned transaction to sign. RLP hex on EVM, message bytes on Solana.
|
|
27
23
|
* @type {Array<string>}
|
|
28
24
|
* @memberof WaasSignAndBroadcastRequest
|
|
29
25
|
*/
|
|
30
26
|
messages: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* One per fee attempt, in fee order, the same length as `messages`: what the signer is asked to sign. Dynamic checks it and signs the matching message.
|
|
29
|
+
* @type {Array<SignMessageContext>}
|
|
30
|
+
* @memberof WaasSignAndBroadcastRequest
|
|
31
|
+
*/
|
|
32
|
+
contexts: Array<SignMessageContext>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {WaasBroadcastOptions}
|
|
36
|
+
* @memberof WaasSignAndBroadcastRequest
|
|
37
|
+
*/
|
|
38
|
+
broadcastOptions?: WaasBroadcastOptions;
|
|
31
39
|
/**
|
|
32
40
|
* Whether each message is a pre-computed hash that is signed as-is. Send `false` for a serialized transaction.
|
|
33
41
|
* @type {boolean}
|
|
@@ -52,6 +60,12 @@ export interface WaasSignAndBroadcastRequest {
|
|
|
52
60
|
* @memberof WaasSignAndBroadcastRequest
|
|
53
61
|
*/
|
|
54
62
|
roomIds?: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {SignMessageApprovalQuorum}
|
|
66
|
+
* @memberof WaasSignAndBroadcastRequest
|
|
67
|
+
*/
|
|
68
|
+
approvalQuorum?: SignMessageApprovalQuorum;
|
|
55
69
|
/**
|
|
56
70
|
* Optional identifier of the share set this operation targets. When
|
|
57
71
|
* omitted, the active rootUser share set for `walletId` is resolved
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
-
import {
|
|
2
|
+
import { SignMessageApprovalQuorumFromJSON, SignMessageApprovalQuorumToJSON } from './SignMessageApprovalQuorum.js';
|
|
3
|
+
import { SignMessageContextFromJSON, SignMessageContextToJSON } from './SignMessageContext.js';
|
|
4
|
+
import { WaasBroadcastOptionsFromJSON, WaasBroadcastOptionsToJSON } from './WaasBroadcastOptions.js';
|
|
3
5
|
|
|
4
6
|
/* tslint:disable */
|
|
5
7
|
function WaasSignAndBroadcastRequestFromJSON(json) {
|
|
@@ -10,12 +12,14 @@ function WaasSignAndBroadcastRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
10
12
|
return json;
|
|
11
13
|
}
|
|
12
14
|
return {
|
|
13
|
-
'transaction': WaasBroadcastTransactionFromJSON(json['transaction']),
|
|
14
15
|
'messages': json['messages'],
|
|
16
|
+
'contexts': (json['contexts'].map(SignMessageContextFromJSON)),
|
|
17
|
+
'broadcastOptions': !exists(json, 'broadcastOptions') ? undefined : WaasBroadcastOptionsFromJSON(json['broadcastOptions']),
|
|
15
18
|
'isFormatted': !exists(json, 'isFormatted') ? undefined : json['isFormatted'],
|
|
16
19
|
'requestedCertainty': !exists(json, 'requestedCertainty') ? undefined : json['requestedCertainty'],
|
|
17
20
|
'externalReference': !exists(json, 'externalReference') ? undefined : json['externalReference'],
|
|
18
21
|
'roomIds': !exists(json, 'roomIds') ? undefined : json['roomIds'],
|
|
22
|
+
'approvalQuorum': !exists(json, 'approvalQuorum') ? undefined : SignMessageApprovalQuorumFromJSON(json['approvalQuorum']),
|
|
19
23
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
20
24
|
};
|
|
21
25
|
}
|
|
@@ -27,12 +31,14 @@ function WaasSignAndBroadcastRequestToJSON(value) {
|
|
|
27
31
|
return null;
|
|
28
32
|
}
|
|
29
33
|
return {
|
|
30
|
-
'transaction': WaasBroadcastTransactionToJSON(value.transaction),
|
|
31
34
|
'messages': value.messages,
|
|
35
|
+
'contexts': (value.contexts.map(SignMessageContextToJSON)),
|
|
36
|
+
'broadcastOptions': WaasBroadcastOptionsToJSON(value.broadcastOptions),
|
|
32
37
|
'isFormatted': value.isFormatted,
|
|
33
38
|
'requestedCertainty': value.requestedCertainty,
|
|
34
39
|
'externalReference': value.externalReference,
|
|
35
40
|
'roomIds': value.roomIds,
|
|
41
|
+
'approvalQuorum': SignMessageApprovalQuorumToJSON(value.approvalQuorum),
|
|
36
42
|
'shareSetId': value.shareSetId,
|
|
37
43
|
};
|
|
38
44
|
}
|
package/src/models/index.d.ts
CHANGED
|
@@ -888,11 +888,9 @@ export * from './WaasAuthenticateResponse';
|
|
|
888
888
|
export * from './WaasAuthenticateResponseEncodedJwts';
|
|
889
889
|
export * from './WaasBackupOptionsEnum';
|
|
890
890
|
export * from './WaasBroadcastEvmFee';
|
|
891
|
-
export * from './
|
|
891
|
+
export * from './WaasBroadcastOptions';
|
|
892
892
|
export * from './WaasBroadcastStatus';
|
|
893
893
|
export * from './WaasBroadcastSvmCosignerSignature';
|
|
894
|
-
export * from './WaasBroadcastSvmTransaction';
|
|
895
|
-
export * from './WaasBroadcastTransaction';
|
|
896
894
|
export * from './WaasChainEnum';
|
|
897
895
|
export * from './WaasDelegateSignMessageRequest';
|
|
898
896
|
export * from './WaasDelegatedAccessEncryptionPublicKeyType';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
|
-
var WaasBroadcastEvmFee = require('./WaasBroadcastEvmFee.cjs');
|
|
7
|
-
|
|
8
|
-
/* tslint:disable */
|
|
9
|
-
function WaasBroadcastEvmTransactionFromJSON(json) {
|
|
10
|
-
return WaasBroadcastEvmTransactionFromJSONTyped(json);
|
|
11
|
-
}
|
|
12
|
-
function WaasBroadcastEvmTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if ((json === undefined) || (json === null)) {
|
|
14
|
-
return json;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
'to': !runtime.exists(json, 'to') ? undefined : json['to'],
|
|
18
|
-
'value': !runtime.exists(json, 'value') ? undefined : json['value'],
|
|
19
|
-
'data': !runtime.exists(json, 'data') ? undefined : json['data'],
|
|
20
|
-
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
21
|
-
'gas': !runtime.exists(json, 'gas') ? undefined : json['gas'],
|
|
22
|
-
'fees': !runtime.exists(json, 'fees') ? undefined : (json['fees'].map(WaasBroadcastEvmFee.WaasBroadcastEvmFeeFromJSON)),
|
|
23
|
-
'maxFeePerBlobGas': !runtime.exists(json, 'maxFeePerBlobGas') ? undefined : json['maxFeePerBlobGas'],
|
|
24
|
-
'blobVersionedHashes': !runtime.exists(json, 'blobVersionedHashes') ? undefined : json['blobVersionedHashes'],
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function WaasBroadcastEvmTransactionToJSON(value) {
|
|
28
|
-
if (value === undefined) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
if (value === null) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'to': value.to,
|
|
36
|
-
'value': value.value,
|
|
37
|
-
'data': value.data,
|
|
38
|
-
'nonce': value.nonce,
|
|
39
|
-
'gas': value.gas,
|
|
40
|
-
'fees': value.fees === undefined ? undefined : (value.fees.map(WaasBroadcastEvmFee.WaasBroadcastEvmFeeToJSON)),
|
|
41
|
-
'maxFeePerBlobGas': value.maxFeePerBlobGas,
|
|
42
|
-
'blobVersionedHashes': value.blobVersionedHashes,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
exports.WaasBroadcastEvmTransactionFromJSON = WaasBroadcastEvmTransactionFromJSON;
|
|
47
|
-
exports.WaasBroadcastEvmTransactionFromJSONTyped = WaasBroadcastEvmTransactionFromJSONTyped;
|
|
48
|
-
exports.WaasBroadcastEvmTransactionToJSON = WaasBroadcastEvmTransactionToJSON;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard API
|
|
3
|
-
* Dashboard API documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { WaasBroadcastEvmFee } from './WaasBroadcastEvmFee';
|
|
13
|
-
/**
|
|
14
|
-
* A complete EVM transaction. The chain id comes from the wallet's network, never the request. A missing nonce, gas limit, fee or recipient is rejected with its own code.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface WaasBroadcastEvmTransaction
|
|
17
|
-
*/
|
|
18
|
-
export interface WaasBroadcastEvmTransaction {
|
|
19
|
-
/**
|
|
20
|
-
* Recipient address. Required: without one the transaction is a contract deployment, which is rejected with `contract_creation_unsupported`.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
23
|
-
*/
|
|
24
|
-
to?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Amount in wei. Defaults to 0x0.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
29
|
-
*/
|
|
30
|
-
value?: string | null;
|
|
31
|
-
/**
|
|
32
|
-
* Calldata as 0x-prefixed hex. Defaults to 0x.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
35
|
-
*/
|
|
36
|
-
data?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Unsigned integer as 0x-prefixed hex, without leading zeros.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
41
|
-
*/
|
|
42
|
-
nonce?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Gas limit
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
47
|
-
*/
|
|
48
|
-
gas?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* The same transaction at one or more fees, cheapest first, all in one style. Each is signed as its own attempt; the cheapest is sent first and the next replaces it if it stalls.
|
|
51
|
-
* @type {Array<WaasBroadcastEvmFee>}
|
|
52
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
53
|
-
*/
|
|
54
|
-
fees?: Array<WaasBroadcastEvmFee>;
|
|
55
|
-
/**
|
|
56
|
-
* Blob transactions are rejected with `unsupported_shape`.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
59
|
-
*/
|
|
60
|
-
maxFeePerBlobGas?: string | null;
|
|
61
|
-
/**
|
|
62
|
-
* Blob transactions are rejected with `unsupported_shape`.
|
|
63
|
-
* @type {Array<string>}
|
|
64
|
-
* @memberof WaasBroadcastEvmTransaction
|
|
65
|
-
*/
|
|
66
|
-
blobVersionedHashes?: Array<string>;
|
|
67
|
-
}
|
|
68
|
-
export declare function WaasBroadcastEvmTransactionFromJSON(json: any): WaasBroadcastEvmTransaction;
|
|
69
|
-
export declare function WaasBroadcastEvmTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasBroadcastEvmTransaction;
|
|
70
|
-
export declare function WaasBroadcastEvmTransactionToJSON(value?: WaasBroadcastEvmTransaction | null): any;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
|
-
import { WaasBroadcastEvmFeeFromJSON, WaasBroadcastEvmFeeToJSON } from './WaasBroadcastEvmFee.js';
|
|
3
|
-
|
|
4
|
-
/* tslint:disable */
|
|
5
|
-
function WaasBroadcastEvmTransactionFromJSON(json) {
|
|
6
|
-
return WaasBroadcastEvmTransactionFromJSONTyped(json);
|
|
7
|
-
}
|
|
8
|
-
function WaasBroadcastEvmTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
-
if ((json === undefined) || (json === null)) {
|
|
10
|
-
return json;
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
'to': !exists(json, 'to') ? undefined : json['to'],
|
|
14
|
-
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
15
|
-
'data': !exists(json, 'data') ? undefined : json['data'],
|
|
16
|
-
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
17
|
-
'gas': !exists(json, 'gas') ? undefined : json['gas'],
|
|
18
|
-
'fees': !exists(json, 'fees') ? undefined : (json['fees'].map(WaasBroadcastEvmFeeFromJSON)),
|
|
19
|
-
'maxFeePerBlobGas': !exists(json, 'maxFeePerBlobGas') ? undefined : json['maxFeePerBlobGas'],
|
|
20
|
-
'blobVersionedHashes': !exists(json, 'blobVersionedHashes') ? undefined : json['blobVersionedHashes'],
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function WaasBroadcastEvmTransactionToJSON(value) {
|
|
24
|
-
if (value === undefined) {
|
|
25
|
-
return undefined;
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'to': value.to,
|
|
32
|
-
'value': value.value,
|
|
33
|
-
'data': value.data,
|
|
34
|
-
'nonce': value.nonce,
|
|
35
|
-
'gas': value.gas,
|
|
36
|
-
'fees': value.fees === undefined ? undefined : (value.fees.map(WaasBroadcastEvmFeeToJSON)),
|
|
37
|
-
'maxFeePerBlobGas': value.maxFeePerBlobGas,
|
|
38
|
-
'blobVersionedHashes': value.blobVersionedHashes,
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { WaasBroadcastEvmTransactionFromJSON, WaasBroadcastEvmTransactionFromJSONTyped, WaasBroadcastEvmTransactionToJSON };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
|
-
var WaasBroadcastEvmTransaction = require('./WaasBroadcastEvmTransaction.cjs');
|
|
7
|
-
var WaasBroadcastSvmTransaction = require('./WaasBroadcastSvmTransaction.cjs');
|
|
8
|
-
|
|
9
|
-
/* tslint:disable */
|
|
10
|
-
function WaasBroadcastTransactionFromJSON(json) {
|
|
11
|
-
return WaasBroadcastTransactionFromJSONTyped(json);
|
|
12
|
-
}
|
|
13
|
-
function WaasBroadcastTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if ((json === undefined) || (json === null)) {
|
|
15
|
-
return json;
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
'evm': !runtime.exists(json, 'evm') ? undefined : WaasBroadcastEvmTransaction.WaasBroadcastEvmTransactionFromJSON(json['evm']),
|
|
19
|
-
'svm': !runtime.exists(json, 'svm') ? undefined : WaasBroadcastSvmTransaction.WaasBroadcastSvmTransactionFromJSON(json['svm']),
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function WaasBroadcastTransactionToJSON(value) {
|
|
23
|
-
if (value === undefined) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
if (value === null) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'evm': WaasBroadcastEvmTransaction.WaasBroadcastEvmTransactionToJSON(value.evm),
|
|
31
|
-
'svm': WaasBroadcastSvmTransaction.WaasBroadcastSvmTransactionToJSON(value.svm),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
exports.WaasBroadcastTransactionFromJSON = WaasBroadcastTransactionFromJSON;
|
|
36
|
-
exports.WaasBroadcastTransactionFromJSONTyped = WaasBroadcastTransactionFromJSONTyped;
|
|
37
|
-
exports.WaasBroadcastTransactionToJSON = WaasBroadcastTransactionToJSON;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard API
|
|
3
|
-
* Dashboard API documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { WaasBroadcastEvmTransaction } from './WaasBroadcastEvmTransaction';
|
|
13
|
-
import { WaasBroadcastSvmTransaction } from './WaasBroadcastSvmTransaction';
|
|
14
|
-
/**
|
|
15
|
-
* One transaction, for the wallet's chain. Both `evm` and `svm` together are rejected with `multiple_transactions`.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface WaasBroadcastTransaction
|
|
18
|
-
*/
|
|
19
|
-
export interface WaasBroadcastTransaction {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {WaasBroadcastEvmTransaction}
|
|
23
|
-
* @memberof WaasBroadcastTransaction
|
|
24
|
-
*/
|
|
25
|
-
evm?: WaasBroadcastEvmTransaction;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {WaasBroadcastSvmTransaction}
|
|
29
|
-
* @memberof WaasBroadcastTransaction
|
|
30
|
-
*/
|
|
31
|
-
svm?: WaasBroadcastSvmTransaction;
|
|
32
|
-
}
|
|
33
|
-
export declare function WaasBroadcastTransactionFromJSON(json: any): WaasBroadcastTransaction;
|
|
34
|
-
export declare function WaasBroadcastTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasBroadcastTransaction;
|
|
35
|
-
export declare function WaasBroadcastTransactionToJSON(value?: WaasBroadcastTransaction | null): any;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
|
-
import { WaasBroadcastEvmTransactionFromJSON, WaasBroadcastEvmTransactionToJSON } from './WaasBroadcastEvmTransaction.js';
|
|
3
|
-
import { WaasBroadcastSvmTransactionFromJSON, WaasBroadcastSvmTransactionToJSON } from './WaasBroadcastSvmTransaction.js';
|
|
4
|
-
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
function WaasBroadcastTransactionFromJSON(json) {
|
|
7
|
-
return WaasBroadcastTransactionFromJSONTyped(json);
|
|
8
|
-
}
|
|
9
|
-
function WaasBroadcastTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if ((json === undefined) || (json === null)) {
|
|
11
|
-
return json;
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
'evm': !exists(json, 'evm') ? undefined : WaasBroadcastEvmTransactionFromJSON(json['evm']),
|
|
15
|
-
'svm': !exists(json, 'svm') ? undefined : WaasBroadcastSvmTransactionFromJSON(json['svm']),
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function WaasBroadcastTransactionToJSON(value) {
|
|
19
|
-
if (value === undefined) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
if (value === null) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'evm': WaasBroadcastEvmTransactionToJSON(value.evm),
|
|
27
|
-
'svm': WaasBroadcastSvmTransactionToJSON(value.svm),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { WaasBroadcastTransactionFromJSON, WaasBroadcastTransactionFromJSONTyped, WaasBroadcastTransactionToJSON };
|