@randock/nameshift-api-client 0.0.503 → 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 (144) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +44 -1
  4. package/dist/apis/AdminApi.js +177 -0
  5. package/dist/apis/BuyersPublicApi.d.ts +3 -3
  6. package/dist/apis/BuyersPublicApi.js +1 -1
  7. package/dist/apis/UsersApi.d.ts +285 -1
  8. package/dist/apis/UsersApi.js +1304 -46
  9. package/dist/apis/UsersPublicApi.d.ts +120 -3
  10. package/dist/apis/UsersPublicApi.js +436 -2
  11. package/dist/models/ActivateUserTotpInput.d.ts +32 -0
  12. package/dist/models/ActivateUserTotpInput.js +51 -0
  13. package/dist/models/AdminUserSecurityDto.d.ts +87 -0
  14. package/dist/models/AdminUserSecurityDto.js +87 -0
  15. package/dist/models/BuyerLoginDto.d.ts +38 -0
  16. package/dist/models/BuyerLoginDto.js +55 -0
  17. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  18. package/dist/models/BuyerNotificationDto.js +1 -0
  19. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  20. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  21. package/dist/models/ChangeUserLoginLocationVerificationInput.d.ts +32 -0
  22. package/dist/models/ChangeUserLoginLocationVerificationInput.js +51 -0
  23. package/dist/models/ChangeUserPasswordInput.d.ts +38 -0
  24. package/dist/models/ChangeUserPasswordInput.js +55 -0
  25. package/dist/models/ChangeUserSignInStepsInput.d.ts +33 -0
  26. package/dist/models/ChangeUserSignInStepsInput.js +51 -0
  27. package/dist/models/ConfirmLoginLocationInput.d.ts +32 -0
  28. package/dist/models/ConfirmLoginLocationInput.js +51 -0
  29. package/dist/models/CurrentPasswordInput.d.ts +32 -0
  30. package/dist/models/CurrentPasswordInput.js +51 -0
  31. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  32. package/dist/models/FeatureFlagListItemDto.js +2 -1
  33. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  34. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  35. package/dist/models/ListUserLoginAttempts200Response.d.ts +47 -0
  36. package/dist/models/ListUserLoginAttempts200Response.js +62 -0
  37. package/dist/models/LoginChallengeInput.d.ts +32 -0
  38. package/dist/models/LoginChallengeInput.js +51 -0
  39. package/dist/models/LoginCodeInput.d.ts +38 -0
  40. package/dist/models/LoginCodeInput.js +55 -0
  41. package/dist/models/LoginDto.d.ts +30 -4
  42. package/dist/models/LoginDto.js +13 -5
  43. package/dist/models/LoginPasskeyInput.d.ts +46 -0
  44. package/dist/models/LoginPasskeyInput.js +57 -0
  45. package/dist/models/LoginPasskeyOptionsInput.d.ts +32 -0
  46. package/dist/models/LoginPasskeyOptionsInput.js +49 -0
  47. package/dist/models/LoginPasswordInput.d.ts +38 -0
  48. package/dist/models/LoginPasswordInput.js +55 -0
  49. package/dist/models/LoginRecoveryCodeInput.d.ts +38 -0
  50. package/dist/models/LoginRecoveryCodeInput.js +55 -0
  51. package/dist/models/LoginStatus.d.ts +26 -0
  52. package/dist/models/LoginStatus.js +52 -0
  53. package/dist/models/PasskeyOptionsDto.d.ts +40 -0
  54. package/dist/models/PasskeyOptionsDto.js +55 -0
  55. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  56. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  57. package/dist/models/ReauthenticateWithPasskeyInput.d.ts +40 -0
  58. package/dist/models/ReauthenticateWithPasskeyInput.js +55 -0
  59. package/dist/models/ReauthenticationDto.d.ts +38 -0
  60. package/dist/models/ReauthenticationDto.js +55 -0
  61. package/dist/models/RecoveryCodesDto.d.ts +32 -0
  62. package/dist/models/RecoveryCodesDto.js +51 -0
  63. package/dist/models/RegisterUserPasskeyInput.d.ts +46 -0
  64. package/dist/models/RegisterUserPasskeyInput.js +59 -0
  65. package/dist/models/RemoveUserPasskeyInput.d.ts +40 -0
  66. package/dist/models/RemoveUserPasskeyInput.js +55 -0
  67. package/dist/models/RenameUserPasskeyInput.d.ts +32 -0
  68. package/dist/models/RenameUserPasskeyInput.js +51 -0
  69. package/dist/models/SecondFactorMethod.d.ts +27 -0
  70. package/dist/models/SecondFactorMethod.js +53 -0
  71. package/dist/models/SellerSecurityUserDto.d.ts +12 -0
  72. package/dist/models/SellerSecurityUserDto.js +4 -0
  73. package/dist/models/TotpCodeInput.d.ts +32 -0
  74. package/dist/models/TotpCodeInput.js +51 -0
  75. package/dist/models/TotpEnrolmentDto.d.ts +38 -0
  76. package/dist/models/TotpEnrolmentDto.js +55 -0
  77. package/dist/models/UserLoginAttemptDto.d.ts +88 -0
  78. package/dist/models/UserLoginAttemptDto.js +89 -0
  79. package/dist/models/UserLoginAttemptMethod.d.ts +29 -0
  80. package/dist/models/UserLoginAttemptMethod.js +55 -0
  81. package/dist/models/UserLoginAttemptResult.d.ts +31 -0
  82. package/dist/models/UserLoginAttemptResult.js +57 -0
  83. package/dist/models/UserLoginLocationConfirmationDetailsDto.d.ts +62 -0
  84. package/dist/models/UserLoginLocationConfirmationDetailsDto.js +71 -0
  85. package/dist/models/UserNotificationDto.d.ts +1 -0
  86. package/dist/models/UserNotificationDto.js +1 -0
  87. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  88. package/dist/models/UserNotificationListItemDto.js +1 -0
  89. package/dist/models/UserPasskeyDto.d.ts +62 -0
  90. package/dist/models/UserPasskeyDto.js +71 -0
  91. package/dist/models/UserSecurityDto.d.ts +94 -0
  92. package/dist/models/UserSecurityDto.js +93 -0
  93. package/dist/models/UserSignInFactor.d.ts +26 -0
  94. package/dist/models/UserSignInFactor.js +52 -0
  95. package/dist/models/index.d.ts +33 -0
  96. package/dist/models/index.js +33 -0
  97. package/package.json +1 -1
  98. package/src/apis/AdminApi.ts +172 -0
  99. package/src/apis/BuyersPublicApi.ts +6 -6
  100. package/src/apis/UsersApi.ts +1218 -48
  101. package/src/apis/UsersPublicApi.ts +420 -2
  102. package/src/models/ActivateUserTotpInput.ts +66 -0
  103. package/src/models/AdminUserSecurityDto.ts +155 -0
  104. package/src/models/BuyerLoginDto.ts +75 -0
  105. package/src/models/BuyerNotificationDto.ts +1 -0
  106. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  107. package/src/models/ChangeUserLoginLocationVerificationInput.ts +66 -0
  108. package/src/models/ChangeUserPasswordInput.ts +75 -0
  109. package/src/models/ChangeUserSignInStepsInput.ts +74 -0
  110. package/src/models/ConfirmLoginLocationInput.ts +66 -0
  111. package/src/models/CurrentPasswordInput.ts +66 -0
  112. package/src/models/FeatureFlagListItemDto.ts +2 -1
  113. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  114. package/src/models/ListUserLoginAttempts200Response.ts +106 -0
  115. package/src/models/LoginChallengeInput.ts +66 -0
  116. package/src/models/LoginCodeInput.ts +75 -0
  117. package/src/models/LoginDto.ts +56 -8
  118. package/src/models/LoginPasskeyInput.ts +83 -0
  119. package/src/models/LoginPasskeyOptionsInput.ts +65 -0
  120. package/src/models/LoginPasswordInput.ts +75 -0
  121. package/src/models/LoginRecoveryCodeInput.ts +75 -0
  122. package/src/models/LoginStatus.ts +54 -0
  123. package/src/models/PasskeyOptionsDto.ts +75 -0
  124. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  125. package/src/models/ReauthenticateWithPasskeyInput.ts +75 -0
  126. package/src/models/ReauthenticationDto.ts +75 -0
  127. package/src/models/RecoveryCodesDto.ts +66 -0
  128. package/src/models/RegisterUserPasskeyInput.ts +84 -0
  129. package/src/models/RemoveUserPasskeyInput.ts +75 -0
  130. package/src/models/RenameUserPasskeyInput.ts +66 -0
  131. package/src/models/SecondFactorMethod.ts +55 -0
  132. package/src/models/SellerSecurityUserDto.ts +16 -0
  133. package/src/models/TotpCodeInput.ts +66 -0
  134. package/src/models/TotpEnrolmentDto.ts +75 -0
  135. package/src/models/UserLoginAttemptDto.ts +164 -0
  136. package/src/models/UserLoginAttemptMethod.ts +57 -0
  137. package/src/models/UserLoginAttemptResult.ts +59 -0
  138. package/src/models/UserLoginLocationConfirmationDetailsDto.ts +111 -0
  139. package/src/models/UserNotificationDto.ts +1 -0
  140. package/src/models/UserNotificationListItemDto.ts +1 -0
  141. package/src/models/UserPasskeyDto.ts +111 -0
  142. package/src/models/UserSecurityDto.ts +171 -0
  143. package/src/models/UserSignInFactor.ts +54 -0
  144. package/src/models/index.ts +33 -0
