@dynamic-labs/sdk-api 0.0.450 → 0.0.452

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.450",
3
+ "version": "0.0.452",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -59,7 +59,6 @@ require('../models/InviteStatusEnum.cjs');
59
59
  require('../models/RoleEnum.cjs');
60
60
  var JwksResponse = require('../models/JwksResponse.cjs');
61
61
  var MFAAuthRecoveryDevicePostRequest = require('../models/MFAAuthRecoveryDevicePostRequest.cjs');
62
- var MFAAuthResponse = require('../models/MFAAuthResponse.cjs');
63
62
  var MFAAuthTotpDevicePostRequest = require('../models/MFAAuthTotpDevicePostRequest.cjs');
64
63
  var MFADevice = require('../models/MFADevice.cjs');
65
64
  require('../models/MFADeviceType.cjs');
@@ -141,7 +140,7 @@ class SDKApi extends runtime.BaseAPI {
141
140
  query: queryParameters,
142
141
  body: MFAAuthRecoveryDevicePostRequest.MFAAuthRecoveryDevicePostRequestToJSON(requestParameters.mFAAuthRecoveryDevicePostRequest),
143
142
  }, initOverrides);
144
- return new runtime.JSONApiResponse(response, (jsonValue) => MFAAuthResponse.MFAAuthResponseFromJSON(jsonValue));
143
+ return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
145
144
  });
146
145
  }
147
146
  /**
@@ -208,7 +207,7 @@ class SDKApi extends runtime.BaseAPI {
208
207
  query: queryParameters,
209
208
  body: MFAAuthTotpDevicePostRequest.MFAAuthTotpDevicePostRequestToJSON(requestParameters.mFAAuthTotpDevicePostRequest),
210
209
  }, initOverrides);
211
- return new runtime.JSONApiResponse(response, (jsonValue) => MFAAuthResponse.MFAAuthResponseFromJSON(jsonValue));
210
+ return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
212
211
  });
213
212
  }
214
213
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, Currency, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, FarcasterSignInRequest, GetUserPasskeysResponse, HealthcheckResponse, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthResponse, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SdkUser, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SupportedOnrampsResponse, TokenBalance, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UserFields, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
13
+ import { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, Currency, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, FarcasterSignInRequest, GetUserPasskeysResponse, HealthcheckResponse, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SdkUser, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SupportedOnrampsResponse, TokenBalance, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UserFields, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
14
14
  export interface AuthMfaRecoveryRequest {
15
15
  environmentId: string;
16
16
  mFAAuthRecoveryDevicePostRequest: MFAAuthRecoveryDevicePostRequest;
@@ -450,11 +450,11 @@ export declare class SDKApi extends runtime.BaseAPI {
450
450
  /**
451
451
  * Upgrade JWT scope with valid MFA session
452
452
  */
