@dynamic-labs/sdk-api-core 0.0.1110 → 0.0.1112

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 (85) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +68 -4
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +30 -5
  5. package/src/apis/SDKApi.js +68 -4
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/apis/WaasApi.cjs +2 -0
  8. package/src/apis/WaasApi.cjs.map +1 -1
  9. package/src/apis/WaasApi.js +2 -0
  10. package/src/apis/WaasApi.js.map +1 -1
  11. package/src/index.cjs +52 -0
  12. package/src/index.cjs.map +1 -1
  13. package/src/index.js +11 -0
  14. package/src/index.js.map +1 -1
  15. package/src/models/ScreenTransactionRequest.cjs +41 -0
  16. package/src/models/ScreenTransactionRequest.cjs.map +1 -0
  17. package/src/models/ScreenTransactionRequest.d.ts +47 -0
  18. package/src/models/ScreenTransactionRequest.js +35 -0
  19. package/src/models/ScreenTransactionRequest.js.map +1 -0
  20. package/src/models/ScreenTransactionRequestContext.cjs +49 -0
  21. package/src/models/ScreenTransactionRequestContext.cjs.map +1 -0
  22. package/src/models/ScreenTransactionRequestContext.d.ts +63 -0
  23. package/src/models/ScreenTransactionRequestContext.js +43 -0
  24. package/src/models/ScreenTransactionRequestContext.js.map +1 -0
  25. package/src/models/ScreenTransactionRequestContextBtcTransaction.cjs +37 -0
  26. package/src/models/ScreenTransactionRequestContextBtcTransaction.cjs.map +1 -0
  27. package/src/models/ScreenTransactionRequestContextBtcTransaction.d.ts +39 -0
  28. package/src/models/ScreenTransactionRequestContextBtcTransaction.js +31 -0
  29. package/src/models/ScreenTransactionRequestContextBtcTransaction.js.map +1 -0
  30. package/src/models/ScreenTransactionRequestContextEvmTransaction.cjs +33 -0
  31. package/src/models/ScreenTransactionRequestContextEvmTransaction.cjs.map +1 -0
  32. package/src/models/ScreenTransactionRequestContextEvmTransaction.d.ts +27 -0
  33. package/src/models/ScreenTransactionRequestContextEvmTransaction.js +27 -0
  34. package/src/models/ScreenTransactionRequestContextEvmTransaction.js.map +1 -0
  35. package/src/models/ScreenTransactionRequestContextStellarTransaction.cjs +43 -0
  36. package/src/models/ScreenTransactionRequestContextStellarTransaction.cjs.map +1 -0
  37. package/src/models/ScreenTransactionRequestContextStellarTransaction.d.ts +27 -0
  38. package/src/models/ScreenTransactionRequestContextStellarTransaction.js +37 -0
  39. package/src/models/ScreenTransactionRequestContextStellarTransaction.js.map +1 -0
  40. package/src/models/ScreenTransactionRequestContextSuiTransaction.cjs +43 -0
  41. package/src/models/ScreenTransactionRequestContextSuiTransaction.cjs.map +1 -0
  42. package/src/models/ScreenTransactionRequestContextSuiTransaction.d.ts +27 -0
  43. package/src/models/ScreenTransactionRequestContextSuiTransaction.js +37 -0
  44. package/src/models/ScreenTransactionRequestContextSuiTransaction.js.map +1 -0
  45. package/src/models/ScreenTransactionRequestContextSvmTransaction.cjs +43 -0
  46. package/src/models/ScreenTransactionRequestContextSvmTransaction.cjs.map +1 -0
  47. package/src/models/ScreenTransactionRequestContextSvmTransaction.d.ts +27 -0
  48. package/src/models/ScreenTransactionRequestContextSvmTransaction.js +37 -0
  49. package/src/models/ScreenTransactionRequestContextSvmTransaction.js.map +1 -0
  50. package/src/models/ScreenTransactionRequestContextTronTransaction.cjs +43 -0
  51. package/src/models/ScreenTransactionRequestContextTronTransaction.cjs.map +1 -0
  52. package/src/models/ScreenTransactionRequestContextTronTransaction.d.ts +27 -0
  53. package/src/models/ScreenTransactionRequestContextTronTransaction.js +37 -0
  54. package/src/models/ScreenTransactionRequestContextTronTransaction.js.map +1 -0
  55. package/src/models/ScreenTransactionResponse.cjs +46 -0
  56. package/src/models/ScreenTransactionResponse.cjs.map +1 -0
  57. package/src/models/ScreenTransactionResponse.d.ts +47 -0
  58. package/src/models/ScreenTransactionResponse.js +40 -0
  59. package/src/models/ScreenTransactionResponse.js.map +1 -0
  60. package/src/models/WaasPolicyLayerResponseLayerContent.cjs +3 -3
  61. package/src/models/WaasPolicyLayerResponseLayerContent.cjs.map +1 -1
  62. package/src/models/WaasPolicyLayerResponseLayerContent.d.ts +3 -3
  63. package/src/models/WaasPolicyLayerResponseLayerContent.js +3 -3
  64. package/src/models/WaasPolicyLayerResponseLayerContent.js.map +1 -1
  65. package/src/models/WaasPolicyLayerResponseRule.cjs +66 -0
  66. package/src/models/WaasPolicyLayerResponseRule.cjs.map +1 -0
  67. package/src/models/WaasPolicyLayerResponseRule.d.ts +116 -0
  68. package/src/models/WaasPolicyLayerResponseRule.js +60 -0
  69. package/src/models/WaasPolicyLayerResponseRule.js.map +1 -0
  70. package/src/models/WaasPolicyLayerRuleOperation.cjs +47 -0
  71. package/src/models/WaasPolicyLayerRuleOperation.cjs.map +1 -0
  72. package/src/models/WaasPolicyLayerRuleOperation.d.ts +48 -0
  73. package/src/models/WaasPolicyLayerRuleOperation.js +41 -0
  74. package/src/models/WaasPolicyLayerRuleOperation.js.map +1 -0
  75. package/src/models/WaasPolicyLayerUpdateRequest.cjs +4 -0
  76. package/src/models/WaasPolicyLayerUpdateRequest.cjs.map +1 -1
  77. package/src/models/WaasPolicyLayerUpdateRequest.d.ts +10 -2
  78. package/src/models/WaasPolicyLayerUpdateRequest.js +4 -0
  79. package/src/models/WaasPolicyLayerUpdateRequest.js.map +1 -1
  80. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +4 -0
  81. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs.map +1 -1
  82. package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +10 -2
  83. package/src/models/WaasSignerPolicyLayerUpdateRequest.js +4 -0
  84. package/src/models/WaasSignerPolicyLayerUpdateRequest.js.map +1 -1
  85. package/src/models/index.d.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.1110",
