@dynamic-labs/sdk-api-core 0.0.857 → 0.0.859

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.857",
3
+ "version": "0.0.859",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -287,6 +287,7 @@ var SdkViewSectionType = require('./models/SdkViewSectionType.cjs');
287
287
  var SdkViewType = require('./models/SdkViewType.cjs');
288
288
  var SdkViewUpdateRequest = require('./models/SdkViewUpdateRequest.cjs');
289
289
  var SdkViewsResponse = require('./models/SdkViewsResponse.cjs');
290
+ var SecurityNotifications = require('./models/SecurityNotifications.cjs');
290
291
  var SignInProviderEnum = require('./models/SignInProviderEnum.cjs');
291
292
  var SignMessageAuthorizationSignature = require('./models/SignMessageAuthorizationSignature.cjs');
292
293
  var SignMessageContext = require('./models/SignMessageContext.cjs');
@@ -1463,6 +1464,9 @@ exports.SdkViewUpdateRequestToJSON = SdkViewUpdateRequest.SdkViewUpdateRequestTo
1463
1464
  exports.SdkViewsResponseFromJSON = SdkViewsResponse.SdkViewsResponseFromJSON;
1464
1465
  exports.SdkViewsResponseFromJSONTyped = SdkViewsResponse.SdkViewsResponseFromJSONTyped;
1465
1466
  exports.SdkViewsResponseToJSON = SdkViewsResponse.SdkViewsResponseToJSON;
1467
+ exports.SecurityNotificationsFromJSON = SecurityNotifications.SecurityNotificationsFromJSON;
1468
+ exports.SecurityNotificationsFromJSONTyped = SecurityNotifications.SecurityNotificationsFromJSONTyped;
1469
+ exports.SecurityNotificationsToJSON = SecurityNotifications.SecurityNotificationsToJSON;
1466
1470
  Object.defineProperty(exports, 'SignInProviderEnum', {
1467
1471
  enumerable: true,
1468
1472
  get: function () { return SignInProviderEnum.SignInProviderEnum; }
package/src/index.js CHANGED
@@ -283,6 +283,7 @@ export { SdkViewSectionType, SdkViewSectionTypeFromJSON, SdkViewSectionTypeFromJ
283
283
  export { SdkViewType, SdkViewTypeFromJSON, SdkViewTypeFromJSONTyped, SdkViewTypeToJSON } from './models/SdkViewType.js';
284
284
  export { SdkViewUpdateRequestFromJSON, SdkViewUpdateRequestFromJSONTyped, SdkViewUpdateRequestToJSON } from './models/SdkViewUpdateRequest.js';
285
285
  export { SdkViewsResponseFromJSON, SdkViewsResponseFromJSONTyped, SdkViewsResponseToJSON } from './models/SdkViewsResponse.js';
286
+ export { SecurityNotificationsFromJSON, SecurityNotificationsFromJSONTyped, SecurityNotificationsToJSON } from './models/SecurityNotifications.js';
286
287
  export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJSONTyped, SignInProviderEnumToJSON } from './models/SignInProviderEnum.js';
287
288
  export { SignMessageAuthorizationSignatureFromJSON, SignMessageAuthorizationSignatureFromJSONTyped, SignMessageAuthorizationSignatureToJSON } from './models/SignMessageAuthorizationSignature.js';
288
289
  export { SignMessageContextFromJSON, SignMessageContextFromJSONTyped, SignMessageContextToJSON } from './models/SignMessageContext.js';
@@ -27,6 +27,7 @@ function ProjectSettingsSdkWaasFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'delegatedAccess': !runtime.exists(json, 'delegatedAccess') ? undefined : ProjectSettingsSdkWaasDelegatedAccess.ProjectSettingsSdkWaasDelegatedAccessFromJSON(json['delegatedAccess']),
28
28
  'enableForwardMPCClient': !runtime.exists(json, 'enableForwardMPCClient') ? undefined : json['enableForwardMPCClient'],
29
29
  'customKeyshareRelayBaseUrl': !runtime.exists(json, 'customKeyshareRelayBaseUrl') ? undefined : json['customKeyshareRelayBaseUrl'],
30
+ 'exportDisabled': !runtime.exists(json, 'exportDisabled') ? undefined : json['exportDisabled'],
30
31
  };
31
32
  }
32
33
  function ProjectSettingsSdkWaasToJSON(value) {
@@ -47,6 +48,7 @@ function ProjectSettingsSdkWaasToJSON(value) {
47
48
  'delegatedAccess': ProjectSettingsSdkWaasDelegatedAccess.ProjectSettingsSdkWaasDelegatedAccessToJSON(value.delegatedAccess),
48
49
  'enableForwardMPCClient': value.enableForwardMPCClient,
49
50
  'customKeyshareRelayBaseUrl': value.customKeyshareRelayBaseUrl,
51
+ 'exportDisabled': value.exportDisabled,
50
52
  };
51
53
  }
52
54
 
