@dynamic-labs/sdk-api 0.46.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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +2 -2
  3. package/src/apis/SDKApi.d.ts +2 -2
  4. package/src/apis/SDKApi.js +2 -2
  5. package/src/apis/ServerApi.cjs +32 -0
  6. package/src/apis/ServerApi.d.ts +15 -1
  7. package/src/apis/ServerApi.js +32 -0
  8. package/src/index.cjs +4 -0
  9. package/src/index.js +1 -0
  10. package/src/models/BusinessAccountApprovalsPending.cjs +3 -4
  11. package/src/models/BusinessAccountApprovalsPending.d.ts +6 -7
  12. package/src/models/BusinessAccountApprovalsPending.js +3 -4
  13. package/src/models/CreateWaasAccountRequest.cjs +2 -0
  14. package/src/models/CreateWaasAccountRequest.d.ts +6 -0
  15. package/src/models/CreateWaasAccountRequest.js +2 -0
  16. package/src/models/EncryptedWalletApiKey.cjs +43 -0
  17. package/src/models/EncryptedWalletApiKey.d.ts +57 -0
  18. package/src/models/EncryptedWalletApiKey.js +37 -0
  19. package/src/models/OpenRoomResponseWithServerKeygenIds.cjs +3 -0
  20. package/src/models/OpenRoomResponseWithServerKeygenIds.d.ts +7 -0
  21. package/src/models/OpenRoomResponseWithServerKeygenIds.js +3 -0
  22. package/src/models/OpenRoomResponseWithServerKeygenIdsAllOf.cjs +3 -0
  23. package/src/models/OpenRoomResponseWithServerKeygenIdsAllOf.d.ts +7 -0
  24. package/src/models/OpenRoomResponseWithServerKeygenIdsAllOf.js +3 -0
  25. package/src/models/RefreshKeySharesResponse.cjs +3 -0
  26. package/src/models/RefreshKeySharesResponse.d.ts +7 -0
  27. package/src/models/RefreshKeySharesResponse.js +3 -0
  28. package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
  29. package/src/models/UnprocessableEntityErrorCode.d.ts +1 -0
  30. package/src/models/UnprocessableEntityErrorCode.js +1 -0
  31. package/src/models/UnprocessableEntityErrorPayload.cjs +2 -0
  32. package/src/models/UnprocessableEntityErrorPayload.d.ts +9 -0
  33. package/src/models/UnprocessableEntityErrorPayload.js +2 -0
  34. package/src/models/index.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.46.0",
3
+ "version": "0.48.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -8979,7 +8979,7 @@ class SDKApi extends runtime.BaseAPI {
8979
8979
  await this.screenTransactionOptionsRaw(requestParameters, initOverrides);
8980
8980
  }
8981
8981
  /**
8982
- * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
8982
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
8983
8983
  * SDK — add a member to a business account
8984
8984
  */
8985
8985
  async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
@@ -9012,7 +9012,7 @@ class SDKApi extends runtime.BaseAPI {
9012
9012
  return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMember.BusinessAccountMemberFromJSON(jsonValue));
9013
9013
  }
9014
9014
  /**
9015
- * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
9015
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
9016
9016
  * SDK — add a member to a business account
9017
9017
  */
9018
9018
  async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
