@dynamic-labs/sdk-api-core 0.0.701 → 0.0.702

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.701",
3
+ "version": "0.0.702",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -71,7 +71,9 @@ var EmbeddedWalletSecurityMethod = require('./models/EmbeddedWalletSecurityMetho
71
71
  var EmbeddedWalletVersionEnum = require('./models/EmbeddedWalletVersionEnum.cjs');
72
72
  var EnvironmentEnum = require('./models/EnvironmentEnum.cjs');
73
73
  var ErrorMessageWithCode = require('./models/ErrorMessageWithCode.cjs');
74
+ var Exchange = require('./models/Exchange.cjs');
74
75
  var ExchangeKeyEnum = require('./models/ExchangeKeyEnum.cjs');
76
+ var ExchangeOption = require('./models/ExchangeOption.cjs');
75
77
  var ExchangeTransaction = require('./models/ExchangeTransaction.cjs');
76
78
  var ExchangeTransferResponse = require('./models/ExchangeTransferResponse.cjs');
77
79
  var ExportEmbeddedWalletResponse = require('./models/ExportEmbeddedWalletResponse.cjs');
@@ -582,6 +584,9 @@ exports.EnvironmentEnumToJSON = EnvironmentEnum.EnvironmentEnumToJSON;
582
584
  exports.ErrorMessageWithCodeFromJSON = ErrorMessageWithCode.ErrorMessageWithCodeFromJSON;
583
585
  exports.ErrorMessageWithCodeFromJSONTyped = ErrorMessageWithCode.ErrorMessageWithCodeFromJSONTyped;
584
586
  exports.ErrorMessageWithCodeToJSON = ErrorMessageWithCode.ErrorMessageWithCodeToJSON;
587
+ exports.ExchangeFromJSON = Exchange.ExchangeFromJSON;
588
+ exports.ExchangeFromJSONTyped = Exchange.ExchangeFromJSONTyped;
589
+ exports.ExchangeToJSON = Exchange.ExchangeToJSON;
585
590
  Object.defineProperty(exports, 'ExchangeKeyEnum', {
586
591
  enumerable: true,
587
592
  get: function () { return ExchangeKeyEnum.ExchangeKeyEnum; }
@@ -589,6 +594,9 @@ Object.defineProperty(exports, 'ExchangeKeyEnum', {
589
594
  exports.ExchangeKeyEnumFromJSON = ExchangeKeyEnum.ExchangeKeyEnumFromJSON;
590
595
  exports.ExchangeKeyEnumFromJSONTyped = ExchangeKeyEnum.ExchangeKeyEnumFromJSONTyped;
591
596
  exports.ExchangeKeyEnumToJSON = ExchangeKeyEnum.ExchangeKeyEnumToJSON;
597
+ exports.ExchangeOptionFromJSON = ExchangeOption.ExchangeOptionFromJSON;
598
+ exports.ExchangeOptionFromJSONTyped = ExchangeOption.ExchangeOptionFromJSONTyped;
599
+ exports.ExchangeOptionToJSON = ExchangeOption.ExchangeOptionToJSON;
592
600
  exports.ExchangeTransactionFromJSON = ExchangeTransaction.ExchangeTransactionFromJSON;
593
601
  exports.ExchangeTransactionFromJSONTyped = ExchangeTransaction.ExchangeTransactionFromJSONTyped;
594
602
  exports.ExchangeTransactionToJSON = ExchangeTransaction.ExchangeTransactionToJSON;
package/src/index.js CHANGED
@@ -67,7 +67,9 @@ export { EmbeddedWalletSecurityMethod, EmbeddedWalletSecurityMethodFromJSON, Emb
67
67
  export { EmbeddedWalletVersionEnum, EmbeddedWalletVersionEnumFromJSON, EmbeddedWalletVersionEnumFromJSONTyped, EmbeddedWalletVersionEnumToJSON } from './models/EmbeddedWalletVersionEnum.js';
68
68
  export { EnvironmentEnum, EnvironmentEnumFromJSON, EnvironmentEnumFromJSONTyped, EnvironmentEnumToJSON } from './models/EnvironmentEnum.js';
69
69
  export { ErrorMessageWithCodeFromJSON, ErrorMessageWithCodeFromJSONTyped, ErrorMessageWithCodeToJSON } from './models/ErrorMessageWithCode.js';
70
+ export { ExchangeFromJSON, ExchangeFromJSONTyped, ExchangeToJSON } from './models/Exchange.js';
70
71
  export { ExchangeKeyEnum, ExchangeKeyEnumFromJSON, ExchangeKeyEnumFromJSONTyped, ExchangeKeyEnumToJSON } from './models/ExchangeKeyEnum.js';
72
+ export { ExchangeOptionFromJSON, ExchangeOptionFromJSONTyped, ExchangeOptionToJSON } from './models/ExchangeOption.js';
71
73
  export { ExchangeTransactionFromJSON, ExchangeTransactionFromJSONTyped, ExchangeTransactionToJSON } from './models/ExchangeTransaction.js';
72
74
  export { ExchangeTransferResponseFromJSON, ExchangeTransferResponseFromJSONTyped, ExchangeTransferResponseToJSON } from './models/ExchangeTransferResponse.js';
73
75
  export { ExportEmbeddedWalletResponseFromJSON, ExportEmbeddedWalletResponseFromJSONTyped, ExportEmbeddedWalletResponseToJSON } from './models/ExportEmbeddedWalletResponse.js';
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
7
+ var ProviderEnum = require('./ProviderEnum.cjs');
8
+
9
+ /* tslint:disable */
10
+ function ExchangeFromJSON(json) {
11
+ return ExchangeFromJSONTyped(json);
12
+ }
13
+ function ExchangeFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'id': !runtime.exists(json, 'id') ? undefined : json['id'],
19
+ 'exchange': ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchange']),
20
+ 'enabledAt': !runtime.exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
21
+ 'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
22
+ 'onRampProvider': !runtime.exists(json, 'onRampProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['onRampProvider']),
23
+ };
24
+ }
25
+ function ExchangeToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'id': value.id,
34
+ 'exchange': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchange),
35
+ 'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
36
+ 'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
37
+ 'onRampProvider': ProviderEnum.ProviderEnumToJSON(value.onRampProvider),
38
+ };
39
+ }
40
+
41
+ exports.ExchangeFromJSON = ExchangeFromJSON;
42
+ exports.ExchangeFromJSONTyped = ExchangeFromJSONTyped;
43
+ exports.ExchangeToJSON = ExchangeToJSON;
@@ -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 { ExchangeKeyEnum } from './ExchangeKeyEnum';
13
+ import { ProviderEnum } from './ProviderEnum';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Exchange
18
+ */
19
+ export interface Exchange {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof Exchange
24
+ */
25
+ id?: string;
26
+ /**
27
+ *
28
+ * @type {ExchangeKeyEnum}
29
+ * @memberof Exchange
30
+ */
31
+ exchange: ExchangeKeyEnum;
32
+ /**
33
+ *
34
+ * @type {Date}
35
+ * @memberof Exchange
36
+ */
37
+ enabledAt?: Date | null;
38
+ /**
39
+ *
40
+ * @type {ProviderEnum}
41
+ * @memberof Exchange
42
+ */
43
+ socialProvider?: ProviderEnum;
44
+ /**
45
+ *
46
+ * @type {ProviderEnum}
47
+ * @memberof Exchange
48
+ */
49
+ onRampProvider?: ProviderEnum;
50
+ }
51
+ export declare function ExchangeFromJSON(json: any): Exchange;
52
+ export declare function ExchangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Exchange;
53
+ export declare function ExchangeToJSON(value?: Exchange | null): any;
@@ -0,0 +1,37 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
3
+ import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
4
+
5
+ /* tslint:disable */
6
+ function ExchangeFromJSON(json) {
7
+ return ExchangeFromJSONTyped(json);
8
+ }
9
+ function ExchangeFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'id': !exists(json, 'id') ? undefined : json['id'],
15
+ 'exchange': ExchangeKeyEnumFromJSON(json['exchange']),
16
+ 'enabledAt': !exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
17
+ 'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
18
+ 'onRampProvider': !exists(json, 'onRampProvider') ? undefined : ProviderEnumFromJSON(json['onRampProvider']),
19
+ };
20
+ }
21
+ function ExchangeToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'id': value.id,
30
+ 'exchange': ExchangeKeyEnumToJSON(value.exchange),
31
+ 'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
32
+ 'socialProvider': ProviderEnumToJSON(value.socialProvider),
33
+ 'onRampProvider': ProviderEnumToJSON(value.onRampProvider),
34
+ };
35
+ }
36
+
37
+ export { ExchangeFromJSON, ExchangeFromJSONTyped, ExchangeToJSON };
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
7
+ var ProviderEnum = require('./ProviderEnum.cjs');
8
+
9
+ /* tslint:disable */
10
+ function ExchangeOptionFromJSON(json) {
11
+ return ExchangeOptionFromJSONTyped(json);
12
+ }
13
+ function ExchangeOptionFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'exchange': ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchange']),
19
+ 'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
20
+ 'onRampProvider': !runtime.exists(json, 'onRampProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['onRampProvider']),
21
+ };
22
+ }
23
+ function ExchangeOptionToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'exchange': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchange),
32
+ 'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
33
+ 'onRampProvider': ProviderEnum.ProviderEnumToJSON(value.onRampProvider),
34
+ };
35
+ }
36
+
37
+ exports.ExchangeOptionFromJSON = ExchangeOptionFromJSON;
38
+ exports.ExchangeOptionFromJSONTyped = ExchangeOptionFromJSONTyped;
39
+ exports.ExchangeOptionToJSON = ExchangeOptionToJSON;
@@ -0,0 +1,41 @@
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 { ExchangeKeyEnum } from './ExchangeKeyEnum';
13
+ import { ProviderEnum } from './ProviderEnum';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ExchangeOption
18
+ */
19
+ export interface ExchangeOption {
20
+ /**
21
+ *
22
+ * @type {ExchangeKeyEnum}
23
+ * @memberof ExchangeOption
24
+ */
25
+ exchange: ExchangeKeyEnum;
26
+ /**
27
+ *
28
+ * @type {ProviderEnum}
29
+ * @memberof ExchangeOption
30
+ */
31
+ socialProvider?: ProviderEnum;
32
+ /**
33
+ *
34
+ * @type {ProviderEnum}
35
+ * @memberof ExchangeOption
36
+ */
37
+ onRampProvider?: ProviderEnum;
38
+ }
39
+ export declare function ExchangeOptionFromJSON(json: any): ExchangeOption;
40
+ export declare function ExchangeOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeOption;
41
+ export declare function ExchangeOptionToJSON(value?: ExchangeOption | null): any;
@@ -0,0 +1,33 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
3
+ import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
4
+
5
+ /* tslint:disable */
6
+ function ExchangeOptionFromJSON(json) {
7
+ return ExchangeOptionFromJSONTyped(json);
8
+ }
9
+ function ExchangeOptionFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'exchange': ExchangeKeyEnumFromJSON(json['exchange']),
15
+ 'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
16
+ 'onRampProvider': !exists(json, 'onRampProvider') ? undefined : ProviderEnumFromJSON(json['onRampProvider']),
17
+ };
18
+ }
19
+ function ExchangeOptionToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'exchange': ExchangeKeyEnumToJSON(value.exchange),
28
+ 'socialProvider': ProviderEnumToJSON(value.socialProvider),
29
+ 'onRampProvider': ProviderEnumToJSON(value.onRampProvider),
30
+ };
31
+ }
32
+
33
+ export { ExchangeOptionFromJSON, ExchangeOptionFromJSONTyped, ExchangeOptionToJSON };
@@ -6,7 +6,6 @@ var runtime = require('../runtime.cjs');
6
6
  var AuthenticationExtensionsClientOutputs = require('./AuthenticationExtensionsClientOutputs.cjs');
