@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
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  BadRequestException,
19
19
  GetBuyerDomainAppraisalRequests200Response,
20
- NotFoundException,
21
20
  ValidationException,
22
21
  } from '../models/index';
23
22
  import {
@@ -25,8 +24,6 @@ import {
25
24
  BadRequestExceptionToJSON,
26
25
  GetBuyerDomainAppraisalRequests200ResponseFromJSON,
27
26
  GetBuyerDomainAppraisalRequests200ResponseToJSON,
28
- NotFoundExceptionFromJSON,
29
- NotFoundExceptionToJSON,
30
27
  ValidationExceptionFromJSON,
31
28
  ValidationExceptionToJSON,
32
29
  } from '../models/index';
@@ -18,7 +18,6 @@ import type {
18
18
  BuyerDomainAppraisalRequestCheckoutDto,
19
19
  CreateBuyerDomainAppraisalRequestInput,
20
20
  CreateManualTransactionInput,
21
- NotFoundException,
22
21
  ObjectId,
23
22
  UpdateOrderInput,
24
23
  ValidationException,
@@ -30,8 +29,6 @@ import {
30
29
  CreateBuyerDomainAppraisalRequestInputToJSON,
31
30
  CreateManualTransactionInputFromJSON,
32
31
  CreateManualTransactionInputToJSON,
33
- NotFoundExceptionFromJSON,
34
- NotFoundExceptionToJSON,
35
32
  ObjectIdFromJSON,
36
33
  ObjectIdToJSON,
37
34
  UpdateOrderInputFromJSON,
@@ -34,7 +34,6 @@ import type {
34
34
  IntersectionDomainDtoWithHijackerDtoWithAccountDto,
35
35
  JobDto,
36
36
  List200Response2,
37
- NotFoundException,
38
37
  PreviewDomainEditInput,
39
38
  SellerDomainAffiliateCommissionDto,
40
39
  SellerDomainTransferDto,
@@ -84,8 +83,6 @@ import {
84
83
  JobDtoToJSON,
85
84
  List200Response2FromJSON,
86
85
  List200Response2ToJSON,
87
- NotFoundExceptionFromJSON,
88
- NotFoundExceptionToJSON,
89
86
  PreviewDomainEditInputFromJSON,
90
87
  PreviewDomainEditInputToJSON,
91
88
  SellerDomainAffiliateCommissionDtoFromJSON,
@@ -19,7 +19,6 @@ import type {
19
19
  DomainStatsDto,
20
20
  DomainTldsDto,
21
21
  List200Response3,
22
- NotFoundException,
23
22
  RelatedDomainsDto,
24
23
  ValidationException,
25
24
  } from '../models/index';
@@ -32,8 +31,6 @@ import {
32
31
  DomainTldsDtoToJSON,
33
32
  List200Response3FromJSON,
34
33
  List200Response3ToJSON,
35
- NotFoundExceptionFromJSON,
36
- NotFoundExceptionToJSON,
37
34
  RelatedDomainsDtoFromJSON,
38
35
  RelatedDomainsDtoToJSON,
39
36
  ValidationExceptionFromJSON,
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  BulkDownloadInvoicesInput,
19
19
  GetInvoices200Response,
20
- NotFoundException,
21
20
  ValidationException,
22
21
  } from '../models/index';
23
22
  import {
@@ -25,8 +24,6 @@ import {
25
24
  BulkDownloadInvoicesInputToJSON,
26
25
  GetInvoices200ResponseFromJSON,
27
26
  GetInvoices200ResponseToJSON,
28
- NotFoundExceptionFromJSON,
29
- NotFoundExceptionToJSON,
30
27
  ValidationExceptionFromJSON,
31
28
  ValidationExceptionToJSON,
32
29
  } from '../models/index';
@@ -18,7 +18,6 @@ import type {
18
18
  ConflictException,
19
19
  JobDto,
20
20
  ListJobs200Response,
21
- NotFoundException,
22
21
  ValidationException,
23
22
  } from '../models/index';
24
23
  import {
@@ -28,8 +27,6 @@ import {
28
27
  JobDtoToJSON,
29
28
  ListJobs200ResponseFromJSON,
30
29
  ListJobs200ResponseToJSON,
31
- NotFoundExceptionFromJSON,
32
- NotFoundExceptionToJSON,
33
30
  ValidationExceptionFromJSON,
34
31
  ValidationExceptionToJSON,
35
32
  } from '../models/index';
@@ -19,7 +19,6 @@ import type {
19
19
  BadRequestException,
20
20
  CreateLeadInput,
21
21
  LeadStatusDto,
22
- NotFoundException,
23
22
  ObjectId,
24
23
  PublicLeadDto,
25
24
  UpdateLeadInput,
@@ -35,8 +34,6 @@ import {
35
34
  CreateLeadInputToJSON,
36
35
  LeadStatusDtoFromJSON,
37
36
  LeadStatusDtoToJSON,
38
- NotFoundExceptionFromJSON,
39
- NotFoundExceptionToJSON,
40
37
  ObjectIdFromJSON,
41
38
  ObjectIdToJSON,
42
39
  PublicLeadDtoFromJSON,
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  BulkMarkNotificationsAsReadInputDto,
19
19
  ListNotifications200Response,
20
- NotFoundException,
21
20
  UserNotificationDto,
22
21
  ValidationException,
23
22
  } from '../models/index';
@@ -26,8 +25,6 @@ import {
26
25
  BulkMarkNotificationsAsReadInputDtoToJSON,
27
26
  ListNotifications200ResponseFromJSON,
28
27
  ListNotifications200ResponseToJSON,
29
- NotFoundExceptionFromJSON,
30
- NotFoundExceptionToJSON,
31
28
  UserNotificationDtoFromJSON,
32
29
  UserNotificationDtoToJSON,
33
30
  ValidationExceptionFromJSON,
@@ -19,7 +19,6 @@ import type {
19
19
  BadRequestException,
20
20
  CreateManualTransactionInput,
21
21
  CreateOrderInput,
22
- NotFoundException,
23
22
  ObjectId,
24
23
  OrderDto,
25
24
  UpdateOrderInput,
@@ -34,8 +33,6 @@ import {
34
33
  CreateManualTransactionInputToJSON,
35
34
  CreateOrderInputFromJSON,
36
35
  CreateOrderInputToJSON,
37
- NotFoundExceptionFromJSON,
38
- NotFoundExceptionToJSON,
39
36
  ObjectIdFromJSON,
40
37
  ObjectIdToJSON,
41
38
  OrderDtoFromJSON,
@@ -18,6 +18,7 @@ import type {
18
18
  ListAuctions200Response,
19
19
  ListDomainsWithUpdatedPricing200Response,
20
20
  PartnerDomainFindDto,
21
+ PartnerDomainSeoMetricsDto,
21
22
  ValidationException,
22
23
  } from '../models/index';
23
24
  import {
@@ -27,6 +28,8 @@ import {
27
28
  ListDomainsWithUpdatedPricing200ResponseToJSON,
28
29
  PartnerDomainFindDtoFromJSON,
29
30
  PartnerDomainFindDtoToJSON,
31
+ PartnerDomainSeoMetricsDtoFromJSON,
32
+ PartnerDomainSeoMetricsDtoToJSON,
30
33
  ValidationExceptionFromJSON,
31
34
  ValidationExceptionToJSON,
32
35
  } from '../models/index';
@@ -36,6 +39,10 @@ export interface PartnerApiDomainsFindRequest {
36
39
  tld?: string;
37
40
  }
38
41
 
42
+ export interface PartnerApiGetPartnerDomainSeoMetricsRequest {
43
+ domainName: string;
44
+ }
45
+
39
46
  export interface PartnerApiListAuctionsRequest {
40
47
  limit?: number;
41
48
  cursor?: string;
@@ -95,6 +102,45 @@ export class PartnerApi extends runtime.BaseAPI {
95
102
  return await response.value();
96
103
  }
97
104
 
105
+ /**
106
+ * Returns the Moz and Majestic metrics Nameshift keeps for a listed domain (sold ones included), each with the date it was fetched. Link metrics only: no prices, page views or leads.
107
+ * Get the SEO metrics of a domain
108
+ */
109
+ async getPartnerDomainSeoMetricsRaw(requestParameters: PartnerApiGetPartnerDomainSeoMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDomainSeoMetricsDto>> {
110
+ if (requestParameters['domainName'] == null) {
111
+ throw new runtime.RequiredError(
112
+ 'domainName',
113
+ 'Required parameter "domainName" was null or undefined when calling getPartnerDomainSeoMetrics().'
114
+ );
115
+ }
116
+
117
+ const queryParameters: any = {};
118
+
119
+ const headerParameters: runtime.HTTPHeaders = {};
120
+
121
+ if (this.configuration && this.configuration.apiKey) {
122
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
123
+ }
124
+
125
+ const response = await this.request({
126
+ path: `/partner/domains/by-name/{domainName}/seo-metrics`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
127
+ method: 'GET',
128
+ headers: headerParameters,
129
+ query: queryParameters,
130
+ }, initOverrides);
131
+
132
+ return new runtime.JSONApiResponse(response, (jsonValue) => PartnerDomainSeoMetricsDtoFromJSON(jsonValue));
133
+ }
134
+
135
+ /**
136
+ * Returns the Moz and Majestic metrics Nameshift keeps for a listed domain (sold ones included), each with the date it was fetched. Link metrics only: no prices, page views or leads.
137
+ * Get the SEO metrics of a domain
138
+ */
139
+ async getPartnerDomainSeoMetrics(requestParameters: PartnerApiGetPartnerDomainSeoMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDomainSeoMetricsDto> {
140
+ const response = await this.getPartnerDomainSeoMetricsRaw(requestParameters, initOverrides);
141
+ return await response.value();
142
+ }
143
+
98
144
  /**
99
145
  * Lists auctions available to the partner API key.
100
146
  * List partner auctions
@@ -19,7 +19,6 @@ import type {
19
19
  BadRequestException,
20
20
  CreateSubscriptionInput,
21
21
  CreateSubscriptionManualTransactionInput,
22
- NotFoundException,
23
22
  ObjectId,
24
23
  SubscriptionDto,
25
24
  UpdateSubscriptionInput,
@@ -34,8 +33,6 @@ import {
34
33
  CreateSubscriptionInputToJSON,
35
34
  CreateSubscriptionManualTransactionInputFromJSON,
36
35
  CreateSubscriptionManualTransactionInputToJSON,
37
- NotFoundExceptionFromJSON,
38
- NotFoundExceptionToJSON,
39
36
  ObjectIdFromJSON,
40
37
  ObjectIdToJSON,
41
38
  SubscriptionDtoFromJSON,