@dynamic-labs/sdk-api-core 0.0.1113 → 0.0.1114
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/WaasApi.cjs +3 -3
- package/src/apis/WaasApi.js +3 -3
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +3 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs.map +1 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +12 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js +3 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js.map +1 -1
package/package.json
CHANGED
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -9,6 +9,9 @@ require('../models/ProviderEnum.cjs');
|
|
|
9
9
|
require('../models/UserIdentifierTypeEnum.cjs');
|
|
10
10
|
require('../models/BusinessAccountSignerType.cjs');
|
|
11
11
|
require('../models/ThresholdSignatureScheme.cjs');
|
|
12
|
+
require('../models/WaasChainEnum.cjs');
|
|
13
|
+
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
14
|
+
require('../models/WaasPolicyRuleType.cjs');
|
|
12
15
|
require('../models/ChainEnum.cjs');
|
|
13
16
|
require('../models/FlowSourceTypeEnum.cjs');
|
|
14
17
|
require('../models/AttestationConveyancePreference.cjs');
|
|
@@ -52,7 +55,6 @@ require('../models/CoinbaseOnrampOrderPaymentLinkType.cjs');
|
|
|
52
55
|
require('../models/EmbeddedWalletChainEnum.cjs');
|
|
53
56
|
require('../models/EmbeddedWalletProviderEnum.cjs');
|
|
54
57
|
require('../models/RoomTypeEnum.cjs');
|
|
55
|
-
require('../models/WaasChainEnum.cjs');
|
|
56
58
|
require('../models/CurrencyType.cjs');
|
|
57
59
|
require('../models/DelegatedAccessEncryptionPublicKey.cjs');
|
|
58
60
|
var DelegatedAccessEncryptionPublicKeyResponse = require('../models/DelegatedAccessEncryptionPublicKeyResponse.cjs');
|
|
@@ -99,8 +101,6 @@ require('../models/SdkViewType.cjs');
|
|
|
99
101
|
require('../models/ZerodevBundlerProvider.cjs');
|
|
100
102
|
require('../models/PublishEventsEvents.cjs');
|
|
101
103
|
require('../models/ReshareKind.cjs');
|
|
102
|
-
require('../models/WaasPolicyConstraintCondition.cjs');
|
|
103
|
-
require('../models/WaasPolicyRuleType.cjs');
|
|
104
104
|
require('../models/ScreenTransactionResponse.cjs');
|
|
105
105
|
require('../models/SignMessageRawSign.cjs');
|
|
106
106
|
require('../models/SsoProviderEnum.cjs');
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -5,6 +5,9 @@ import '../models/ProviderEnum.js';
|
|
|
5
5
|
import '../models/UserIdentifierTypeEnum.js';
|
|
6
6
|
import '../models/BusinessAccountSignerType.js';
|
|
7
7
|
import '../models/ThresholdSignatureScheme.js';
|
|
8
|
+
import '../models/WaasChainEnum.js';
|
|
9
|
+
import '../models/WaasPolicyConstraintCondition.js';
|
|
10
|
+
import '../models/WaasPolicyRuleType.js';
|
|
8
11
|
import '../models/ChainEnum.js';
|
|
9
12
|
import '../models/FlowSourceTypeEnum.js';
|
|
10
13
|
import '../models/AttestationConveyancePreference.js';
|
|
@@ -48,7 +51,6 @@ import '../models/CoinbaseOnrampOrderPaymentLinkType.js';
|
|
|
48
51
|
import '../models/EmbeddedWalletChainEnum.js';
|
|
49
52
|
import '../models/EmbeddedWalletProviderEnum.js';
|
|
50
53
|
import '../models/RoomTypeEnum.js';
|
|
51
|
-
import '../models/WaasChainEnum.js';
|
|
52
54
|
import '../models/CurrencyType.js';
|
|
53
55
|
import '../models/DelegatedAccessEncryptionPublicKey.js';
|
|
54
56
|
import { DelegatedAccessEncryptionPublicKeyResponseFromJSON } from '../models/DelegatedAccessEncryptionPublicKeyResponse.js';
|
|
@@ -95,8 +97,6 @@ import '../models/SdkViewType.js';
|
|
|
95
97
|
import '../models/ZerodevBundlerProvider.js';
|
|
96
98
|
import '../models/PublishEventsEvents.js';
|
|
97
99
|
import '../models/ReshareKind.js';
|
|
98
|
-
import '../models/WaasPolicyConstraintCondition.js';
|
|
99
|
-
import '../models/WaasPolicyRuleType.js';
|
|
100
100
|
import '../models/ScreenTransactionResponse.js';
|
|
101
101
|
import '../models/SignMessageRawSign.js';
|
|
102
102
|
import '../models/SsoProviderEnum.js';
|
|
@@ -8,6 +8,7 @@ var ProviderEnum = require('./ProviderEnum.cjs');
|
|
|
8
8
|
var SmsCountryCode = require('./SmsCountryCode.cjs');
|
|
9
9
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
10
10
|
var UserIdentifierTypeEnum = require('./UserIdentifierTypeEnum.cjs');
|
|
11
|
+
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
11
12
|
|
|
12
13
|
/* tslint:disable */
|
|
13
14
|
function AddBusinessAccountSignerSdkRequestFromJSON(json) {
|
|
@@ -27,6 +28,7 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
27
28
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
28
29
|
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
29
30
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
31
|
+
'initialSignerRules': !runtime.exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
function AddBusinessAccountSignerSdkRequestToJSON(value) {
|
|
@@ -46,6 +48,7 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
|
|
|
46
48
|
'clientKeygenIds': value.clientKeygenIds,
|
|
47
49
|
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
48
50
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
51
|
+
'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
|
|
49
52
|
};
|
|
50
53
|
}
|
|
51
54
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddBusinessAccountSignerSdkRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountSignerSdkRequest.ts"],"sourcesContent":null,"names":["BusinessAccountSignerTypeFromJSON","exists","UserIdentifierTypeEnumFromJSON","SmsCountryCodeFromJSON","ProviderEnumFromJSON","ThresholdSignatureSchemeFromJSON","BusinessAccountSignerTypeToJSON","UserIdentifierTypeEnumToJSON","SmsCountryCodeToJSON","ProviderEnumToJSON","ThresholdSignatureSchemeToJSON"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddBusinessAccountSignerSdkRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountSignerSdkRequest.ts"],"sourcesContent":null,"names":["BusinessAccountSignerTypeFromJSON","exists","UserIdentifierTypeEnumFromJSON","SmsCountryCodeFromJSON","ProviderEnumFromJSON","ThresholdSignatureSchemeFromJSON","WaasPolicyRuleFromJSON","BusinessAccountSignerTypeToJSON","UserIdentifierTypeEnumToJSON","SmsCountryCodeToJSON","ProviderEnumToJSON","ThresholdSignatureSchemeToJSON","WaasPolicyRuleToJSON"],"mappings":";;;;;;;;;;;;AAAA;AA8HM,SAAU,0CAA0C,CAAC,IAAS,EAAA;AAChE,IAAA,OAAO,+CAA+C,CAAC,IAAW,CAAC,CAAC;AACxE,CAAC;AAEe,SAAA,+CAA+C,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACnG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,YAAY,EAAEA,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OAAO;AAEH,QAAA,YAAY,EAAEC,yDAA+B,CAAC,KAAK,CAAC,UAAU,CAAC;QAC/D,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,YAAY,EAAE,KAAK,CAAC,UAAU;AAC9B,QAAA,MAAM,EAAEC,mDAA4B,CAAC,KAAK,CAAC,IAAI,CAAC;AAChD,QAAA,gBAAgB,EAAEC,mCAAoB,CAAC,KAAK,CAAC,cAAc,CAAC;AAC5D,QAAA,gBAAgB,EAAEC,+BAAkB,CAAC,KAAK,CAAC,cAAc,CAAC;QAC1D,iBAAiB,EAAE,KAAK,CAAC,eAAe;AACxC,QAAA,6BAA6B,EAAEC,uDAA8B,CAAC,KAAK,CAAC,2BAA2B,CAAC;AAChG,QAAA,6BAA6B,EAAEA,uDAA8B,CAAC,KAAK,CAAC,2BAA2B,CAAC;QAChG,oBAAoB,EAAE,KAAK,CAAC,kBAAkB,KAAK,SAAS,GAAG,SAAS,IAAK,KAAK,CAAC,kBAAiC,CAAC,GAAG,CAACC,mCAAoB,CAAC,CAAC;KAClJ,CAAC;AACN;;;;;;"}
|
|
@@ -14,6 +14,7 @@ import { ProviderEnum } from './ProviderEnum';
|
|
|
14
14
|
import { SmsCountryCode } from './SmsCountryCode';
|
|
15
15
|
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
16
16
|
import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
|
|
17
|
+
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
17
18
|
/**
|
|
18
19
|
* SDK addSigner body. Same user resolution shape as addMember (userId OR identifier + type), plus `signerType` for the signer-role enum (endUser/server). `type` here is the user-resolution type, NOT the signer type — `signerType` lives on a dedicated field. `smsCountryCode` is required when `type` is `phoneNumber`; `socialProvider` is required when `type` is `socialUsername` or `socialAccountId`.
|
|
19
20
|
* The remaining fields parameterise the reshare ceremony that runs after the pending signer row is written. `clientKeygenIds` come from the caller's local MPC state; the threshold scheme fields describe the source share set (old) and the destination share set (new) that the ceremony produces.
|
|
@@ -75,6 +76,17 @@ export interface AddBusinessAccountSignerSdkRequest {
|
|
|
75
76
|
* @memberof AddBusinessAccountSignerSdkRequest
|
|
76
77
|
*/
|
|
77
78
|
newThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
79
|
+
/**
|
|
80
|
+
* Optional Rules to seed the new signer's signer-Layer with at
|
|
81
|
+
* add-signer time, so the signer is restricted from its first sign.
|
|
82
|
+
* Only valid when policy composition is enabled and the wallet is a
|
|
83
|
+
* composition wallet (env/wallet Layers exist); if supplied otherwise
|
|
84
|
+
* the request is rejected with 422 rather than creating an unrestricted
|
|
85
|
+
* signer. Rule shape mirrors the signer self-service policy-layer schema.
|
|
86
|
+
* @type {Array<WaasPolicyRule>}
|
|
87
|
+
* @memberof AddBusinessAccountSignerSdkRequest
|
|
88
|
+
*/
|
|
89
|
+
initialSignerRules?: Array<WaasPolicyRule>;
|
|
78
90
|
}
|
|
79
91
|
export declare function AddBusinessAccountSignerSdkRequestFromJSON(json: any): AddBusinessAccountSignerSdkRequest;
|
|
80
92
|
export declare function AddBusinessAccountSignerSdkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddBusinessAccountSignerSdkRequest;
|
|
@@ -4,6 +4,7 @@ import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
|
|
|
4
4
|
import { SmsCountryCodeFromJSON, SmsCountryCodeToJSON } from './SmsCountryCode.js';
|
|
5
5
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
6
6
|
import { UserIdentifierTypeEnumFromJSON, UserIdentifierTypeEnumToJSON } from './UserIdentifierTypeEnum.js';
|
|
7
|
+
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function AddBusinessAccountSignerSdkRequestFromJSON(json) {
|
|
@@ -23,6 +24,7 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
23
24
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
24
25
|
'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
25
26
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
27
|
+
'initialSignerRules': !exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRuleFromJSON)),
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
function AddBusinessAccountSignerSdkRequestToJSON(value) {
|
|
@@ -42,6 +44,7 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
|
|
|
42
44
|
'clientKeygenIds': value.clientKeygenIds,
|
|
43
45
|
'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
44
46
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
47
|
+
'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRuleToJSON)),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddBusinessAccountSignerSdkRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountSignerSdkRequest.ts"],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddBusinessAccountSignerSdkRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountSignerSdkRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;AAAA;AA8HM,SAAU,0CAA0C,CAAC,IAAS,EAAA;AAChE,IAAA,OAAO,+CAA+C,CAAC,IAAW,CAAC,CAAC;AACxE,CAAC;AAEe,SAAA,+CAA+C,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACnG,IAAA,IAAI,CAA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