7
7
  var AuthenticatorAssertionResponse = require('./AuthenticatorAssertionResponse.cjs');
8
8
  var AuthenticatorAttachment = require('./AuthenticatorAttachment.cjs');
9
- var CreateMfaToken = require('./CreateMfaToken.cjs');
10
9
  var PublicKeyCredentialType = require('./PublicKeyCredentialType.cjs');
11
10
 
12
11
  /* tslint:disable */
@@ -24,7 +23,6 @@ function PasskeyAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
24
23
  'authenticatorAttachment': !runtime.exists(json, 'authenticatorAttachment') ? undefined : AuthenticatorAttachment.AuthenticatorAttachmentFromJSON(json['authenticatorAttachment']),
25
24
  'clientExtensionResults': AuthenticationExtensionsClientOutputs.AuthenticationExtensionsClientOutputsFromJSON(json['clientExtensionResults']),
26
25
  'type': PublicKeyCredentialType.PublicKeyCredentialTypeFromJSON(json['type']),
27
- 'createMfaToken': !runtime.exists(json, 'createMfaToken') ? undefined : CreateMfaToken.CreateMfaTokenFromJSON(json['createMfaToken']),
28
26
  };
29
27
  }
30
28
  function PasskeyAuthRequestToJSON(value) {
@@ -41,7 +39,6 @@ function PasskeyAuthRequestToJSON(value) {
41
39
  'authenticatorAttachment': AuthenticatorAttachment.AuthenticatorAttachmentToJSON(value.authenticatorAttachment),
42
40
  'clientExtensionResults': AuthenticationExtensionsClientOutputs.AuthenticationExtensionsClientOutputsToJSON(value.clientExtensionResults),
43
41
  'type': PublicKeyCredentialType.PublicKeyCredentialTypeToJSON(value.type),
44
- 'createMfaToken': CreateMfaToken.CreateMfaTokenToJSON(value.createMfaToken),
45
42
  };
46
43
  }
