@randock/nameshift-api-client 0.0.502 → 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 (170) hide show
  1. package/.openapi-generator/FILES +35 -1
  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/PartnerApi.d.ts +14 -1
  8. package/dist/apis/PartnerApi.js +53 -0
  9. package/dist/apis/UsersApi.d.ts +285 -1
  10. package/dist/apis/UsersApi.js +1305 -46
  11. package/dist/apis/UsersPublicApi.d.ts +107 -3
  12. package/dist/apis/UsersPublicApi.js +388 -2
  13. package/dist/models/ActivateUserTotpInput.d.ts +32 -0
  14. package/dist/models/ActivateUserTotpInput.js +51 -0
  15. package/dist/models/AdminUserSecurityDto.d.ts +87 -0
  16. package/dist/models/AdminUserSecurityDto.js +88 -0
  17. package/dist/models/BuyerLoginDto.d.ts +38 -0
  18. package/dist/models/BuyerLoginDto.js +55 -0
  19. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  20. package/dist/models/BuyerNotificationDto.js +1 -0
  21. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  22. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  23. package/dist/models/ChangeUserAuthenticationMethodInput.d.ts +33 -0
  24. package/dist/models/ChangeUserAuthenticationMethodInput.js +52 -0
  25. package/dist/models/ChangeUserLoginLocationVerificationInput.d.ts +32 -0
  26. package/dist/models/ChangeUserLoginLocationVerificationInput.js +51 -0
  27. package/dist/models/ChangeUserPasswordInput.d.ts +38 -0
  28. package/dist/models/ChangeUserPasswordInput.js +55 -0
  29. package/dist/models/ConfirmLoginLocationInput.d.ts +32 -0
  30. package/dist/models/ConfirmLoginLocationInput.js +51 -0
  31. package/dist/models/CurrentPasswordInput.d.ts +32 -0
  32. package/dist/models/CurrentPasswordInput.js +51 -0
  33. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  34. package/dist/models/FeatureFlagListItemDto.js +2 -1
  35. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  36. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  37. package/dist/models/ListUserLoginAttempts200Response.d.ts +47 -0
  38. package/dist/models/ListUserLoginAttempts200Response.js +62 -0
  39. package/dist/models/LoginChallengeInput.d.ts +32 -0
  40. package/dist/models/LoginChallengeInput.js +51 -0
  41. package/dist/models/LoginCodeInput.d.ts +38 -0
  42. package/dist/models/LoginCodeInput.js +55 -0
  43. package/dist/models/LoginDto.d.ts +30 -4
  44. package/dist/models/LoginDto.js +13 -5
  45. package/dist/models/LoginPasskeyInput.d.ts +46 -0
  46. package/dist/models/LoginPasskeyInput.js +57 -0
  47. package/dist/models/LoginPasskeyOptionsInput.d.ts +32 -0
  48. package/dist/models/LoginPasskeyOptionsInput.js +49 -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/PartnerDomainSeoMetricsDto.d.ts +40 -0
  54. package/dist/models/PartnerDomainSeoMetricsDto.js +57 -0
  55. package/dist/models/PartnerMajesticMetricsDto.d.ts +56 -0
  56. package/dist/models/PartnerMajesticMetricsDto.js +67 -0
  57. package/dist/models/PartnerMozMetricsDto.d.ts +62 -0
  58. package/dist/models/PartnerMozMetricsDto.js +71 -0
  59. package/dist/models/PasskeyOptionsDto.d.ts +40 -0
  60. package/dist/models/PasskeyOptionsDto.js +55 -0
  61. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  62. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  63. package/dist/models/ReauthenticateWithPasskeyInput.d.ts +40 -0
  64. package/dist/models/ReauthenticateWithPasskeyInput.js +55 -0
  65. package/dist/models/ReauthenticationDto.d.ts +38 -0
  66. package/dist/models/ReauthenticationDto.js +55 -0
  67. package/dist/models/RecoveryCodesDto.d.ts +32 -0
  68. package/dist/models/RecoveryCodesDto.js +51 -0
  69. package/dist/models/RegisterUserPasskeyInput.d.ts +46 -0
  70. package/dist/models/RegisterUserPasskeyInput.js +59 -0
  71. package/dist/models/RemoveUserPasskeyInput.d.ts +40 -0
  72. package/dist/models/RemoveUserPasskeyInput.js +55 -0
  73. package/dist/models/RenameUserPasskeyInput.d.ts +32 -0
  74. package/dist/models/{NotFoundException.js → RenameUserPasskeyInput.js} +13 -21
  75. package/dist/models/SecondFactorMethod.d.ts +26 -0
  76. package/dist/models/SecondFactorMethod.js +52 -0
  77. package/dist/models/SellerSecurityUserDto.d.ts +12 -0
  78. package/dist/models/SellerSecurityUserDto.js +4 -0
  79. package/dist/models/TotpCodeInput.d.ts +32 -0
  80. package/dist/models/TotpCodeInput.js +51 -0
  81. package/dist/models/TotpEnrolmentDto.d.ts +38 -0
  82. package/dist/models/TotpEnrolmentDto.js +55 -0
  83. package/dist/models/UserAuthenticationMethod.d.ts +27 -0
  84. package/dist/models/UserAuthenticationMethod.js +53 -0
  85. package/dist/models/UserLoginAttemptDto.d.ts +88 -0
  86. package/dist/models/UserLoginAttemptDto.js +89 -0
  87. package/dist/models/UserLoginAttemptMethod.d.ts +29 -0
  88. package/dist/models/UserLoginAttemptMethod.js +55 -0
  89. package/dist/models/UserLoginAttemptResult.d.ts +30 -0
  90. package/dist/models/UserLoginAttemptResult.js +56 -0
  91. package/dist/models/UserLoginLocationConfirmationDetailsDto.d.ts +62 -0
  92. package/dist/models/UserLoginLocationConfirmationDetailsDto.js +71 -0
  93. package/dist/models/UserNotificationDto.d.ts +1 -0
  94. package/dist/models/UserNotificationDto.js +1 -0
  95. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  96. package/dist/models/UserNotificationListItemDto.js +1 -0
  97. package/dist/models/UserPasskeyDto.d.ts +62 -0
  98. package/dist/models/UserPasskeyDto.js +71 -0
  99. package/dist/models/UserSecurityDto.d.ts +94 -0
  100. package/dist/models/UserSecurityDto.js +93 -0
  101. package/dist/models/index.d.ts +35 -1
  102. package/dist/models/index.js +35 -1
  103. package/package.json +1 -1
  104. package/src/apis/AccountsApi.ts +0 -3
  105. package/src/apis/AccountsPublicApi.ts +0 -3
  106. package/src/apis/AdminApi.ts +172 -3
  107. package/src/apis/AuctionsApi.ts +0 -3
  108. package/src/apis/BuyersApi.ts +0 -3
  109. package/src/apis/BuyersPublicApi.ts +6 -6
  110. package/src/apis/CustomerSuccessApi.ts +0 -3
  111. package/src/apis/DomainAppraisalRequestsApi.ts +0 -3
  112. package/src/apis/DomainAppraisalRequestsPublicApi.ts +0 -3
  113. package/src/apis/DomainsApi.ts +0 -3
  114. package/src/apis/DomainsPublicApi.ts +0 -3
  115. package/src/apis/InvoicesApi.ts +0 -3
  116. package/src/apis/JobsApi.ts +0 -3
  117. package/src/apis/LeadsPublicApi.ts +0 -3
  118. package/src/apis/NotificationsApi.ts +0 -3
  119. package/src/apis/OrdersPublicApi.ts +0 -3
  120. package/src/apis/PartnerApi.ts +46 -0
  121. package/src/apis/SubscriptionsPublicApi.ts +0 -3
  122. package/src/apis/UsersApi.ts +1219 -48
  123. package/src/apis/UsersPublicApi.ts +375 -5
  124. package/src/models/ActivateUserTotpInput.ts +66 -0
  125. package/src/models/AdminUserSecurityDto.ts +157 -0
  126. package/src/models/BuyerLoginDto.ts +75 -0
  127. package/src/models/BuyerNotificationDto.ts +1 -0
  128. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  129. package/src/models/ChangeUserAuthenticationMethodInput.ts +76 -0
  130. package/src/models/ChangeUserLoginLocationVerificationInput.ts +66 -0
  131. package/src/models/ChangeUserPasswordInput.ts +75 -0
  132. package/src/models/ConfirmLoginLocationInput.ts +66 -0
  133. package/src/models/CurrentPasswordInput.ts +66 -0
  134. package/src/models/FeatureFlagListItemDto.ts +2 -1
  135. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  136. package/src/models/ListUserLoginAttempts200Response.ts +106 -0
  137. package/src/models/LoginChallengeInput.ts +66 -0
  138. package/src/models/LoginCodeInput.ts +75 -0
  139. package/src/models/LoginDto.ts +56 -8
  140. package/src/models/LoginPasskeyInput.ts +83 -0
  141. package/src/models/LoginPasskeyOptionsInput.ts +65 -0
  142. package/src/models/LoginRecoveryCodeInput.ts +75 -0
  143. package/src/models/LoginStatus.ts +54 -0
  144. package/src/models/PartnerDomainSeoMetricsDto.ts +90 -0
  145. package/src/models/PartnerMajesticMetricsDto.ts +102 -0
  146. package/src/models/PartnerMozMetricsDto.ts +111 -0
  147. package/src/models/PasskeyOptionsDto.ts +75 -0
  148. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  149. package/src/models/ReauthenticateWithPasskeyInput.ts +75 -0
  150. package/src/models/ReauthenticationDto.ts +75 -0
  151. package/src/models/RecoveryCodesDto.ts +66 -0
  152. package/src/models/RegisterUserPasskeyInput.ts +84 -0
  153. package/src/models/RemoveUserPasskeyInput.ts +75 -0
  154. package/src/models/RenameUserPasskeyInput.ts +66 -0
  155. package/src/models/SecondFactorMethod.ts +54 -0
  156. package/src/models/SellerSecurityUserDto.ts +16 -0
  157. package/src/models/TotpCodeInput.ts +66 -0
  158. package/src/models/TotpEnrolmentDto.ts +75 -0
  159. package/src/models/UserAuthenticationMethod.ts +55 -0
  160. package/src/models/UserLoginAttemptDto.ts +164 -0
  161. package/src/models/UserLoginAttemptMethod.ts +57 -0
  162. package/src/models/UserLoginAttemptResult.ts +58 -0
  163. package/src/models/UserLoginLocationConfirmationDetailsDto.ts +111 -0
  164. package/src/models/UserNotificationDto.ts +1 -0
  165. package/src/models/UserNotificationListItemDto.ts +1 -0
  166. package/src/models/UserPasskeyDto.ts +111 -0
  167. package/src/models/UserSecurityDto.ts +173 -0
  168. package/src/models/index.ts +35 -1
  169. package/dist/models/NotFoundException.d.ts +0 -44
  170. package/src/models/NotFoundException.ts +0 -84