@@ -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
+ * Where the sign-in stands.
18
+ * @export
19
+ */
20
+ export const LoginStatus = {
21
+ AUTHENTICATED: 'authenticated',
22
+ SECOND_FACTOR_REQUIRED: 'second_factor_required',
23
+ LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
24
+ } as const;
25
+ export type LoginStatus = typeof LoginStatus[keyof typeof LoginStatus];
26
+
27
+
28
+ export function instanceOfLoginStatus(value: any): boolean {
29
+ for (const key in LoginStatus) {
30
+ if (Object.prototype.hasOwnProperty.call(LoginStatus, key)) {
31
+ if (LoginStatus[key as keyof typeof LoginStatus] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function LoginStatusFromJSON(json: any): LoginStatus {
40
+ return LoginStatusFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function LoginStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginStatus {
44
+ return json as LoginStatus;
45
+ }
46
+
47
+ export function LoginStatusToJSON(value?: LoginStatus | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function LoginStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): LoginStatus {
52
+ return value as LoginStatus;
53
+ }
54
+
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface PasskeyOptionsDto
20
+ */
21
+ export interface PasskeyOptionsDto {
22
+ /**
23
+ * Token to send back with the answer of the browser.
24
+ * @type {string}
25
+ * @memberof PasskeyOptionsDto
26
+ */
27
+ webauthnToken: string;
28
+ /**
29
+ * Options for @simplewebauthn/browser startRegistration or startAuthentication.
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof PasskeyOptionsDto
32
+ */
33
+ options: { [key: string]: any; };
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PasskeyOptionsDto interface.
38
+ */
39
+ export function instanceOfPasskeyOptionsDto(value: object): value is PasskeyOptionsDto {
40
+ if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
41
+ if (!('options' in value) || value['options'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function PasskeyOptionsDtoFromJSON(json: any): PasskeyOptionsDto {
46
+ return PasskeyOptionsDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PasskeyOptionsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasskeyOptionsDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'webauthnToken': json['webauthnToken'],
56
+ 'options': json['options'],
57
+ };
58
+ }
59
+
60
+ export function PasskeyOptionsDtoToJSON(json: any): PasskeyOptionsDto {
61
+ return PasskeyOptionsDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PasskeyOptionsDtoToJSONTyped(value?: PasskeyOptionsDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'webauthnToken': value['webauthnToken'],
72
+ 'options': value['options'],
73
+ };
74
+ }
75
+
@@ -192,7 +192,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
192
192
  LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
193
193
  DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
194
194
  DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
195
- BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
195
+ BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
196
+ MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF'
196
197
  } as const;
197
198
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
198
199
 
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReauthenticateWithPasskeyInput
20
+ */
21
+ export interface ReauthenticateWithPasskeyInput {
22
+ /**
23
+ * Token returned with the passkey options.
24
+ * @type {string}
25
+ * @memberof ReauthenticateWithPasskeyInput
26
+ */
27
+ webauthnToken: string;
28
+ /**
29
+ * Answer of the browser, as @simplewebauthn/browser startAuthentication returns it.
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof ReauthenticateWithPasskeyInput
32
+ */
33
+ response: { [key: string]: any; };
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReauthenticateWithPasskeyInput interface.
38
+ */
39
+ export function instanceOfReauthenticateWithPasskeyInput(value: object): value is ReauthenticateWithPasskeyInput {
40
+ if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
41
+ if (!('response' in value) || value['response'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ReauthenticateWithPasskeyInputFromJSON(json: any): ReauthenticateWithPasskeyInput {
46
+ return ReauthenticateWithPasskeyInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ReauthenticateWithPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticateWithPasskeyInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'webauthnToken': json['webauthnToken'],
56
+ 'response': json['response'],
57
+ };
58
+ }
59
+
60
+ export function ReauthenticateWithPasskeyInputToJSON(json: any): ReauthenticateWithPasskeyInput {
61
+ return ReauthenticateWithPasskeyInputToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ReauthenticateWithPasskeyInputToJSONTyped(value?: ReauthenticateWithPasskeyInput | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'webauthnToken': value['webauthnToken'],
72
+ 'response': value['response'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReauthenticationDto
20
+ */
21
+ export interface ReauthenticationDto {
22
+ /**
23
+ * Token to send as the X-Reauthentication-Token header of sensitive changes.
24
+ * @type {string}
25
+ * @memberof ReauthenticationDto
26
+ */
27
+ reauthenticationToken: string;
28
+ /**
29
+ * When the token stops working.
30
+ * @type {Date}
31
+ * @memberof ReauthenticationDto
32
+ */
33
+ expiresAt: Date;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReauthenticationDto interface.
38
+ */
39
+ export function instanceOfReauthenticationDto(value: object): value is ReauthenticationDto {
40
+ if (!('reauthenticationToken' in value) || value['reauthenticationToken'] === undefined) return false;
41
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ReauthenticationDtoFromJSON(json: any): ReauthenticationDto {
46
+ return ReauthenticationDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ReauthenticationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticationDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'reauthenticationToken': json['reauthenticationToken'],
56
+ 'expiresAt': (new Date(json['expiresAt'])),
57
+ };
58
+ }
59
+
60
+ export function ReauthenticationDtoToJSON(json: any): ReauthenticationDto {
61
+ return ReauthenticationDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ReauthenticationDtoToJSONTyped(value?: ReauthenticationDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'reauthenticationToken': value['reauthenticationToken'],
72
+ 'expiresAt': ((value['expiresAt']).toISOString()),
73
+ };
74
+ }
75
+
@@ -0,0 +1,66 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface RecoveryCodesDto
20
+ */
21
+ export interface RecoveryCodesDto {
22
+ /**
23
+ * New recovery codes, shown only this once. Empty when the user still had unused ones.
24
+ * @type {Array<string>}
25
+ * @memberof RecoveryCodesDto
26
+ */
27
+ recoveryCodes: Array<string>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the RecoveryCodesDto interface.
32
+ */
33
+ export function instanceOfRecoveryCodesDto(value: object): value is RecoveryCodesDto {
34
+ if (!('recoveryCodes' in value) || value['recoveryCodes'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function RecoveryCodesDtoFromJSON(json: any): RecoveryCodesDto {
39
+ return RecoveryCodesDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function RecoveryCodesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoveryCodesDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'recoveryCodes': json['recoveryCodes'],
49
+ };
50
+ }
51
+
52
+ export function RecoveryCodesDtoToJSON(json: any): RecoveryCodesDto {
53
+ return RecoveryCodesDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function RecoveryCodesDtoToJSONTyped(value?: RecoveryCodesDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'recoveryCodes': value['recoveryCodes'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,84 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface RegisterUserPasskeyInput
20
+ */
21
+ export interface RegisterUserPasskeyInput {
22
+ /**
23
+ * Token returned with the passkey options.
24
+ * @type {string}
25
+ * @memberof RegisterUserPasskeyInput
26
+ */
27
+ webauthnToken: string;
28
+ /**
29
+ * Answer of the browser, as @simplewebauthn/browser startRegistration returns it.
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof RegisterUserPasskeyInput
32
+ */
33
+ response: { [key: string]: any; };
34
+ /**
35
+ * Name to recognise the passkey by.
36
+ * @type {string}
37
+ * @memberof RegisterUserPasskeyInput
38
+ */
39
+ name: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the RegisterUserPasskeyInput interface.
44
+ */
45
+ export function instanceOfRegisterUserPasskeyInput(value: object): value is RegisterUserPasskeyInput {
46
+ if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
47
+ if (!('response' in value) || value['response'] === undefined) return false;
48
+ if (!('name' in value) || value['name'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function RegisterUserPasskeyInputFromJSON(json: any): RegisterUserPasskeyInput {
53
+ return RegisterUserPasskeyInputFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function RegisterUserPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterUserPasskeyInput {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'webauthnToken': json['webauthnToken'],
63
+ 'response': json['response'],
64
+ 'name': json['name'],
65
+ };
66
+ }
67
+
68
+ export function RegisterUserPasskeyInputToJSON(json: any): RegisterUserPasskeyInput {
69
+ return RegisterUserPasskeyInputToJSONTyped(json, false);
70
+ }
71
+
72
+ export function RegisterUserPasskeyInputToJSONTyped(value?: RegisterUserPasskeyInput | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'webauthnToken': value['webauthnToken'],
80
+ 'response': value['response'],
81
+ 'name': value['name'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface RemoveUserPasskeyInput
20
+ */
21
+ export interface RemoveUserPasskeyInput {
22
+ /**
23
+ * Token returned with the passkey options.
24
+ * @type {string}
25
+ * @memberof RemoveUserPasskeyInput
26
+ */
27
+ webauthnToken: string;
28
+ /**
29
+ * Answer of the browser, as @simplewebauthn/browser startAuthentication returns it.
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof RemoveUserPasskeyInput
32
+ */
33
+ response: { [key: string]: any; };
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RemoveUserPasskeyInput interface.
38
+ */
39
+ export function instanceOfRemoveUserPasskeyInput(value: object): value is RemoveUserPasskeyInput {
40
+ if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
41
+ if (!('response' in value) || value['response'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function RemoveUserPasskeyInputFromJSON(json: any): RemoveUserPasskeyInput {
46
+ return RemoveUserPasskeyInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function RemoveUserPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveUserPasskeyInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'webauthnToken': json['webauthnToken'],
56
+ 'response': json['response'],
57
+ };
58
+ }
59
+
60
+ export function RemoveUserPasskeyInputToJSON(json: any): RemoveUserPasskeyInput {
61
+ return RemoveUserPasskeyInputToJSONTyped(json, false);
62
+ }
63
+
64
+ export function RemoveUserPasskeyInputToJSONTyped(value?: RemoveUserPasskeyInput | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'webauthnToken': value['webauthnToken'],
72
+ 'response': value['response'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,66 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface RenameUserPasskeyInput
20
+ */
21
+ export interface RenameUserPasskeyInput {
22
+ /**
23
+ * Name to recognise the passkey by.
24
+ * @type {string}
25
+ * @memberof RenameUserPasskeyInput
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the RenameUserPasskeyInput interface.
32
+ */
33
+ export function instanceOfRenameUserPasskeyInput(value: object): value is RenameUserPasskeyInput {
34
+ if (!('name' in value) || value['name'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function RenameUserPasskeyInputFromJSON(json: any): RenameUserPasskeyInput {
39
+ return RenameUserPasskeyInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function RenameUserPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameUserPasskeyInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'name': json['name'],
49
+ };
50
+ }
51
+
52
+ export function RenameUserPasskeyInputToJSON(json: any): RenameUserPasskeyInput {
53
+ return RenameUserPasskeyInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function RenameUserPasskeyInputToJSONTyped(value?: RenameUserPasskeyInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'name': value['name'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,55 @@
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
+ * Second factors the user can prove, when one is required, preferred first.
18
+ * @export
19
+ */
20
+ export const SecondFactorMethod = {
21
+ PASSWORD: 'password',
22
+ PASSKEY: 'passkey',
23
+ TOTP: 'totp',
24
+ RECOVERY_CODE: 'recovery_code'
25
+ } as const;
26
+ export type SecondFactorMethod = typeof SecondFactorMethod[keyof typeof SecondFactorMethod];
27
+
28
+
29
+ export function instanceOfSecondFactorMethod(value: any): boolean {
30
+ for (const key in SecondFactorMethod) {
31
+ if (Object.prototype.hasOwnProperty.call(SecondFactorMethod, key)) {
32
+ if (SecondFactorMethod[key as keyof typeof SecondFactorMethod] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function SecondFactorMethodFromJSON(json: any): SecondFactorMethod {
41
+ return SecondFactorMethodFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function SecondFactorMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecondFactorMethod {
45
+ return json as SecondFactorMethod;
46
+ }
47
+
48
+ export function SecondFactorMethodToJSON(value?: SecondFactorMethod | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function SecondFactorMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): SecondFactorMethod {
53
+ return value as SecondFactorMethod;
54
+ }
55
+
@@ -81,6 +81,18 @@ export interface SellerSecurityUserDto {
81
81
  * @memberof SellerSecurityUserDto
82
82
  */
83
83
  account: SellerSecurityUserAccountDto;
84
+ /**
85
+ * What the user proved to sign in (RFC 8176): pwd, otp, rec, hwk (passkey) or imp (impersonation).
86
+ * @type {Array<string>}
87
+ * @memberof SellerSecurityUserDto
88
+ */
89
+ amr?: Array<string>;
90
+ /**
91
+ * Whether the session was opened with more than a password.
92
+ * @type {boolean}
93
+ * @memberof SellerSecurityUserDto
94
+ */
95
+ mfa?: boolean;
84
96
  }
85
97
 
86
98
 
@@ -129,6 +141,8 @@ export function SellerSecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminato
129
141
  'firstname': json['firstname'],
130
142
  'lastname': json['lastname'],
131
143
  'account': SellerSecurityUserAccountDtoFromJSON(json['account']),
144
+ 'amr': json['amr'] == null ? undefined : json['amr'],
145
+ 'mfa': json['mfa'] == null ? undefined : json['mfa'],
132
146
  };
133
147
  }
134
148
 
@@ -152,6 +166,8 @@ export function SellerSecurityUserDtoToJSONTyped(value?: SellerSecurityUserDto |
152
166
  'firstname': value['firstname'],
153
167
  'lastname': value['lastname'],
154
168
  'account': SellerSecurityUserAccountDtoToJSON(value['account']),
169
+ 'amr': value['amr'],
170
+ 'mfa': value['mfa'],
155
171
  };
156
172
  }
157
173