@dynamic-labs/sdk-api 0.47.0 → 0.49.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/ServerApi.cjs +32 -0
- package/src/apis/ServerApi.d.ts +15 -1
- package/src/apis/ServerApi.js +32 -0
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/BusinessAccountMember.cjs +3 -0
- package/src/models/BusinessAccountMember.d.ts +7 -0
- package/src/models/BusinessAccountMember.js +3 -0
- package/src/models/BusinessAccountMemberCustomRole.cjs +45 -0
- package/src/models/BusinessAccountMemberCustomRole.d.ts +33 -0
- package/src/models/BusinessAccountMemberCustomRole.js +39 -0
- package/src/models/CreateWaasAccountRequest.cjs +2 -0
- package/src/models/CreateWaasAccountRequest.d.ts +6 -0
- package/src/models/CreateWaasAccountRequest.js +2 -0
- package/src/models/EncryptedWalletApiKey.cjs +43 -0
- package/src/models/EncryptedWalletApiKey.d.ts +57 -0
- package/src/models/EncryptedWalletApiKey.js +37 -0
- package/src/models/OpenRoomResponseWithServerKeygenIds.cjs +3 -0
- package/src/models/OpenRoomResponseWithServerKeygenIds.d.ts +7 -0
- package/src/models/OpenRoomResponseWithServerKeygenIds.js +3 -0
- package/src/models/OpenRoomResponseWithServerKeygenIdsAllOf.cjs +3 -0
- package/src/models/OpenRoomResponseWithServerKeygenIdsAllOf.d.ts +7 -0
- package/src/models/OpenRoomResponseWithServerKeygenIdsAllOf.js +3 -0
- package/src/models/RefreshKeySharesResponse.cjs +3 -0
- package/src/models/RefreshKeySharesResponse.d.ts +7 -0
- package/src/models/RefreshKeySharesResponse.js +3 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -155,6 +155,7 @@ require('../models/KybVerificationResultEnum.cjs');
|
|
|
155
155
|
require('../models/KybResendSkipReasonEnum.cjs');
|
|
156
156
|
require('../models/KybSubmissionBusinessData.cjs');
|
|
157
157
|
require('../models/KybVerifyRequestBusinessData.cjs');
|
|
158
|
+
var LinkBusinessAccountWalletSdkRequest = require('../models/LinkBusinessAccountWalletSdkRequest.cjs');
|
|
158
159
|
require('../models/MFAAction.cjs');
|
|
159
160
|
require('../models/NextViewEnum.cjs');
|
|
160
161
|
require('../models/OauthResultStatus.cjs');
|
|
@@ -486,6 +487,37 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
486
487
|
const response = await this.initiateFlowFeeClaimServerRaw(requestParameters, initOverrides);
|
|
487
488
|
return await response.value();
|
|
488
489
|
}
|
|
490
|
+
/**
|
|
491
|
+
* Brings an existing wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account and registers the caller as an owner member + signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
492
|
+
* Server — add an existing wallet to a business account
|
|
493
|
+
*/
|
|
494
|
+
async linkBusinessAccountWalletServerRaw(requestParameters, initOverrides) {
|
|
495
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
496
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling linkBusinessAccountWalletServer.');
|
|
497
|
+
}
|
|
498
|
+
if (requestParameters.linkBusinessAccountWalletSdkRequest === null || requestParameters.linkBusinessAccountWalletSdkRequest === undefined) {
|
|
499
|
+
throw new runtime.RequiredError('linkBusinessAccountWalletSdkRequest', 'Required parameter requestParameters.linkBusinessAccountWalletSdkRequest was null or undefined when calling linkBusinessAccountWalletServer.');
|
|
500
|
+
}
|
|
501
|
+
const queryParameters = {};
|
|
502
|
+
const headerParameters = {};
|
|
503
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
504
|
+
const response = await this.request({
|
|
505
|
+
path: `/server/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
506
|
+
method: 'POST',
|
|
507
|
+
headers: headerParameters,
|
|
508
|
+
query: queryParameters,
|
|
509
|
+
body: LinkBusinessAccountWalletSdkRequest.LinkBusinessAccountWalletSdkRequestToJSON(requestParameters.linkBusinessAccountWalletSdkRequest),
|
|
510
|
+
}, initOverrides);
|
|
511
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountDetail.BusinessAccountDetailFromJSON(jsonValue));
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Brings an existing wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account and registers the caller as an owner member + signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
515
|
+
* Server — add an existing wallet to a business account
|
|
516
|
+
*/
|
|
517
|
+
async linkBusinessAccountWalletServer(requestParameters, initOverrides) {
|
|
518
|
+
const response = await this.linkBusinessAccountWalletServerRaw(requestParameters, initOverrides);
|
|
519
|
+
return await response.value();
|
|
520
|
+
}
|
|
489
521
|
/**
|
|
490
522
|
* Server — list business accounts the caller is a member of
|
|
491
523
|
*/
|
package/src/apis/ServerApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AddBusinessAccountMemberSdkRequest, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, ServerIdentityResponse, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse } from '../models';
|
|
13
|
+
import { AddBusinessAccountMemberSdkRequest, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, LinkBusinessAccountWalletSdkRequest, ServerIdentityResponse, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse } from '../models';
|
|
14
14
|
export interface AddBusinessAccountMemberServerRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
businessAccountId: string;
|
|
@@ -50,6 +50,10 @@ export interface InitiateFlowFeeClaimServerRequest {
|
|
|
50
50
|
environmentId: string;
|
|
51
51
|
flowFeeClaimRequest: FlowFeeClaimRequest;
|
|
52
52
|
}
|
|
53
|
+
export interface LinkBusinessAccountWalletServerRequest {
|
|
54
|
+
environmentId: string;
|
|
55
|
+
linkBusinessAccountWalletSdkRequest: LinkBusinessAccountWalletSdkRequest;
|
|
56
|
+
}
|
|
53
57
|
export interface ListBusinessAccountsServerRequest {
|
|
54
58
|
environmentId: string;
|
|
55
59
|
externalRef?: Array<string>;
|
|
@@ -154,6 +158,16 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
154
158
|
* Initiate a fee claim
|
|
155
159
|
*/
|
|
156
160
|
initiateFlowFeeClaimServer(requestParameters: InitiateFlowFeeClaimServerRequest, initOverrides?: RequestInit): Promise<FlowFeeClaimResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* Brings an existing wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account and registers the caller as an owner member + signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
163
|
+
* Server — add an existing wallet to a business account
|
|
164
|
+
*/
|
|
165
|
+
linkBusinessAccountWalletServerRaw(requestParameters: LinkBusinessAccountWalletServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
|
|
166
|
+
/**
|
|
167
|
+
* Brings an existing wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account and registers the caller as an owner member + signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
168
|
+
* Server — add an existing wallet to a business account
|
|
169
|
+
*/
|
|
170
|
+
linkBusinessAccountWalletServer(requestParameters: LinkBusinessAccountWalletServerRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
157
171
|
/**
|
|
158
172
|
* Server — list business accounts the caller is a member of
|
|
159
173
|
*/
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -151,6 +151,7 @@ import '../models/KybVerificationResultEnum.js';
|
|
|
151
151
|
import '../models/KybResendSkipReasonEnum.js';
|
|
152
152
|
import '../models/KybSubmissionBusinessData.js';
|
|
153
153
|
import '../models/KybVerifyRequestBusinessData.js';
|
|
154
|
+
import { LinkBusinessAccountWalletSdkRequestToJSON } from '../models/LinkBusinessAccountWalletSdkRequest.js';
|
|
154
155
|
import '../models/MFAAction.js';
|
|
155
156
|
import '../models/NextViewEnum.js';
|
|
156
157
|
import '../models/OauthResultStatus.js';
|
|
@@ -482,6 +483,37 @@ class ServerApi extends BaseAPI {
|
|
|
482
483
|
const response = await this.initiateFlowFeeClaimServerRaw(requestParameters, initOverrides);
|
|
483
484
|
return await response.value();
|
|
484
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* Brings an existing wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account and registers the caller as an owner member + signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
488
|
+
* Server — add an existing wallet to a business account
|
|
489
|
+
*/
|
|
490
|
+
async linkBusinessAccountWalletServerRaw(requestParameters, initOverrides) {
|
|
491
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
492
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling linkBusinessAccountWalletServer.');
|
|
493
|
+
}
|
|
494
|
+
if (requestParameters.linkBusinessAccountWalletSdkRequest === null || requestParameters.linkBusinessAccountWalletSdkRequest === undefined) {
|
|
495
|
+
throw new RequiredError('linkBusinessAccountWalletSdkRequest', 'Required parameter requestParameters.linkBusinessAccountWalletSdkRequest was null or undefined when calling linkBusinessAccountWalletServer.');
|
|
496
|
+
}
|
|
497
|
+
const queryParameters = {};
|
|
498
|
+
const headerParameters = {};
|
|
499
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
500
|
+
const response = await this.request({
|
|
501
|
+
path: `/server/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
502
|
+
method: 'POST',
|
|
503
|
+
headers: headerParameters,
|
|
504
|
+
query: queryParameters,
|
|
505
|
+
body: LinkBusinessAccountWalletSdkRequestToJSON(requestParameters.linkBusinessAccountWalletSdkRequest),
|
|
506
|
+
}, initOverrides);
|
|
507
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Brings an existing wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account and registers the caller as an owner member + signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
511
|
+
* Server — add an existing wallet to a business account
|
|
512
|
+
*/
|
|
513
|
+
async linkBusinessAccountWalletServer(requestParameters, initOverrides) {
|
|
514
|
+
const response = await this.linkBusinessAccountWalletServerRaw(requestParameters, initOverrides);
|
|
515
|
+
return await response.value();
|
|
516
|
+
}
|
|
485
517
|
/**
|
|
486
518
|
* Server — list business accounts the caller is a member of
|
|
487
519
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -156,6 +156,7 @@ var BusinessAccountGovernanceResponse = require('./models/BusinessAccountGoverna
|
|
|
156
156
|
var BusinessAccountGovernedAction = require('./models/BusinessAccountGovernedAction.cjs');
|
|
157
157
|
var BusinessAccountList = require('./models/BusinessAccountList.cjs');
|
|
158
158
|
var BusinessAccountMember = require('./models/BusinessAccountMember.cjs');
|
|
159
|
+
var BusinessAccountMemberCustomRole = require('./models/BusinessAccountMemberCustomRole.cjs');
|
|
159
160
|
var BusinessAccountMemberRole = require('./models/BusinessAccountMemberRole.cjs');
|
|
160
161
|
var BusinessAccountMutationVersion = require('./models/BusinessAccountMutationVersion.cjs');
|
|
161
162
|
var BusinessAccountProperties = require('./models/BusinessAccountProperties.cjs');
|
|
@@ -306,6 +307,7 @@ var EmbeddedWalletSecretWithUpdatedJwt = require('./models/EmbeddedWalletSecretW
|
|
|
306
307
|
var EmbeddedWalletSecretWithUpdatedJwtAllOf = require('./models/EmbeddedWalletSecretWithUpdatedJwtAllOf.cjs');
|
|
307
308
|
var EmbeddedWalletSecurityMethod = require('./models/EmbeddedWalletSecurityMethod.cjs');
|
|
308
309
|
var EmbeddedWalletVersionEnum = require('./models/EmbeddedWalletVersionEnum.cjs');
|
|
310
|
+
var EncryptedWalletApiKey = require('./models/EncryptedWalletApiKey.cjs');
|
|
309
311
|
var EnvironmentEnum = require('./models/EnvironmentEnum.cjs');
|
|
310
312
|
var EnvironmentVisitorsResponse = require('./models/EnvironmentVisitorsResponse.cjs');
|
|
311
313
|
var EnvironmentVisitorsResponseUsers = require('./models/EnvironmentVisitorsResponseUsers.cjs');
|
|
@@ -1498,6 +1500,9 @@ exports.BusinessAccountListToJSON = BusinessAccountList.BusinessAccountListToJSO
|
|
|
1498
1500
|
exports.BusinessAccountMemberFromJSON = BusinessAccountMember.BusinessAccountMemberFromJSON;
|
|
1499
1501
|
exports.BusinessAccountMemberFromJSONTyped = BusinessAccountMember.BusinessAccountMemberFromJSONTyped;
|
|
1500
1502
|
exports.BusinessAccountMemberToJSON = BusinessAccountMember.BusinessAccountMemberToJSON;
|
|
1503
|
+
exports.BusinessAccountMemberCustomRoleFromJSON = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSON;
|
|
1504
|
+
exports.BusinessAccountMemberCustomRoleFromJSONTyped = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSONTyped;
|
|
1505
|
+
exports.BusinessAccountMemberCustomRoleToJSON = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleToJSON;
|
|
1501
1506
|
Object.defineProperty(exports, 'BusinessAccountMemberRole', {
|
|
1502
1507
|
enumerable: true,
|
|
1503
1508
|
get: function () { return BusinessAccountMemberRole.BusinessAccountMemberRole; }
|
|
@@ -2092,6 +2097,9 @@ Object.defineProperty(exports, 'EmbeddedWalletVersionEnum', {
|
|
|
2092
2097
|
exports.EmbeddedWalletVersionEnumFromJSON = EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumFromJSON;
|
|
2093
2098
|
exports.EmbeddedWalletVersionEnumFromJSONTyped = EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumFromJSONTyped;
|
|
2094
2099
|
exports.EmbeddedWalletVersionEnumToJSON = EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumToJSON;
|
|
2100
|
+
exports.EncryptedWalletApiKeyFromJSON = EncryptedWalletApiKey.EncryptedWalletApiKeyFromJSON;
|
|
2101
|
+
exports.EncryptedWalletApiKeyFromJSONTyped = EncryptedWalletApiKey.EncryptedWalletApiKeyFromJSONTyped;
|
|
2102
|
+
exports.EncryptedWalletApiKeyToJSON = EncryptedWalletApiKey.EncryptedWalletApiKeyToJSON;
|
|
2095
2103
|
Object.defineProperty(exports, 'EnvironmentEnum', {
|
|
2096
2104
|
enumerable: true,
|
|
2097
2105
|
get: function () { return EnvironmentEnum.EnvironmentEnum; }
|
package/src/index.js
CHANGED
|
@@ -152,6 +152,7 @@ export { BusinessAccountGovernanceResponseFromJSON, BusinessAccountGovernanceRes
|
|
|
152
152
|
export { BusinessAccountGovernedAction, BusinessAccountGovernedActionFromJSON, BusinessAccountGovernedActionFromJSONTyped, BusinessAccountGovernedActionToJSON } from './models/BusinessAccountGovernedAction.js';
|
|
153
153
|
export { BusinessAccountListFromJSON, BusinessAccountListFromJSONTyped, BusinessAccountListToJSON } from './models/BusinessAccountList.js';
|
|
154
154
|
export { BusinessAccountMemberFromJSON, BusinessAccountMemberFromJSONTyped, BusinessAccountMemberToJSON } from './models/BusinessAccountMember.js';
|
|
155
|
+
export { BusinessAccountMemberCustomRoleFromJSON, BusinessAccountMemberCustomRoleFromJSONTyped, BusinessAccountMemberCustomRoleToJSON } from './models/BusinessAccountMemberCustomRole.js';
|
|
155
156
|
export { BusinessAccountMemberRole, BusinessAccountMemberRoleFromJSON, BusinessAccountMemberRoleFromJSONTyped, BusinessAccountMemberRoleToJSON } from './models/BusinessAccountMemberRole.js';
|
|
156
157
|
export { BusinessAccountMutationVersionFromJSON, BusinessAccountMutationVersionFromJSONTyped, BusinessAccountMutationVersionToJSON } from './models/BusinessAccountMutationVersion.js';
|
|
157
158
|
export { BusinessAccountPropertiesFromJSON, BusinessAccountPropertiesFromJSONTyped, BusinessAccountPropertiesToJSON } from './models/BusinessAccountProperties.js';
|
|
@@ -302,6 +303,7 @@ export { EmbeddedWalletSecretWithUpdatedJwtFromJSON, EmbeddedWalletSecretWithUpd
|
|
|
302
303
|
export { EmbeddedWalletSecretWithUpdatedJwtAllOfFromJSON, EmbeddedWalletSecretWithUpdatedJwtAllOfFromJSONTyped, EmbeddedWalletSecretWithUpdatedJwtAllOfToJSON } from './models/EmbeddedWalletSecretWithUpdatedJwtAllOf.js';
|
|
303
304
|
export { EmbeddedWalletSecurityMethod, EmbeddedWalletSecurityMethodFromJSON, EmbeddedWalletSecurityMethodFromJSONTyped, EmbeddedWalletSecurityMethodToJSON } from './models/EmbeddedWalletSecurityMethod.js';
|
|
304
305
|
export { EmbeddedWalletVersionEnum, EmbeddedWalletVersionEnumFromJSON, EmbeddedWalletVersionEnumFromJSONTyped, EmbeddedWalletVersionEnumToJSON } from './models/EmbeddedWalletVersionEnum.js';
|
|
306
|
+
export { EncryptedWalletApiKeyFromJSON, EncryptedWalletApiKeyFromJSONTyped, EncryptedWalletApiKeyToJSON } from './models/EncryptedWalletApiKey.js';
|
|
305
307
|
export { EnvironmentEnum, EnvironmentEnumFromJSON, EnvironmentEnumFromJSONTyped, EnvironmentEnumToJSON } from './models/EnvironmentEnum.js';
|
|
306
308
|
export { EnvironmentVisitorsResponseFromJSON, EnvironmentVisitorsResponseFromJSONTyped, EnvironmentVisitorsResponseToJSON } from './models/EnvironmentVisitorsResponse.js';
|
|
307
309
|
export { EnvironmentVisitorsResponseUsersFromJSON, EnvironmentVisitorsResponseUsersFromJSONTyped, EnvironmentVisitorsResponseUsersToJSON } from './models/EnvironmentVisitorsResponseUsers.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccountMemberCustomRole = require('./BusinessAccountMemberCustomRole.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function BusinessAccountMemberFromJSON(json) {
|
|
@@ -18,6 +19,7 @@ function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'userId': json['userId'],
|
|
19
20
|
'email': !runtime.exists(json, 'email') ? undefined : json['email'],
|
|
20
21
|
'role': json['role'],
|
|
22
|
+
'customRole': !runtime.exists(json, 'customRole') ? undefined : BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSON(json['customRole']),
|
|
21
23
|
'addedByUserId': !runtime.exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
|
|
22
24
|
'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
23
25
|
};
|
|
@@ -35,6 +37,7 @@ function BusinessAccountMemberToJSON(value) {
|
|
|
35
37
|
'userId': value.userId,
|
|
36
38
|
'email': value.email,
|
|
37
39
|
'role': value.role,
|
|
40
|
+
'customRole': BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleToJSON(value.customRole),
|
|
38
41
|
'addedByUserId': value.addedByUserId,
|
|
39
42
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
40
43
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { BusinessAccountMemberCustomRole } from './BusinessAccountMemberCustomRole';
|
|
12
13
|
/**
|
|
13
14
|
* Admin-reach membership in a business account
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface BusinessAccountMember {
|
|
|
45
46
|
* @memberof BusinessAccountMember
|
|
46
47
|
*/
|
|
47
48
|
role: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {BusinessAccountMemberCustomRole}
|
|
52
|
+
* @memberof BusinessAccountMember
|
|
53
|
+
*/
|
|
54
|
+
customRole?: BusinessAccountMemberCustomRole | null;
|
|
48
55
|
/**
|
|
49
56
|
*
|
|
50
57
|
* @type {string}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountMemberCustomRoleFromJSON, BusinessAccountMemberCustomRoleToJSON } from './BusinessAccountMemberCustomRole.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function BusinessAccountMemberFromJSON(json) {
|
|
@@ -14,6 +15,7 @@ function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
'userId': json['userId'],
|
|
15
16
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
16
17
|
'role': json['role'],
|
|
18
|
+
'customRole': !exists(json, 'customRole') ? undefined : BusinessAccountMemberCustomRoleFromJSON(json['customRole']),
|
|
17
19
|
'addedByUserId': !exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
|
|
18
20
|
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
19
21
|
};
|
|
@@ -31,6 +33,7 @@ function BusinessAccountMemberToJSON(value) {
|
|
|
31
33
|
'userId': value.userId,
|
|
32
34
|
'email': value.email,
|
|
33
35
|
'role': value.role,
|
|
36
|
+
'customRole': BusinessAccountMemberCustomRoleToJSON(value.customRole),
|
|
34
37
|
'addedByUserId': value.addedByUserId,
|
|
35
38
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
36
39
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function BusinessAccountMemberCustomRoleFromJSON(json) {
|
|
19
|
+
return BusinessAccountMemberCustomRoleFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountMemberCustomRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'name': json['name'],
|
|
27
|
+
'inherits': json['inherits'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function BusinessAccountMemberCustomRoleToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': value.name,
|
|
39
|
+
'inherits': value.inherits,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.BusinessAccountMemberCustomRoleFromJSON = BusinessAccountMemberCustomRoleFromJSON;
|
|
44
|
+
exports.BusinessAccountMemberCustomRoleFromJSONTyped = BusinessAccountMemberCustomRoleFromJSONTyped;
|
|
45
|
+
exports.BusinessAccountMemberCustomRoleToJSON = BusinessAccountMemberCustomRoleToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* The member's actual customer-defined role, when role names one; null for a built-in role
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BusinessAccountMemberCustomRole
|
|
16
|
+
*/
|
|
17
|
+
export interface BusinessAccountMemberCustomRole {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BusinessAccountMemberCustomRole
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The role a member actually holds: a built-in (`owner`, `admin`, `viewer`) or a customer-defined role the account has defined. Wider than AssignableBusinessAccountRoleName because a held role can be `owner`, which cannot be assigned directly.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BusinessAccountMemberCustomRole
|
|
28
|
+
*/
|
|
29
|
+
inherits: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function BusinessAccountMemberCustomRoleFromJSON(json: any): BusinessAccountMemberCustomRole;
|
|
32
|
+
export declare function BusinessAccountMemberCustomRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountMemberCustomRole;
|
|
33
|
+
export declare function BusinessAccountMemberCustomRoleToJSON(value?: BusinessAccountMemberCustomRole | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function BusinessAccountMemberCustomRoleFromJSON(json) {
|
|
15
|
+
return BusinessAccountMemberCustomRoleFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function BusinessAccountMemberCustomRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'name': json['name'],
|
|
23
|
+
'inherits': json['inherits'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function BusinessAccountMemberCustomRoleToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': value.name,
|
|
35
|
+
'inherits': value.inherits,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { BusinessAccountMemberCustomRoleFromJSON, BusinessAccountMemberCustomRoleFromJSONTyped, BusinessAccountMemberCustomRoleToJSON };
|
|
@@ -22,6 +22,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
'skipLock': !runtime.exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
23
23
|
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
24
24
|
'businessAccountId': !runtime.exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
|
|
25
|
+
'delegateToProjectEnvironment': !runtime.exists(json, 'delegateToProjectEnvironment') ? undefined : json['delegateToProjectEnvironment'],
|
|
25
26
|
'variant': !runtime.exists(json, 'variant') ? undefined : Ed25519Variant.Ed25519VariantFromJSON(json['variant']),
|
|
26
27
|
};
|
|
27
28
|
}
|
|
@@ -39,6 +40,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
39
40
|
'skipLock': value.skipLock,
|
|
40
41
|
'addressType': value.addressType,
|
|
41
42
|
'businessAccountId': value.businessAccountId,
|
|
43
|
+
'delegateToProjectEnvironment': value.delegateToProjectEnvironment,
|
|
42
44
|
'variant': Ed25519Variant.Ed25519VariantToJSON(value.variant),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
@@ -54,6 +54,12 @@ export interface CreateWaasAccountRequest {
|
|
|
54
54
|
* @memberof CreateWaasAccountRequest
|
|
55
55
|
*/
|
|
56
56
|
businessAccountId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* When true, the enclave also mints a walletApiKey for the new wallet and returns it as `encryptedWalletApiKey`, sealed to the environment's delegated-access RSA key. Off by default: a wallet whose EAC carries no walletApiKey cannot be used on the delegated sign route at all, and that stays true unless the creator asks otherwise. 422s when the environment has no active delegated-access encryption key, rather than creating a wallet the caller cannot delegate against.
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof CreateWaasAccountRequest
|
|
61
|
+
*/
|
|
62
|
+
delegateToProjectEnvironment?: boolean;
|
|
57
63
|
/**
|
|
58
64
|
*
|
|
59
65
|
* @type {Ed25519Variant}
|
|
@@ -18,6 +18,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'skipLock': !exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
19
19
|
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
20
20
|
'businessAccountId': !exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
|
|
21
|
+
'delegateToProjectEnvironment': !exists(json, 'delegateToProjectEnvironment') ? undefined : json['delegateToProjectEnvironment'],
|
|
21
22
|
'variant': !exists(json, 'variant') ? undefined : Ed25519VariantFromJSON(json['variant']),
|
|
22
23
|
};
|
|
23
24
|
}
|
|
@@ -35,6 +36,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
35
36
|
'skipLock': value.skipLock,
|
|
36
37
|
'addressType': value.addressType,
|
|
37
38
|
'businessAccountId': value.businessAccountId,
|
|
39
|
+
'delegateToProjectEnvironment': value.delegateToProjectEnvironment,
|
|
38
40
|
'variant': Ed25519VariantToJSON(value.variant),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function EncryptedWalletApiKeyFromJSON(json) {
|
|
9
|
+
return EncryptedWalletApiKeyFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function EncryptedWalletApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'alg': json['alg'],
|
|
17
|
+
'iv': json['iv'],
|
|
18
|
+
'ct': json['ct'],
|
|
19
|
+
'tag': json['tag'],
|
|
20
|
+
'ek': json['ek'],
|
|
21
|
+
'kid': !runtime.exists(json, 'kid') ? undefined : json['kid'],
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function EncryptedWalletApiKeyToJSON(value) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'alg': value.alg,
|
|
33
|
+
'iv': value.iv,
|
|
34
|
+
'ct': value.ct,
|
|
35
|
+
'tag': value.tag,
|
|
36
|
+
'ek': value.ek,
|
|
37
|
+
'kid': value.kid,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.EncryptedWalletApiKeyFromJSON = EncryptedWalletApiKeyFromJSON;
|
|
42
|
+
exports.EncryptedWalletApiKeyFromJSONTyped = EncryptedWalletApiKeyFromJSONTyped;
|
|
43
|
+
exports.EncryptedWalletApiKeyToJSON = EncryptedWalletApiKeyToJSON;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* A payload sealed by the enclave to the environment's delegated-access RSA public key (HYBRID-RSA-AES-256). Only the developer's private key opens it; redcoast stores and relays it without ever resolving the contents. Structurally identical to DelegatedShareDeliveryRequest's inline `encryptedDelegatedShare` below — the two should be merged into this one the next time the generated `DelegatedShareDeliveryRequestEncryptedDelegatedShare` type can be renamed across its call sites.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EncryptedWalletApiKey
|
|
16
|
+
*/
|
|
17
|
+
export interface EncryptedWalletApiKey {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EncryptedWalletApiKey
|
|
22
|
+
*/
|
|
23
|
+
alg: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EncryptedWalletApiKey
|
|
28
|
+
*/
|
|
29
|
+
iv: string;
|
|
30
|
+
/**
|
|
31
|
+
* A string with a max length of 4096 characters
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EncryptedWalletApiKey
|
|
34
|
+
*/
|
|
35
|
+
ct: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EncryptedWalletApiKey
|
|
40
|
+
*/
|
|
41
|
+
tag: string;
|
|
42
|
+
/**
|
|
43
|
+
* A string with a max length of 4096 characters
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EncryptedWalletApiKey
|
|
46
|
+
*/
|
|
47
|
+
ek: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EncryptedWalletApiKey
|
|
52
|
+
*/
|
|
53
|
+
kid?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function EncryptedWalletApiKeyFromJSON(json: any): EncryptedWalletApiKey;
|
|
56
|
+
export declare function EncryptedWalletApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptedWalletApiKey;
|
|
57
|
+
export declare function EncryptedWalletApiKeyToJSON(value?: EncryptedWalletApiKey | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function EncryptedWalletApiKeyFromJSON(json) {
|
|
5
|
+
return EncryptedWalletApiKeyFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function EncryptedWalletApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'alg': json['alg'],
|
|
13
|
+
'iv': json['iv'],
|
|
14
|
+
'ct': json['ct'],
|
|
15
|
+
'tag': json['tag'],
|
|
16
|
+
'ek': json['ek'],
|
|
17
|
+
'kid': !exists(json, 'kid') ? undefined : json['kid'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function EncryptedWalletApiKeyToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'alg': value.alg,
|
|
29
|
+
'iv': value.iv,
|
|
30
|
+
'ct': value.ct,
|
|
31
|
+
'tag': value.tag,
|
|
32
|
+
'ek': value.ek,
|
|
33
|
+
'kid': value.kid,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { EncryptedWalletApiKeyFromJSON, EncryptedWalletApiKeyFromJSONTyped, EncryptedWalletApiKeyToJSON };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var EncryptedWalletApiKey = require('./EncryptedWalletApiKey.cjs');
|
|
6
7
|
var WaasWalletShareSetType = require('./WaasWalletShareSetType.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
@@ -19,6 +20,7 @@ function OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json, ignoreDiscrimina
|
|
|
19
20
|
'newServerKeygenIds': !runtime.exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
20
21
|
'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
|
|
21
22
|
'accountAddress': !runtime.exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
23
|
+
'encryptedWalletApiKey': !runtime.exists(json, 'encryptedWalletApiKey') ? undefined : EncryptedWalletApiKey.EncryptedWalletApiKeyFromJSON(json['encryptedWalletApiKey']),
|
|
22
24
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
23
25
|
'shareSetType': !runtime.exists(json, 'shareSetType') ? undefined : WaasWalletShareSetType.WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
24
26
|
};
|
|
@@ -36,6 +38,7 @@ function OpenRoomResponseWithServerKeygenIdsToJSON(value) {
|
|
|
36
38
|
'newServerKeygenIds': value.newServerKeygenIds,
|
|
37
39
|
'walletId': value.walletId,
|
|
38
40
|
'accountAddress': value.accountAddress,
|
|
41
|
+
'encryptedWalletApiKey': EncryptedWalletApiKey.EncryptedWalletApiKeyToJSON(value.encryptedWalletApiKey),
|
|
39
42
|
'shareSetId': value.shareSetId,
|
|
40
43
|
'shareSetType': WaasWalletShareSetType.WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
41
44
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { EncryptedWalletApiKey } from './EncryptedWalletApiKey';
|
|
12
13
|
import { WaasWalletShareSetType } from './WaasWalletShareSetType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -46,6 +47,12 @@ export interface OpenRoomResponseWithServerKeygenIds {
|
|
|
46
47
|
* @memberof OpenRoomResponseWithServerKeygenIds
|
|
47
48
|
*/
|
|
48
49
|
accountAddress?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Present only on a create that set `delegateToProjectEnvironment`. Inherited by RefreshKeySharesResponse through this schema, where it is never set.
|
|
52
|
+
* @type {EncryptedWalletApiKey}
|
|
53
|
+
* @memberof OpenRoomResponseWithServerKeygenIds
|
|
54
|
+
*/
|
|
55
|
+
encryptedWalletApiKey?: EncryptedWalletApiKey | null;
|
|
49
56
|
/**
|
|
50
57
|
* Identifier of the new share set produced by this ceremony.
|
|
51
58
|
* @type {string}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { EncryptedWalletApiKeyFromJSON, EncryptedWalletApiKeyToJSON } from './EncryptedWalletApiKey.js';
|
|
2
3
|
import { WaasWalletShareSetTypeFromJSON, WaasWalletShareSetTypeToJSON } from './WaasWalletShareSetType.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
@@ -15,6 +16,7 @@ function OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json, ignoreDiscrimina
|
|
|
15
16
|
'newServerKeygenIds': !exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
16
17
|
'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
|
|
17
18
|
'accountAddress': !exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
19
|
+
'encryptedWalletApiKey': !exists(json, 'encryptedWalletApiKey') ? undefined : EncryptedWalletApiKeyFromJSON(json['encryptedWalletApiKey']),
|
|
18
20
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
19
21
|
'shareSetType': !exists(json, 'shareSetType') ? undefined : WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
20
22
|
};
|
|
@@ -32,6 +34,7 @@ function OpenRoomResponseWithServerKeygenIdsToJSON(value) {
|
|
|
32
34
|
'newServerKeygenIds': value.newServerKeygenIds,
|
|
33
35
|
'walletId': value.walletId,
|
|
34
36
|
'accountAddress': value.accountAddress,
|
|
37
|
+
'encryptedWalletApiKey': EncryptedWalletApiKeyToJSON(value.encryptedWalletApiKey),
|
|
35
38
|
'shareSetId': value.shareSetId,
|
|
36
39
|
'shareSetType': WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
37
40
|
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var EncryptedWalletApiKey = require('./EncryptedWalletApiKey.cjs');
|
|
6
7
|
var WaasWalletShareSetType = require('./WaasWalletShareSetType.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
@@ -15,6 +16,7 @@ function OpenRoomResponseWithServerKeygenIdsAllOfFromJSONTyped(json, ignoreDiscr
|
|
|
15
16
|
}
|
|
16
17
|
return {
|
|
17
18
|
'accountAddress': !runtime.exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
19
|
+
'encryptedWalletApiKey': !runtime.exists(json, 'encryptedWalletApiKey') ? undefined : EncryptedWalletApiKey.EncryptedWalletApiKeyFromJSON(json['encryptedWalletApiKey']),
|
|
18
20
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
19
21
|
'shareSetType': !runtime.exists(json, 'shareSetType') ? undefined : WaasWalletShareSetType.WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
20
22
|
};
|
|
@@ -28,6 +30,7 @@ function OpenRoomResponseWithServerKeygenIdsAllOfToJSON(value) {
|
|
|
28
30
|
}
|
|
29
31
|
return {
|
|
30
32
|
'accountAddress': value.accountAddress,
|
|
33
|
+
'encryptedWalletApiKey': EncryptedWalletApiKey.EncryptedWalletApiKeyToJSON(value.encryptedWalletApiKey),
|
|
31
34
|
'shareSetId': value.shareSetId,
|
|
32
35
|
'shareSetType': WaasWalletShareSetType.WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
33
36
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { EncryptedWalletApiKey } from './EncryptedWalletApiKey';
|
|
12
13
|
import { WaasWalletShareSetType } from './WaasWalletShareSetType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -22,6 +23,12 @@ export interface OpenRoomResponseWithServerKeygenIdsAllOf {
|
|
|
22
23
|
* @memberof OpenRoomResponseWithServerKeygenIdsAllOf
|
|
23
24
|
*/
|
|
24
25
|
accountAddress?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Present only on a create that set `delegateToProjectEnvironment`. Inherited by RefreshKeySharesResponse through this schema, where it is never set.
|
|
28
|
+
* @type {EncryptedWalletApiKey}
|
|
29
|
+
* @memberof OpenRoomResponseWithServerKeygenIdsAllOf
|
|
30
|
+
*/
|
|
31
|
+
encryptedWalletApiKey?: EncryptedWalletApiKey | null;
|
|
25
32
|
/**
|
|
26
33
|
* Identifier of the new share set produced by this ceremony.
|
|
27
34
|
* @type {string}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { EncryptedWalletApiKeyFromJSON, EncryptedWalletApiKeyToJSON } from './EncryptedWalletApiKey.js';
|
|
2
3
|
import { WaasWalletShareSetTypeFromJSON, WaasWalletShareSetTypeToJSON } from './WaasWalletShareSetType.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
@@ -11,6 +12,7 @@ function OpenRoomResponseWithServerKeygenIdsAllOfFromJSONTyped(json, ignoreDiscr
|
|
|
11
12
|
}
|
|
12
13
|
return {
|
|
13
14
|
'accountAddress': !exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
15
|
+
'encryptedWalletApiKey': !exists(json, 'encryptedWalletApiKey') ? undefined : EncryptedWalletApiKeyFromJSON(json['encryptedWalletApiKey']),
|
|
14
16
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
15
17
|
'shareSetType': !exists(json, 'shareSetType') ? undefined : WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
16
18
|
};
|
|
@@ -24,6 +26,7 @@ function OpenRoomResponseWithServerKeygenIdsAllOfToJSON(value) {
|
|
|
24
26
|
}
|
|
25
27
|
return {
|
|
26
28
|
'accountAddress': value.accountAddress,
|
|
29
|
+
'encryptedWalletApiKey': EncryptedWalletApiKeyToJSON(value.encryptedWalletApiKey),
|
|
27
30
|
'shareSetId': value.shareSetId,
|
|
28
31
|
'shareSetType': WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
29
32
|
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var EncryptedWalletApiKey = require('./EncryptedWalletApiKey.cjs');
|
|
6
7
|
var WaasWalletShareSetType = require('./WaasWalletShareSetType.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
@@ -19,6 +20,7 @@ function RefreshKeySharesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
'newServerKeygenIds': !runtime.exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
20
21
|
'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
|
|
21
22
|
'accountAddress': !runtime.exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
23
|
+
'encryptedWalletApiKey': !runtime.exists(json, 'encryptedWalletApiKey') ? undefined : EncryptedWalletApiKey.EncryptedWalletApiKeyFromJSON(json['encryptedWalletApiKey']),
|
|
22
24
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
23
25
|
'shareSetType': !runtime.exists(json, 'shareSetType') ? undefined : WaasWalletShareSetType.WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
24
26
|
};
|
|
@@ -36,6 +38,7 @@ function RefreshKeySharesResponseToJSON(value) {
|
|
|
36
38
|
'newServerKeygenIds': value.newServerKeygenIds,
|
|
37
39
|
'walletId': value.walletId,
|
|
38
40
|
'accountAddress': value.accountAddress,
|
|
41
|
+
'encryptedWalletApiKey': EncryptedWalletApiKey.EncryptedWalletApiKeyToJSON(value.encryptedWalletApiKey),
|
|
39
42
|
'shareSetId': value.shareSetId,
|
|
40
43
|
'shareSetType': WaasWalletShareSetType.WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
41
44
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { EncryptedWalletApiKey } from './EncryptedWalletApiKey';
|
|
12
13
|
import { WaasWalletShareSetType } from './WaasWalletShareSetType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -46,6 +47,12 @@ export interface RefreshKeySharesResponse {
|
|
|
46
47
|
* @memberof RefreshKeySharesResponse
|
|
47
48
|
*/
|
|
48
49
|
accountAddress?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Present only on a create that set `delegateToProjectEnvironment`. Inherited by RefreshKeySharesResponse through this schema, where it is never set.
|
|
52
|
+
* @type {EncryptedWalletApiKey}
|
|
53
|
+
* @memberof RefreshKeySharesResponse
|
|
54
|
+
*/
|
|
55
|
+
encryptedWalletApiKey?: EncryptedWalletApiKey | null;
|
|
49
56
|
/**
|
|
50
57
|
* Identifier of the new share set produced by this ceremony.
|
|
51
58
|
* @type {string}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { EncryptedWalletApiKeyFromJSON, EncryptedWalletApiKeyToJSON } from './EncryptedWalletApiKey.js';
|
|
2
3
|
import { WaasWalletShareSetTypeFromJSON, WaasWalletShareSetTypeToJSON } from './WaasWalletShareSetType.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
@@ -15,6 +16,7 @@ function RefreshKeySharesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
16
|
'newServerKeygenIds': !exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
16
17
|
'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
|
|
17
18
|
'accountAddress': !exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
19
|
+
'encryptedWalletApiKey': !exists(json, 'encryptedWalletApiKey') ? undefined : EncryptedWalletApiKeyFromJSON(json['encryptedWalletApiKey']),
|
|
18
20
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
19
21
|
'shareSetType': !exists(json, 'shareSetType') ? undefined : WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
20
22
|
};
|
|
@@ -32,6 +34,7 @@ function RefreshKeySharesResponseToJSON(value) {
|
|
|
32
34
|
'newServerKeygenIds': value.newServerKeygenIds,
|
|
33
35
|
'walletId': value.walletId,
|
|
34
36
|
'accountAddress': value.accountAddress,
|
|
37
|
+
'encryptedWalletApiKey': EncryptedWalletApiKeyToJSON(value.encryptedWalletApiKey),
|
|
35
38
|
'shareSetId': value.shareSetId,
|
|
36
39
|
'shareSetType': WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
37
40
|
};
|
package/src/models/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export * from './BusinessAccountGovernanceResponse';
|
|
|
99
99
|
export * from './BusinessAccountGovernedAction';
|
|
100
100
|
export * from './BusinessAccountList';
|
|
101
101
|
export * from './BusinessAccountMember';
|
|
102
|
+
export * from './BusinessAccountMemberCustomRole';
|
|
102
103
|
export * from './BusinessAccountMemberRole';
|
|
103
104
|
export * from './BusinessAccountMutationVersion';
|
|
104
105
|
export * from './BusinessAccountProperties';
|
|
@@ -249,6 +250,7 @@ export * from './EmbeddedWalletSecretWithUpdatedJwt';
|
|
|
249
250
|
export * from './EmbeddedWalletSecretWithUpdatedJwtAllOf';
|
|
250
251
|
export * from './EmbeddedWalletSecurityMethod';
|
|
251
252
|
export * from './EmbeddedWalletVersionEnum';
|
|
253
|
+
export * from './EncryptedWalletApiKey';
|
|
252
254
|
export * from './EnvironmentEnum';
|
|
253
255
|
export * from './EnvironmentVisitorsResponse';
|
|
254
256
|
export * from './EnvironmentVisitorsResponseUsers';
|