@dynamic-labs/sdk-api-core 0.0.446 → 0.0.447

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.446",
3
+ "version": "0.0.447",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -15,9 +15,9 @@ function EmbeddedWalletSecretWithUpdatedJwtFromJSONTyped(json, ignoreDiscriminat
15
15
  return json;
16
16
  }
17
17
  return {
18
- 'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
18
+ 'jwt': json['jwt'],
19
19
  'user': SdkUser.SdkUserFromJSON(json['user']),
20
- 'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
20
+ 'minifiedJwt': json['minifiedJwt'],
21
21
  'expiresAt': json['expiresAt'],
22
22
  'walletId': json['walletId'],
23
23
  'secret': !runtime.exists(json, 'secret') ? undefined : json['secret'],
@@ -18,11 +18,11 @@ import { SdkUser } from './SdkUser';
18
18
  */
19
19
  export interface EmbeddedWalletSecretWithUpdatedJwt {
20
20
  /**
21
- * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
21
+ * Encoded JWT token
22
22
  * @type {string}
23
23
  * @memberof EmbeddedWalletSecretWithUpdatedJwt
24
24
  */
25
- jwt?: string;
25
+ jwt: string;
26
26
  /**
27
27
  *
28
28
  * @type {SdkUser}
@@ -30,11 +30,11 @@ export interface EmbeddedWalletSecretWithUpdatedJwt {
30
30
  */
31
31
  user: SdkUser;
32
32
  /**
33
- * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
33
+ * Encoded JWT token
34
34
  * @type {string}
35
35
  * @memberof EmbeddedWalletSecretWithUpdatedJwt
36
36
  */
37
- minifiedJwt?: string;
37
+ minifiedJwt: string;
38
38
  /**
39
39
  * Format is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the `jwt` field or a response httpOnly cookie set by the server.
40
40
  * @type {number}
@@ -11,9 +11,9 @@ function EmbeddedWalletSecretWithUpdatedJwtFromJSONTyped(json, ignoreDiscriminat
11
11
  return json;
12
12
  }
13
13
  return {
14
- 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
14
+ 'jwt': json['jwt'],
15
15
  'user': SdkUserFromJSON(json['user']),
16
- 'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
16
+ 'minifiedJwt': json['minifiedJwt'],
17
17
  'expiresAt': json['expiresAt'],
18
18
  'walletId': json['walletId'],
19
19
  'secret': !exists(json, 'secret') ? undefined : json['secret'],
@@ -17,9 +17,9 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
17
17
  return json;
18
18
  }
19
19
  return {
20
- 'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
20
+ 'jwt': json['jwt'],
21
21
  'user': SdkUser.SdkUserFromJSON(json['user']),
22
- 'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
22
+ 'minifiedJwt': json['minifiedJwt'],
23
23
  'expiresAt': json['expiresAt'],
24
24
  'nextView': NextViewEnum.NextViewEnumFromJSON(json['nextView']),
25
25
  'emailVerification': !runtime.exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponse.EmailVerificationCreateResponseFromJSON(json['emailVerification']),
@@ -20,11 +20,11 @@ import { SmsVerificationCreateResponse } from './SmsVerificationCreateResponse';
20
20
  */
21
21
  export interface UpdateSelfResponse {
22
22
  /**
23
- * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
23
+ * Encoded JWT token
24
24
  * @type {string}
25
25
  * @memberof UpdateSelfResponse
26
26
  */
27
- jwt?: string;
27
+ jwt: string;
28
28
  /**
29
29
  *
30
30
  * @type {SdkUser}
@@ -32,11 +32,11 @@ export interface UpdateSelfResponse {
32
32
  */
33
33
  user: SdkUser;
34
34
  /**
35
- * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
35
+ * Encoded JWT token
36
36
  * @type {string}
37
37
  * @memberof UpdateSelfResponse
38
38
  */
39
- minifiedJwt?: string;
39
+ minifiedJwt: string;
40
40
  /**
41
41
  * Format is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the `jwt` field or a response httpOnly cookie set by the server.
42
42
  * @type {number}
@@ -13,9 +13,9 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
13
13
  return json;
14
14
  }
15
15
  return {
16
- 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
16
+ 'jwt': json['jwt'],
17
17
  'user': SdkUserFromJSON(json['user']),
18
- 'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
18
+ 'minifiedJwt': json['minifiedJwt'],
19
19
  'expiresAt': json['expiresAt'],
20
20
  'nextView': NextViewEnumFromJSON(json['nextView']),
21
21
  'emailVerification': !exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponseFromJSON(json['emailVerification']),
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../runtime.cjs');
6
5
  var SdkUser = require('./SdkUser.cjs');
7
6
 
8
7
  /* tslint:disable */
@@ -14,9 +13,9 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
14
13
  return json;
15
14
  }
16
15
  return {
17
- 'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
16
+ 'jwt': json['jwt'],
18
17
  'user': SdkUser.SdkUserFromJSON(json['user']),
19
- 'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
18
+ 'minifiedJwt': json['minifiedJwt'],
20
19
  'expiresAt': json['expiresAt'],
21
20
  };
22
21
  }
@@ -17,11 +17,11 @@ import { SdkUser } from './SdkUser';
17
17
  */
18
18
  export interface VerifyResponse {
19
19
  /**
20
- * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
20
+ * Encoded JWT token
21
21
  * @type {string}
22
22
  * @memberof VerifyResponse
23
23
  */
24
- jwt?: string;
24
+ jwt: string;
25
25
  /**
26
26
  *
27
27
  * @type {SdkUser}
@@ -29,11 +29,11 @@ export interface VerifyResponse {
29
29
  */
30
30
  user: SdkUser;
31
31
  /**
32
- * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
32
+ * Encoded JWT token
33
33
  * @type {string}
34
34
  * @memberof VerifyResponse
35
35
  */
36
- minifiedJwt?: string;
36
+ minifiedJwt: string;
37
37
  /**
38
38
  * Format is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the `jwt` field or a response httpOnly cookie set by the server.
39
39
  * @type {number}
@@ -1,4 +1,3 @@
1
- import { exists } from '../runtime.js';
2
1
  import { SdkUserFromJSON, SdkUserToJSON } from './SdkUser.js';
3
2
 
4
3
  /* tslint:disable */
@@ -10,9 +9,9 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
10
9
  return json;
11
10
  }
12
11
  return {
13
- 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
12
+ 'jwt': json['jwt'],
14
13
  'user': SdkUserFromJSON(json['user']),
15
- 'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
14
+ 'minifiedJwt': json['minifiedJwt'],
16
15
  'expiresAt': json['expiresAt'],
17
16
  };
18
17
  }