@@ -0,0 +1,30 @@
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
+ * Outcome of the step.
14
+ * @export
15
+ */
16
+ export declare const UserLoginAttemptResult: {
17
+ readonly SUCCESS: "success";
18
+ readonly INVALID_CREDENTIALS: "invalid_credentials";
19
+ readonly SECOND_FACTOR_REQUIRED: "second_factor_required";
20
+ readonly SECOND_FACTOR_FAILED: "second_factor_failed";
21
+ readonly SECOND_FACTOR_LOCKED: "second_factor_locked";
22
+ readonly PASSWORD_LOGIN_DISABLED: "password_login_disabled";
23
+ readonly LOCATION_CONFIRMATION_REQUIRED: "location_confirmation_required";
24
+ };
25
+ export type UserLoginAttemptResult = typeof UserLoginAttemptResult[keyof typeof UserLoginAttemptResult];
26
+ export declare function instanceOfUserLoginAttemptResult(value: any): boolean;
27
+ export declare function UserLoginAttemptResultFromJSON(json: any): UserLoginAttemptResult;
28
+ export declare function UserLoginAttemptResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptResult;
29
+ export declare function UserLoginAttemptResultToJSON(value?: UserLoginAttemptResult | null): any;
30
+ export declare function UserLoginAttemptResultToJSONTyped(value: any, ignoreDiscriminator: boolean): UserLoginAttemptResult;
@@ -0,0 +1,56 @@
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.UserLoginAttemptResult = void 0;
17
+ exports.instanceOfUserLoginAttemptResult = instanceOfUserLoginAttemptResult;
18
+ exports.UserLoginAttemptResultFromJSON = UserLoginAttemptResultFromJSON;
19
+ exports.UserLoginAttemptResultFromJSONTyped = UserLoginAttemptResultFromJSONTyped;
20
+ exports.UserLoginAttemptResultToJSON = UserLoginAttemptResultToJSON;
21
+ exports.UserLoginAttemptResultToJSONTyped = UserLoginAttemptResultToJSONTyped;
22
+ /**
23
+ * Outcome of the step.
24
+ * @export
25
+ */
26
+ exports.UserLoginAttemptResult = {
27
+ SUCCESS: 'success',
28
+ INVALID_CREDENTIALS: 'invalid_credentials',
29
+ SECOND_FACTOR_REQUIRED: 'second_factor_required',
30
+ SECOND_FACTOR_FAILED: 'second_factor_failed',
31
+ SECOND_FACTOR_LOCKED: 'second_factor_locked',
32
+ PASSWORD_LOGIN_DISABLED: 'password_login_disabled',
33
+ LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
34
+ };
35
+ function instanceOfUserLoginAttemptResult(value) {
36
+ for (var key in exports.UserLoginAttemptResult) {
37
+ if (Object.prototype.hasOwnProperty.call(exports.UserLoginAttemptResult, key)) {
38
+ if (exports.UserLoginAttemptResult[key] === value) {
39
+ return true;
40
+ }
41
+ }
42
+ }
43
+ return false;
44
+ }
45
+ function UserLoginAttemptResultFromJSON(json) {
46
+ return UserLoginAttemptResultFromJSONTyped(json, false);
47
+ }
48
+ function UserLoginAttemptResultFromJSONTyped(json, ignoreDiscriminator) {
49
+ return json;
50
+ }
51
+ function UserLoginAttemptResultToJSON(value) {
52
+ return value;
53
+ }
54
+ function UserLoginAttemptResultToJSONTyped(value, ignoreDiscriminator) {
55
+ return value;
56
+ }
@@ -0,0 +1,62 @@
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 UserLoginLocationConfirmationDetailsDto
16
+ */
17
+ export interface UserLoginLocationConfirmationDetailsDto {
18
+ /**
19
+ * Whether the sign-in is still waiting for it.
20
+ * @type {boolean}
21
+ * @memberof UserLoginLocationConfirmationDetailsDto
22
+ */
23
+ pending: boolean;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserLoginLocationConfirmationDetailsDto
28
+ */
29
+ ip: string | null;
30
+ /**
31
+ * Organization of the network (ASN).
32
+ * @type {string}
33
+ * @memberof UserLoginLocationConfirmationDetailsDto
34
+ */
35
+ network: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UserLoginLocationConfirmationDetailsDto
40
+ */
41
+ country: string | null;
42
+ /**
43
+ * User agent.
44
+ * @type {string}
45
+ * @memberof UserLoginLocationConfirmationDetailsDto
46
+ */
47
+ device: string | null;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof UserLoginLocationConfirmationDetailsDto
52
+ */
53
+ createdAt: Date;
54
+ }
55
+ /**
56
+ * Check if a given object implements the UserLoginLocationConfirmationDetailsDto interface.
57
+ */
58
+ export declare function instanceOfUserLoginLocationConfirmationDetailsDto(value: object): value is UserLoginLocationConfirmationDetailsDto;
59
+ export declare function UserLoginLocationConfirmationDetailsDtoFromJSON(json: any): UserLoginLocationConfirmationDetailsDto;
60
+ export declare function UserLoginLocationConfirmationDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginLocationConfirmationDetailsDto;
61
+ export declare function UserLoginLocationConfirmationDetailsDtoToJSON(json: any): UserLoginLocationConfirmationDetailsDto;
62
+ export declare function UserLoginLocationConfirmationDetailsDtoToJSONTyped(value?: UserLoginLocationConfirmationDetailsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfUserLoginLocationConfirmationDetailsDto = instanceOfUserLoginLocationConfirmationDetailsDto;
17
+ exports.UserLoginLocationConfirmationDetailsDtoFromJSON = UserLoginLocationConfirmationDetailsDtoFromJSON;
18
+ exports.UserLoginLocationConfirmationDetailsDtoFromJSONTyped = UserLoginLocationConfirmationDetailsDtoFromJSONTyped;
19
+ exports.UserLoginLocationConfirmationDetailsDtoToJSON = UserLoginLocationConfirmationDetailsDtoToJSON;
20
+ exports.UserLoginLocationConfirmationDetailsDtoToJSONTyped = UserLoginLocationConfirmationDetailsDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserLoginLocationConfirmationDetailsDto interface.
23
+ */
24
+ function instanceOfUserLoginLocationConfirmationDetailsDto(value) {
25
+ if (!('pending' in value) || value['pending'] === undefined)
26
+ return false;
27
+ if (!('ip' in value) || value['ip'] === undefined)
28
+ return false;
29
+ if (!('network' in value) || value['network'] === undefined)
30
+ return false;
31
+ if (!('country' in value) || value['country'] === undefined)
32
+ return false;
33
+ if (!('device' in value) || value['device'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function UserLoginLocationConfirmationDetailsDtoFromJSON(json) {
40
+ return UserLoginLocationConfirmationDetailsDtoFromJSONTyped(json, false);
41
+ }
42
+ function UserLoginLocationConfirmationDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'pending': json['pending'],
48
+ 'ip': json['ip'],
49
+ 'network': json['network'],
50
+ 'country': json['country'],
51
+ 'device': json['device'],
52
+ 'createdAt': (new Date(json['createdAt'])),
53
+ };
54
+ }
55
+ function UserLoginLocationConfirmationDetailsDtoToJSON(json) {
56
+ return UserLoginLocationConfirmationDetailsDtoToJSONTyped(json, false);
57
+ }
58
+ function UserLoginLocationConfirmationDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'pending': value['pending'],
65
+ 'ip': value['ip'],
66
+ 'network': value['network'],
67
+ 'country': value['country'],
68
+ 'device': value['device'],
69
+ 'createdAt': ((value['createdAt']).toISOString()),
70
+ };
71
+ }
@@ -117,6 +117,7 @@ export declare const UserNotificationDtoTypeEnum: {
117
117
  readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
118
118
  readonly PASSWORD_RESET: "password_reset";
119
119
  readonly USER_EMAIL_CHANGED: "user_email_changed";
120
+ readonly USER_LOGIN_LOCATION_CONFIRMATION: "user_login_location_confirmation";
120
121
  readonly USER_EMAIL_CHANGE_CONFIRMED: "user_email_change_confirmed";
121
122
  readonly BUYER_INVOICE: "buyer_invoice";
122
123
  readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
@@ -78,6 +78,7 @@ exports.UserNotificationDtoTypeEnum = {
78
78
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
79
79
  PASSWORD_RESET: 'password_reset',
80
80
  USER_EMAIL_CHANGED: 'user_email_changed',
81
+ USER_LOGIN_LOCATION_CONFIRMATION: 'user_login_location_confirmation',
81
82
  USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
82
83
  BUYER_INVOICE: 'buyer_invoice',
83
84
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
@@ -110,6 +110,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
110
110
  readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
111
111
  readonly PASSWORD_RESET: "password_reset";
112
112
  readonly USER_EMAIL_CHANGED: "user_email_changed";
113
+ readonly USER_LOGIN_LOCATION_CONFIRMATION: "user_login_location_confirmation";
113
114
  readonly USER_EMAIL_CHANGE_CONFIRMED: "user_email_change_confirmed";
114
115
  readonly BUYER_INVOICE: "buyer_invoice";
115
116
  readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
@@ -77,6 +77,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
77
77
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
78
78
  PASSWORD_RESET: 'password_reset',
79
79
  USER_EMAIL_CHANGED: 'user_email_changed',
80
+ USER_LOGIN_LOCATION_CONFIRMATION: 'user_login_location_confirmation',
80
81
  USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
81
82
  BUYER_INVOICE: 'buyer_invoice',
82
83
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
@@ -0,0 +1,62 @@
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 UserPasskeyDto
16
+ */
17
+ export interface UserPasskeyDto {
18
+ /**
19
+ * Passkey ID.
20
+ * @type {string}
21
+ * @memberof UserPasskeyDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Name the user gave the passkey.
26
+ * @type {string}
27
+ * @memberof UserPasskeyDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Whether the passkey syncs across devices (multiDevice) or lives on one (singleDevice).
32
+ * @type {string}
33
+ * @memberof UserPasskeyDto
34
+ */
35
+ deviceType: string;
36
+ /**
37
+ * Whether the passkey is backed up.
38
+ * @type {boolean}
39
+ * @memberof UserPasskeyDto
40
+ */
41
+ backedUp: boolean;
42
+ /**
43
+ * When the passkey was added.
44
+ * @type {Date}
45
+ * @memberof UserPasskeyDto
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ * When the passkey was last used to sign in.
50
+ * @type {Date}
51
+ * @memberof UserPasskeyDto
52
+ */
53
+ lastUsedAt: Date | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the UserPasskeyDto interface.
57
+ */
58
+ export declare function instanceOfUserPasskeyDto(value: object): value is UserPasskeyDto;
59
+ export declare function UserPasskeyDtoFromJSON(json: any): UserPasskeyDto;
60
+ export declare function UserPasskeyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasskeyDto;
61
+ export declare function UserPasskeyDtoToJSON(json: any): UserPasskeyDto;
62
+ export declare function UserPasskeyDtoToJSONTyped(value?: UserPasskeyDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfUserPasskeyDto = instanceOfUserPasskeyDto;
17
+ exports.UserPasskeyDtoFromJSON = UserPasskeyDtoFromJSON;
18
+ exports.UserPasskeyDtoFromJSONTyped = UserPasskeyDtoFromJSONTyped;
19
+ exports.UserPasskeyDtoToJSON = UserPasskeyDtoToJSON;
20
+ exports.UserPasskeyDtoToJSONTyped = UserPasskeyDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserPasskeyDto interface.
23
+ */
24
+ function instanceOfUserPasskeyDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('deviceType' in value) || value['deviceType'] === undefined)
30
+ return false;
31
+ if (!('backedUp' in value) || value['backedUp'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function UserPasskeyDtoFromJSON(json) {
40
+ return UserPasskeyDtoFromJSONTyped(json, false);
41
+ }
42
+ function UserPasskeyDtoFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'name': json['name'],
49
+ 'deviceType': json['deviceType'],
50
+ 'backedUp': json['backedUp'],
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ 'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
53
+ };
54
+ }
55
+ function UserPasskeyDtoToJSON(json) {
56
+ return UserPasskeyDtoToJSONTyped(json, false);
57
+ }
58
+ function UserPasskeyDtoToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'name': value['name'],
66
+ 'deviceType': value['deviceType'],
67
+ 'backedUp': value['backedUp'],
68
+ 'createdAt': ((value['createdAt']).toISOString()),
69
+ 'lastUsedAt': (value['lastUsedAt'] == null ? null : value['lastUsedAt'].toISOString()),
70
+ };
71
+ }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { UserAuthenticationMethod } from './UserAuthenticationMethod';
13
+ import type { UserPasskeyDto } from './UserPasskeyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface UserSecurityDto
18
+ */
19
+ export interface UserSecurityDto {
20
+ /**
21
+ * Method the user signs in with.
22
+ * @type {UserAuthenticationMethod}
23
+ * @memberof UserSecurityDto
24
+ */
25
+ authenticationMethod: UserAuthenticationMethod;
26
+ /**
27
+ * Method the next sign-in follows. It differs from authenticationMethod for staff on a password alone once a second factor is required for them.
28
+ * @type {UserAuthenticationMethod}
29
+ * @memberof UserSecurityDto
30
+ */
31
+ effectiveAuthenticationMethod: UserAuthenticationMethod;
32
+ /**
33
+ * Methods the user can switch to with the factors set up right now.
34
+ * @type {Array<UserAuthenticationMethod>}
35
+ * @memberof UserSecurityDto
36
+ */
37
+ allowedAuthenticationMethods: Array<UserAuthenticationMethod>;
38
+ /**
39
+ * Whether the user has a staff role, which requires a second factor or a passkey.
40
+ * @type {boolean}
41
+ * @memberof UserSecurityDto
42
+ */
43
+ isStaff: boolean;
44
+ /**
45
+ * Whether the user must keep a verification step: staff once second factors are required for them. They always sign in with a password and a verification step, and cannot remove their last authenticator app or passkey.
46
+ * @type {boolean}
47
+ * @memberof UserSecurityDto
48
+ */
49
+ secondFactorRequired: boolean;
50
+ /**
51
+ * Whether the user must set up an authenticator app or a passkey before using the app: staff, once second factors are required for them, with neither yet.
52
+ * @type {boolean}
53
+ * @memberof UserSecurityDto
54
+ */
55
+ secondFactorSetupRequired: boolean;
56
+ /**
57
+ * Whether an authenticator app is set up.
58
+ * @type {boolean}
59
+ * @memberof UserSecurityDto
60
+ */
61
+ totpEnabled: boolean;
62
+ /**
63
+ * Passkeys of the user.
64
+ * @type {Array<UserPasskeyDto>}
65
+ * @memberof UserSecurityDto
66
+ */
67
+ passkeys: Array<UserPasskeyDto>;
68
+ /**
69
+ * Whether the user turned recovery codes on.
70
+ * @type {boolean}
71
+ * @memberof UserSecurityDto
72
+ */
73
+ recoveryCodesEnabled: boolean;
74
+ /**
75
+ * Recovery codes left to use.
76
+ * @type {number}
77
+ * @memberof UserSecurityDto
78
+ */
79
+ unusedRecoveryCodes: number;
80
+ /**
81
+ * Whether a sign-in from a new network has to be confirmed by email.
82
+ * @type {boolean}
83
+ * @memberof UserSecurityDto
84
+ */
85
+ loginLocationVerificationEnabled: boolean;
86
+ }
87
+ /**
88
+ * Check if a given object implements the UserSecurityDto interface.
89
+ */
90
+ export declare function instanceOfUserSecurityDto(value: object): value is UserSecurityDto;
91
+ export declare function UserSecurityDtoFromJSON(json: any): UserSecurityDto;
92
+ export declare function UserSecurityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSecurityDto;
93
+ export declare function UserSecurityDtoToJSON(json: any): UserSecurityDto;
94
+ export declare function UserSecurityDtoToJSONTyped(value?: UserSecurityDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,93 @@
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.instanceOfUserSecurityDto = instanceOfUserSecurityDto;
17
+ exports.UserSecurityDtoFromJSON = UserSecurityDtoFromJSON;
18
+ exports.UserSecurityDtoFromJSONTyped = UserSecurityDtoFromJSONTyped;
19
+ exports.UserSecurityDtoToJSON = UserSecurityDtoToJSON;
20
+ exports.UserSecurityDtoToJSONTyped = UserSecurityDtoToJSONTyped;
21
+ var UserAuthenticationMethod_1 = require("./UserAuthenticationMethod");
22
+ var UserPasskeyDto_1 = require("./UserPasskeyDto");
23
+ /**
24
+ * Check if a given object implements the UserSecurityDto interface.
25
+ */
26
+ function instanceOfUserSecurityDto(value) {
27
+ if (!('authenticationMethod' in value) || value['authenticationMethod'] === undefined)
28
+ return false;
29
+ if (!('effectiveAuthenticationMethod' in value) || value['effectiveAuthenticationMethod'] === undefined)
30
+ return false;
31
+ if (!('allowedAuthenticationMethods' in value) || value['allowedAuthenticationMethods'] === undefined)
32
+ return false;
33
+ if (!('isStaff' in value) || value['isStaff'] === undefined)
34
+ return false;
35
+ if (!('secondFactorRequired' in value) || value['secondFactorRequired'] === undefined)
36
+ return false;
37
+ if (!('secondFactorSetupRequired' in value) || value['secondFactorSetupRequired'] === undefined)
38
+ return false;
39
+ if (!('totpEnabled' in value) || value['totpEnabled'] === undefined)
40
+ return false;
41
+ if (!('passkeys' in value) || value['passkeys'] === undefined)
42
+ return false;
43
+ if (!('recoveryCodesEnabled' in value) || value['recoveryCodesEnabled'] === undefined)
44
+ return false;
45
+ if (!('unusedRecoveryCodes' in value) || value['unusedRecoveryCodes'] === undefined)
46
+ return false;
47
+ if (!('loginLocationVerificationEnabled' in value) || value['loginLocationVerificationEnabled'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function UserSecurityDtoFromJSON(json) {
52
+ return UserSecurityDtoFromJSONTyped(json, false);
53
+ }
54
+ function UserSecurityDtoFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'authenticationMethod': (0, UserAuthenticationMethod_1.UserAuthenticationMethodFromJSON)(json['authenticationMethod']),
60
+ 'effectiveAuthenticationMethod': (0, UserAuthenticationMethod_1.UserAuthenticationMethodFromJSON)(json['effectiveAuthenticationMethod']),
61
+ 'allowedAuthenticationMethods': (json['allowedAuthenticationMethods'].map(UserAuthenticationMethod_1.UserAuthenticationMethodFromJSON)),
62
+ 'isStaff': json['isStaff'],
63
+ 'secondFactorRequired': json['secondFactorRequired'],
64
+ 'secondFactorSetupRequired': json['secondFactorSetupRequired'],
65
+ 'totpEnabled': json['totpEnabled'],
66
+ 'passkeys': (json['passkeys'].map(UserPasskeyDto_1.UserPasskeyDtoFromJSON)),
67
+ 'recoveryCodesEnabled': json['recoveryCodesEnabled'],
68
+ 'unusedRecoveryCodes': json['unusedRecoveryCodes'],
69
+ 'loginLocationVerificationEnabled': json['loginLocationVerificationEnabled'],
70
+ };
71
+ }
72
+ function UserSecurityDtoToJSON(json) {
73
+ return UserSecurityDtoToJSONTyped(json, false);
74
+ }
75
+ function UserSecurityDtoToJSONTyped(value, ignoreDiscriminator) {
76
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'authenticationMethod': (0, UserAuthenticationMethod_1.UserAuthenticationMethodToJSON)(value['authenticationMethod']),
82
+ 'effectiveAuthenticationMethod': (0, UserAuthenticationMethod_1.UserAuthenticationMethodToJSON)(value['effectiveAuthenticationMethod']),
83
+ 'allowedAuthenticationMethods': (value['allowedAuthenticationMethods'].map(UserAuthenticationMethod_1.UserAuthenticationMethodToJSON)),
84
+ 'isStaff': value['isStaff'],
85
+ 'secondFactorRequired': value['secondFactorRequired'],
86
+ 'secondFactorSetupRequired': value['secondFactorSetupRequired'],
87
+ 'totpEnabled': value['totpEnabled'],
88
+ 'passkeys': (value['passkeys'].map(UserPasskeyDto_1.UserPasskeyDtoToJSON)),
89
+ 'recoveryCodesEnabled': value['recoveryCodesEnabled'],
90
+ 'unusedRecoveryCodes': value['unusedRecoveryCodes'],
91
+ 'loginLocationVerificationEnabled': value['loginLocationVerificationEnabled'],
92
+ };
93
+ }