@@ -79,6 +79,12 @@ export interface ProjectSettingsSdkWaas {
79
79
  * @memberof ProjectSettingsSdkWaas
80
80
  */
81
81
  customKeyshareRelayBaseUrl?: string;
82
+ /**
83
+ * When true, private key exports are disabled at both API and wallet enclave levels. When false (default), users can export their private keys from v3 embedded wallets.
84
+ * @type {boolean}
85
+ * @memberof ProjectSettingsSdkWaas
86
+ */
87
+ exportDisabled?: boolean;
82
88
  }
83
89
  export declare function ProjectSettingsSdkWaasFromJSON(json: any): ProjectSettingsSdkWaas;
84
90
  export declare function ProjectSettingsSdkWaasFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsSdkWaas;
@@ -23,6 +23,7 @@ function ProjectSettingsSdkWaasFromJSONTyped(json, ignoreDiscriminator) {
23
23
  'delegatedAccess': !exists(json, 'delegatedAccess') ? undefined : ProjectSettingsSdkWaasDelegatedAccessFromJSON(json['delegatedAccess']),
24
24
  'enableForwardMPCClient': !exists(json, 'enableForwardMPCClient') ? undefined : json['enableForwardMPCClient'],
25
25
  'customKeyshareRelayBaseUrl': !exists(json, 'customKeyshareRelayBaseUrl') ? undefined : json['customKeyshareRelayBaseUrl'],
26
+ 'exportDisabled': !exists(json, 'exportDisabled') ? undefined : json['exportDisabled'],
26
27
  };
27
28
  }
28
29
  function ProjectSettingsSdkWaasToJSON(value) {
@@ -43,6 +44,7 @@ function ProjectSettingsSdkWaasToJSON(value) {
43
44
  'delegatedAccess': ProjectSettingsSdkWaasDelegatedAccessToJSON(value.delegatedAccess),
44
45
  'enableForwardMPCClient': value.enableForwardMPCClient,
45
46
  'customKeyshareRelayBaseUrl': value.customKeyshareRelayBaseUrl,
47
+ 'exportDisabled': value.exportDisabled,
46
48
  };
47
49
  }
48
50
 
@@ -8,6 +8,7 @@ var Duration = require('./Duration.cjs');
8
8
  var ExternalAuth = require('./ExternalAuth.cjs');
9
9
  var HCaptchaSettings = require('./HCaptchaSettings.cjs');
10
10
  var MFASettings = require('./MFASettings.cjs');
11
+ var SecurityNotifications = require('./SecurityNotifications.cjs');
11
12
 
12
13
  /* tslint:disable */
13
14
  function ProjectSettingsSecurityFromJSON(json) {
@@ -24,6 +25,7 @@ function ProjectSettingsSecurityFromJSONTyped(json, ignoreDiscriminator) {
24
25
  'auth': !runtime.exists(json, 'auth') ? undefined : AuthSettings.AuthSettingsFromJSON(json['auth']),
25
26
  'externalAuth': !runtime.exists(json, 'externalAuth') ? undefined : ExternalAuth.ExternalAuthFromJSON(json['externalAuth']),
26
27
  'environmentLocked': !runtime.exists(json, 'environmentLocked') ? undefined : json['environmentLocked'],
28
+ 'notifications': !runtime.exists(json, 'notifications') ? undefined : SecurityNotifications.SecurityNotificationsFromJSON(json['notifications']),
27
29
  };
28
30
  }
29
31
  function ProjectSettingsSecurityToJSON(value) {
@@ -40,6 +42,7 @@ function ProjectSettingsSecurityToJSON(value) {
40
42
  'auth': AuthSettings.AuthSettingsToJSON(value.auth),
41
43
  'externalAuth': ExternalAuth.ExternalAuthToJSON(value.externalAuth),
42
44
  'environmentLocked': value.environmentLocked,
45
+ 'notifications': SecurityNotifications.SecurityNotificationsToJSON(value.notifications),
43
46
  };
44
47
  }
45
48
 
@@ -14,6 +14,7 @@ import { Duration } from './Duration';
14
14
  import { ExternalAuth } from './ExternalAuth';
15
15
  import { HCaptchaSettings } from './HCaptchaSettings';
16
16
  import { MFASettings } from './MFASettings';
17
+ import { SecurityNotifications } from './SecurityNotifications';
17
18
  /**
18
19
  *
19
20
  * @export
@@ -56,6 +57,12 @@ export interface ProjectSettingsSecurity {
56
57
  * @memberof ProjectSettingsSecurity
57
58
  */
58
59
  environmentLocked?: boolean;
60
+ /**
61
+ *
62
+ * @type {SecurityNotifications}
63
+ * @memberof ProjectSettingsSecurity
64
+ */
65
+ notifications?: SecurityNotifications;
59
66
  }
60
67
  export declare function ProjectSettingsSecurityFromJSON(json: any): ProjectSettingsSecurity;
61
68
  export declare function ProjectSettingsSecurityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsSecurity;
