@randock/nameshift-api-client 0.0.503 → 0.0.504

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 (141) hide show
  1. package/.openapi-generator/FILES +32 -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 +1305 -46
  9. package/dist/apis/UsersPublicApi.d.ts +107 -3
  10. package/dist/apis/UsersPublicApi.js +388 -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 +88 -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/ChangeUserAuthenticationMethodInput.d.ts +33 -0
  22. package/dist/models/ChangeUserAuthenticationMethodInput.js +52 -0
  23. package/dist/models/ChangeUserLoginLocationVerificationInput.d.ts +32 -0
  24. package/dist/models/ChangeUserLoginLocationVerificationInput.js +51 -0
  25. package/dist/models/ChangeUserPasswordInput.d.ts +38 -0
  26. package/dist/models/ChangeUserPasswordInput.js +55 -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/LoginRecoveryCodeInput.d.ts +38 -0
  48. package/dist/models/LoginRecoveryCodeInput.js +55 -0
  49. package/dist/models/LoginStatus.d.ts +26 -0
  50. package/dist/models/LoginStatus.js +52 -0
  51. package/dist/models/PasskeyOptionsDto.d.ts +40 -0
  52. package/dist/models/PasskeyOptionsDto.js +55 -0
  53. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  54. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  55. package/dist/models/ReauthenticateWithPasskeyInput.d.ts +40 -0
  56. package/dist/models/ReauthenticateWithPasskeyInput.js +55 -0
  57. package/dist/models/ReauthenticationDto.d.ts +38 -0
  58. package/dist/models/ReauthenticationDto.js +55 -0
  59. package/dist/models/RecoveryCodesDto.d.ts +32 -0
  60. package/dist/models/RecoveryCodesDto.js +51 -0
  61. package/dist/models/RegisterUserPasskeyInput.d.ts +46 -0
  62. package/dist/models/RegisterUserPasskeyInput.js +59 -0
  63. package/dist/models/RemoveUserPasskeyInput.d.ts +40 -0
  64. package/dist/models/RemoveUserPasskeyInput.js +55 -0
  65. package/dist/models/RenameUserPasskeyInput.d.ts +32 -0
  66. package/dist/models/RenameUserPasskeyInput.js +51 -0
  67. package/dist/models/SecondFactorMethod.d.ts +26 -0
  68. package/dist/models/SecondFactorMethod.js +52 -0
  69. package/dist/models/SellerSecurityUserDto.d.ts +12 -0
  70. package/dist/models/SellerSecurityUserDto.js +4 -0
  71. package/dist/models/TotpCodeInput.d.ts +32 -0
  72. package/dist/models/TotpCodeInput.js +51 -0
  73. package/dist/models/TotpEnrolmentDto.d.ts +38 -0
  74. package/dist/models/TotpEnrolmentDto.js +55 -0
  75. package/dist/models/UserAuthenticationMethod.d.ts +27 -0
  76. package/dist/models/UserAuthenticationMethod.js +53 -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 +30 -0
  82. package/dist/models/UserLoginAttemptResult.js +56 -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/index.d.ts +32 -0
  94. package/dist/models/index.js +32 -0
  95. package/package.json +1 -1
  96. package/src/apis/AdminApi.ts +172 -0
  97. package/src/apis/BuyersPublicApi.ts +6 -6
  98. package/src/apis/UsersApi.ts +1219 -48
  99. package/src/apis/UsersPublicApi.ts +375 -2
  100. package/src/models/ActivateUserTotpInput.ts +66 -0
  101. package/src/models/AdminUserSecurityDto.ts +157 -0
  102. package/src/models/BuyerLoginDto.ts +75 -0
  103. package/src/models/BuyerNotificationDto.ts +1 -0
  104. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  105. package/src/models/ChangeUserAuthenticationMethodInput.ts +76 -0
  106. package/src/models/ChangeUserLoginLocationVerificationInput.ts +66 -0
  107. package/src/models/ChangeUserPasswordInput.ts +75 -0
  108. package/src/models/ConfirmLoginLocationInput.ts +66 -0
  109. package/src/models/CurrentPasswordInput.ts +66 -0
  110. package/src/models/FeatureFlagListItemDto.ts +2 -1
  111. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  112. package/src/models/ListUserLoginAttempts200Response.ts +106 -0
  113. package/src/models/LoginChallengeInput.ts +66 -0
  114. package/src/models/LoginCodeInput.ts +75 -0
  115. package/src/models/LoginDto.ts +56 -8
  116. package/src/models/LoginPasskeyInput.ts +83 -0
  117. package/src/models/LoginPasskeyOptionsInput.ts +65 -0
  118. package/src/models/LoginRecoveryCodeInput.ts +75 -0
  119. package/src/models/LoginStatus.ts +54 -0
  120. package/src/models/PasskeyOptionsDto.ts +75 -0
  121. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  122. package/src/models/ReauthenticateWithPasskeyInput.ts +75 -0
  123. package/src/models/ReauthenticationDto.ts +75 -0
  124. package/src/models/RecoveryCodesDto.ts +66 -0
  125. package/src/models/RegisterUserPasskeyInput.ts +84 -0
  126. package/src/models/RemoveUserPasskeyInput.ts +75 -0
  127. package/src/models/RenameUserPasskeyInput.ts +66 -0
  128. package/src/models/SecondFactorMethod.ts +54 -0
  129. package/src/models/SellerSecurityUserDto.ts +16 -0
  130. package/src/models/TotpCodeInput.ts +66 -0
  131. package/src/models/TotpEnrolmentDto.ts +75 -0
  132. package/src/models/UserAuthenticationMethod.ts +55 -0
  133. package/src/models/UserLoginAttemptDto.ts +164 -0
  134. package/src/models/UserLoginAttemptMethod.ts +57 -0
  135. package/src/models/UserLoginAttemptResult.ts +58 -0
  136. package/src/models/UserLoginLocationConfirmationDetailsDto.ts +111 -0
  137. package/src/models/UserNotificationDto.ts +1 -0
  138. package/src/models/UserNotificationListItemDto.ts +1 -0
  139. package/src/models/UserPasskeyDto.ts +111 -0
  140. package/src/models/UserSecurityDto.ts +173 -0
  141. package/src/models/index.ts +32 -0
