@randock/nameshift-api-client 0.0.504 → 0.0.505

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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/README.md +3 -3
  3. package/dist/apis/UsersApi.d.ts +18 -18
  4. package/dist/apis/UsersApi.js +69 -70
  5. package/dist/apis/UsersPublicApi.d.ts +20 -7
  6. package/dist/apis/UsersPublicApi.js +54 -6
  7. package/dist/models/AdminUserSecurityDto.d.ts +4 -4
  8. package/dist/models/AdminUserSecurityDto.js +3 -4
  9. package/dist/models/ChangeUserSignInStepsInput.d.ts +33 -0
  10. package/dist/models/ChangeUserSignInStepsInput.js +51 -0
  11. package/dist/models/LoginPasswordInput.d.ts +38 -0
  12. package/dist/models/LoginPasswordInput.js +55 -0
  13. package/dist/models/SecondFactorMethod.d.ts +1 -0
  14. package/dist/models/SecondFactorMethod.js +1 -0
  15. package/dist/models/UserLoginAttemptResult.d.ts +1 -0
  16. package/dist/models/UserLoginAttemptResult.js +1 -0
  17. package/dist/models/UserSecurityDto.d.ts +11 -11
  18. package/dist/models/UserSecurityDto.js +10 -10
  19. package/dist/models/UserSignInFactor.d.ts +26 -0
  20. package/dist/models/UserSignInFactor.js +52 -0
  21. package/dist/models/index.d.ts +3 -2
  22. package/dist/models/index.js +3 -2
  23. package/package.json +1 -1
  24. package/src/apis/UsersApi.ts +73 -74
  25. package/src/apis/UsersPublicApi.ts +51 -6
  26. package/src/models/AdminUserSecurityDto.ts +12 -14
  27. package/src/models/ChangeUserSignInStepsInput.ts +74 -0
  28. package/src/models/LoginPasswordInput.ts +75 -0
  29. package/src/models/SecondFactorMethod.ts +1 -0
  30. package/src/models/UserLoginAttemptResult.ts +1 -0
  31. package/src/models/UserSecurityDto.ts +25 -27
  32. package/src/models/UserSignInFactor.ts +54 -0
  33. package/src/models/index.ts +3 -2
  34. package/dist/models/ChangeUserAuthenticationMethodInput.d.ts +0 -33
  35. package/dist/models/ChangeUserAuthenticationMethodInput.js +0 -52
  36. package/dist/models/UserAuthenticationMethod.d.ts +0 -27
  37. package/dist/models/UserAuthenticationMethod.js +0 -53
  38. package/src/models/ChangeUserAuthenticationMethodInput.ts +0 -76
  39. package/src/models/UserAuthenticationMethod.ts +0 -55
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { UserAuthenticationMethod } from './UserAuthenticationMethod';
16
+ import type { UserSignInFactor } from './UserSignInFactor';
17
17
  import {
18
- UserAuthenticationMethodFromJSON,
19
- UserAuthenticationMethodFromJSONTyped,
20
- UserAuthenticationMethodToJSON,
21
- UserAuthenticationMethodToJSONTyped,
22
- } from './UserAuthenticationMethod';
18
+ UserSignInFactorFromJSON,
19
+ UserSignInFactorFromJSONTyped,
20
+ UserSignInFactorToJSON,
21
+ UserSignInFactorToJSONTyped,
22
+ } from './UserSignInFactor';
23
23
  import type { UserPasskeyDto } from './UserPasskeyDto';