@@ -4228,12 +4228,12 @@ export declare class SDKApi extends runtime.BaseAPI {
4228
4228
  */
4229
4229
  screenTransactionOptions(requestParameters: ScreenTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4230
4230
  /**
4231
- * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
4231
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
4232
4232
  * SDK — add a member to a business account
4233
4233
  */
4234
4234
  sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMember>>;
4235
4235
  /**
4236
- * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
4236
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
4237
4237
  * SDK — add a member to a business account
4238
4238
  */
4239
4239
  sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
@@ -8975,7 +8975,7 @@ class SDKApi extends BaseAPI {
8975
8975
  await this.screenTransactionOptionsRaw(requestParameters, initOverrides);
8976
8976
  }
8977
8977
  /**
8978
- * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
8978
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
8979
8979
  * SDK — add a member to a business account
8980
8980
  */
8981
8981
  async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
@@ -9008,7 +9008,7 @@ class SDKApi extends BaseAPI {
9008
9008
  return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberFromJSON(jsonValue));
9009
9009
  }
9010
9010
  /**
9011
- * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
9011
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
9012
9012
  * SDK — add a member to a business account
9013
9013
  */
9014
9014
  async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
@@ -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';
@@ -12,7 +12,6 @@ var BusinessAccountApprovalRequirementStatus = require('./BusinessAccountApprova
12
12
  */
13
13
  exports.BusinessAccountApprovalsPendingReasonEnum = void 0;
14
14
  (function (BusinessAccountApprovalsPendingReasonEnum) {
15
- BusinessAccountApprovalsPendingReasonEnum["IntentRequired"] = "INTENT_REQUIRED";
16
15
  BusinessAccountApprovalsPendingReasonEnum["ApprovalsRequired"] = "APPROVALS_REQUIRED";
17
16
  })(exports.BusinessAccountApprovalsPendingReasonEnum || (exports.BusinessAccountApprovalsPendingReasonEnum = {}));
18
17
  function BusinessAccountApprovalsPendingFromJSON(json) {
@@ -26,8 +25,8 @@ function BusinessAccountApprovalsPendingFromJSONTyped(json, ignoreDiscriminator)
26
25
  'reason': json['reason'],
27
26
  'intent': json['intent'],
28
27
  'message': !runtime.exists(json, 'message') ? undefined : json['message'],
29
- 'proposalId': !runtime.exists(json, 'proposalId') ? undefined : json['proposalId'],
30
- 'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusFromJSON)),
28
+ 'proposalId': json['proposalId'],
29
+ 'approvalRequirements': (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusFromJSON)),
31
30
  };
32
31
  }
33
32
  function BusinessAccountApprovalsPendingToJSON(value) {
@@ -42,7 +41,7 @@ function BusinessAccountApprovalsPendingToJSON(value) {
42
41
  'intent': value.intent,
43
42
  'message': value.message,
44
43
  'proposalId': value.proposalId,
45
- 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusToJSON)),
44
+ 'approvalRequirements': (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatus.BusinessAccountApprovalRequirementStatusToJSON)),
46
45
  };
47
46
  }
48
47
 
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import { BusinessAccountApprovalRequirementStatus } from './BusinessAccountApprovalRequirementStatus';
13
13
  /**
14
- * The action is governed and has not been authorized yet. Not a refusal: the caller may perform it, they have simply not collected the consent it requires. `INTENT_REQUIRED` means nothing is signed yet — sign `intent` and resend. `APPROVALS_REQUIRED` means the intent is signed and recorded as `proposalId`, and `approvalRequirements` says what each rule still needs.
15
- * One schema for both, rather than a oneOf, so a generated client has a single type to read `reason` off.
14
+ * The action is governed, signed, and short of quorum — not a refusal: the caller may perform it, they have simply not collected every approval it requires. `proposalId` is the proposal collecting approvals, and `approvalRequirements` says what each rule still needs.
15
+ * A missing signed intent is a different case entirely and is reported as `422 intent_required` (see `UnprocessableEntity`), not this response — the caller made a mistake (nothing to sign yet was supplied) rather than something outstanding.
16
16
  * @export
17
17
  * @interface BusinessAccountApprovalsPending
18
18
  */
@@ -39,24 +39,23 @@ export interface BusinessAccountApprovalsPending {
39
39
  */
40
40
  message?: string;
41
41
  /**
42
- * The proposal collecting approvals. Absent for `INTENT_REQUIRED` — an unsigned intent is not evidence, so no proposal is opened for one.
42
+ * The proposal collecting approvals.
43
43
  * @type {string}
44
44
  * @memberof BusinessAccountApprovalsPending
45
45
  */
46
- proposalId?: string;
46
+ proposalId: string;
47
47
  /**
48
- * Set for `APPROVALS_REQUIRED`. Every matching requirement, met or not, so a client can render progress per rule.
48
+ * Every matching requirement, met or not, so a client can render progress per rule.
49
49
  * @type {Array<BusinessAccountApprovalRequirementStatus>}
50
50
  * @memberof BusinessAccountApprovalsPending
51
51
  */
52
- approvalRequirements?: Array<BusinessAccountApprovalRequirementStatus>;
52
+ approvalRequirements: Array<BusinessAccountApprovalRequirementStatus>;
53
53
  }