47
44
 
@@ -12,7 +12,6 @@
12
12
  import { AuthenticationExtensionsClientOutputs } from './AuthenticationExtensionsClientOutputs';
13
13
  import { AuthenticatorAssertionResponse } from './AuthenticatorAssertionResponse';
14
14
  import { AuthenticatorAttachment } from './AuthenticatorAttachment';
15
- import { CreateMfaToken } from './CreateMfaToken';
16
15
  import { PublicKeyCredentialType } from './PublicKeyCredentialType';
17
16
  /**
18
17
  *
@@ -56,12 +55,6 @@ export interface PasskeyAuthRequest {
56
55
  * @memberof PasskeyAuthRequest
57
56
  */
58
57
  type: PublicKeyCredentialType;
59
- /**
60
- *
61
- * @type {CreateMfaToken}
62
- * @memberof PasskeyAuthRequest
63
- */
64
- createMfaToken?: CreateMfaToken;
65
58
  }
66
59
  export declare function PasskeyAuthRequestFromJSON(json: any): PasskeyAuthRequest;
67
60
  export declare function PasskeyAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasskeyAuthRequest;
@@ -2,7 +2,6 @@ import { exists } from '../runtime.js';
2
2
  import { AuthenticationExtensionsClientOutputsFromJSON, AuthenticationExtensionsClientOutputsToJSON } from './AuthenticationExtensionsClientOutputs.js';
