@dynamic-labs/sdk-api-core 0.0.1126 → 0.1.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-core",
3
- "version": "0.0.1126",
3
+ "version": "0.1.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -44,7 +44,6 @@ require('../models/KycFieldType.cjs');
44
44
  var BusinessAccount = require('../models/BusinessAccount.cjs');
45
45
  var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
46
46
  var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
47
- var BusinessAccountSigner = require('../models/BusinessAccountSigner.cjs');
48
47
  require('../models/ChainEnum.cjs');
49
48
  var BusinessAccountList = require('../models/BusinessAccountList.cjs');
50
49
  require('../models/CaptchaProviderEnum.cjs');
@@ -8733,8 +8732,8 @@ class SDKApi extends runtime.BaseAPI {
8733
8732
  return await response.value();
8734
8733
  }
8735
8734
  /**
8736
- * **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
8737
- * SDK — add a signer to a wallet in a business account (stubbed)
8735
+ * Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
8736
+ * SDK — add a signer to a wallet in a business account
8738
8737
  */
8739
8738
  async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
8740
8739
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
@@ -8766,11 +8765,11 @@ class SDKApi extends runtime.BaseAPI {
8766
8765
  query: queryParameters,
8767
8766
  body: AddBusinessAccountSignerSdkRequest.AddBusinessAccountSignerSdkRequestToJSON(requestParameters.addBusinessAccountSignerSdkRequest),
8768
8767
  }, initOverrides);
8769
- return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountSigner.BusinessAccountSignerFromJSON(jsonValue));
8768
+ return new runtime.TextApiResponse(response);
8770
8769
  }
8771
8770
  /**
8772
- * **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
8773
- * SDK — add a signer to a wallet in a business account (stubbed)
8771
+ * Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
8772
+ * SDK — add a signer to a wallet in a business account
8774
8773
  */
8775
8774
  async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
8776
8775
  const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);