54
54
  /**
55
55
  * @export
56
56
  * @enum {string}
57
57
  */
58
58
  export declare enum BusinessAccountApprovalsPendingReasonEnum {
59
- IntentRequired = "INTENT_REQUIRED",
60
59
  ApprovalsRequired = "APPROVALS_REQUIRED"
61
60
  }
62
61
  export declare function BusinessAccountApprovalsPendingFromJSON(json: any): BusinessAccountApprovalsPending;
@@ -8,7 +8,6 @@ import { BusinessAccountApprovalRequirementStatusFromJSON, BusinessAccountApprov
8
8
  */
9
9
  var BusinessAccountApprovalsPendingReasonEnum;
10
10
  (function (BusinessAccountApprovalsPendingReasonEnum) {
11
- BusinessAccountApprovalsPendingReasonEnum["IntentRequired"] = "INTENT_REQUIRED";
12
11
  BusinessAccountApprovalsPendingReasonEnum["ApprovalsRequired"] = "APPROVALS_REQUIRED";
13
12
  })(BusinessAccountApprovalsPendingReasonEnum || (BusinessAccountApprovalsPendingReasonEnum = {}));
14
13
  function BusinessAccountApprovalsPendingFromJSON(json) {
@@ -22,8 +21,8 @@ function BusinessAccountApprovalsPendingFromJSONTyped(json, ignoreDiscriminator)
22
21
  'reason': json['reason'],
23
22
  'intent': json['intent'],
24
23
  'message': !exists(json, 'message') ? undefined : json['message'],
25
- 'proposalId': !exists(json, 'proposalId') ? undefined : json['proposalId'],
26
- 'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatusFromJSON)),
24
+ 'proposalId': json['proposalId'],
25
+ 'approvalRequirements': (json['approvalRequirements'].map(BusinessAccountApprovalRequirementStatusFromJSON)),
27
26
  };
28
27
  }
29
28
  function BusinessAccountApprovalsPendingToJSON(value) {
@@ -38,7 +37,7 @@ function BusinessAccountApprovalsPendingToJSON(value) {
38
37
  'intent': value.intent,
39
38
  'message': value.message,
40
39
  'proposalId': value.proposalId,
41
- 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatusToJSON)),
40
+ 'approvalRequirements': (value.approvalRequirements.map(BusinessAccountApprovalRequirementStatusToJSON)),
42
41
  };
43
42
  }
44
43
 
@@ -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
  };
@@ -30,6 +30,7 @@ exports.UnprocessableEntityErrorCode = void 0;
30
30
  UnprocessableEntityErrorCode["UnknownTransferError"] = "unknown_transfer_error";
31
31
  UnprocessableEntityErrorCode["TransferMfaRequired"] = "transfer_mfa_required";
32
32
  UnprocessableEntityErrorCode["TransferMfaFailed"] = "transfer_mfa_failed";
33
+ UnprocessableEntityErrorCode["IntentRequired"] = "intent_required";
33
34
  UnprocessableEntityErrorCode["InvalidTransferFunds"] = "invalid_transfer_funds";
34
35
  UnprocessableEntityErrorCode["InvalidTransferCurrency"] = "invalid_transfer_currency";
35
36
  UnprocessableEntityErrorCode["InvalidExchangeProvider"] = "invalid_exchange_provider";