@@ -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,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
+ * Second factors the user can prove, when one is required, preferred first.
18
+ * @export
19
+ */
20
+ export const SecondFactorMethod = {
21
+ PASSKEY: 'passkey',
22
+ TOTP: 'totp',
23
+ RECOVERY_CODE: 'recovery_code'
24
+ } as const;
25
+ export type SecondFactorMethod = typeof SecondFactorMethod[keyof typeof SecondFactorMethod];
26
+
27
+
28
+ export function instanceOfSecondFactorMethod(value: any): boolean {
29
+ for (const key in SecondFactorMethod) {
30
+ if (Object.prototype.hasOwnProperty.call(SecondFactorMethod, key)) {
31
+ if (SecondFactorMethod[key as keyof typeof SecondFactorMethod] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function SecondFactorMethodFromJSON(json: any): SecondFactorMethod {
40
+ return SecondFactorMethodFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function SecondFactorMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecondFactorMethod {
44
+ return json as SecondFactorMethod;
45
+ }
46
+
47
+ export function SecondFactorMethodToJSON(value?: SecondFactorMethod | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function SecondFactorMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): SecondFactorMethod {
52
+ return value as SecondFactorMethod;
53
+ }
54
+
@@ -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
 
@@ -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 TotpCodeInput
20
+ */
21
+ export interface TotpCodeInput {
22
+ /**
23
+ * Code the authenticator app shows.
24
+ * @type {string}
25
+ * @memberof TotpCodeInput
26
+ */
27
+ code: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the TotpCodeInput interface.
32
+ */
33
+ export function instanceOfTotpCodeInput(value: object): value is TotpCodeInput {
34
+ if (!('code' in value) || value['code'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function TotpCodeInputFromJSON(json: any): TotpCodeInput {
39
+ return TotpCodeInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function TotpCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpCodeInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'code': json['code'],
49
+ };
50
+ }
51
+
52
+ export function TotpCodeInputToJSON(json: any): TotpCodeInput {
53
+ return TotpCodeInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function TotpCodeInputToJSONTyped(value?: TotpCodeInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'code': value['code'],
64
+ };
65
+ }
66
+
@@ -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 TotpEnrolmentDto
20
+ */
21
+ export interface TotpEnrolmentDto {
22
+ /**
23
+ * otpauth:// URI to show as a QR code for the authenticator app to scan.
24
+ * @type {string}
25
+ * @memberof TotpEnrolmentDto
26
+ */
27
+ otpauthUrl: string;
28
+ /**
29
+ * Base32 secret, to type in the app by hand when the QR code cannot be scanned.
30
+ * @type {string}
31
+ * @memberof TotpEnrolmentDto
32
+ */
33
+ secret: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TotpEnrolmentDto interface.
38
+ */
39
+ export function instanceOfTotpEnrolmentDto(value: object): value is TotpEnrolmentDto {
40
+ if (!('otpauthUrl' in value) || value['otpauthUrl'] === undefined) return false;
41
+ if (!('secret' in value) || value['secret'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function TotpEnrolmentDtoFromJSON(json: any): TotpEnrolmentDto {
46
+ return TotpEnrolmentDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TotpEnrolmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpEnrolmentDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'otpauthUrl': json['otpauthUrl'],
56
+ 'secret': json['secret'],
57
+ };
58
+ }
59
+
60
+ export function TotpEnrolmentDtoToJSON(json: any): TotpEnrolmentDto {
61
+ return TotpEnrolmentDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function TotpEnrolmentDtoToJSONTyped(value?: TotpEnrolmentDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'otpauthUrl': value['otpauthUrl'],
72
+ 'secret': value['secret'],
73
+ };
74
+ }
75
+
@@ -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
+ * 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
+