24
24
  import {
25
25
  UserPasskeyDtoFromJSON,
@@ -35,23 +35,23 @@ import {
35
35
  */
36
36
  export interface UserSecurityDto {
37
37
  /**
38
- * Method the user signs in with.
39
- * @type {UserAuthenticationMethod}
38
+ * Steps the next sign-in follows, in order; each step lists the factors to choose from. Staff on a single step from before a second factor was required for them get, as a second step, the factors they set up.
39
+ * @type {Array<Array<UserSignInFactor>>}
40
40
  * @memberof UserSecurityDto
41
41
  */
42
- authenticationMethod: UserAuthenticationMethod;
42
+ signInSteps: Array<Array<UserSignInFactor>>;
43
43
  /**
44
- * Method the next sign-in follows. It differs from authenticationMethod for staff on a password alone once a second factor is required for them.
45
- * @type {UserAuthenticationMethod}
44
+ * Factors the user set up, which the steps can ask for.
45
+ * @type {Array<UserSignInFactor>}
46
46
  * @memberof UserSecurityDto
47
47
  */
48
- effectiveAuthenticationMethod: UserAuthenticationMethod;
48
+ setUpSignInFactors: Array<UserSignInFactor>;
49
49
  /**
50
- * Methods the user can switch to with the factors set up right now.
51
- * @type {Array<UserAuthenticationMethod>}
50
+ * Fewest steps the user can sign in with: 2 for staff once a second factor is required for them, 1 otherwise.
51
+ * @type {number}
52
52
  * @memberof UserSecurityDto
53
53
  */
54
- allowedAuthenticationMethods: Array<UserAuthenticationMethod>;
54
+ minSignInSteps: number;
55
55
  /**
56
56
  * Whether the user has a staff role, which requires a second factor or a passkey.
57
57
  * @type {boolean}
@@ -59,7 +59,7 @@ export interface UserSecurityDto {
59
59
  */
60
60
  isStaff: boolean;
61
61
  /**
62
- * Whether the user must keep a verification step: staff once second factors are required for them. They always sign in with a password and a verification step, and cannot remove their last authenticator app or passkey.
62
+ * Whether the user must keep a second step: staff once second factors are required for them. They sign in with two steps at least, and cannot remove their last authenticator app or passkey.
63
63
  * @type {boolean}
64
64
  * @memberof UserSecurityDto
65
65
  */
@@ -102,15 +102,13 @@ export interface UserSecurityDto {
102
102
  loginLocationVerificationEnabled: boolean;
103
103
  }
104
104
 
105
-
106
-
107
105
  /**
108
106
  * Check if a given object implements the UserSecurityDto interface.
109
107
  */
110
108
  export function instanceOfUserSecurityDto(value: object): value is UserSecurityDto {
111
- if (!('authenticationMethod' in value) || value['authenticationMethod'] === undefined) return false;
112
- if (!('effectiveAuthenticationMethod' in value) || value['effectiveAuthenticationMethod'] === undefined) return false;
113
- if (!('allowedAuthenticationMethods' in value) || value['allowedAuthenticationMethods'] === undefined) return false;
109
+ if (!('signInSteps' in value) || value['signInSteps'] === undefined) return false;
110
+ if (!('setUpSignInFactors' in value) || value['setUpSignInFactors'] === undefined) return false;
111
+ if (!('minSignInSteps' in value) || value['minSignInSteps'] === undefined) return false;
114
112
  if (!('isStaff' in value) || value['isStaff'] === undefined) return false;
115
113
  if (!('secondFactorRequired' in value) || value['secondFactorRequired'] === undefined) return false;
116
114
  if (!('secondFactorSetupRequired' in value) || value['secondFactorSetupRequired'] === undefined) return false;
@@ -132,9 +130,9 @@ export function UserSecurityDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
132
130
  }
133
131
  return {
134
132
 
135
- 'authenticationMethod': UserAuthenticationMethodFromJSON(json['authenticationMethod']),
136
- 'effectiveAuthenticationMethod': UserAuthenticationMethodFromJSON(json['effectiveAuthenticationMethod']),
137
- 'allowedAuthenticationMethods': ((json['allowedAuthenticationMethods'] as Array<any>).map(UserAuthenticationMethodFromJSON)),
133
+ 'signInSteps': json['signInSteps'],
134
+ 'setUpSignInFactors': ((json['setUpSignInFactors'] as Array<any>).map(UserSignInFactorFromJSON)),
135
+ 'minSignInSteps': json['minSignInSteps'],
138
136
  'isStaff': json['isStaff'],
139
137
  'secondFactorRequired': json['secondFactorRequired'],
140
138
  'secondFactorSetupRequired': json['secondFactorSetupRequired'],
@@ -157,9 +155,9 @@ export function UserSecurityDtoToJSONTyped(value?: UserSecurityDto | null, ignor
157
155
 
158
156
  return {
159
157
 
160
- 'authenticationMethod': UserAuthenticationMethodToJSON(value['authenticationMethod']),
161
- 'effectiveAuthenticationMethod': UserAuthenticationMethodToJSON(value['effectiveAuthenticationMethod']),
162
- 'allowedAuthenticationMethods': ((value['allowedAuthenticationMethods'] as Array<any>).map(UserAuthenticationMethodToJSON)),
158
+ 'signInSteps': value['signInSteps'],
159
+ 'setUpSignInFactors': ((value['setUpSignInFactors'] as Array<any>).map(UserSignInFactorToJSON)),
160
+ 'minSignInSteps': value['minSignInSteps'],
163
161
  'isStaff': value['isStaff'],
164
162
  'secondFactorRequired': value['secondFactorRequired'],
165
163
  'secondFactorSetupRequired': value['secondFactorSetupRequired'],
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.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
+
15
+
16
+ /**
17
+ * Factors the user set up, which the steps can ask for.
18
+ * @export
19
+ */
20
+ export const UserSignInFactor = {
21
+ PASSWORD: 'password',
22
+ PASSKEY: 'passkey',
23
+ TOTP: 'totp'
24
+ } as const;
25
+ export type UserSignInFactor = typeof UserSignInFactor[keyof typeof UserSignInFactor];
26
+
27
+
28
+ export function instanceOfUserSignInFactor(value: any): boolean {
29
+ for (const key in UserSignInFactor) {
30
+ if (Object.prototype.hasOwnProperty.call(UserSignInFactor, key)) {
31
+ if (UserSignInFactor[key as keyof typeof UserSignInFactor] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function UserSignInFactorFromJSON(json: any): UserSignInFactor {
40
+ return UserSignInFactorFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function UserSignInFactorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSignInFactor {
44
+ return json as UserSignInFactor;
45
+ }
46
+
47
+ export function UserSignInFactorToJSON(value?: UserSignInFactor | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function UserSignInFactorToJSONTyped(value: any, ignoreDiscriminator: boolean): UserSignInFactor {
52
+ return value as UserSignInFactor;
53
+ }
54
+
@@ -157,10 +157,10 @@ export * from './ChallengeRewardBalanceDto';
157
157
  export * from './ChangeInvoiceStatusInput';
158
158
  export * from './ChangeOrderStatusInput';
159
159
  export * from './ChangeSubscriptionStatusInput';
160
- export * from './ChangeUserAuthenticationMethodInput';
161
160
  export * from './ChangeUserEmailWithOtpInput';
162
161
  export * from './ChangeUserLoginLocationVerificationInput';
163
162
  export * from './ChangeUserPasswordInput';
163
+ export * from './ChangeUserSignInStepsInput';
164
164
  export * from './ChartDataPoint';
165
165
  export * from './CheckDomainsNsInput';
166
166
  export * from './CommissionAccountDto';
@@ -407,6 +407,7 @@ export * from './LoginDto';
407
407
  export * from './LoginInput';
408
408
  export * from './LoginPasskeyInput';
409
409
  export * from './LoginPasskeyOptionsInput';
410
+ export * from './LoginPasswordInput';
410
411
  export * from './LoginRecoveryCodeInput';
411
412
  export * from './LoginStatus';
412
413
  export * from './MajesticMetrics';
@@ -605,7 +606,6 @@ export * from './UpdateSubscriptionInput';
605
606
  export * from './UpdateTaskMuteStatusForBuyerInput';
606
607
  export * from './UpdateTaskMuteStatusInput';
607
608
  export * from './UpdateUserNotificationSettingsInput';
608
- export * from './UserAuthenticationMethod';
609
609
  export * from './UserLoginAttemptDto';
610
610
  export * from './UserLoginAttemptMethod';
611
611
  export * from './UserLoginAttemptResult';
@@ -617,6 +617,7 @@ export * from './UserNotificationSettingsDto';
617
617
  export * from './UserPasskeyDto';
618
618
  export * from './UserPasswordResetDto';
619
619
  export * from './UserSecurityDto';
620
+ export * from './UserSignInFactor';
620
621
  export * from './UserSignedTokenInput';
621
622
  export * from './ValidateTaxNumberDto';
622
623
  export * from './ValidateTaxNumberInput';
@@ -1,33 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
- *
5
- * The version of the OpenAPI document: 1.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 type { UserAuthenticationMethod } from './UserAuthenticationMethod';
13
- /**
14
- *
15
- * @export
16
- * @interface ChangeUserAuthenticationMethodInput
17
- */
18
- export interface ChangeUserAuthenticationMethodInput {
19
- /**
20
- * Method to sign in with from now on.
21
- * @type {UserAuthenticationMethod}
22
- * @memberof ChangeUserAuthenticationMethodInput
23
- */
24
- method: UserAuthenticationMethod;
25
- }
26
- /**
27
- * Check if a given object implements the ChangeUserAuthenticationMethodInput interface.
28
- */
29
- export declare function instanceOfChangeUserAuthenticationMethodInput(value: object): value is ChangeUserAuthenticationMethodInput;
30
- export declare function ChangeUserAuthenticationMethodInputFromJSON(json: any): ChangeUserAuthenticationMethodInput;
31
- export declare function ChangeUserAuthenticationMethodInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeUserAuthenticationMethodInput;
32
- export declare function ChangeUserAuthenticationMethodInputToJSON(json: any): ChangeUserAuthenticationMethodInput;
33
- export declare function ChangeUserAuthenticationMethodInputToJSONTyped(value?: ChangeUserAuthenticationMethodInput | null, ignoreDiscriminator?: boolean): any;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfChangeUserAuthenticationMethodInput = instanceOfChangeUserAuthenticationMethodInput;
17
- exports.ChangeUserAuthenticationMethodInputFromJSON = ChangeUserAuthenticationMethodInputFromJSON;
18
- exports.ChangeUserAuthenticationMethodInputFromJSONTyped = ChangeUserAuthenticationMethodInputFromJSONTyped;
19
- exports.ChangeUserAuthenticationMethodInputToJSON = ChangeUserAuthenticationMethodInputToJSON;
20
- exports.ChangeUserAuthenticationMethodInputToJSONTyped = ChangeUserAuthenticationMethodInputToJSONTyped;
21
- var UserAuthenticationMethod_1 = require("./UserAuthenticationMethod");
22
- /**
23
- * Check if a given object implements the ChangeUserAuthenticationMethodInput interface.
24
- */
25
- function instanceOfChangeUserAuthenticationMethodInput(value) {
26
- if (!('method' in value) || value['method'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- function ChangeUserAuthenticationMethodInputFromJSON(json) {
31
- return ChangeUserAuthenticationMethodInputFromJSONTyped(json, false);
32
- }
33
- function ChangeUserAuthenticationMethodInputFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'method': (0, UserAuthenticationMethod_1.UserAuthenticationMethodFromJSON)(json['method']),
39
- };
40
- }
41
- function ChangeUserAuthenticationMethodInputToJSON(json) {
42
- return ChangeUserAuthenticationMethodInputToJSONTyped(json, false);
43
- }
44
- function ChangeUserAuthenticationMethodInputToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'method': (0, UserAuthenticationMethod_1.UserAuthenticationMethodToJSON)(value['method']),
51
- };
52
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
- *
5
- * The version of the OpenAPI document: 1.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
- * Method the user signs in with.
14
- * @export
15
- */
16
- export declare const UserAuthenticationMethod: {
17
- readonly PASSWORD: "password";
18
- readonly PASSWORD_AND_SECOND_FACTOR: "password_and_second_factor";
19
- readonly PASSKEY_AND_TOTP: "passkey_and_totp";
20
- readonly PASSKEY: "passkey";
21
- };
22
- export type UserAuthenticationMethod = typeof UserAuthenticationMethod[keyof typeof UserAuthenticationMethod];
23
- export declare function instanceOfUserAuthenticationMethod(value: any): boolean;
24
- export declare function UserAuthenticationMethodFromJSON(json: any): UserAuthenticationMethod;
25
- export declare function UserAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
26
- export declare function UserAuthenticationMethodToJSON(value?: UserAuthenticationMethod | null): any;
27
- export declare function UserAuthenticationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UserAuthenticationMethod = void 0;
17
- exports.instanceOfUserAuthenticationMethod = instanceOfUserAuthenticationMethod;
18
- exports.UserAuthenticationMethodFromJSON = UserAuthenticationMethodFromJSON;
19
- exports.UserAuthenticationMethodFromJSONTyped = UserAuthenticationMethodFromJSONTyped;
20
- exports.UserAuthenticationMethodToJSON = UserAuthenticationMethodToJSON;
21
- exports.UserAuthenticationMethodToJSONTyped = UserAuthenticationMethodToJSONTyped;
22
- /**
23
- * Method the user signs in with.
24
- * @export
25
- */
26
- exports.UserAuthenticationMethod = {
27
- PASSWORD: 'password',
28
- PASSWORD_AND_SECOND_FACTOR: 'password_and_second_factor',
29
- PASSKEY_AND_TOTP: 'passkey_and_totp',
30
- PASSKEY: 'passkey'
31
- };
32
- function instanceOfUserAuthenticationMethod(value) {
33
- for (var key in exports.UserAuthenticationMethod) {
34
- if (Object.prototype.hasOwnProperty.call(exports.UserAuthenticationMethod, key)) {
35
- if (exports.UserAuthenticationMethod[key] === value) {
36
- return true;
37
- }
38
- }
39
- }
40
- return false;
41
- }
42
- function UserAuthenticationMethodFromJSON(json) {
43
- return UserAuthenticationMethodFromJSONTyped(json, false);
44
- }
45
- function UserAuthenticationMethodFromJSONTyped(json, ignoreDiscriminator) {
46
- return json;
47
- }
48
- function UserAuthenticationMethodToJSON(value) {
49
- return value;
50
- }
51
- function UserAuthenticationMethodToJSONTyped(value, ignoreDiscriminator) {
52
- return value;
53
- }
@@ -1,76 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
- *
7
- * The version of the OpenAPI document: 1.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
-
15
- import { mapValues } from '../runtime';
16
- import type { UserAuthenticationMethod } from './UserAuthenticationMethod';
17
- import {
18
- UserAuthenticationMethodFromJSON,
19
- UserAuthenticationMethodFromJSONTyped,
20
- UserAuthenticationMethodToJSON,
21
- UserAuthenticationMethodToJSONTyped,
22
- } from './UserAuthenticationMethod';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface ChangeUserAuthenticationMethodInput
28
- */
29
- export interface ChangeUserAuthenticationMethodInput {
30
- /**
31
- * Method to sign in with from now on.
32
- * @type {UserAuthenticationMethod}
33
- * @memberof ChangeUserAuthenticationMethodInput
34
- */
35
- method: UserAuthenticationMethod;
36
- }
37
-
38
-
39
-
40
- /**
41
- * Check if a given object implements the ChangeUserAuthenticationMethodInput interface.
42
- */
43
- export function instanceOfChangeUserAuthenticationMethodInput(value: object): value is ChangeUserAuthenticationMethodInput {
44
- if (!('method' in value) || value['method'] === undefined) return false;
45
- return true;
46
- }
47
-
48
- export function ChangeUserAuthenticationMethodInputFromJSON(json: any): ChangeUserAuthenticationMethodInput {
49
- return ChangeUserAuthenticationMethodInputFromJSONTyped(json, false);
50
- }
51
-
52
- export function ChangeUserAuthenticationMethodInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeUserAuthenticationMethodInput {
53
- if (json == null) {
54
- return json;
55
- }
56
- return {
57
-
58
- 'method': UserAuthenticationMethodFromJSON(json['method']),
59
- };
60
- }
61
-
62
- export function ChangeUserAuthenticationMethodInputToJSON(json: any): ChangeUserAuthenticationMethodInput {
63
- return ChangeUserAuthenticationMethodInputToJSONTyped(json, false);
64
- }
65
-
66
- export function ChangeUserAuthenticationMethodInputToJSONTyped(value?: ChangeUserAuthenticationMethodInput | null, ignoreDiscriminator: boolean = false): any {
67
- if (value == null) {
68
- return value;
69
- }
70
-
71
- return {
72
-
73
- 'method': UserAuthenticationMethodToJSON(value['method']),
74
- };
75
- }
76
-
@@ -1,55 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
- *
7
- * The version of the OpenAPI document: 1.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
-
15
-
16
- /**
17
- * Method the user signs in with.
18
- * @export
19
- */
20
- export const UserAuthenticationMethod = {
21
- PASSWORD: 'password',
22
- PASSWORD_AND_SECOND_FACTOR: 'password_and_second_factor',
23
- PASSKEY_AND_TOTP: 'passkey_and_totp',
24
- PASSKEY: 'passkey'
25
- } as const;
26
- export type UserAuthenticationMethod = typeof UserAuthenticationMethod[keyof typeof UserAuthenticationMethod];
27
-
28
-
29
- export function instanceOfUserAuthenticationMethod(value: any): boolean {
30
- for (const key in UserAuthenticationMethod) {
31
- if (Object.prototype.hasOwnProperty.call(UserAuthenticationMethod, key)) {
32
- if (UserAuthenticationMethod[key as keyof typeof UserAuthenticationMethod] === value) {
33
- return true;
34
- }
35
- }
36
- }
37
- return false;
38
- }
39
-
40
- export function UserAuthenticationMethodFromJSON(json: any): UserAuthenticationMethod {
41
- return UserAuthenticationMethodFromJSONTyped(json, false);
42
- }
43
-
44
- export function UserAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthenticationMethod {
45
- return json as UserAuthenticationMethod;
46
- }
47
-
48
- export function UserAuthenticationMethodToJSON(value?: UserAuthenticationMethod | null): any {
49
- return value as any;
50
- }
51
-
52
- export function UserAuthenticationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAuthenticationMethod {
53
- return value as UserAuthenticationMethod;
54
- }
55
-