@@ -23,6 +23,7 @@ export declare enum UnprocessableEntityErrorCode {
23
23
  UnknownTransferError = "unknown_transfer_error",
24
24
  TransferMfaRequired = "transfer_mfa_required",
25
25
  TransferMfaFailed = "transfer_mfa_failed",
26
+ IntentRequired = "intent_required",
26
27
  InvalidTransferFunds = "invalid_transfer_funds",
27
28
  InvalidTransferCurrency = "invalid_transfer_currency",
28
29
  InvalidExchangeProvider = "invalid_exchange_provider",
@@ -26,6 +26,7 @@ var UnprocessableEntityErrorCode;
26
26
  UnprocessableEntityErrorCode["UnknownTransferError"] = "unknown_transfer_error";
27
27
  UnprocessableEntityErrorCode["TransferMfaRequired"] = "transfer_mfa_required";
28
28
  UnprocessableEntityErrorCode["TransferMfaFailed"] = "transfer_mfa_failed";
29
+ UnprocessableEntityErrorCode["IntentRequired"] = "intent_required";
29
30
  UnprocessableEntityErrorCode["InvalidTransferFunds"] = "invalid_transfer_funds";
30
31
  UnprocessableEntityErrorCode["InvalidTransferCurrency"] = "invalid_transfer_currency";
31
32
  UnprocessableEntityErrorCode["InvalidExchangeProvider"] = "invalid_exchange_provider";
@@ -20,6 +20,7 @@ function UnprocessableEntityErrorPayloadFromJSONTyped(json, ignoreDiscriminator)
20
20
  'embeddedWalletName': !runtime.exists(json, 'embeddedWalletName') ? undefined : json['embeddedWalletName'],
21
21
  'embeddedSocialSigninProvider': !runtime.exists(json, 'embeddedSocialSigninProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['embeddedSocialSigninProvider']),
22
22
  'mergeConflicts': !runtime.exists(json, 'mergeConflicts') ? undefined : MergeConflicts.MergeConflictsFromJSON(json['mergeConflicts']),
23
+ 'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
23
24
  'additionalMessages': !runtime.exists(json, 'additionalMessages') ? undefined : json['additionalMessages'],
24
25
  };
25
26
  }
@@ -36,6 +37,7 @@ function UnprocessableEntityErrorPayloadToJSON(value) {
36
37
  'embeddedWalletName': value.embeddedWalletName,
37
38
  'embeddedSocialSigninProvider': ProviderEnum.ProviderEnumToJSON(value.embeddedSocialSigninProvider),
38
39
  'mergeConflicts': MergeConflicts.MergeConflictsToJSON(value.mergeConflicts),
40
+ 'intent': value.intent,
39
41
  'additionalMessages': value.additionalMessages,
40
42
  };
41
43
  }
@@ -47,6 +47,15 @@ export interface UnprocessableEntityErrorPayload {
47
47
  * @memberof UnprocessableEntityErrorPayload
48
48
  */
49
49
  mergeConflicts?: MergeConflicts;
50
+ /**
51
+ * The initiator's proposal, signed with their session key. Built by the API, not the client — sign these exact bytes verbatim, because re-serializing can change them and invalidate the signature.
52
+ * `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
53
+ * @type {{ [key: string]: object; }}
54
+ * @memberof UnprocessableEntityErrorPayload
55
+ */
56
+ intent?: {
57
+ [key: string]: object;
58
+ };
50
59
  /**
51
60
  * List of additional validation error messages
52
61
  * @type {Array<string>}
@@ -16,6 +16,7 @@ function UnprocessableEntityErrorPayloadFromJSONTyped(json, ignoreDiscriminator)
16
16
  'embeddedWalletName': !exists(json, 'embeddedWalletName') ? undefined : json['embeddedWalletName'],
17
17
  'embeddedSocialSigninProvider': !exists(json, 'embeddedSocialSigninProvider') ? undefined : ProviderEnumFromJSON(json['embeddedSocialSigninProvider']),
18
18
  'mergeConflicts': !exists(json, 'mergeConflicts') ? undefined : MergeConflictsFromJSON(json['mergeConflicts']),
19
+ 'intent': !exists(json, 'intent') ? undefined : json['intent'],
19
20
  'additionalMessages': !exists(json, 'additionalMessages') ? undefined : json['additionalMessages'],
20
21
  };
21
22
  }
@@ -32,6 +33,7 @@ function UnprocessableEntityErrorPayloadToJSON(value) {
32
33
  'embeddedWalletName': value.embeddedWalletName,
33
34
  'embeddedSocialSigninProvider': ProviderEnumToJSON(value.embeddedSocialSigninProvider),
34
35
  'mergeConflicts': MergeConflictsToJSON(value.mergeConflicts),
36
+ 'intent': value.intent,
35
37
  'additionalMessages': value.additionalMessages,
36
38
  };
37
39
  }
@@ -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';