@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,32 @@
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
+ *
14
+ * @export
15
+ * @interface CurrentPasswordInput
16
+ */
17
+ export interface CurrentPasswordInput {
18
+ /**
19
+ * Current password of the user.
20
+ * @type {string}
21
+ * @memberof CurrentPasswordInput
22
+ */
23
+ currentPassword: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CurrentPasswordInput interface.
27
+ */
28
+ export declare function instanceOfCurrentPasswordInput(value: object): value is CurrentPasswordInput;
29
+ export declare function CurrentPasswordInputFromJSON(json: any): CurrentPasswordInput;
30
+ export declare function CurrentPasswordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentPasswordInput;
31
+ export declare function CurrentPasswordInputToJSON(json: any): CurrentPasswordInput;
32
+ export declare function CurrentPasswordInputToJSONTyped(value?: CurrentPasswordInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfCurrentPasswordInput = instanceOfCurrentPasswordInput;
17
+ exports.CurrentPasswordInputFromJSON = CurrentPasswordInputFromJSON;
18
+ exports.CurrentPasswordInputFromJSONTyped = CurrentPasswordInputFromJSONTyped;
19
+ exports.CurrentPasswordInputToJSON = CurrentPasswordInputToJSON;
20
+ exports.CurrentPasswordInputToJSONTyped = CurrentPasswordInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CurrentPasswordInput interface.
23
+ */
24
+ function instanceOfCurrentPasswordInput(value) {
25
+ if (!('currentPassword' in value) || value['currentPassword'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CurrentPasswordInputFromJSON(json) {
30
+ return CurrentPasswordInputFromJSONTyped(json, false);
31
+ }
32
+ function CurrentPasswordInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'currentPassword': json['currentPassword'],
38
+ };
39
+ }
40
+ function CurrentPasswordInputToJSON(json) {
41
+ return CurrentPasswordInputToJSONTyped(json, false);
42
+ }
43
+ function CurrentPasswordInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'currentPassword': value['currentPassword'],
50
+ };
51
+ }
@@ -95,6 +95,7 @@ export declare const FeatureFlagListItemDtoNameEnum: {
95
95
  readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
96
96
  readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
97
97
  readonly BANK_ACCOUNT_NAME_CHECK: "BANK_ACCOUNT_NAME_CHECK";
98
+ readonly MFA_ENFORCED_FOR_STAFF: "MFA_ENFORCED_FOR_STAFF";
98
99
  };
99
100
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
100
101
  /**
@@ -55,7 +55,8 @@ exports.FeatureFlagListItemDtoNameEnum = {
55
55
  LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
56
56
  DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
57
57
  DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
58
- BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
58
+ BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
59
+ MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF'
59
60
  };
60
61
  /**
61
62
  * Check if a given object implements the FeatureFlagListItemDto interface.
@@ -138,6 +138,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
138
138
  readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
139
139
  readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
140
140
  readonly BANK_ACCOUNT_NAME_CHECK: "BANK_ACCOUNT_NAME_CHECK";
141
+ readonly MFA_ENFORCED_FOR_STAFF: "MFA_ENFORCED_FOR_STAFF";
141
142
  };
142
143
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
143
144
  /**
@@ -62,7 +62,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
62
62
  LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
63
63
  DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
64
64
  DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
65
- BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
65
+ BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
66
+ MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF'
66
67
  };
67
68
  /**
68
69
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -0,0 +1,47 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { UserLoginAttemptDto } from './UserLoginAttemptDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ListUserLoginAttempts200Response
19
+ */
20
+ export interface ListUserLoginAttempts200Response {
21
+ /**
22
+ *
23
+ * @type {Array<UserLoginAttemptDto>}
24
+ * @memberof ListUserLoginAttempts200Response
25
+ */
26
+ data: Array<UserLoginAttemptDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof ListUserLoginAttempts200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof ListUserLoginAttempts200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the ListUserLoginAttempts200Response interface.
42
+ */
43
+ export declare function instanceOfListUserLoginAttempts200Response(value: object): value is ListUserLoginAttempts200Response;
44
+ export declare function ListUserLoginAttempts200ResponseFromJSON(json: any): ListUserLoginAttempts200Response;
45
+ export declare function ListUserLoginAttempts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListUserLoginAttempts200Response;
46
+ export declare function ListUserLoginAttempts200ResponseToJSON(json: any): ListUserLoginAttempts200Response;
47
+ export declare function ListUserLoginAttempts200ResponseToJSONTyped(value?: ListUserLoginAttempts200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfListUserLoginAttempts200Response = instanceOfListUserLoginAttempts200Response;
17
+ exports.ListUserLoginAttempts200ResponseFromJSON = ListUserLoginAttempts200ResponseFromJSON;
18
+ exports.ListUserLoginAttempts200ResponseFromJSONTyped = ListUserLoginAttempts200ResponseFromJSONTyped;
19
+ exports.ListUserLoginAttempts200ResponseToJSON = ListUserLoginAttempts200ResponseToJSON;
20
+ exports.ListUserLoginAttempts200ResponseToJSONTyped = ListUserLoginAttempts200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var UserLoginAttemptDto_1 = require("./UserLoginAttemptDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the ListUserLoginAttempts200Response interface.
26
+ */
27
+ function instanceOfListUserLoginAttempts200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ListUserLoginAttempts200ResponseFromJSON(json) {
37
+ return ListUserLoginAttempts200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function ListUserLoginAttempts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(UserLoginAttemptDto_1.UserLoginAttemptDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function ListUserLoginAttempts200ResponseToJSON(json) {
50
+ return ListUserLoginAttempts200ResponseToJSONTyped(json, false);
51
+ }
52
+ function ListUserLoginAttempts200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(UserLoginAttemptDto_1.UserLoginAttemptDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface LoginChallengeInput
16
+ */
17
+ export interface LoginChallengeInput {
18
+ /**
19
+ * Challenge token returned by the previous sign-in step.
20
+ * @type {string}
21
+ * @memberof LoginChallengeInput
22
+ */
23
+ challengeToken: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the LoginChallengeInput interface.
27
+ */
28
+ export declare function instanceOfLoginChallengeInput(value: object): value is LoginChallengeInput;
29
+ export declare function LoginChallengeInputFromJSON(json: any): LoginChallengeInput;
30
+ export declare function LoginChallengeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginChallengeInput;
31
+ export declare function LoginChallengeInputToJSON(json: any): LoginChallengeInput;
32
+ export declare function LoginChallengeInputToJSONTyped(value?: LoginChallengeInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfLoginChallengeInput = instanceOfLoginChallengeInput;
17
+ exports.LoginChallengeInputFromJSON = LoginChallengeInputFromJSON;
18
+ exports.LoginChallengeInputFromJSONTyped = LoginChallengeInputFromJSONTyped;
19
+ exports.LoginChallengeInputToJSON = LoginChallengeInputToJSON;
20
+ exports.LoginChallengeInputToJSONTyped = LoginChallengeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LoginChallengeInput interface.
23
+ */
24
+ function instanceOfLoginChallengeInput(value) {
25
+ if (!('challengeToken' in value) || value['challengeToken'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function LoginChallengeInputFromJSON(json) {
30
+ return LoginChallengeInputFromJSONTyped(json, false);
31
+ }
32
+ function LoginChallengeInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'challengeToken': json['challengeToken'],
38
+ };
39
+ }
40
+ function LoginChallengeInputToJSON(json) {
41
+ return LoginChallengeInputToJSONTyped(json, false);
42
+ }
43
+ function LoginChallengeInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'challengeToken': value['challengeToken'],
50
+ };
51
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface LoginCodeInput
16
+ */
17
+ export interface LoginCodeInput {
18
+ /**
19
+ * Challenge token returned by the previous sign-in step.
20
+ * @type {string}
21
+ * @memberof LoginCodeInput
22
+ */
23
+ challengeToken: string;
24
+ /**
25
+ * Six-digit code of the authenticator app, or a recovery code (e.g. abcde-fghij).
26
+ * @type {string}
27
+ * @memberof LoginCodeInput
28
+ */
29
+ code: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LoginCodeInput interface.
33
+ */
34
+ export declare function instanceOfLoginCodeInput(value: object): value is LoginCodeInput;
35
+ export declare function LoginCodeInputFromJSON(json: any): LoginCodeInput;
36
+ export declare function LoginCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginCodeInput;
37
+ export declare function LoginCodeInputToJSON(json: any): LoginCodeInput;
38
+ export declare function LoginCodeInputToJSONTyped(value?: LoginCodeInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfLoginCodeInput = instanceOfLoginCodeInput;
17
+ exports.LoginCodeInputFromJSON = LoginCodeInputFromJSON;
18
+ exports.LoginCodeInputFromJSONTyped = LoginCodeInputFromJSONTyped;
19
+ exports.LoginCodeInputToJSON = LoginCodeInputToJSON;
20
+ exports.LoginCodeInputToJSONTyped = LoginCodeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LoginCodeInput interface.
23
+ */
24
+ function instanceOfLoginCodeInput(value) {
25
+ if (!('challengeToken' in value) || value['challengeToken'] === undefined)
26
+ return false;
27
+ if (!('code' in value) || value['code'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LoginCodeInputFromJSON(json) {
32
+ return LoginCodeInputFromJSONTyped(json, false);
33
+ }
34
+ function LoginCodeInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'challengeToken': json['challengeToken'],
40
+ 'code': json['code'],
41
+ };
42
+ }
43
+ function LoginCodeInputToJSON(json) {
44
+ return LoginCodeInputToJSONTyped(json, false);
45
+ }
46
+ function LoginCodeInputToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'challengeToken': value['challengeToken'],
53
+ 'code': value['code'],
54
+ };
55
+ }
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LoginStatus } from './LoginStatus';
13
+ import type { SecondFactorMethod } from './SecondFactorMethod';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -16,17 +18,41 @@
16
18
  */
17
19
  export interface LoginDto {
18
20
  /**
19
- * JWT authentication token.
21
+ * Where the sign-in stands.
22
+ * @type {LoginStatus}
23
+ * @memberof LoginDto
24
+ */
25
+ status: LoginStatus;
26
+ /**
27
+ * JWT authentication token, once signed in.
28
+ * @type {string}
29
+ * @memberof LoginDto
30
+ */
31
+ token?: string;
32
+ /**
33
+ * User locale (BCP 47), once signed in.
20
34
  * @type {string}
21
35
  * @memberof LoginDto
22
36
  */
23
- token: string;
37
+ locale?: string;
24
38
  /**
25
- * User locale (BCP 47).
39
+ * Short-lived token of the sign-in so far, to send with the next step.
26
40
  * @type {string}
27
41
  * @memberof LoginDto
28
42
  */
29
- locale: string;
43
+ challengeToken?: string;
44
+ /**
45
+ * Second factors the user can prove, when one is required, preferred first.
46
+ * @type {Array<SecondFactorMethod>}
47
+ * @memberof LoginDto
48
+ */
49
+ secondFactorMethods?: Array<SecondFactorMethod>;
50
+ /**
51
+ * The second factor the user last signed in with, to offer first. Absent when they never used one: let them choose.
52
+ * @type {SecondFactorMethod}
53
+ * @memberof LoginDto
54
+ */
55
+ lastSecondFactorMethod?: SecondFactorMethod;
30
56
  }
31
57
  /**
32
58
  * Check if a given object implements the LoginDto interface.
@@ -18,13 +18,13 @@ exports.LoginDtoFromJSON = LoginDtoFromJSON;
18
18
  exports.LoginDtoFromJSONTyped = LoginDtoFromJSONTyped;
19
19
  exports.LoginDtoToJSON = LoginDtoToJSON;
20
20
  exports.LoginDtoToJSONTyped = LoginDtoToJSONTyped;
21
+ var LoginStatus_1 = require("./LoginStatus");
22
+ var SecondFactorMethod_1 = require("./SecondFactorMethod");
21
23
  /**
22
24
  * Check if a given object implements the LoginDto interface.
23
25
  */
24
26
  function instanceOfLoginDto(value) {
25
- if (!('token' in value) || value['token'] === undefined)
26
- return false;
27
- if (!('locale' in value) || value['locale'] === undefined)
27
+ if (!('status' in value) || value['status'] === undefined)
28
28
  return false;
29
29
  return true;
30
30
  }
@@ -36,8 +36,12 @@ function LoginDtoFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'token': json['token'],
40
- 'locale': json['locale'],
39
+ 'status': (0, LoginStatus_1.LoginStatusFromJSON)(json['status']),
40
+ 'token': json['token'] == null ? undefined : json['token'],
41
+ 'locale': json['locale'] == null ? undefined : json['locale'],
42
+ 'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
43
+ 'secondFactorMethods': json['secondFactorMethods'] == null ? undefined : (json['secondFactorMethods'].map(SecondFactorMethod_1.SecondFactorMethodFromJSON)),
44
+ 'lastSecondFactorMethod': json['lastSecondFactorMethod'] == null ? undefined : (0, SecondFactorMethod_1.SecondFactorMethodFromJSON)(json['lastSecondFactorMethod']),
41
45
  };
42
46
  }
43
47
  function LoginDtoToJSON(json) {
@@ -49,7 +53,11 @@ function LoginDtoToJSONTyped(value, ignoreDiscriminator) {
49
53
  return value;
50
54
  }
51
55
  return {
56
+ 'status': (0, LoginStatus_1.LoginStatusToJSON)(value['status']),
52
57
  'token': value['token'],
53
58
  'locale': value['locale'],
59
+ 'challengeToken': value['challengeToken'],
60
+ 'secondFactorMethods': value['secondFactorMethods'] == null ? undefined : (value['secondFactorMethods'].map(SecondFactorMethod_1.SecondFactorMethodToJSON)),
61
+ 'lastSecondFactorMethod': (0, SecondFactorMethod_1.SecondFactorMethodToJSON)(value['lastSecondFactorMethod']),
54
62
  };
55
63
  }
@@ -0,0 +1,46 @@
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
+ *
14
+ * @export
15
+ * @interface LoginPasskeyInput
16
+ */
17
+ export interface LoginPasskeyInput {
18
+ /**
19
+ * Token returned with the passkey options.
20
+ * @type {string}
21
+ * @memberof LoginPasskeyInput
22
+ */
23
+ webauthnToken: string;
24
+ /**
25
+ * Answer of the browser, as @simplewebauthn/browser startAuthentication returns it.
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof LoginPasskeyInput
28
+ */
29
+ response: {
30
+ [key: string]: any;
31
+ };
32
+ /**
33
+ * Challenge token of the sign-in, when the passkey is its second factor.
34
+ * @type {string}
35
+ * @memberof LoginPasskeyInput
36
+ */
37
+ challengeToken?: string;
38
+ }
39
+ /**
40
+ * Check if a given object implements the LoginPasskeyInput interface.
41
+ */
42
+ export declare function instanceOfLoginPasskeyInput(value: object): value is LoginPasskeyInput;
43
+ export declare function LoginPasskeyInputFromJSON(json: any): LoginPasskeyInput;
44
+ export declare function LoginPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasskeyInput;
45
+ export declare function LoginPasskeyInputToJSON(json: any): LoginPasskeyInput;
46
+ export declare function LoginPasskeyInputToJSONTyped(value?: LoginPasskeyInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfLoginPasskeyInput = instanceOfLoginPasskeyInput;
17
+ exports.LoginPasskeyInputFromJSON = LoginPasskeyInputFromJSON;
18
+ exports.LoginPasskeyInputFromJSONTyped = LoginPasskeyInputFromJSONTyped;
19
+ exports.LoginPasskeyInputToJSON = LoginPasskeyInputToJSON;
20
+ exports.LoginPasskeyInputToJSONTyped = LoginPasskeyInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LoginPasskeyInput interface.
23
+ */
24
+ function instanceOfLoginPasskeyInput(value) {
25
+ if (!('webauthnToken' in value) || value['webauthnToken'] === undefined)
26
+ return false;
27
+ if (!('response' in value) || value['response'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LoginPasskeyInputFromJSON(json) {
32
+ return LoginPasskeyInputFromJSONTyped(json, false);
33
+ }
34
+ function LoginPasskeyInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'webauthnToken': json['webauthnToken'],
40
+ 'response': json['response'],
41
+ 'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
42
+ };
43
+ }
44
+ function LoginPasskeyInputToJSON(json) {
45
+ return LoginPasskeyInputToJSONTyped(json, false);
46
+ }
47
+ function LoginPasskeyInputToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'webauthnToken': value['webauthnToken'],
54
+ 'response': value['response'],
55
+ 'challengeToken': value['challengeToken'],
56
+ };
57
+ }
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface LoginPasskeyOptionsInput
16
+ */
17
+ export interface LoginPasskeyOptionsInput {
18
+ /**
19
+ * Challenge token of the sign-in, when the passkey is its second factor. Without it, the passkey signs in on its own.
20
+ * @type {string}
21
+ * @memberof LoginPasskeyOptionsInput
22
+ */
23
+ challengeToken?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the LoginPasskeyOptionsInput interface.
27
+ */
28
+ export declare function instanceOfLoginPasskeyOptionsInput(value: object): value is LoginPasskeyOptionsInput;
29
+ export declare function LoginPasskeyOptionsInputFromJSON(json: any): LoginPasskeyOptionsInput;
30
+ export declare function LoginPasskeyOptionsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasskeyOptionsInput;
31
+ export declare function LoginPasskeyOptionsInputToJSON(json: any): LoginPasskeyOptionsInput;
32
+ export declare function LoginPasskeyOptionsInputToJSONTyped(value?: LoginPasskeyOptionsInput | null, ignoreDiscriminator?: boolean): any;