@@ -4,6 +4,7 @@ import { DurationFromJSON, DurationToJSON } from './Duration.js';
4
4
  import { ExternalAuthFromJSON, ExternalAuthToJSON } from './ExternalAuth.js';
5
5
  import { HCaptchaSettingsFromJSON, HCaptchaSettingsToJSON } from './HCaptchaSettings.js';
6
6
  import { MFASettingsFromJSON, MFASettingsToJSON } from './MFASettings.js';
7
+ import { SecurityNotificationsFromJSON, SecurityNotificationsToJSON } from './SecurityNotifications.js';
7
8
 
8
9
  /* tslint:disable */
9
10
  function ProjectSettingsSecurityFromJSON(json) {
@@ -20,6 +21,7 @@ function ProjectSettingsSecurityFromJSONTyped(json, ignoreDiscriminator) {
20
21
  'auth': !exists(json, 'auth') ? undefined : AuthSettingsFromJSON(json['auth']),
21
22
  'externalAuth': !exists(json, 'externalAuth') ? undefined : ExternalAuthFromJSON(json['externalAuth']),
22
23
  'environmentLocked': !exists(json, 'environmentLocked') ? undefined : json['environmentLocked'],
24
+ 'notifications': !exists(json, 'notifications') ? undefined : SecurityNotificationsFromJSON(json['notifications']),
23
25
  };
24
26
  }
25
27
  function ProjectSettingsSecurityToJSON(value) {
@@ -36,6 +38,7 @@ function ProjectSettingsSecurityToJSON(value) {
36
38
  'auth': AuthSettingsToJSON(value.auth),
37
39
  'externalAuth': ExternalAuthToJSON(value.externalAuth),
38
40
  'environmentLocked': value.environmentLocked,
41
+ 'notifications': SecurityNotificationsToJSON(value.notifications),
39
42
  };
40
43
  }
41
44
 
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function SecurityNotificationsFromJSON(json) {
9
+ return SecurityNotificationsFromJSONTyped(json);
10
+ }
11
+ function SecurityNotificationsFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'waasPrivateKeyExport': !runtime.exists(json, 'waasPrivateKeyExport') ? undefined : json['waasPrivateKeyExport'],
17
+ 'waasSignedTransaction': !runtime.exists(json, 'waasSignedTransaction') ? undefined : json['waasSignedTransaction'],
18
+ };
19
+ }
20
+ function SecurityNotificationsToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'waasPrivateKeyExport': value.waasPrivateKeyExport,
29
+ 'waasSignedTransaction': value.waasSignedTransaction,
30
+ };
31
+ }
32
+
33
+ exports.SecurityNotificationsFromJSON = SecurityNotificationsFromJSON;
34
+ exports.SecurityNotificationsFromJSONTyped = SecurityNotificationsFromJSONTyped;
35
+ exports.SecurityNotificationsToJSON = SecurityNotificationsToJSON;
@@ -0,0 +1,33 @@
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
+ *
14
+ * @export
15
+ * @interface SecurityNotifications
16
+ */
17
+ export interface SecurityNotifications {
18
+ /**
19
+ * Send email notification when a user exports their embedded wallet private key. Defaults to true.
20
+ * @type {boolean}
21
+ * @memberof SecurityNotifications
22
+ */
23
+ waasPrivateKeyExport?: boolean;
24
+ /**
25
+ * Send email notification when a transaction is signed with an embedded wallet. Defaults to true.
26
+ * @type {boolean}
27
+ * @memberof SecurityNotifications
28
+ */
29
+ waasSignedTransaction?: boolean;
30
+ }
31
+ export declare function SecurityNotificationsFromJSON(json: any): SecurityNotifications;
32
+ export declare function SecurityNotificationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityNotifications;
33
+ export declare function SecurityNotificationsToJSON(value?: SecurityNotifications | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function SecurityNotificationsFromJSON(json) {
5
+ return SecurityNotificationsFromJSONTyped(json);
6
+ }
7
+ function SecurityNotificationsFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'waasPrivateKeyExport': !exists(json, 'waasPrivateKeyExport') ? undefined : json['waasPrivateKeyExport'],
13
+ 'waasSignedTransaction': !exists(json, 'waasSignedTransaction') ? undefined : json['waasSignedTransaction'],
14
+ };
15
+ }
16
+ function SecurityNotificationsToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'waasPrivateKeyExport': value.waasPrivateKeyExport,
25
+ 'waasSignedTransaction': value.waasSignedTransaction,
26
+ };
27
+ }
28
+
29
+ export { SecurityNotificationsFromJSON, SecurityNotificationsFromJSONTyped, SecurityNotificationsToJSON };
@@ -280,6 +280,7 @@ export * from './SdkViewSectionType';
280
280
  export * from './SdkViewType';
281
281
  export * from './SdkViewUpdateRequest';
282
282
  export * from './SdkViewsResponse';
283
+ export * from './SecurityNotifications';
283
284
  export * from './SignInProviderEnum';
284
285
  export * from './SignMessageAuthorizationSignature';
285
286
  export * from './SignMessageContext';