@dynamic-labs/sdk-api 0.47.0 → 0.48.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -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
  */
@@ -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
  */
@@ -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
@@ -306,6 +306,7 @@ var EmbeddedWalletSecretWithUpdatedJwt = require('./models/EmbeddedWalletSecretW
306
306
  var EmbeddedWalletSecretWithUpdatedJwtAllOf = require('./models/EmbeddedWalletSecretWithUpdatedJwtAllOf.cjs');
307
307
  var EmbeddedWalletSecurityMethod = require('./models/EmbeddedWalletSecurityMethod.cjs');
308
308
  var EmbeddedWalletVersionEnum = require('./models/EmbeddedWalletVersionEnum.cjs');
309
+ var EncryptedWalletApiKey = require('./models/EncryptedWalletApiKey.cjs');
309
310
  var EnvironmentEnum = require('./models/EnvironmentEnum.cjs');
310
311
  var EnvironmentVisitorsResponse = require('./models/EnvironmentVisitorsResponse.cjs');
311
312
  var EnvironmentVisitorsResponseUsers = require('./models/EnvironmentVisitorsResponseUsers.cjs');
@@ -2092,6 +2093,9 @@ Object.defineProperty(exports, 'EmbeddedWalletVersionEnum', {
2092
2093
  exports.EmbeddedWalletVersionEnumFromJSON = EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumFromJSON;
2093
2094
  exports.EmbeddedWalletVersionEnumFromJSONTyped = EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumFromJSONTyped;
2094
2095
  exports.EmbeddedWalletVersionEnumToJSON = EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumToJSON;
2096
+ exports.EncryptedWalletApiKeyFromJSON = EncryptedWalletApiKey.EncryptedWalletApiKeyFromJSON;
2097
+ exports.EncryptedWalletApiKeyFromJSONTyped = EncryptedWalletApiKey.EncryptedWalletApiKeyFromJSONTyped;
2098
+ exports.EncryptedWalletApiKeyToJSON = EncryptedWalletApiKey.EncryptedWalletApiKeyToJSON;
2095
2099
  Object.defineProperty(exports, 'EnvironmentEnum', {
2096
2100
  enumerable: true,
2097
2101
  get: function () { return EnvironmentEnum.EnvironmentEnum; }
package/src/index.js CHANGED
@@ -302,6 +302,7 @@ export { EmbeddedWalletSecretWithUpdatedJwtFromJSON, EmbeddedWalletSecretWithUpd
302
302
  export { EmbeddedWalletSecretWithUpdatedJwtAllOfFromJSON, EmbeddedWalletSecretWithUpdatedJwtAllOfFromJSONTyped, EmbeddedWalletSecretWithUpdatedJwtAllOfToJSON } from './models/EmbeddedWalletSecretWithUpdatedJwtAllOf.js';
303
303
  export { EmbeddedWalletSecurityMethod, EmbeddedWalletSecurityMethodFromJSON, EmbeddedWalletSecurityMethodFromJSONTyped, EmbeddedWalletSecurityMethodToJSON } from './models/EmbeddedWalletSecurityMethod.js';
304
304
  export { EmbeddedWalletVersionEnum, EmbeddedWalletVersionEnumFromJSON, EmbeddedWalletVersionEnumFromJSONTyped, EmbeddedWalletVersionEnumToJSON } from './models/EmbeddedWalletVersionEnum.js';
305
+ export { EncryptedWalletApiKeyFromJSON, EncryptedWalletApiKeyFromJSONTyped, EncryptedWalletApiKeyToJSON } from './models/EncryptedWalletApiKey.js';
305
306
  export { EnvironmentEnum, EnvironmentEnumFromJSON, EnvironmentEnumFromJSONTyped, EnvironmentEnumToJSON } from './models/EnvironmentEnum.js';
306
307
  export { EnvironmentVisitorsResponseFromJSON, EnvironmentVisitorsResponseFromJSONTyped, EnvironmentVisitorsResponseToJSON } from './models/EnvironmentVisitorsResponse.js';
307
308
  export { EnvironmentVisitorsResponseUsersFromJSON, EnvironmentVisitorsResponseUsersFromJSONTyped, EnvironmentVisitorsResponseUsersToJSON } from './models/EnvironmentVisitorsResponseUsers.js';
@@ -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
  };
@@ -249,6 +249,7 @@ export * from './EmbeddedWalletSecretWithUpdatedJwt';
249
249
  export * from './EmbeddedWalletSecretWithUpdatedJwtAllOf';
250
250
  export * from './EmbeddedWalletSecurityMethod';
251
251
  export * from './EmbeddedWalletVersionEnum';
252
+ export * from './EncryptedWalletApiKey';
252
253
  export * from './EnvironmentEnum';
253
254
  export * from './EnvironmentVisitorsResponse';
254
255
  export * from './EnvironmentVisitorsResponseUsers';