453
- authMfaRecoveryRaw(requestParameters: AuthMfaRecoveryRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<MFAAuthResponse>>;
453
+ authMfaRecoveryRaw(requestParameters: AuthMfaRecoveryRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
454
454
  /**
455
455
  * Upgrade JWT scope with valid MFA session
456
456
  */
457
- authMfaRecovery(requestParameters: AuthMfaRecoveryRequest, initOverrides?: RequestInit): Promise<MFAAuthResponse>;
457
+ authMfaRecovery(requestParameters: AuthMfaRecoveryRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
458
458
  /**
459
459
  * Options call for this endpoint
460
460
  */
@@ -466,11 +466,11 @@ export declare class SDKApi extends runtime.BaseAPI {
466
466
  /**
467
467
  * Upgrade JWT scope with valid MFA session
468
468
  */
469
- authMfaTotpDeviceRaw(requestParameters: AuthMfaTotpDeviceRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<MFAAuthResponse>>;
469
+ authMfaTotpDeviceRaw(requestParameters: AuthMfaTotpDeviceRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
470
470
  /**
471
471
  * Upgrade JWT scope with valid MFA session
472
472
  */
473
- authMfaTotpDevice(requestParameters: AuthMfaTotpDeviceRequest, initOverrides?: RequestInit): Promise<MFAAuthResponse>;
473
+ authMfaTotpDevice(requestParameters: AuthMfaTotpDeviceRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
474
474
  /**
475
475
  * Options call for this endpoint
476
476
  */
@@ -55,7 +55,6 @@ import '../models/InviteStatusEnum.js';
55
55
  import '../models/RoleEnum.js';
56
56
  import { JwksResponseFromJSON } from '../models/JwksResponse.js';
57
57
  import { MFAAuthRecoveryDevicePostRequestToJSON } from '../models/MFAAuthRecoveryDevicePostRequest.js';
58
- import { MFAAuthResponseFromJSON } from '../models/MFAAuthResponse.js';
59
58
  import { MFAAuthTotpDevicePostRequestToJSON } from '../models/MFAAuthTotpDevicePostRequest.js';
60
59
  import { MFADeviceFromJSON } from '../models/MFADevice.js';
61
60
  import '../models/MFADeviceType.js';
@@ -137,7 +136,7 @@ class SDKApi extends BaseAPI {
137
136
  query: queryParameters,
138
137
  body: MFAAuthRecoveryDevicePostRequestToJSON(requestParameters.mFAAuthRecoveryDevicePostRequest),
139
138
  }, initOverrides);
140
- return new JSONApiResponse(response, (jsonValue) => MFAAuthResponseFromJSON(jsonValue));
139
+ return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
141
140
  });
142
141
  }
143
142
  /**
@@ -204,7 +203,7 @@ class SDKApi extends BaseAPI {
204
203
  query: queryParameters,
205
204
  body: MFAAuthTotpDevicePostRequestToJSON(requestParameters.mFAAuthTotpDevicePostRequest),
206
205
  }, initOverrides);
207
- return new JSONApiResponse(response, (jsonValue) => MFAAuthResponseFromJSON(jsonValue));
206
+ return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
208
207
  });
209
208
  }
210
209
  /**
package/src/index.cjs CHANGED
@@ -148,7 +148,6 @@ var Key = require('./models/Key.cjs');
148
148
  var KeyResponse = require('./models/KeyResponse.cjs');
149
149
  var KycFieldType = require('./models/KycFieldType.cjs');
150
150
  var MFAAuthRecoveryDevicePostRequest = require('./models/MFAAuthRecoveryDevicePostRequest.cjs');
151
- var MFAAuthResponse = require('./models/MFAAuthResponse.cjs');
152
151
  var MFAAuthTotpDevicePostRequest = require('./models/MFAAuthTotpDevicePostRequest.cjs');
153
152
  var MFADevice = require('./models/MFADevice.cjs');
154
153
  var MFADeviceType = require('./models/MFADeviceType.cjs');
@@ -815,9 +814,6 @@ exports.KycFieldTypeToJSON = KycFieldType.KycFieldTypeToJSON;
815
814
  exports.MFAAuthRecoveryDevicePostRequestFromJSON = MFAAuthRecoveryDevicePostRequest.MFAAuthRecoveryDevicePostRequestFromJSON;
816
815
  exports.MFAAuthRecoveryDevicePostRequestFromJSONTyped = MFAAuthRecoveryDevicePostRequest.MFAAuthRecoveryDevicePostRequestFromJSONTyped;
817
816
  exports.MFAAuthRecoveryDevicePostRequestToJSON = MFAAuthRecoveryDevicePostRequest.MFAAuthRecoveryDevicePostRequestToJSON;
818
- exports.MFAAuthResponseFromJSON = MFAAuthResponse.MFAAuthResponseFromJSON;
819
- exports.MFAAuthResponseFromJSONTyped = MFAAuthResponse.MFAAuthResponseFromJSONTyped;
820
- exports.MFAAuthResponseToJSON = MFAAuthResponse.MFAAuthResponseToJSON;
821
817
  exports.MFAAuthTotpDevicePostRequestFromJSON = MFAAuthTotpDevicePostRequest.MFAAuthTotpDevicePostRequestFromJSON;
822
818
  exports.MFAAuthTotpDevicePostRequestFromJSONTyped = MFAAuthTotpDevicePostRequest.MFAAuthTotpDevicePostRequestFromJSONTyped;
823
819
  exports.MFAAuthTotpDevicePostRequestToJSON = MFAAuthTotpDevicePostRequest.MFAAuthTotpDevicePostRequestToJSON;
package/src/index.js CHANGED
@@ -144,7 +144,6 @@ export { KeyFromJSON, KeyFromJSONTyped, KeyToJSON } from './models/Key.js';
144
144
  export { KeyResponseFromJSON, KeyResponseFromJSONTyped, KeyResponseToJSON } from './models/KeyResponse.js';
145
145
  export { KycFieldType, KycFieldTypeFromJSON, KycFieldTypeFromJSONTyped, KycFieldTypeToJSON } from './models/KycFieldType.js';
146
146
  export { MFAAuthRecoveryDevicePostRequestFromJSON, MFAAuthRecoveryDevicePostRequestFromJSONTyped, MFAAuthRecoveryDevicePostRequestToJSON } from './models/MFAAuthRecoveryDevicePostRequest.js';
147
- export { MFAAuthResponseFromJSON, MFAAuthResponseFromJSONTyped, MFAAuthResponseToJSON } from './models/MFAAuthResponse.js';
148
147
  export { MFAAuthTotpDevicePostRequestFromJSON, MFAAuthTotpDevicePostRequestFromJSONTyped, MFAAuthTotpDevicePostRequestToJSON } from './models/MFAAuthTotpDevicePostRequest.js';
149
148
  export { MFADeviceFromJSON, MFADeviceFromJSONTyped, MFADeviceToJSON } from './models/MFADevice.js';
150
149
  export { MFADeviceType, MFADeviceTypeFromJSON, MFADeviceTypeFromJSONTyped, MFADeviceTypeToJSON } from './models/MFADeviceType.js';
@@ -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
 
@@ -119,7 +119,6 @@ export * from './Key';
119
119
  export * from './KeyResponse';
120
120
  export * from './KycFieldType';
121
121
  export * from './MFAAuthRecoveryDevicePostRequest';
122
- export * from './MFAAuthResponse';
123
122
  export * from './MFAAuthTotpDevicePostRequest';
124
123
  export * from './MFADevice';
125
124
  export * from './MFADeviceType';
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /* 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
- function MFAAuthResponseFromJSON(json) {
19
- return MFAAuthResponseFromJSONTyped(json);
20
- }
21
- function MFAAuthResponseFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'jwt': json['jwt'],
27
- 'minifiedJwt': json['minifiedJwt'],
28
- };
29
- }
30
- function MFAAuthResponseToJSON(value) {
31
- if (value === undefined) {
32
- return undefined;
33
- }
34
- if (value === null) {
35
- return null;
36
- }
37
- return {
38
- 'jwt': value.jwt,
39
- 'minifiedJwt': value.minifiedJwt,
40
- };
41
- }
42
-
43
- exports.MFAAuthResponseFromJSON = MFAAuthResponseFromJSON;
44
- exports.MFAAuthResponseFromJSONTyped = MFAAuthResponseFromJSONTyped;
45
- exports.MFAAuthResponseToJSON = MFAAuthResponseToJSON;
@@ -1,33 +0,0 @@
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 MFAAuthResponse
16
- */
17
- export interface MFAAuthResponse {
18
- /**
19
- * The JWT token for the user
20
- * @type {string}
21
- * @memberof MFAAuthResponse
22
- */
23
- jwt: string;
24
- /**
25
- * The JWT token for the user
26
- * @type {string}
27
- * @memberof MFAAuthResponse
28
- */
29
- minifiedJwt: string;
30
- }
31
- export declare function MFAAuthResponseFromJSON(json: any): MFAAuthResponse;
32
- export declare function MFAAuthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFAAuthResponse;
33
- export declare function MFAAuthResponseToJSON(value?: MFAAuthResponse | null): any;
@@ -1,39 +0,0 @@
1
- /* 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
- function MFAAuthResponseFromJSON(json) {
15
- return MFAAuthResponseFromJSONTyped(json);
16
- }
17
- function MFAAuthResponseFromJSONTyped(json, ignoreDiscriminator) {
18
- if ((json === undefined) || (json === null)) {
19
- return json;
20
- }
21
- return {
22
- 'jwt': json['jwt'],
23
- 'minifiedJwt': json['minifiedJwt'],
24
- };
25
- }
26
- function MFAAuthResponseToJSON(value) {
27
- if (value === undefined) {
28
- return undefined;
29
- }
30
- if (value === null) {
31
- return null;
32
- }
33
- return {
34
- 'jwt': value.jwt,
35
- 'minifiedJwt': value.minifiedJwt,
36
- };
37
- }
38
-
39
- export { MFAAuthResponseFromJSON, MFAAuthResponseFromJSONTyped, MFAAuthResponseToJSON };