@dynamic-labs/sdk-api 0.0.784 → 0.0.785

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.0.784",
3
+ "version": "0.0.785",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -95,6 +95,7 @@ var WaasPolicyDeleteRequest = require('../models/WaasPolicyDeleteRequest.cjs');
95
95
  var WaasPolicyResponse = require('../models/WaasPolicyResponse.cjs');
96
96
  require('../models/WaasPolicyRuleType.cjs');
97
97
  var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
98
+ var WaasWalletResponse = require('../models/WaasWalletResponse.cjs');
98
99
 
99
100
  /* tslint:disable */
100
101
  /**
@@ -393,6 +394,37 @@ class WaasApi extends runtime.BaseAPI {
393
394
  return yield response.value();
394
395
  });
395
396
  }
397
+ /**
398
+ * Get a specific WAAS wallet by walletId
399
+ */
400
+ getWaasWalletByWalletIdRaw(requestParameters, initOverrides) {
401
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
402
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
403
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletByWalletId.');
404
+ }
405
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
406
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasWalletByWalletId.');
407
+ }
408
+ const queryParameters = {};
409
+ const headerParameters = {};
410
+ const response = yield this.request({
411
+ path: `/environments/{environmentId}/waas/{walletId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
412
+ method: 'GET',
413
+ headers: headerParameters,
414
+ query: queryParameters,
415
+ }, initOverrides);
416
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletResponse.WaasWalletResponseFromJSON(jsonValue));
417
+ });
418
+ }
419
+ /**
420
+ * Get a specific WAAS wallet by walletId
421
+ */
422
+ getWaasWalletByWalletId(requestParameters, initOverrides) {
423
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
424
+ const response = yield this.getWaasWalletByWalletIdRaw(requestParameters, initOverrides);
425
+ return yield response.value();
426
+ });
427
+ }
396
428
  /**
397
429
  * Returns the allowed HTTP methods and CORS headers for this endpoint.
398
430
  * Get CORS and allowed methods for delegated access encryption public keys endpoint
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest } from '../models';
13
+ import { DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasWalletResponse } from '../models';
14
14
  export interface AuthenticateWaasRequest {
15
15
  environmentId: string;
16
16
  }
@@ -45,6 +45,10 @@ export interface GetDelegatedAccessEncryptionPublicKeysRequest {
45
45
  export interface GetWaasPolicyRequest {
46
46
  environmentId: string;
47
47
  }
48
+ export interface GetWaasWalletByWalletIdRequest {
49
+ environmentId: string;
50
+ walletId: string;
51
+ }
48
52
  export interface OptionsDelegatedAccessEncryptionPublicKeyRequest {
49
53
  environmentId: string;
50
54
  }
@@ -132,6 +136,14 @@ export declare class WaasApi extends runtime.BaseAPI {
132
136
  * Get the WAAS policy for an environment
133
137
  */
134
138
  getWaasPolicy(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
139
+ /**
140
+ * Get a specific WAAS wallet by walletId
141
+ */
142
+ getWaasWalletByWalletIdRaw(requestParameters: GetWaasWalletByWalletIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletResponse>>;
143
+ /**
144
+ * Get a specific WAAS wallet by walletId
145
+ */
146
+ getWaasWalletByWalletId(requestParameters: GetWaasWalletByWalletIdRequest, initOverrides?: RequestInit): Promise<WaasWalletResponse>;
135
147
  /**
136
148
  * Returns the allowed HTTP methods and CORS headers for this endpoint.
137
149
  * Get CORS and allowed methods for delegated access encryption public keys endpoint
@@ -91,6 +91,7 @@ import { WaasPolicyDeleteRequestToJSON } from '../models/WaasPolicyDeleteRequest
91
91
  import { WaasPolicyResponseFromJSON } from '../models/WaasPolicyResponse.js';
92
92
  import '../models/WaasPolicyRuleType.js';
93
93
  import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
94
+ import { WaasWalletResponseFromJSON } from '../models/WaasWalletResponse.js';
94
95
 
95
96
  /* tslint:disable */
96
97
  /**
@@ -389,6 +390,37 @@ class WaasApi extends BaseAPI {
389
390
  return yield response.value();
390
391
  });
391
392
  }
393
+ /**
394
+ * Get a specific WAAS wallet by walletId
395
+ */
396
+ getWaasWalletByWalletIdRaw(requestParameters, initOverrides) {
397
+ return __awaiter(this, void 0, void 0, function* () {
398
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
399
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletByWalletId.');
400
+ }
401
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
402
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasWalletByWalletId.');
403
+ }
404
+ const queryParameters = {};
405
+ const headerParameters = {};
406
+ const response = yield this.request({
407
+ path: `/environments/{environmentId}/waas/{walletId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
408
+ method: 'GET',
409
+ headers: headerParameters,
410
+ query: queryParameters,
411
+ }, initOverrides);
412
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletResponseFromJSON(jsonValue));
413
+ });
414
+ }
415
+ /**
416
+ * Get a specific WAAS wallet by walletId
417
+ */
418
+ getWaasWalletByWalletId(requestParameters, initOverrides) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ const response = yield this.getWaasWalletByWalletIdRaw(requestParameters, initOverrides);
421
+ return yield response.value();
422
+ });
423
+ }
392
424
  /**
393
425
  * Returns the allowed HTTP methods and CORS headers for this endpoint.
394
426
  * Get CORS and allowed methods for delegated access encryption public keys endpoint
package/src/index.cjs CHANGED
@@ -555,6 +555,8 @@ var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
555
555
  var WaasPolicyRuleValueLimit = require('./models/WaasPolicyRuleValueLimit.cjs');
556
556
  var WaasPolicyUpdateRequest = require('./models/WaasPolicyUpdateRequest.cjs');
557
557
  var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
558
+ var WaasWalletResponse = require('./models/WaasWalletResponse.cjs');
559
+ var WaasWalletResponseWallet = require('./models/WaasWalletResponseWallet.cjs');
558
560
  var Wallet = require('./models/Wallet.cjs');
559
561
  var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
560
562
  var WalletAddressType = require('./models/WalletAddressType.cjs');
@@ -2493,6 +2495,12 @@ exports.WaasPolicyUpdateRequestToJSON = WaasPolicyUpdateRequest.WaasPolicyUpdate
2493
2495
  exports.WaasWalletPropertiesFromJSON = WaasWalletProperties.WaasWalletPropertiesFromJSON;
2494
2496
  exports.WaasWalletPropertiesFromJSONTyped = WaasWalletProperties.WaasWalletPropertiesFromJSONTyped;
2495
2497
  exports.WaasWalletPropertiesToJSON = WaasWalletProperties.WaasWalletPropertiesToJSON;
2498
+ exports.WaasWalletResponseFromJSON = WaasWalletResponse.WaasWalletResponseFromJSON;
2499
+ exports.WaasWalletResponseFromJSONTyped = WaasWalletResponse.WaasWalletResponseFromJSONTyped;
2500
+ exports.WaasWalletResponseToJSON = WaasWalletResponse.WaasWalletResponseToJSON;
2501
+ exports.WaasWalletResponseWalletFromJSON = WaasWalletResponseWallet.WaasWalletResponseWalletFromJSON;
2502
+ exports.WaasWalletResponseWalletFromJSONTyped = WaasWalletResponseWallet.WaasWalletResponseWalletFromJSONTyped;
2503
+ exports.WaasWalletResponseWalletToJSON = WaasWalletResponseWallet.WaasWalletResponseWalletToJSON;
2496
2504
  exports.WalletFromJSON = Wallet.WalletFromJSON;
2497
2505
  exports.WalletFromJSONTyped = Wallet.WalletFromJSONTyped;
2498
2506
  exports.WalletToJSON = Wallet.WalletToJSON;
package/src/index.js CHANGED
@@ -551,6 +551,8 @@ export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJ
551
551
  export { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitFromJSONTyped, WaasPolicyRuleValueLimitToJSON } from './models/WaasPolicyRuleValueLimit.js';
552
552
  export { WaasPolicyUpdateRequestFromJSON, WaasPolicyUpdateRequestFromJSONTyped, WaasPolicyUpdateRequestToJSON } from './models/WaasPolicyUpdateRequest.js';
553
553
  export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
554
+ export { WaasWalletResponseFromJSON, WaasWalletResponseFromJSONTyped, WaasWalletResponseToJSON } from './models/WaasWalletResponse.js';
555
+ export { WaasWalletResponseWalletFromJSON, WaasWalletResponseWalletFromJSONTyped, WaasWalletResponseWalletToJSON } from './models/WaasWalletResponseWallet.js';
554
556
  export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
555
557
  export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
556
558
  export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var WaasWalletResponseWallet = require('./WaasWalletResponseWallet.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasWalletResponseFromJSON(json) {
9
+ return WaasWalletResponseFromJSONTyped(json);
10
+ }
11
+ function WaasWalletResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'wallet': WaasWalletResponseWallet.WaasWalletResponseWalletFromJSON(json['wallet']),
17
+ };
18
+ }
19
+ function WaasWalletResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'wallet': WaasWalletResponseWallet.WaasWalletResponseWalletToJSON(value.wallet),
28
+ };
29
+ }
30
+
31
+ exports.WaasWalletResponseFromJSON = WaasWalletResponseFromJSON;
32
+ exports.WaasWalletResponseFromJSONTyped = WaasWalletResponseFromJSONTyped;
33
+ exports.WaasWalletResponseToJSON = WaasWalletResponseToJSON;
@@ -0,0 +1,28 @@
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
+ import { WaasWalletResponseWallet } from './WaasWalletResponseWallet';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasWalletResponse
17
+ */
18
+ export interface WaasWalletResponse {
19
+ /**
20
+ *
21
+ * @type {WaasWalletResponseWallet}
22
+ * @memberof WaasWalletResponse
23
+ */
24
+ wallet: WaasWalletResponseWallet;
25
+ }
26
+ export declare function WaasWalletResponseFromJSON(json: any): WaasWalletResponse;
27
+ export declare function WaasWalletResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletResponse;
28
+ export declare function WaasWalletResponseToJSON(value?: WaasWalletResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { WaasWalletResponseWalletFromJSON, WaasWalletResponseWalletToJSON } from './WaasWalletResponseWallet.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasWalletResponseFromJSON(json) {
5
+ return WaasWalletResponseFromJSONTyped(json);
6
+ }
7
+ function WaasWalletResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'wallet': WaasWalletResponseWalletFromJSON(json['wallet']),
13
+ };
14
+ }
15
+ function WaasWalletResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'wallet': WaasWalletResponseWalletToJSON(value.wallet),
24
+ };
25
+ }
26
+
27
+ export { WaasWalletResponseFromJSON, WaasWalletResponseFromJSONTyped, WaasWalletResponseToJSON };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
6
+ var WaasChainEnum = require('./WaasChainEnum.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WaasWalletResponseWalletFromJSON(json) {
10
+ return WaasWalletResponseWalletFromJSONTyped(json);
11
+ }
12
+ function WaasWalletResponseWalletFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'accountAddress': json['accountAddress'],
18
+ 'chainName': WaasChainEnum.WaasChainEnumFromJSON(json['chainName']),
19
+ 'walletId': json['walletId'],
20
+ 'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
21
+ 'derivationPath': json['derivationPath'],
22
+ };
23
+ }
24
+ function WaasWalletResponseWalletToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'accountAddress': value.accountAddress,
33
+ 'chainName': WaasChainEnum.WaasChainEnumToJSON(value.chainName),
34
+ 'walletId': value.walletId,
35
+ 'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
36
+ 'derivationPath': value.derivationPath,
37
+ };
38
+ }
39
+
40
+ exports.WaasWalletResponseWalletFromJSON = WaasWalletResponseWalletFromJSON;
41
+ exports.WaasWalletResponseWalletFromJSONTyped = WaasWalletResponseWalletFromJSONTyped;
42
+ exports.WaasWalletResponseWalletToJSON = WaasWalletResponseWalletToJSON;
@@ -0,0 +1,53 @@
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
+ import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
13
+ import { WaasChainEnum } from './WaasChainEnum';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WaasWalletResponseWallet
18
+ */
19
+ export interface WaasWalletResponseWallet {
20
+ /**
21
+ * The account address of the wallet
22
+ * @type {string}
23
+ * @memberof WaasWalletResponseWallet
24
+ */
25
+ accountAddress: string;
26
+ /**
27
+ *
28
+ * @type {WaasChainEnum}
29
+ * @memberof WaasWalletResponseWallet
30
+ */
31
+ chainName: WaasChainEnum;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof WaasWalletResponseWallet
36
+ */
37
+ walletId: string;
38
+ /**
39
+ *
40
+ * @type {ThresholdSignatureScheme}
41
+ * @memberof WaasWalletResponseWallet
42
+ */
43
+ thresholdSignatureScheme: ThresholdSignatureScheme;
44
+ /**
45
+ * The derivation path used for the wallet
46
+ * @type {string}
47
+ * @memberof WaasWalletResponseWallet
48
+ */
49
+ derivationPath: string;
50
+ }
51
+ export declare function WaasWalletResponseWalletFromJSON(json: any): WaasWalletResponseWallet;
52
+ export declare function WaasWalletResponseWalletFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletResponseWallet;
53
+ export declare function WaasWalletResponseWalletToJSON(value?: WaasWalletResponseWallet | null): any;
@@ -0,0 +1,36 @@
1
+ import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
2
+ import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
3
+
4
+ /* tslint:disable */
5
+ function WaasWalletResponseWalletFromJSON(json) {
6
+ return WaasWalletResponseWalletFromJSONTyped(json);
7
+ }
8
+ function WaasWalletResponseWalletFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'accountAddress': json['accountAddress'],
14
+ 'chainName': WaasChainEnumFromJSON(json['chainName']),
15
+ 'walletId': json['walletId'],
16
+ 'thresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
17
+ 'derivationPath': json['derivationPath'],
18
+ };
19
+ }
20
+ function WaasWalletResponseWalletToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'accountAddress': value.accountAddress,
29
+ 'chainName': WaasChainEnumToJSON(value.chainName),
30
+ 'walletId': value.walletId,
31
+ 'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
32
+ 'derivationPath': value.derivationPath,
33
+ };
34
+ }
35
+
36
+ export { WaasWalletResponseWalletFromJSON, WaasWalletResponseWalletFromJSONTyped, WaasWalletResponseWalletToJSON };
@@ -514,6 +514,8 @@ export * from './WaasPolicyRuleType';
514
514
  export * from './WaasPolicyRuleValueLimit';
515
515
  export * from './WaasPolicyUpdateRequest';
516
516
  export * from './WaasWalletProperties';
517
+ export * from './WaasWalletResponse';
518
+ export * from './WaasWalletResponseWallet';
517
519
  export * from './Wallet';
518
520
  export * from './WalletAdditionalAddress';
519
521
  export * from './WalletAddressType';