@dynamic-labs/sdk-api 0.0.1081 → 0.0.1083
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 +3 -2
- package/src/apis/AdminActionsApi.js +3 -2
- package/src/apis/AllowlistsApi.cjs +3 -2
- package/src/apis/AllowlistsApi.js +3 -2
- package/src/apis/AnalyticsApi.cjs +3 -2
- package/src/apis/AnalyticsApi.js +3 -2
- package/src/apis/AuthorizedClientsApi.cjs +3 -2
- package/src/apis/AuthorizedClientsApi.js +3 -2
- package/src/apis/CaptchaApi.cjs +3 -2
- package/src/apis/CaptchaApi.js +3 -2
- package/src/apis/ChainalysisApi.cjs +3 -2
- package/src/apis/ChainalysisApi.js +3 -2
- package/src/apis/ChainsApi.cjs +3 -2
- package/src/apis/ChainsApi.js +3 -2
- package/src/apis/CheckoutApi.cjs +3 -2
- package/src/apis/CheckoutApi.js +3 -2
- package/src/apis/ClientGrantApi.cjs +3 -2
- package/src/apis/ClientGrantApi.js +3 -2
- package/src/apis/CustomFieldsApi.cjs +3 -2
- package/src/apis/CustomFieldsApi.js +3 -2
- package/src/apis/CustomHostnamesApi.cjs +3 -2
- package/src/apis/CustomHostnamesApi.js +3 -2
- package/src/apis/CustomNetworksApi.cjs +3 -2
- package/src/apis/CustomNetworksApi.js +3 -2
- package/src/apis/DeeplinkUrlsApi.cjs +3 -2
- package/src/apis/DeeplinkUrlsApi.js +3 -2
- package/src/apis/EnvironmentsApi.cjs +3 -2
- package/src/apis/EnvironmentsApi.js +3 -2
- package/src/apis/EventsApi.cjs +3 -2
- package/src/apis/EventsApi.js +3 -2
- package/src/apis/ExchangesApi.cjs +3 -2
- package/src/apis/ExchangesApi.js +3 -2
- package/src/apis/ExportsApi.cjs +3 -2
- package/src/apis/ExportsApi.js +3 -2
- package/src/apis/ExternalJwtApi.cjs +3 -2
- package/src/apis/ExternalJwtApi.js +3 -2
- package/src/apis/FlowAnalyticsApi.cjs +3 -2
- package/src/apis/FlowAnalyticsApi.js +3 -2
- package/src/apis/GaslessApi.cjs +3 -2
- package/src/apis/GaslessApi.js +3 -2
- package/src/apis/GatesApi.cjs +3 -2
- package/src/apis/GatesApi.js +3 -2
- package/src/apis/GlobalWalletAccessControlApi.cjs +3 -2
- package/src/apis/GlobalWalletAccessControlApi.js +3 -2
- package/src/apis/GlobalWalletConnectionsApi.cjs +3 -2
- package/src/apis/GlobalWalletConnectionsApi.js +3 -2
- package/src/apis/GlobalWalletsApi.cjs +3 -2
- package/src/apis/GlobalWalletsApi.js +3 -2
- package/src/apis/InvitesApi.cjs +3 -2
- package/src/apis/InvitesApi.js +3 -2
- package/src/apis/MembersApi.cjs +3 -2
- package/src/apis/MembersApi.js +3 -2
- package/src/apis/MfaSettingsApi.cjs +3 -2
- package/src/apis/MfaSettingsApi.js +3 -2
- package/src/apis/NameServicesApi.cjs +3 -2
- package/src/apis/NameServicesApi.js +3 -2
- package/src/apis/OrganizationSettingsApi.cjs +3 -2
- package/src/apis/OrganizationSettingsApi.js +3 -2
- package/src/apis/OrganizationsApi.cjs +3 -2
- package/src/apis/OrganizationsApi.js +3 -2
- package/src/apis/OriginsApi.cjs +3 -2
- package/src/apis/OriginsApi.js +3 -2
- package/src/apis/ProjectsApi.cjs +3 -2
- package/src/apis/ProjectsApi.js +3 -2
- package/src/apis/ProvidersApi.cjs +3 -2
- package/src/apis/ProvidersApi.js +3 -2
- package/src/apis/SDKApi.cjs +1 -0
- package/src/apis/SDKApi.js +1 -0
- package/src/apis/SDKViewsApi.cjs +3 -2
- package/src/apis/SDKViewsApi.js +3 -2
- package/src/apis/SessionsApi.cjs +3 -2
- package/src/apis/SessionsApi.js +3 -2
- package/src/apis/TestAccountApi.cjs +3 -2
- package/src/apis/TestAccountApi.js +3 -2
- package/src/apis/TokensApi.cjs +3 -2
- package/src/apis/TokensApi.js +3 -2
- package/src/apis/UserApiTokensApi.cjs +3 -2
- package/src/apis/UserApiTokensApi.js +3 -2
- package/src/apis/UsersApi.cjs +3 -2
- package/src/apis/UsersApi.js +3 -2
- package/src/apis/VisitsApi.cjs +3 -2
- package/src/apis/VisitsApi.js +3 -2
- package/src/apis/WaasApi.cjs +66 -2
- package/src/apis/WaasApi.d.ts +29 -0
- package/src/apis/WaasApi.js +66 -2
- package/src/apis/WalletConnectApi.cjs +3 -2
- package/src/apis/WalletConnectApi.js +3 -2
- package/src/apis/WalletsApi.cjs +3 -2
- package/src/apis/WalletsApi.js +3 -2
- package/src/apis/WebhooksApi.cjs +3 -2
- package/src/apis/WebhooksApi.js +3 -2
- package/src/index.cjs +8 -0
- package/src/index.js +1 -0
- package/src/models/ReshareRequest.cjs +3 -0
- package/src/models/ReshareRequest.d.ts +9 -0
- package/src/models/ReshareRequest.js +3 -0
- package/src/models/SignMessageContext.cjs +3 -0
- package/src/models/SignMessageContext.d.ts +7 -0
- package/src/models/SignMessageContext.js +3 -0
- package/src/models/SignMessageRawSign.cjs +46 -0
- package/src/models/SignMessageRawSign.d.ts +47 -0
- package/src/models/SignMessageRawSign.js +40 -0
- package/src/models/index.d.ts +1 -0
package/src/apis/WaasApi.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ export interface GetWaasPolicyLayerRequest {
|
|
|
65
65
|
environmentId: string;
|
|
66
66
|
walletId: string;
|
|
67
67
|
}
|
|
68
|
+
export interface GetWaasSignerPolicyLayerRequest {
|
|
69
|
+
environmentId: string;
|
|
70
|
+
walletId: string;
|
|
71
|
+
}
|
|
68
72
|
export interface GetWaasTransactionReviewConfigRequest {
|
|
69
73
|
environmentId: string;
|
|
70
74
|
}
|
|
@@ -92,6 +96,11 @@ export interface UpdateWaasPolicyLayerRequest {
|
|
|
92
96
|
walletId: string;
|
|
93
97
|
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
94
98
|
}
|
|
99
|
+
export interface UpdateWaasSignerPolicyLayerRequest {
|
|
100
|
+
environmentId: string;
|
|
101
|
+
walletId: string;
|
|
102
|
+
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
103
|
+
}
|
|
95
104
|
export interface UpsertWaasTransactionReviewConfigRequest {
|
|
96
105
|
environmentId: string;
|
|
97
106
|
waasTransactionReviewConfigRequest: WaasTransactionReviewConfigRequest;
|
|
@@ -243,6 +252,16 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
243
252
|
* Get a wallet-Layer\'s current Rules
|
|
244
253
|
*/
|
|
245
254
|
getWaasPolicyLayer(requestParameters: GetWaasPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* Returns the Composition Layer content for the specified wallet\'s active Signer without mutating it.
|
|
257
|
+
* Get a signer-Layer\'s current Rules
|
|
258
|
+
*/
|
|
259
|
+
getWaasSignerPolicyLayerRaw(requestParameters: GetWaasSignerPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
260
|
+
/**
|
|
261
|
+
* Returns the Composition Layer content for the specified wallet\'s active Signer without mutating it.
|
|
262
|
+
* Get a signer-Layer\'s current Rules
|
|
263
|
+
*/
|
|
264
|
+
getWaasSignerPolicyLayer(requestParameters: GetWaasSignerPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
246
265
|
/**
|
|
247
266
|
* Returns the webhook configuration used to review transactions before signing.
|
|
248
267
|
* Get the transaction review config for an environment
|
|
@@ -313,6 +332,16 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
313
332
|
* Update a wallet-Layer\'s Rules by ruleId
|
|
314
333
|
*/
|
|
315
334
|
updateWaasPolicyLayer(requestParameters: UpdateWaasPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
335
|
+
/**
|
|
336
|
+
* Applies a single per-Rule upsert or remove operation to the Composition Layer of the specified wallet\'s active Signer.
|
|
337
|
+
* Update a signer-Layer\'s Rules by ruleId
|
|
338
|
+
*/
|
|
339
|
+
updateWaasSignerPolicyLayerRaw(requestParameters: UpdateWaasSignerPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
340
|
+
/**
|
|
341
|
+
* Applies a single per-Rule upsert or remove operation to the Composition Layer of the specified wallet\'s active Signer.
|
|
342
|
+
* Update a signer-Layer\'s Rules by ruleId
|
|
343
|
+
*/
|
|
344
|
+
updateWaasSignerPolicyLayer(requestParameters: UpdateWaasSignerPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
316
345
|
/**
|
|
317
346
|
* Configures a webhook that is called before every transaction signing request. The webhook must respond with { \"proceed\": true } to allow signing, or { \"proceed\": false, \"reason\": \"...\" } to block it.
|
|
318
347
|
* Create or update the transaction review config for an environment
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -121,9 +121,12 @@ import { OpenRoomResponseFromJSON } from '../models/OpenRoomResponse.js';
|
|
|
121
121
|
import '../models/WhenToImplementEnum.js';
|
|
122
122
|
import '../models/PublishEventsEvents.js';
|
|
123
123
|
import '../models/ReshareKind.js';
|
|
124
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
125
|
+
import '../models/WaasPolicyRuleType.js';
|
|
124
126
|
import { RevokeDelegatedAccessRequestToJSON } from '../models/RevokeDelegatedAccessRequest.js';
|
|
125
127
|
import { RevokeDelegatedAccessResponseFromJSON } from '../models/RevokeDelegatedAccessResponse.js';
|
|
126
128
|
import '../models/SanctionsWalletBlockedEventPayload.js';
|
|
129
|
+
import '../models/SignMessageRawSign.js';
|
|
127
130
|
import '../models/SsoProviderEnum.js';
|
|
128
131
|
import '../models/SsoProviderCheckResponse.js';
|
|
129
132
|
import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
@@ -139,11 +142,9 @@ import { WaasDelegateSignMessageRequestToJSON } from '../models/WaasDelegateSign
|
|
|
139
142
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
140
143
|
import { WaasDelegationCredentialsRequestToJSON } from '../models/WaasDelegationCredentialsRequest.js';
|
|
141
144
|
import { WaasDelegationCredentialsResponseFromJSON } from '../models/WaasDelegationCredentialsResponse.js';
|
|
142
|
-
import '../models/WaasPolicyConstraintCondition.js';
|
|
143
145
|
import { WaasPolicyCreateRequestToJSON } from '../models/WaasPolicyCreateRequest.js';
|
|
144
146
|
import { WaasPolicyDeleteRequestToJSON } from '../models/WaasPolicyDeleteRequest.js';
|
|
145
147
|
import { WaasPolicyLayerResponseFromJSON } from '../models/WaasPolicyLayerResponse.js';
|
|
146
|
-
import '../models/WaasPolicyRuleType.js';
|
|
147
148
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
148
149
|
import { WaasPolicyResponseFromJSON } from '../models/WaasPolicyResponse.js';
|
|
149
150
|
import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
|
|
@@ -594,6 +595,35 @@ class WaasApi extends BaseAPI {
|
|
|
594
595
|
const response = await this.getWaasPolicyLayerRaw(requestParameters, initOverrides);
|
|
595
596
|
return await response.value();
|
|
596
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* Returns the Composition Layer content for the specified wallet\'s active Signer without mutating it.
|
|
600
|
+
* Get a signer-Layer\'s current Rules
|
|
601
|
+
*/
|
|
602
|
+
async getWaasSignerPolicyLayerRaw(requestParameters, initOverrides) {
|
|
603
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
604
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignerPolicyLayer.');
|
|
605
|
+
}
|
|
606
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
607
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignerPolicyLayer.');
|
|
608
|
+
}
|
|
609
|
+
const queryParameters = {};
|
|
610
|
+
const headerParameters = {};
|
|
611
|
+
const response = await this.request({
|
|
612
|
+
path: `/environments/{environmentId}/waas/wallets/{walletId}/signer-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
613
|
+
method: 'GET',
|
|
614
|
+
headers: headerParameters,
|
|
615
|
+
query: queryParameters,
|
|
616
|
+
}, initOverrides);
|
|
617
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Returns the Composition Layer content for the specified wallet\'s active Signer without mutating it.
|
|
621
|
+
* Get a signer-Layer\'s current Rules
|
|
622
|
+
*/
|
|
623
|
+
async getWaasSignerPolicyLayer(requestParameters, initOverrides) {
|
|
624
|
+
const response = await this.getWaasSignerPolicyLayerRaw(requestParameters, initOverrides);
|
|
625
|
+
return await response.value();
|
|
626
|
+
}
|
|
597
627
|
/**
|
|
598
628
|
* Returns the webhook configuration used to review transactions before signing.
|
|
599
629
|
* Get the transaction review config for an environment
|
|
@@ -801,6 +831,40 @@ class WaasApi extends BaseAPI {
|
|
|
801
831
|
const response = await this.updateWaasPolicyLayerRaw(requestParameters, initOverrides);
|
|
802
832
|
return await response.value();
|
|
803
833
|
}
|
|
834
|
+
/**
|
|
835
|
+
* Applies a single per-Rule upsert or remove operation to the Composition Layer of the specified wallet\'s active Signer.
|
|
836
|
+
* Update a signer-Layer\'s Rules by ruleId
|
|
837
|
+
*/
|
|
838
|
+
async updateWaasSignerPolicyLayerRaw(requestParameters, initOverrides) {
|
|
839
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
840
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignerPolicyLayer.');
|
|
841
|
+
}
|
|
842
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
843
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignerPolicyLayer.');
|
|
844
|
+
}
|
|
845
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
846
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasSignerPolicyLayer.');
|
|
847
|
+
}
|
|
848
|
+
const queryParameters = {};
|
|
849
|
+
const headerParameters = {};
|
|
850
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
851
|
+
const response = await this.request({
|
|
852
|
+
path: `/environments/{environmentId}/waas/wallets/{walletId}/signer-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
853
|
+
method: 'PATCH',
|
|
854
|
+
headers: headerParameters,
|
|
855
|
+
query: queryParameters,
|
|
856
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
857
|
+
}, initOverrides);
|
|
858
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Applies a single per-Rule upsert or remove operation to the Composition Layer of the specified wallet\'s active Signer.
|
|
862
|
+
* Update a signer-Layer\'s Rules by ruleId
|
|
863
|
+
*/
|
|
864
|
+
async updateWaasSignerPolicyLayer(requestParameters, initOverrides) {
|
|
865
|
+
const response = await this.updateWaasSignerPolicyLayerRaw(requestParameters, initOverrides);
|
|
866
|
+
return await response.value();
|
|
867
|
+
}
|
|
804
868
|
/**
|
|
805
869
|
* Configures a webhook that is called before every transaction signing request. The webhook must respond with { \"proceed\": true } to allow signing, or { \"proceed\": false, \"reason\": \"...\" } to block it.
|
|
806
870
|
* Create or update the transaction review config for an environment
|
|
@@ -120,7 +120,10 @@ require('../models/OauthResultStatus.cjs');
|
|
|
120
120
|
require('../models/WhenToImplementEnum.cjs');
|
|
121
121
|
require('../models/PublishEventsEvents.cjs');
|
|
122
122
|
require('../models/ReshareKind.cjs');
|
|
123
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
124
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
123
125
|
require('../models/SanctionsWalletBlockedEventPayload.cjs');
|
|
126
|
+
require('../models/SignMessageRawSign.cjs');
|
|
124
127
|
require('../models/SsoProviderEnum.cjs');
|
|
125
128
|
require('../models/SsoProviderCheckResponse.cjs');
|
|
126
129
|
require('../models/SubscriptionAdvancedScopeEnum.cjs');
|
|
@@ -132,8 +135,6 @@ require('../models/UserFilterableFieldsEnum.cjs');
|
|
|
132
135
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
133
136
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
134
137
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
135
|
-
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
136
|
-
require('../models/WaasPolicyRuleType.cjs');
|
|
137
138
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
138
139
|
require('../models/WaasTransactionReviewFailurePolicy.cjs');
|
|
139
140
|
require('../models/WaasTransactionReviewTestScenario.cjs');
|
|
@@ -116,7 +116,10 @@ import '../models/OauthResultStatus.js';
|
|
|
116
116
|
import '../models/WhenToImplementEnum.js';
|
|
117
117
|
import '../models/PublishEventsEvents.js';
|
|
118
118
|
import '../models/ReshareKind.js';
|
|
119
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
120
|
+
import '../models/WaasPolicyRuleType.js';
|
|
119
121
|
import '../models/SanctionsWalletBlockedEventPayload.js';
|
|
122
|
+
import '../models/SignMessageRawSign.js';
|
|
120
123
|
import '../models/SsoProviderEnum.js';
|
|
121
124
|
import '../models/SsoProviderCheckResponse.js';
|
|
122
125
|
import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
@@ -128,8 +131,6 @@ import '../models/UserFilterableFieldsEnum.js';
|
|
|
128
131
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
129
132
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
130
133
|
import '../models/WaasDelegationCredentialsResponse.js';
|
|
131
|
-
import '../models/WaasPolicyConstraintCondition.js';
|
|
132
|
-
import '../models/WaasPolicyRuleType.js';
|
|
133
134
|
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
134
135
|
import '../models/WaasTransactionReviewFailurePolicy.js';
|
|
135
136
|
import '../models/WaasTransactionReviewTestScenario.js';
|
package/src/apis/WalletsApi.cjs
CHANGED
|
@@ -124,7 +124,10 @@ require('../models/OauthResultStatus.cjs');
|
|
|
124
124
|
require('../models/WhenToImplementEnum.cjs');
|
|
125
125
|
require('../models/PublishEventsEvents.cjs');
|
|
126
126
|
require('../models/ReshareKind.cjs');
|
|
127
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
128
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
127
129
|
require('../models/SanctionsWalletBlockedEventPayload.cjs');
|
|
130
|
+
require('../models/SignMessageRawSign.cjs');
|
|
128
131
|
require('../models/SsoProviderEnum.cjs');
|
|
129
132
|
require('../models/SsoProviderCheckResponse.cjs');
|
|
130
133
|
require('../models/SubscriptionAdvancedScopeEnum.cjs');
|
|
@@ -138,8 +141,6 @@ var UserWalletsResponse = require('../models/UserWalletsResponse.cjs');
|
|
|
138
141
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
139
142
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
140
143
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
141
|
-
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
142
|
-
require('../models/WaasPolicyRuleType.cjs');
|
|
143
144
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
144
145
|
require('../models/WaasTransactionReviewFailurePolicy.cjs');
|
|
145
146
|
require('../models/WaasTransactionReviewTestScenario.cjs');
|
package/src/apis/WalletsApi.js
CHANGED
|
@@ -120,7 +120,10 @@ import '../models/OauthResultStatus.js';
|
|
|
120
120
|
import '../models/WhenToImplementEnum.js';
|
|
121
121
|
import '../models/PublishEventsEvents.js';
|
|
122
122
|
import '../models/ReshareKind.js';
|
|
123
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
124
|
+
import '../models/WaasPolicyRuleType.js';
|
|
123
125
|
import '../models/SanctionsWalletBlockedEventPayload.js';
|
|
126
|
+
import '../models/SignMessageRawSign.js';
|
|
124
127
|
import '../models/SsoProviderEnum.js';
|
|
125
128
|
import '../models/SsoProviderCheckResponse.js';
|
|
126
129
|
import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
@@ -134,8 +137,6 @@ import { UserWalletsResponseFromJSON } from '../models/UserWalletsResponse.js';
|
|
|
134
137
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
135
138
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
136
139
|
import '../models/WaasDelegationCredentialsResponse.js';
|
|
137
|
-
import '../models/WaasPolicyConstraintCondition.js';
|
|
138
|
-
import '../models/WaasPolicyRuleType.js';
|
|
139
140
|
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
140
141
|
import '../models/WaasTransactionReviewFailurePolicy.js';
|
|
141
142
|
import '../models/WaasTransactionReviewTestScenario.js';
|
package/src/apis/WebhooksApi.cjs
CHANGED
|
@@ -120,7 +120,10 @@ require('../models/OauthResultStatus.cjs');
|
|
|
120
120
|
require('../models/WhenToImplementEnum.cjs');
|
|
121
121
|
require('../models/PublishEventsEvents.cjs');
|
|
122
122
|
require('../models/ReshareKind.cjs');
|
|
123
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
124
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
123
125
|
require('../models/SanctionsWalletBlockedEventPayload.cjs');
|
|
126
|
+
require('../models/SignMessageRawSign.cjs');
|
|
124
127
|
require('../models/SsoProviderEnum.cjs');
|
|
125
128
|
require('../models/SsoProviderCheckResponse.cjs');
|
|
126
129
|
require('../models/SubscriptionAdvancedScopeEnum.cjs');
|
|
@@ -132,8 +135,6 @@ require('../models/UserFilterableFieldsEnum.cjs');
|
|
|
132
135
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
133
136
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
134
137
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
135
|
-
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
136
|
-
require('../models/WaasPolicyRuleType.cjs');
|
|
137
138
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
138
139
|
require('../models/WaasTransactionReviewFailurePolicy.cjs');
|
|
139
140
|
require('../models/WaasTransactionReviewTestScenario.cjs');
|
package/src/apis/WebhooksApi.js
CHANGED
|
@@ -116,7 +116,10 @@ import '../models/OauthResultStatus.js';
|
|
|
116
116
|
import '../models/WhenToImplementEnum.js';
|
|
117
117
|
import '../models/PublishEventsEvents.js';
|
|
118
118
|
import '../models/ReshareKind.js';
|
|
119
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
120
|
+
import '../models/WaasPolicyRuleType.js';
|
|
119
121
|
import '../models/SanctionsWalletBlockedEventPayload.js';
|
|
122
|
+
import '../models/SignMessageRawSign.js';
|
|
120
123
|
import '../models/SsoProviderEnum.js';
|
|
121
124
|
import '../models/SsoProviderCheckResponse.js';
|
|
122
125
|
import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
@@ -128,8 +131,6 @@ import '../models/UserFilterableFieldsEnum.js';
|
|
|
128
131
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
129
132
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
130
133
|
import '../models/WaasDelegationCredentialsResponse.js';
|
|
131
|
-
import '../models/WaasPolicyConstraintCondition.js';
|
|
132
|
-
import '../models/WaasPolicyRuleType.js';
|
|
133
134
|
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
134
135
|
import '../models/WaasTransactionReviewFailurePolicy.js';
|
|
135
136
|
import '../models/WaasTransactionReviewTestScenario.js';
|
package/src/index.cjs
CHANGED
|
@@ -651,6 +651,7 @@ var SignMessageEvmMessageAnyOf = require('./models/SignMessageEvmMessageAnyOf.cj
|
|
|
651
651
|
var SignMessageEvmTransaction = require('./models/SignMessageEvmTransaction.cjs');
|
|
652
652
|
var SignMessageEvmTypedData = require('./models/SignMessageEvmTypedData.cjs');
|
|
653
653
|
var SignMessageEvmUserOperation = require('./models/SignMessageEvmUserOperation.cjs');
|
|
654
|
+
var SignMessageRawSign = require('./models/SignMessageRawSign.cjs');
|
|
654
655
|
var SignMessageSuiTransaction = require('./models/SignMessageSuiTransaction.cjs');
|
|
655
656
|
var SignMessageSvmTransaction = require('./models/SignMessageSvmTransaction.cjs');
|
|
656
657
|
var SignMessageUserOperationData = require('./models/SignMessageUserOperationData.cjs');
|
|
@@ -3186,6 +3187,13 @@ exports.SignMessageEvmTypedDataToJSON = SignMessageEvmTypedData.SignMessageEvmTy
|
|
|
3186
3187
|
exports.SignMessageEvmUserOperationFromJSON = SignMessageEvmUserOperation.SignMessageEvmUserOperationFromJSON;
|
|
3187
3188
|
exports.SignMessageEvmUserOperationFromJSONTyped = SignMessageEvmUserOperation.SignMessageEvmUserOperationFromJSONTyped;
|
|
3188
3189
|
exports.SignMessageEvmUserOperationToJSON = SignMessageEvmUserOperation.SignMessageEvmUserOperationToJSON;
|
|
3190
|
+
exports.SignMessageRawSignFromJSON = SignMessageRawSign.SignMessageRawSignFromJSON;
|
|
3191
|
+
exports.SignMessageRawSignFromJSONTyped = SignMessageRawSign.SignMessageRawSignFromJSONTyped;
|
|
3192
|
+
Object.defineProperty(exports, 'SignMessageRawSignHashFunctionEnum', {
|
|
3193
|
+
enumerable: true,
|
|
3194
|
+
get: function () { return SignMessageRawSign.SignMessageRawSignHashFunctionEnum; }
|
|
3195
|
+
});
|
|
3196
|
+
exports.SignMessageRawSignToJSON = SignMessageRawSign.SignMessageRawSignToJSON;
|
|
3189
3197
|
exports.SignMessageSuiTransactionFromJSON = SignMessageSuiTransaction.SignMessageSuiTransactionFromJSON;
|
|
3190
3198
|
exports.SignMessageSuiTransactionFromJSONTyped = SignMessageSuiTransaction.SignMessageSuiTransactionFromJSONTyped;
|
|
3191
3199
|
exports.SignMessageSuiTransactionToJSON = SignMessageSuiTransaction.SignMessageSuiTransactionToJSON;
|
package/src/index.js
CHANGED
|
@@ -647,6 +647,7 @@ export { SignMessageEvmMessageAnyOfFromJSON, SignMessageEvmMessageAnyOfFromJSONT
|
|
|
647
647
|
export { SignMessageEvmTransactionFromJSON, SignMessageEvmTransactionFromJSONTyped, SignMessageEvmTransactionToJSON } from './models/SignMessageEvmTransaction.js';
|
|
648
648
|
export { SignMessageEvmTypedDataFromJSON, SignMessageEvmTypedDataFromJSONTyped, SignMessageEvmTypedDataToJSON } from './models/SignMessageEvmTypedData.js';
|
|
649
649
|
export { SignMessageEvmUserOperationFromJSON, SignMessageEvmUserOperationFromJSONTyped, SignMessageEvmUserOperationToJSON } from './models/SignMessageEvmUserOperation.js';
|
|
650
|
+
export { SignMessageRawSignFromJSON, SignMessageRawSignFromJSONTyped, SignMessageRawSignHashFunctionEnum, SignMessageRawSignToJSON } from './models/SignMessageRawSign.js';
|
|
650
651
|
export { SignMessageSuiTransactionFromJSON, SignMessageSuiTransactionFromJSONTyped, SignMessageSuiTransactionToJSON } from './models/SignMessageSuiTransaction.js';
|
|
651
652
|
export { SignMessageSvmTransactionFromJSON, SignMessageSvmTransactionFromJSONTyped, SignMessageSvmTransactionToJSON } from './models/SignMessageSvmTransaction.js';
|
|
652
653
|
export { SignMessageUserOperationDataFromJSON, SignMessageUserOperationDataFromJSONTyped, SignMessageUserOperationDataToJSON } from './models/SignMessageUserOperationData.js';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var ReshareKind = require('./ReshareKind.cjs');
|
|
7
7
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
8
|
+
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
8
9
|
|
|
9
10
|
/* tslint:disable */
|
|
10
11
|
function ReshareRequestFromJSON(json) {
|
|
@@ -22,6 +23,7 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
23
|
'revokeDelegation': !runtime.exists(json, 'revokeDelegation') ? undefined : json['revokeDelegation'],
|
|
23
24
|
'reshareKind': !runtime.exists(json, 'reshareKind') ? undefined : ReshareKind.ReshareKindFromJSON(json['reshareKind']),
|
|
24
25
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
26
|
+
'initialSignerRules': !runtime.exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
function ReshareRequestToJSON(value) {
|
|
@@ -39,6 +41,7 @@ function ReshareRequestToJSON(value) {
|
|
|
39
41
|
'revokeDelegation': value.revokeDelegation,
|
|
40
42
|
'reshareKind': ReshareKind.ReshareKindToJSON(value.reshareKind),
|
|
41
43
|
'shareSetId': value.shareSetId,
|
|
44
|
+
'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ReshareKind } from './ReshareKind';
|
|
13
13
|
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
14
|
+
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -64,6 +65,14 @@ export interface ReshareRequest {
|
|
|
64
65
|
* @memberof ReshareRequest
|
|
65
66
|
*/
|
|
66
67
|
shareSetId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Rules to seed the delegated Signer's policy layer with when this
|
|
70
|
+
* reshare mints a new delegated Signer. Only valid on the
|
|
71
|
+
* composition-mint delegation reshare path — rejected otherwise.
|
|
72
|
+
* @type {Array<WaasPolicyRule>}
|
|
73
|
+
* @memberof ReshareRequest
|
|
74
|
+
*/
|
|
75
|
+
initialSignerRules?: Array<WaasPolicyRule>;
|
|
67
76
|
}
|
|
68
77
|
export declare function ReshareRequestFromJSON(json: any): ReshareRequest;
|
|
69
78
|
export declare function ReshareRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReshareRequest;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { ReshareKindFromJSON, ReshareKindToJSON } from './ReshareKind.js';
|
|
3
3
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
4
|
+
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
4
5
|
|
|
5
6
|
/* tslint:disable */
|
|
6
7
|
function ReshareRequestFromJSON(json) {
|
|
@@ -18,6 +19,7 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'revokeDelegation': !exists(json, 'revokeDelegation') ? undefined : json['revokeDelegation'],
|
|
19
20
|
'reshareKind': !exists(json, 'reshareKind') ? undefined : ReshareKindFromJSON(json['reshareKind']),
|
|
20
21
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
22
|
+
'initialSignerRules': !exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRuleFromJSON)),
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
function ReshareRequestToJSON(value) {
|
|
@@ -35,6 +37,7 @@ function ReshareRequestToJSON(value) {
|
|
|
35
37
|
'revokeDelegation': value.revokeDelegation,
|
|
36
38
|
'reshareKind': ReshareKindToJSON(value.reshareKind),
|
|
37
39
|
'shareSetId': value.shareSetId,
|
|
40
|
+
'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRuleToJSON)),
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
|
|
@@ -9,6 +9,7 @@ var SignMessageEvmMessage = require('./SignMessageEvmMessage.cjs');
|
|
|
9
9
|
var SignMessageEvmTransaction = require('./SignMessageEvmTransaction.cjs');
|
|
10
10
|
var SignMessageEvmTypedData = require('./SignMessageEvmTypedData.cjs');
|
|
11
11
|
var SignMessageEvmUserOperation = require('./SignMessageEvmUserOperation.cjs');
|
|
12
|
+
var SignMessageRawSign = require('./SignMessageRawSign.cjs');
|
|
12
13
|
var SignMessageSuiTransaction = require('./SignMessageSuiTransaction.cjs');
|
|
13
14
|
var SignMessageSvmTransaction = require('./SignMessageSvmTransaction.cjs');
|
|
14
15
|
|
|
@@ -32,6 +33,7 @@ function SignMessageContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'suiMessage': !runtime.exists(json, 'suiMessage') ? undefined : json['suiMessage'],
|
|
33
34
|
'stellarMessage': !runtime.exists(json, 'stellarMessage') ? undefined : json['stellarMessage'],
|
|
34
35
|
'evmTypedData': !runtime.exists(json, 'evmTypedData') ? undefined : SignMessageEvmTypedData.SignMessageEvmTypedDataFromJSON(json['evmTypedData']),
|
|
36
|
+
'rawSign': !runtime.exists(json, 'rawSign') ? undefined : SignMessageRawSign.SignMessageRawSignFromJSON(json['rawSign']),
|
|
35
37
|
'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
@@ -54,6 +56,7 @@ function SignMessageContextToJSON(value) {
|
|
|
54
56
|
'suiMessage': value.suiMessage,
|
|
55
57
|
'stellarMessage': value.stellarMessage,
|
|
56
58
|
'evmTypedData': SignMessageEvmTypedData.SignMessageEvmTypedDataToJSON(value.evmTypedData),
|
|
59
|
+
'rawSign': SignMessageRawSign.SignMessageRawSignToJSON(value.rawSign),
|
|
57
60
|
'domain': value.domain,
|
|
58
61
|
};
|
|
59
62
|
}
|
|
@@ -15,6 +15,7 @@ import { SignMessageEvmMessage } from './SignMessageEvmMessage';
|
|
|
15
15
|
import { SignMessageEvmTransaction } from './SignMessageEvmTransaction';
|
|
16
16
|
import { SignMessageEvmTypedData } from './SignMessageEvmTypedData';
|
|
17
17
|
import { SignMessageEvmUserOperation } from './SignMessageEvmUserOperation';
|
|
18
|
+
import { SignMessageRawSign } from './SignMessageRawSign';
|
|
18
19
|
import { SignMessageSuiTransaction } from './SignMessageSuiTransaction';
|
|
19
20
|
import { SignMessageSvmTransaction } from './SignMessageSvmTransaction';
|
|
20
21
|
/**
|
|
@@ -89,6 +90,12 @@ export interface SignMessageContext {
|
|
|
89
90
|
* @memberof SignMessageContext
|
|
90
91
|
*/
|
|
91
92
|
evmTypedData?: SignMessageEvmTypedData;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {SignMessageRawSign}
|
|
96
|
+
* @memberof SignMessageContext
|
|
97
|
+
*/
|
|
98
|
+
rawSign?: SignMessageRawSign;
|
|
92
99
|
/**
|
|
93
100
|
*
|
|
94
101
|
* @type {string}
|
|
@@ -5,6 +5,7 @@ import { SignMessageEvmMessageFromJSON, SignMessageEvmMessageToJSON } from './Si
|
|
|
5
5
|
import { SignMessageEvmTransactionFromJSON, SignMessageEvmTransactionToJSON } from './SignMessageEvmTransaction.js';
|
|
6
6
|
import { SignMessageEvmTypedDataFromJSON, SignMessageEvmTypedDataToJSON } from './SignMessageEvmTypedData.js';
|
|
7
7
|
import { SignMessageEvmUserOperationFromJSON, SignMessageEvmUserOperationToJSON } from './SignMessageEvmUserOperation.js';
|
|
8
|
+
import { SignMessageRawSignFromJSON, SignMessageRawSignToJSON } from './SignMessageRawSign.js';
|
|
8
9
|
import { SignMessageSuiTransactionFromJSON, SignMessageSuiTransactionToJSON } from './SignMessageSuiTransaction.js';
|
|
9
10
|
import { SignMessageSvmTransactionFromJSON, SignMessageSvmTransactionToJSON } from './SignMessageSvmTransaction.js';
|
|
10
11
|
|
|
@@ -28,6 +29,7 @@ function SignMessageContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
29
|
'suiMessage': !exists(json, 'suiMessage') ? undefined : json['suiMessage'],
|
|
29
30
|
'stellarMessage': !exists(json, 'stellarMessage') ? undefined : json['stellarMessage'],
|
|
30
31
|
'evmTypedData': !exists(json, 'evmTypedData') ? undefined : SignMessageEvmTypedDataFromJSON(json['evmTypedData']),
|
|
32
|
+
'rawSign': !exists(json, 'rawSign') ? undefined : SignMessageRawSignFromJSON(json['rawSign']),
|
|
31
33
|
'domain': !exists(json, 'domain') ? undefined : json['domain'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -50,6 +52,7 @@ function SignMessageContextToJSON(value) {
|
|
|
50
52
|
'suiMessage': value.suiMessage,
|
|
51
53
|
'stellarMessage': value.stellarMessage,
|
|
52
54
|
'evmTypedData': SignMessageEvmTypedDataToJSON(value.evmTypedData),
|
|
55
|
+
'rawSign': SignMessageRawSignToJSON(value.rawSign),
|
|
53
56
|
'domain': value.domain,
|
|
54
57
|
};
|
|
55
58
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
/**
|
|
9
|
+
* @export
|
|
10
|
+
* @enum {string}
|
|
11
|
+
*/
|
|
12
|
+
exports.SignMessageRawSignHashFunctionEnum = void 0;
|
|
13
|
+
(function (SignMessageRawSignHashFunctionEnum) {
|
|
14
|
+
SignMessageRawSignHashFunctionEnum["Sha512Half"] = "sha512Half";
|
|
15
|
+
SignMessageRawSignHashFunctionEnum["Keccak256"] = "keccak256";
|
|
16
|
+
})(exports.SignMessageRawSignHashFunctionEnum || (exports.SignMessageRawSignHashFunctionEnum = {}));
|
|
17
|
+
function SignMessageRawSignFromJSON(json) {
|
|
18
|
+
return SignMessageRawSignFromJSONTyped(json);
|
|
19
|
+
}
|
|
20
|
+
function SignMessageRawSignFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'payload': json['payload'],
|
|
26
|
+
'hashFunction': json['hashFunction'],
|
|
27
|
+
'prefix': !runtime.exists(json, 'prefix') ? undefined : json['prefix'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function SignMessageRawSignToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'payload': value.payload,
|
|
39
|
+
'hashFunction': value.hashFunction,
|
|
40
|
+
'prefix': value.prefix,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.SignMessageRawSignFromJSON = SignMessageRawSignFromJSON;
|
|
45
|
+
exports.SignMessageRawSignFromJSONTyped = SignMessageRawSignFromJSONTyped;
|
|
46
|
+
exports.SignMessageRawSignToJSON = SignMessageRawSignToJSON;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Chain-agnostic raw digest signing payload; the digest must equal hashFunction(prefix + payload)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SignMessageRawSign
|
|
16
|
+
*/
|
|
17
|
+
export interface SignMessageRawSign {
|
|
18
|
+
/**
|
|
19
|
+
* Pre-image the digest is derived from, as a hex string
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SignMessageRawSign
|
|
22
|
+
*/
|
|
23
|
+
payload: string;
|
|
24
|
+
/**
|
|
25
|
+
* Hash applied to (prefix + payload) to reproduce the digest being signed. Restricted to sha512Half (e.g. XRPL single-signer) and keccak256 (screened against EVM operations); sha256 is excluded because a double-SHA256 Bitcoin sighash could be reproduced from an opaque pre-hashed payload
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SignMessageRawSign
|
|
28
|
+
*/
|
|
29
|
+
hashFunction: SignMessageRawSignHashFunctionEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Optional hex prefix prepended to the payload before hashing, e.g. the XRPL single-signer 'STX\0' prefix (53545800)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SignMessageRawSign
|
|
34
|
+
*/
|
|
35
|
+
prefix?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
* @enum {string}
|
|
40
|
+
*/
|
|
41
|
+
export declare enum SignMessageRawSignHashFunctionEnum {
|
|
42
|
+
Sha512Half = "sha512Half",
|
|
43
|
+
Keccak256 = "keccak256"
|
|
44
|
+
}
|
|
45
|
+
export declare function SignMessageRawSignFromJSON(json: any): SignMessageRawSign;
|
|
46
|
+
export declare function SignMessageRawSignFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageRawSign;
|
|
47
|
+
export declare function SignMessageRawSignToJSON(value?: SignMessageRawSign | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var SignMessageRawSignHashFunctionEnum;
|
|
9
|
+
(function (SignMessageRawSignHashFunctionEnum) {
|
|
10
|
+
SignMessageRawSignHashFunctionEnum["Sha512Half"] = "sha512Half";
|
|
11
|
+
SignMessageRawSignHashFunctionEnum["Keccak256"] = "keccak256";
|
|
12
|
+
})(SignMessageRawSignHashFunctionEnum || (SignMessageRawSignHashFunctionEnum = {}));
|
|
13
|
+
function SignMessageRawSignFromJSON(json) {
|
|
14
|
+
return SignMessageRawSignFromJSONTyped(json);
|
|
15
|
+
}
|
|
16
|
+
function SignMessageRawSignFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if ((json === undefined) || (json === null)) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
'payload': json['payload'],
|
|
22
|
+
'hashFunction': json['hashFunction'],
|
|
23
|
+
'prefix': !exists(json, 'prefix') ? undefined : json['prefix'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function SignMessageRawSignToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'payload': value.payload,
|
|
35
|
+
'hashFunction': value.hashFunction,
|
|
36
|
+
'prefix': value.prefix,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { SignMessageRawSignFromJSON, SignMessageRawSignFromJSONTyped, SignMessageRawSignHashFunctionEnum, SignMessageRawSignToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -600,6 +600,7 @@ export * from './SignMessageEvmMessageAnyOf';
|
|
|
600
600
|
export * from './SignMessageEvmTransaction';
|
|
601
601
|
export * from './SignMessageEvmTypedData';
|
|
602
602
|
export * from './SignMessageEvmUserOperation';
|
|
603
|
+
export * from './SignMessageRawSign';
|
|
603
604
|
export * from './SignMessageSuiTransaction';
|
|
604
605
|
export * from './SignMessageSvmTransaction';
|
|
605
606
|
export * from './SignMessageUserOperationData';
|