3
3
  import { AuthenticatorAssertionResponseFromJSON, AuthenticatorAssertionResponseToJSON } from './AuthenticatorAssertionResponse.js';
4
4
  import { AuthenticatorAttachmentFromJSON, AuthenticatorAttachmentToJSON } from './AuthenticatorAttachment.js';
5
- import { CreateMfaTokenFromJSON, CreateMfaTokenToJSON } from './CreateMfaToken.js';
6
5
  import { PublicKeyCredentialTypeFromJSON, PublicKeyCredentialTypeToJSON } from './PublicKeyCredentialType.js';
7
6
 
8
7
  /* tslint:disable */
@@ -20,7 +19,6 @@ function PasskeyAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
20
19
  'authenticatorAttachment': !exists(json, 'authenticatorAttachment') ? undefined : AuthenticatorAttachmentFromJSON(json['authenticatorAttachment']),
21
20
  'clientExtensionResults': AuthenticationExtensionsClientOutputsFromJSON(json['clientExtensionResults']),
22
21
  'type': PublicKeyCredentialTypeFromJSON(json['type']),
23
- 'createMfaToken': !exists(json, 'createMfaToken') ? undefined : CreateMfaTokenFromJSON(json['createMfaToken']),
24
22
  };
25
23
  }
26
24
  function PasskeyAuthRequestToJSON(value) {
@@ -37,7 +35,6 @@ function PasskeyAuthRequestToJSON(value) {
37
35
  'authenticatorAttachment': AuthenticatorAttachmentToJSON(value.authenticatorAttachment),
38
36
  'clientExtensionResults': AuthenticationExtensionsClientOutputsToJSON(value.clientExtensionResults),
39
37
  'type': PublicKeyCredentialTypeToJSON(value.type),
40
- 'createMfaToken': CreateMfaTokenToJSON(value.createMfaToken),
41
38
  };
42
39
  }
43
40
 
@@ -65,7 +65,9 @@ export * from './EmbeddedWalletSecurityMethod';
65
65
  export * from './EmbeddedWalletVersionEnum';
66
66
  export * from './EnvironmentEnum';
67
67
  export * from './ErrorMessageWithCode';
68
+ export * from './Exchange';
68
69
  export * from './ExchangeKeyEnum';
70
+ export * from './ExchangeOption';
69
71
  export * from './ExchangeTransaction';
70
72
  export * from './ExchangeTransferResponse';
71
73
  export * from './ExportEmbeddedWalletResponse';