@dynamic-labs/sdk-api-core 0.0.449 → 0.0.451

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.449",
3
+ "version": "0.0.451",
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': json['jwt'],
18
+ 'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
19
19
  'user': SdkUser.SdkUserFromJSON(json['user']),
20
- 'minifiedJwt': json['minifiedJwt'],
20
+ 'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : 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
21
+ * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
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
33
+ * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
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': json['jwt'],
14
+ 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
15
15
  'user': SdkUserFromJSON(json['user']),
16
- 'minifiedJwt': json['minifiedJwt'],
16
+ 'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
17
17
  'expiresAt': json['expiresAt'],
18
18
  'walletId': json['walletId'],
19
19
  'secret': !exists(json, 'secret') ? undefined : json['secret'],
@@ -2,19 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
6
+
5
7
  /* tslint:disable */
6
- /* eslint-disable */
7
- /**
8
- * Dashboard API
9
- * Dashboard API documentation
10
- *
11
- * The version of the OpenAPI document: 1.0.0
12
- *
13
- *
14
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
- * https://openapi-generator.tech
16
- * Do not edit the class manually.
17
- */
18
8
  function FarcasterSignInRequestFromJSON(json) {
19
9
  return FarcasterSignInRequestFromJSONTyped(json);
20
10
  }
@@ -28,6 +18,7 @@ function FarcasterSignInRequestFromJSONTyped(json, ignoreDiscriminator) {
28
18
  'nonce': json['nonce'],
29
19
  'message': json['message'],
30
20
  'signature': json['signature'],
21
+ 'captchaToken': !runtime.exists(json, 'captchaToken') ? undefined : json['captchaToken'],
31
22
  };
32
23
  }
33
24
  function FarcasterSignInRequestToJSON(value) {
@@ -43,6 +34,7 @@ function FarcasterSignInRequestToJSON(value) {
43
34
  'nonce': value.nonce,
44
35
  'message': value.message,
45
36
  'signature': value.signature,
37
+ 'captchaToken': value.captchaToken,
46
38
  };
47
39
  }
48
40
 
@@ -45,6 +45,12 @@ export interface FarcasterSignInRequest {
45
45
  * @memberof FarcasterSignInRequest
46
46
  */
47
47
  signature: string;
48
+ /**
49
+ * Optional captcha token to verify that the user is not a bot
50
+ * @type {string}
51
+ * @memberof FarcasterSignInRequest
52
+ */
53
+ captchaToken?: string;
48
54
  }
49
55
  export declare function FarcasterSignInRequestFromJSON(json: any): FarcasterSignInRequest;
50
56
  export declare function FarcasterSignInRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FarcasterSignInRequest;
@@ -1,16 +1,6 @@
1
+ import { exists } from '../runtime.js';
2
+
1
3
  /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dashboard API
5
- * Dashboard API documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
4
  function FarcasterSignInRequestFromJSON(json) {
15
5
  return FarcasterSignInRequestFromJSONTyped(json);
16
6
  }
@@ -24,6 +14,7 @@ function FarcasterSignInRequestFromJSONTyped(json, ignoreDiscriminator) {
24
14
  'nonce': json['nonce'],
25
15
  'message': json['message'],
26
16
  'signature': json['signature'],
17
+ 'captchaToken': !exists(json, 'captchaToken') ? undefined : json['captchaToken'],
27
18
  };
28
19
  }
29
20
  function FarcasterSignInRequestToJSON(value) {
@@ -39,6 +30,7 @@ function FarcasterSignInRequestToJSON(value) {
39
30
  'nonce': value.nonce,
40
31
  'message': value.message,
41
32
  'signature': value.signature,
33
+ 'captchaToken': value.captchaToken,
42
34
  };
43
35
  }
44
36
 
@@ -17,9 +17,9 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
17
17
  return json;
18
18
  }
19
19
  return {
20
- 'jwt': json['jwt'],
20
+ 'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
21
21
  'user': SdkUser.SdkUserFromJSON(json['user']),
22
- 'minifiedJwt': json['minifiedJwt'],
22
+ 'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : 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
23
+ * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
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
35
+ * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
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': json['jwt'],
16
+ 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
17
17
  'user': SdkUserFromJSON(json['user']),
18
- 'minifiedJwt': json['minifiedJwt'],
18
+ 'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
19
19
  'expiresAt': json['expiresAt'],
20
20
  'nextView': NextViewEnumFromJSON(json['nextView']),
21
21
  'emailVerification': !exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponseFromJSON(json['emailVerification']),
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
5
6
  var SdkUser = require('./SdkUser.cjs');
6
7
 
7
8
  /* tslint:disable */
@@ -13,9 +14,9 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
13
14
  return json;
14
15
  }
15
16
  return {
16
- 'jwt': json['jwt'],
17
+ 'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
17
18
  'user': SdkUser.SdkUserFromJSON(json['user']),
18
- 'minifiedJwt': json['minifiedJwt'],
19
+ 'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
19
20
  'expiresAt': json['expiresAt'],
20
21
  };
21
22
  }
@@ -17,11 +17,11 @@ import { SdkUser } from './SdkUser';
17
17
  */
18
18
  export interface VerifyResponse {
19
19
  /**
20
- * Encoded JWT token
20
+ * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
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
32
+ * Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
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,3 +1,4 @@
1
+ import { exists } from '../runtime.js';
1
2
  import { SdkUserFromJSON, SdkUserToJSON } from './SdkUser.js';
2
3
 
3
4
  /* tslint:disable */
@@ -9,9 +10,9 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
9
10
  return json;
10
11
  }
11
12
  return {
12
- 'jwt': json['jwt'],
13
+ 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
13
14
  'user': SdkUserFromJSON(json['user']),
14
- 'minifiedJwt': json['minifiedJwt'],
15
+ 'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
15
16
  'expiresAt': json['expiresAt'],
16
17
  };
17
18
  }