@dynamic-labs/sdk-api 0.0.925 → 0.0.926
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 +1 -1
- package/src/apis/ExchangesApi.cjs +305 -0
- package/src/apis/ExchangesApi.d.ts +97 -0
- package/src/apis/ExchangesApi.js +301 -0
- package/src/apis/ProvidersApi.cjs +364 -0
- package/src/apis/ProvidersApi.d.ts +124 -0
- package/src/apis/ProvidersApi.js +360 -0
- package/src/apis/SettingsApi.cjs +43 -35
- package/src/apis/SettingsApi.d.ts +9 -47
- package/src/apis/SettingsApi.js +43 -35
- package/src/apis/index.d.ts +3 -1
- package/src/index.cjs +4 -0
- package/src/index.js +2 -0
- package/src/models/AuthSettings.cjs +3 -0
- package/src/models/AuthSettings.d.ts +6 -0
- package/src/models/AuthSettings.js +3 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +2 -1
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
|
@@ -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 AuthStorageEnum = require('./AuthStorageEnum.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
@@ -13,6 +14,7 @@ function AuthSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
return json;
|
|
14
15
|
}
|
|
15
16
|
return {
|
|
17
|
+
'allowMultipleCredentialsForSignIn': !runtime.exists(json, 'allowMultipleCredentialsForSignIn') ? undefined : json['allowMultipleCredentialsForSignIn'],
|
|
16
18
|
'storage': (json['storage'].map(AuthStorageEnum.AuthStorageEnumFromJSON)),
|
|
17
19
|
};
|
|
18
20
|
}
|
|
@@ -24,6 +26,7 @@ function AuthSettingsToJSON(value) {
|
|
|
24
26
|
return null;
|
|
25
27
|
}
|
|
26
28
|
return {
|
|
29
|
+
'allowMultipleCredentialsForSignIn': value.allowMultipleCredentialsForSignIn,
|
|
27
30
|
'storage': (value.storage.map(AuthStorageEnum.AuthStorageEnumToJSON)),
|
|
28
31
|
};
|
|
29
32
|
}
|
|
@@ -16,6 +16,12 @@ import { AuthStorageEnum } from './AuthStorageEnum';
|
|
|
16
16
|
* @interface AuthSettings
|
|
17
17
|
*/
|
|
18
18
|
export interface AuthSettings {
|
|
19
|
+
/**
|
|
20
|
+
* When false, only the first verified credential (wallet, email, social, phone, passkey, Farcaster) linked by a user will be sign-in enabled. Additional credentials will be linked but marked as signInEnabled false and cannot be used for authentication. Defaults to false.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof AuthSettings
|
|
23
|
+
*/
|
|
24
|
+
allowMultipleCredentialsForSignIn?: boolean;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {Array<AuthStorageEnum>}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { AuthStorageEnumFromJSON, AuthStorageEnumToJSON } from './AuthStorageEnum.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
@@ -9,6 +10,7 @@ function AuthSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
10
|
return json;
|
|
10
11
|
}
|
|
11
12
|
return {
|
|
13
|
+
'allowMultipleCredentialsForSignIn': !exists(json, 'allowMultipleCredentialsForSignIn') ? undefined : json['allowMultipleCredentialsForSignIn'],
|
|
12
14
|
'storage': (json['storage'].map(AuthStorageEnumFromJSON)),
|
|
13
15
|
};
|
|
14
16
|
}
|
|
@@ -20,6 +22,7 @@ function AuthSettingsToJSON(value) {
|
|
|
20
22
|
return null;
|
|
21
23
|
}
|
|
22
24
|
return {
|
|
25
|
+
'allowMultipleCredentialsForSignIn': value.allowMultipleCredentialsForSignIn,
|
|
23
26
|
'storage': (value.storage.map(AuthStorageEnumToJSON)),
|
|
24
27
|
};
|
|
25
28
|
}
|
|
@@ -142,6 +142,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
142
142
|
UnprocessableEntityErrorCode["PasskeyNotFound"] = "passkey_not_found";
|
|
143
143
|
UnprocessableEntityErrorCode["CannotDeletePasskeyLinkedToEmbeddedWallet"] = "cannot_delete_passkey_linked_to_embedded_wallet";
|
|
144
144
|
UnprocessableEntityErrorCode["CannotDeleteLastSignInVerifiedCredential"] = "cannot_delete_last_sign_in_verified_credential";
|
|
145
|
+
UnprocessableEntityErrorCode["CredentialNotEnabledForSignIn"] = "credential_not_enabled_for_sign_in";
|
|
145
146
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
146
147
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
147
148
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -134,7 +134,8 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
134
134
|
MaxPasskeysPerUser = "max_passkeys_per_user",
|
|
135
135
|
PasskeyNotFound = "passkey_not_found",
|
|
136
136
|
CannotDeletePasskeyLinkedToEmbeddedWallet = "cannot_delete_passkey_linked_to_embedded_wallet",
|
|
137
|
-
CannotDeleteLastSignInVerifiedCredential = "cannot_delete_last_sign_in_verified_credential"
|
|
137
|
+
CannotDeleteLastSignInVerifiedCredential = "cannot_delete_last_sign_in_verified_credential",
|
|
138
|
+
CredentialNotEnabledForSignIn = "credential_not_enabled_for_sign_in"
|
|
138
139
|
}
|
|
139
140
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
140
141
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -138,6 +138,7 @@ var UnprocessableEntityErrorCode;
|
|
|
138
138
|
UnprocessableEntityErrorCode["PasskeyNotFound"] = "passkey_not_found";
|
|
139
139
|
UnprocessableEntityErrorCode["CannotDeletePasskeyLinkedToEmbeddedWallet"] = "cannot_delete_passkey_linked_to_embedded_wallet";
|
|
140
140
|
UnprocessableEntityErrorCode["CannotDeleteLastSignInVerifiedCredential"] = "cannot_delete_last_sign_in_verified_credential";
|
|
141
|
+
UnprocessableEntityErrorCode["CredentialNotEnabledForSignIn"] = "credential_not_enabled_for_sign_in";
|
|
141
142
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
142
143
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
143
144
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|