3
+ "version": "0.0.1112",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -228,6 +228,8 @@ var ReshareRequest = require('../models/ReshareRequest.cjs');
228
228
  require('../models/RoomTypeEnum.cjs');
229
229
  var ScanWebsiteUrlRequest = require('../models/ScanWebsiteUrlRequest.cjs');
230
230
  var ScanWebsiteUrlResponse = require('../models/ScanWebsiteUrlResponse.cjs');
231
+ var ScreenTransactionRequest = require('../models/ScreenTransactionRequest.cjs');
232
+ var ScreenTransactionResponse = require('../models/ScreenTransactionResponse.cjs');
231
233
  require('../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.cjs');
232
234
  var SdkSettingsRequest = require('../models/SdkSettingsRequest.cjs');
233
235
  var SignAleoRequestWithWaasRequest = require('../models/SignAleoRequestWithWaasRequest.cjs');
@@ -288,6 +290,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
288
290
  require('../models/WaasPolicyConstraintCondition.cjs');
289
291
  var WaasPolicyLayerResponse = require('../models/WaasPolicyLayerResponse.cjs');
290
292
  require('../models/WaasPolicyRuleType.cjs');
293
+ require('../models/WaasPolicyLayerRuleOperation.cjs');
291
294
  var WaasPolicyLayerUpdateRequest = require('../models/WaasPolicyLayerUpdateRequest.cjs');
292
295
  var WaasSignerPolicyLayerUpdateRequest = require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
293
296
  require('../models/WaasTransactionBroadcastSubmissionState.cjs');
