@dynamic-labs/sdk-api-core 0.0.1091 → 0.0.1092
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 +1 -1
- package/src/apis/WaasApi.js +1 -1
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs +6 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs.map +1 -1
- package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +15 -1
- package/src/models/AddBusinessAccountMemberSdkRequest.js +6 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.js.map +1 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +6 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs.map +1 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +15 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.js +6 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js.map +1 -1
package/package.json
CHANGED
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
require('../models/ExchangeKeyEnum.cjs');
|
|
7
7
|
require('../models/AssignableBusinessAccountMemberRole.cjs');
|
|
8
|
+
require('../models/ProviderEnum.cjs');
|
|
8
9
|
require('../models/UserIdentifierTypeEnum.cjs');
|
|
9
10
|
require('../models/BusinessAccountSignerType.cjs');
|
|
10
11
|
require('../models/ThresholdSignatureScheme.cjs');
|
|
@@ -23,7 +24,6 @@ require('../models/BackupKeySharesToLocationsResponse.cjs');
|
|
|
23
24
|
require('../models/WaasBackupOptionsEnum.cjs');
|
|
24
25
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
25
26
|
require('../models/JwtVerifiedCredentialFormatEnum.cjs');
|
|
26
|
-
require('../models/ProviderEnum.cjs');
|
|
27
27
|
require('../models/WalletAddressType.cjs');
|
|
28
28
|
require('../models/EcdsaValidatorOptions.cjs');
|
|
29
29
|
require('../models/EmbeddedWalletVersionEnum.cjs');
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse } from '../runtime.js';
|
|
2
2
|
import '../models/ExchangeKeyEnum.js';
|
|
3
3
|
import '../models/AssignableBusinessAccountMemberRole.js';
|
|
4
|
+
import '../models/ProviderEnum.js';
|
|
4
5
|
import '../models/UserIdentifierTypeEnum.js';
|
|
5
6
|
import '../models/BusinessAccountSignerType.js';
|
|
6
7
|
import '../models/ThresholdSignatureScheme.js';
|
|
@@ -19,7 +20,6 @@ import '../models/BackupKeySharesToLocationsResponse.js';
|
|
|
19
20
|
import '../models/WaasBackupOptionsEnum.js';
|
|
20
21
|
import '../models/BusinessAccountMemberRole.js';
|
|
21
22
|
import '../models/JwtVerifiedCredentialFormatEnum.js';
|
|
22
|
-
import '../models/ProviderEnum.js';
|
|
23
23
|
import '../models/WalletAddressType.js';
|
|
24
24
|
import '../models/EcdsaValidatorOptions.js';
|
|
25
25
|
import '../models/EmbeddedWalletVersionEnum.js';
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var AssignableBusinessAccountMemberRole = require('./AssignableBusinessAccountMemberRole.cjs');
|
|
7
|
+
var ProviderEnum = require('./ProviderEnum.cjs');
|
|
8
|
+
var SmsCountryCode = require('./SmsCountryCode.cjs');
|
|
7
9
|
var UserIdentifierTypeEnum = require('./UserIdentifierTypeEnum.cjs');
|
|
8
10
|
|
|
9
11
|
/* tslint:disable */
|
|
@@ -19,6 +21,8 @@ function AddBusinessAccountMemberSdkRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
19
21
|
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
20
22
|
'identifier': !runtime.exists(json, 'identifier') ? undefined : json['identifier'],
|
|
21
23
|
'type': !runtime.exists(json, 'type') ? undefined : UserIdentifierTypeEnum.UserIdentifierTypeEnumFromJSON(json['type']),
|
|
24
|
+
'smsCountryCode': !runtime.exists(json, 'smsCountryCode') ? undefined : SmsCountryCode.SmsCountryCodeFromJSON(json['smsCountryCode']),
|
|
25
|
+
'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
|
|
22
26
|
};
|
|
23
27
|
}
|
|
24
28
|
function AddBusinessAccountMemberSdkRequestToJSON(value) {
|
|
@@ -33,6 +37,8 @@ function AddBusinessAccountMemberSdkRequestToJSON(value) {
|
|
|
33
37
|
'userId': value.userId,
|
|
34
38
|
'identifier': value.identifier,
|
|
35
39
|
'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumToJSON(value.type),
|
|
40
|
+
'smsCountryCode': SmsCountryCode.SmsCountryCodeToJSON(value.smsCountryCode),
|
|
41
|
+
'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
|
|
36
42
|
};
|
|
37
43
|
}
|
|
38
44
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddBusinessAccountMemberSdkRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountMemberSdkRequest.ts"],"sourcesContent":null,"names":["AssignableBusinessAccountMemberRoleFromJSON","exists","UserIdentifierTypeEnumFromJSON","AssignableBusinessAccountMemberRoleToJSON","UserIdentifierTypeEnumToJSON"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddBusinessAccountMemberSdkRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountMemberSdkRequest.ts"],"sourcesContent":null,"names":["AssignableBusinessAccountMemberRoleFromJSON","exists","UserIdentifierTypeEnumFromJSON","SmsCountryCodeFromJSON","ProviderEnumFromJSON","AssignableBusinessAccountMemberRoleToJSON","UserIdentifierTypeEnumToJSON","SmsCountryC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AO;AAEH,QAAA,MAAM,EAAEC,6EAAyC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC7D,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;KAC7D,CAAC;AACN;;;;;;"}
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AssignableBusinessAccountMemberRole } from './AssignableBusinessAccountMemberRole';
|
|
13
|
+
import { ProviderEnum } from './ProviderEnum';
|
|
14
|
+
import { SmsCountryCode } from './SmsCountryCode';
|
|
13
15
|
import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
|
|
14
16
|
/**
|
|
15
|
-
* SDK addMember body. Caller resolves the target user by either passing `userId` directly OR by `identifier + type` (
|
|
17
|
+
* SDK addMember body. Caller resolves the target user by either passing `userId` directly OR by `identifier + type` (any UserIdentifierTypeEnum value), mirroring the pregen flow. `smsCountryCode` is required when `type` is `phoneNumber`; `socialProvider` is required when `type` is `socialUsername` or `socialAccountId`.
|
|
16
18
|
* @export
|
|
17
19
|
* @interface AddBusinessAccountMemberSdkRequest
|
|
18
20
|
*/
|
|
@@ -41,6 +43,18 @@ export interface AddBusinessAccountMemberSdkRequest {
|
|
|
41
43
|
* @memberof AddBusinessAccountMemberSdkRequest
|
|
42
44
|
*/
|
|
43
45
|
type?: UserIdentifierTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {SmsCountryCode}
|
|
49
|
+
* @memberof AddBusinessAccountMemberSdkRequest
|
|
50
|
+
*/
|
|
51
|
+
smsCountryCode?: SmsCountryCode;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {ProviderEnum}
|
|
55
|
+
* @memberof AddBusinessAccountMemberSdkRequest
|
|
56
|
+
*/
|
|
57
|
+
socialProvider?: ProviderEnum;
|
|
44
58
|
}
|
|
45
59
|
export declare function AddBusinessAccountMemberSdkRequestFromJSON(json: any): AddBusinessAccountMemberSdkRequest;
|
|
46
60
|
export declare function AddBusinessAccountMemberSdkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddBusinessAccountMemberSdkRequest;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { AssignableBusinessAccountMemberRoleFromJSON, AssignableBusinessAccountMemberRoleToJSON } from './AssignableBusinessAccountMemberRole.js';
|
|
3
|
+
import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
|
|
4
|
+
import { SmsCountryCodeFromJSON, SmsCountryCodeToJSON } from './SmsCountryCode.js';
|
|
3
5
|
import { UserIdentifierTypeEnumFromJSON, UserIdentifierTypeEnumToJSON } from './UserIdentifierTypeEnum.js';
|
|
4
6
|
|
|
5
7
|
/* tslint:disable */
|
|
@@ -15,6 +17,8 @@ function AddBusinessAccountMemberSdkRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
15
17
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
16
18
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
17
19
|
'type': !exists(json, 'type') ? undefined : UserIdentifierTypeEnumFromJSON(json['type']),
|
|
20
|
+
'smsCountryCode': !exists(json, 'smsCountryCode') ? undefined : SmsCountryCodeFromJSON(json['smsCountryCode']),
|
|
21
|
+
'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
|
|
18
22
|
};
|
|
19
23
|
}
|
|
20
24
|
function AddBusinessAccountMemberSdkRequestToJSON(value) {
|
|
@@ -29,6 +33,8 @@ function AddBusinessAccountMemberSdkRequestToJSON(value) {
|
|
|
29
33
|
'userId': value.userId,
|
|
30
34
|
'identifier': value.identifier,
|
|
31
35
|
'type': UserIdentifierTypeEnumToJSON(value.type),
|
|
36
|
+
'smsCountryCode': SmsCountryCodeToJSON(value.smsCountryCode),
|
|
37
|
+
'socialProvider': ProviderEnumToJSON(value.socialProvider),
|
|
32
38
|
};
|
|
33
39
|
}
|
|
34
40
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddBusinessAccountMemberSdkRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountMemberSdkRequest.ts"],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddBusinessAccountMemberSdkRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountMemberSdkRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAAA;AAoFM,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,MAAM,EAAE,2CAA2C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACjE,QAAA,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC9D,QAAA,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC;QAC1E,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxF,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,GAAG,SAAS,GAAG,sBAAsB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9G,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,GAAG,SAAS,GAAG,oBAAoB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAC/G,CAAC;AACN,CAAC;AAEK,SAAU,wCAAwC,CAAC,KAAiD,EAAA;AACtG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,MAAM,EAAE,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC7D,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,YAAY,EAAE,KAAK,CAAC,UAAU;AAC9B,QAAA,MAAM,EAAE,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC;AAChD,QAAA,gBAAgB,EAAE,oBAAoB,CAAC,KAAK,CAAC,cAAc,CAAC;AAC5D,QAAA,gBAAgB,EAAE,kBAAkB,CAAC,KAAK,CAAC,cAAc,CAAC;KAC7D,CAAC;AACN;;;;"}
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var BusinessAccountSignerType = require('./BusinessAccountSignerType.cjs');
|
|
7
|
+
var ProviderEnum = require('./ProviderEnum.cjs');
|
|
8
|
+
var SmsCountryCode = require('./SmsCountryCode.cjs');
|
|
7
9
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
8
10
|
var UserIdentifierTypeEnum = require('./UserIdentifierTypeEnum.cjs');
|
|
9
11
|
|
|
@@ -20,6 +22,8 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
20
22
|
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
21
23
|
'identifier': !runtime.exists(json, 'identifier') ? undefined : json['identifier'],
|
|
22
24
|
'type': !runtime.exists(json, 'type') ? undefined : UserIdentifierTypeEnum.UserIdentifierTypeEnumFromJSON(json['type']),
|
|
25
|
+
'smsCountryCode': !runtime.exists(json, 'smsCountryCode') ? undefined : SmsCountryCode.SmsCountryCodeFromJSON(json['smsCountryCode']),
|
|
26
|
+
'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
|
|
23
27
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
24
28
|
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
25
29
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
@@ -37,6 +41,8 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
|
|
|
37
41
|
'userId': value.userId,
|
|
38
42
|
'identifier': value.identifier,
|
|
39
43
|
'type': UserIdentifierTypeEnum.UserIdentifierTypeEnumToJSON(value.type),
|
|
44
|
+
'smsCountryCode': SmsCountryCode.SmsCountryCodeToJSON(value.smsCountryCode),
|
|
45
|
+
'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
|
|
40
46
|
'clientKeygenIds': value.clientKeygenIds,
|
|
41
47
|
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
42
48
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddBusinessAccountSignerSdkRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/AddBusinessAccountSignerSdkRequest.ts"],"sourcesContent":null,"names":["BusinessAccountSignerTypeFromJSON","exists","UserIdentifierTypeEnumFromJSON","ThresholdSignatureSchemeFromJSON","BusinessAccountSignerTypeToJSON","UserIdentifierTypeEnumToJSON","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","BusinessAccountSignerTypeToJSON","UserIdentifierTypeEnumToJSON","SmsCountryCodeToJSON","ProviderEnumToJSON","ThresholdSignatureSchemeToJSON"],"mappings":";;;;;;;;;;;AAAA;AA6GM,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,2DAAiC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACnE,QAAA,QAAQ,EAAE,CAACC,cAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC9D,QAAA,YAAY,EAAE,CAACA,cAAM,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC;QAC1E,MAAM,EAAE,CAACA,cAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,GAAGC,qDAA8B,CAAC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B,CAAC;KACnG,CAAC;AACN;;;;;;"}
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { BusinessAccountSignerType } from './BusinessAccountSignerType';
|
|
13
|
+
import { ProviderEnum } from './ProviderEnum';
|
|
14
|
+
import { SmsCountryCode } from './SmsCountryCode';
|
|
13
15
|
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
14
16
|
import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
|
|
15
17
|
/**
|
|
16
|
-
* 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.
|
|
18
|
+
* 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`.
|
|
17
19
|
* 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.
|
|
18
20
|
* @export
|
|
19
21
|
* @interface AddBusinessAccountSignerSdkRequest
|
|
@@ -43,6 +45,18 @@ export interface AddBusinessAccountSignerSdkRequest {
|
|
|
43
45
|
* @memberof AddBusinessAccountSignerSdkRequest
|
|
44
46
|
*/
|
|
45
47
|
type?: UserIdentifierTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {SmsCountryCode}
|
|
51
|
+
* @memberof AddBusinessAccountSignerSdkRequest
|
|
52
|
+
*/
|
|
53
|
+
smsCountryCode?: SmsCountryCode;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {ProviderEnum}
|
|
57
|
+
* @memberof AddBusinessAccountSignerSdkRequest
|
|
58
|
+
*/
|
|
59
|
+
socialProvider?: ProviderEnum;
|
|
46
60
|
/**
|
|
47
61
|
* Caller's MPC keygen IDs participating in the reshare.
|
|
48
62
|
* @type {Array<string>}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { BusinessAccountSignerTypeFromJSON, BusinessAccountSignerTypeToJSON } from './BusinessAccountSignerType.js';
|
|
3
|
+
import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
|
|
4
|
+
import { SmsCountryCodeFromJSON, SmsCountryCodeToJSON } from './SmsCountryCode.js';
|
|
3
5
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
4
6
|
import { UserIdentifierTypeEnumFromJSON, UserIdentifierTypeEnumToJSON } from './UserIdentifierTypeEnum.js';
|
|
5
7
|
|
|
@@ -16,6 +18,8 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
16
18
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
17
19
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
18
20
|
'type': !exists(json, 'type') ? undefined : UserIdentifierTypeEnumFromJSON(json['type']),
|
|
21
|
+
'smsCountryCode': !exists(json, 'smsCountryCode') ? undefined : SmsCountryCodeFromJSON(json['smsCountryCode']),
|
|
22
|
+
'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
|
|
19
23
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
20
24
|
'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
21
25
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
@@ -33,6 +37,8 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
|
|
|
33
37
|
'userId': value.userId,
|
|
34
38
|
'identifier': value.identifier,
|
|
35
39
|
'type': UserIdentifierTypeEnumToJSON(value.type),
|
|
40
|
+
'smsCountryCode': SmsCountryCodeToJSON(value.smsCountryCode),
|
|
41
|
+
'socialProvider': ProviderEnumToJSON(value.socialProvider),
|
|
36
42
|
'clientKeygenIds': value.clientKeygenIds,
|
|
37
43
|
'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
38
44
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
@@ -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;AA6GM,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,EAAE,iCAAiC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACnE,QAAA,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC9D,QAAA,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC;QAC1E,MAAM,EAAE,CAAC,M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