@@ -8491,6 +8494,67 @@ class SDKApi extends runtime.BaseAPI {
8491
8494
  async scanUrlOptions(requestParameters, initOverrides) {
8492
8495
  await this.scanUrlOptionsRaw(requestParameters, initOverrides);
8493
8496
  }
8497
+ /**
8498
+ * Screens a transaction payload for sanctioned addresses before signing.
8499
+ * Screen a transaction payload for sanctioned addresses
8500
+ */
8501
+ async screenTransactionRaw(requestParameters, initOverrides) {
8502
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8503
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling screenTransaction.');
8504
+ }
8505
+ if (requestParameters.screenTransactionRequest === null || requestParameters.screenTransactionRequest === undefined) {
8506
+ throw new runtime.RequiredError('screenTransactionRequest', 'Required parameter requestParameters.screenTransactionRequest was null or undefined when calling screenTransaction.');
8507
+ }
8508
+ const queryParameters = {};
8509
+ const headerParameters = {};
8510
+ headerParameters['Content-Type'] = 'application/json';
8511
+ if (this.configuration && this.configuration.accessToken) {
8512
+ const token = this.configuration.accessToken;
8513
+ const tokenString = await token("bearerAuth", []);
8514
+ if (tokenString) {
8515
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8516
+ }
8517
+ }
8518
+ const response = await this.request({
8519
+ path: `/sdk/{environmentId}/wallet/screenTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8520
+ method: 'POST',
8521
+ headers: headerParameters,
8522
+ query: queryParameters,
8523
+ body: ScreenTransactionRequest.ScreenTransactionRequestToJSON(requestParameters.screenTransactionRequest),
8524
+ }, initOverrides);
8525
+ return new runtime.JSONApiResponse(response, (jsonValue) => ScreenTransactionResponse.ScreenTransactionResponseFromJSON(jsonValue));
8526
+ }
8527
+ /**
8528
+ * Screens a transaction payload for sanctioned addresses before signing.
8529
+ * Screen a transaction payload for sanctioned addresses
8530
+ */
8531
+ async screenTransaction(requestParameters, initOverrides) {
8532
+ const response = await this.screenTransactionRaw(requestParameters, initOverrides);
8533
+ return await response.value();
8534
+ }
8535
+ /**
8536
+ * Options call for this endpoint
8537
+ */
8538
+ async screenTransactionOptionsRaw(requestParameters, initOverrides) {
8539
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8540
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling screenTransactionOptions.');
8541
+ }
8542
+ const queryParameters = {};
8543
+ const headerParameters = {};
8544
+ const response = await this.request({
8545
+ path: `/sdk/{environmentId}/wallet/screenTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8546
+ method: 'OPTIONS',
8547
+ headers: headerParameters,
8548
+ query: queryParameters,
8549
+ }, initOverrides);
8550
+ return new runtime.VoidApiResponse(response);
8551
+ }
8552
+ /**
8553
+ * Options call for this endpoint
8554
+ */
8555
+ async screenTransactionOptions(requestParameters, initOverrides) {
8556
+ await this.screenTransactionOptionsRaw(requestParameters, initOverrides);
8557
+ }
8494
8558
  /**
8495
8559
  * Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
8496
8560
  * SDK — add a member to a business account
@@ -10626,7 +10690,7 @@ class SDKApi extends runtime.BaseAPI {
10626
10690
  await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
10627
10691
  }
10628
10692
  /**
10629
- * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
10693
+ * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
10630
10694
  * Create, update, or remove a Rule on a signer-Layer
10631
10695
  */
10632
10696
  async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
@@ -10659,7 +10723,7 @@ class SDKApi extends runtime.BaseAPI {
10659
10723
  return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
10660
10724
  }
10661
10725
  /**
10662
- * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
10726
+ * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
10663
10727
  * Create, update, or remove a Rule on a signer-Layer
10664
10728
  */
10665
10729
  async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
@@ -10667,7 +10731,7 @@ class SDKApi extends runtime.BaseAPI {
10667
10731
  return await response.value();
10668
10732
  }
10669
10733
  /**
10670
- * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own wallet-Layer. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
10734
+ * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own wallet-Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
10671
10735
  * Create, update, or remove a Rule on a wallet-Layer
10672
10736
  */
10673
10737
  async updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
@@ -10700,7 +10764,7 @@ class SDKApi extends runtime.BaseAPI {
10700
10764
  return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
10701
10765
  }
10702
10766
  /**
10703
- * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own wallet-Layer. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
10767
+ * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own wallet-Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
10704
10768
  * Create, update, or remove a Rule on a wallet-Layer
10705
10769
  */
10706
10770
  async updateWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {