@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,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LoginCodeInput
20
+ */
21
+ export interface LoginCodeInput {
22
+ /**
23
+ * Challenge token returned by the previous sign-in step.
24
+ * @type {string}
25
+ * @memberof LoginCodeInput
26
+ */
27
+ challengeToken: string;
28
+ /**
29
+ * Six-digit code of the authenticator app, or a recovery code (e.g. abcde-fghij).
30
+ * @type {string}
31
+ * @memberof LoginCodeInput
32
+ */
33
+ code: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the LoginCodeInput interface.
38
+ */
39
+ export function instanceOfLoginCodeInput(value: object): value is LoginCodeInput {
40
+ if (!('challengeToken' in value) || value['challengeToken'] === undefined) return false;
41
+ if (!('code' in value) || value['code'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function LoginCodeInputFromJSON(json: any): LoginCodeInput {
46
+ return LoginCodeInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function LoginCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginCodeInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'challengeToken': json['challengeToken'],
56
+ 'code': json['code'],
57
+ };
58
+ }
59
+
60
+ export function LoginCodeInputToJSON(json: any): LoginCodeInput {
61
+ return LoginCodeInputToJSONTyped(json, false);
62
+ }
63
+
64
+ export function LoginCodeInputToJSONTyped(value?: LoginCodeInput | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'challengeToken': value['challengeToken'],
72
+ 'code': value['code'],
73
+ };
74
+ }
75
+
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { LoginStatus } from './LoginStatus';
17
+ import {
18
+ LoginStatusFromJSON,
19
+ LoginStatusFromJSONTyped,
20
+ LoginStatusToJSON,
21
+ LoginStatusToJSONTyped,
22
+ } from './LoginStatus';
23
+ import type { SecondFactorMethod } from './SecondFactorMethod';
24
+ import {
25
+ SecondFactorMethodFromJSON,
26
+ SecondFactorMethodFromJSONTyped,
27
+ SecondFactorMethodToJSON,
28
+ SecondFactorMethodToJSONTyped,
29
+ } from './SecondFactorMethod';
30
+
16
31
  /**
17
32
  *
18
33
  * @export
@@ -20,25 +35,50 @@ import { mapValues } from '../runtime';
20
35
  */
21
36
  export interface LoginDto {
22
37
  /**
23
- * JWT authentication token.
38
+ * Where the sign-in stands.
39
+ * @type {LoginStatus}
40
+ * @memberof LoginDto
41
+ */
42
+ status: LoginStatus;
43
+ /**
44
+ * JWT authentication token, once signed in.
45
+ * @type {string}
46
+ * @memberof LoginDto
47
+ */
48
+ token?: string;
49
+ /**
50
+ * User locale (BCP 47), once signed in.
24
51
  * @type {string}
25
52
  * @memberof LoginDto
26
53
  */
27
- token: string;
54
+ locale?: string;
28
55
  /**
29
- * User locale (BCP 47).
56
+ * Short-lived token of the sign-in so far, to send with the next step.
30
57
  * @type {string}
31
58
  * @memberof LoginDto
32
59
  */
33
- locale: string;
60
+ challengeToken?: string;
61
+ /**
62
+ * Second factors the user can prove, when one is required, preferred first.
63
+ * @type {Array<SecondFactorMethod>}
64
+ * @memberof LoginDto
65
+ */
66
+ secondFactorMethods?: Array<SecondFactorMethod>;
67
+ /**
68
+ * The second factor the user last signed in with, to offer first. Absent when they never used one: let them choose.
69
+ * @type {SecondFactorMethod}
70
+ * @memberof LoginDto
71
+ */
72
+ lastSecondFactorMethod?: SecondFactorMethod;
34
73
  }
35
74
 
75
+
76
+
36
77
  /**
37
78
  * Check if a given object implements the LoginDto interface.
38
79
  */
39
80
  export function instanceOfLoginDto(value: object): value is LoginDto {
40
- if (!('token' in value) || value['token'] === undefined) return false;
41
- if (!('locale' in value) || value['locale'] === undefined) return false;
81
+ if (!('status' in value) || value['status'] === undefined) return false;
42
82
  return true;
43
83
  }
44
84
 
@@ -52,8 +92,12 @@ export function LoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
52
92
  }
53
93
  return {
54
94
 
55
- 'token': json['token'],
56
- 'locale': json['locale'],
95
+ 'status': LoginStatusFromJSON(json['status']),
96
+ 'token': json['token'] == null ? undefined : json['token'],
97
+ 'locale': json['locale'] == null ? undefined : json['locale'],
98
+ 'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
99
+ 'secondFactorMethods': json['secondFactorMethods'] == null ? undefined : ((json['secondFactorMethods'] as Array<any>).map(SecondFactorMethodFromJSON)),
100
+ 'lastSecondFactorMethod': json['lastSecondFactorMethod'] == null ? undefined : SecondFactorMethodFromJSON(json['lastSecondFactorMethod']),
57
101
  };
58
102
  }
59
103
 
@@ -68,8 +112,12 @@ export function LoginDtoToJSONTyped(value?: LoginDto | null, ignoreDiscriminator
68
112
 
69
113
  return {
70
114
 
115
+ 'status': LoginStatusToJSON(value['status']),
71
116
  'token': value['token'],
72
117
  'locale': value['locale'],
118
+ 'challengeToken': value['challengeToken'],
119
+ 'secondFactorMethods': value['secondFactorMethods'] == null ? undefined : ((value['secondFactorMethods'] as Array<any>).map(SecondFactorMethodToJSON)),
120
+ 'lastSecondFactorMethod': SecondFactorMethodToJSON(value['lastSecondFactorMethod']),
73
121
  };
74
122
  }
75
123
 
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LoginPasskeyInput
20
+ */
21
+ export interface LoginPasskeyInput {
22
+ /**
23
+ * Token returned with the passkey options.
24
+ * @type {string}
25
+ * @memberof LoginPasskeyInput
26
+ */
27
+ webauthnToken: string;
28
+ /**
29
+ * Answer of the browser, as @simplewebauthn/browser startAuthentication returns it.
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof LoginPasskeyInput
32
+ */
33
+ response: { [key: string]: any; };
34
+ /**
35
+ * Challenge token of the sign-in, when the passkey is its second factor.
36
+ * @type {string}
37
+ * @memberof LoginPasskeyInput
38
+ */
39
+ challengeToken?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the LoginPasskeyInput interface.
44
+ */
45
+ export function instanceOfLoginPasskeyInput(value: object): value is LoginPasskeyInput {
46
+ if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
47
+ if (!('response' in value) || value['response'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function LoginPasskeyInputFromJSON(json: any): LoginPasskeyInput {
52
+ return LoginPasskeyInputFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function LoginPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasskeyInput {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'webauthnToken': json['webauthnToken'],
62
+ 'response': json['response'],
63
+ 'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
64
+ };
65
+ }
66
+
67
+ export function LoginPasskeyInputToJSON(json: any): LoginPasskeyInput {
68
+ return LoginPasskeyInputToJSONTyped(json, false);
69
+ }
70
+
71
+ export function LoginPasskeyInputToJSONTyped(value?: LoginPasskeyInput | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'webauthnToken': value['webauthnToken'],
79
+ 'response': value['response'],
80
+ 'challengeToken': value['challengeToken'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LoginPasskeyOptionsInput
20
+ */
21
+ export interface LoginPasskeyOptionsInput {
22
+ /**
23
+ * Challenge token of the sign-in, when the passkey is its second factor. Without it, the passkey signs in on its own.
24
+ * @type {string}
25
+ * @memberof LoginPasskeyOptionsInput
26
+ */
27
+ challengeToken?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the LoginPasskeyOptionsInput interface.
32
+ */
33
+ export function instanceOfLoginPasskeyOptionsInput(value: object): value is LoginPasskeyOptionsInput {
34
+ return true;
35
+ }
36
+
37
+ export function LoginPasskeyOptionsInputFromJSON(json: any): LoginPasskeyOptionsInput {
38
+ return LoginPasskeyOptionsInputFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function LoginPasskeyOptionsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasskeyOptionsInput {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
48
+ };
49
+ }
50
+
51
+ export function LoginPasskeyOptionsInputToJSON(json: any): LoginPasskeyOptionsInput {
52
+ return LoginPasskeyOptionsInputToJSONTyped(json, false);
53
+ }
54
+
55
+ export function LoginPasskeyOptionsInputToJSONTyped(value?: LoginPasskeyOptionsInput | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'challengeToken': value['challengeToken'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LoginRecoveryCodeInput
20
+ */
21
+ export interface LoginRecoveryCodeInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LoginRecoveryCodeInput
26
+ */
27
+ email: string;
28
+ /**
29
+ * One of the recovery codes.
30
+ * @type {string}
31
+ * @memberof LoginRecoveryCodeInput
32
+ */
33
+ code: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the LoginRecoveryCodeInput interface.
38
+ */
39
+ export function instanceOfLoginRecoveryCodeInput(value: object): value is LoginRecoveryCodeInput {
40
+ if (!('email' in value) || value['email'] === undefined) return false;
41
+ if (!('code' in value) || value['code'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function LoginRecoveryCodeInputFromJSON(json: any): LoginRecoveryCodeInput {
46
+ return LoginRecoveryCodeInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function LoginRecoveryCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRecoveryCodeInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'email': json['email'],
56
+ 'code': json['code'],
57
+ };
58
+ }
59
+
60
+ export function LoginRecoveryCodeInputToJSON(json: any): LoginRecoveryCodeInput {
61
+ return LoginRecoveryCodeInputToJSONTyped(json, false);
62
+ }
63
+
64
+ export function LoginRecoveryCodeInputToJSONTyped(value?: LoginRecoveryCodeInput | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'email': value['email'],
72
+ 'code': value['code'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Where the sign-in stands.
18
+ * @export
19
+ */
20
+ export const LoginStatus = {
21
+ AUTHENTICATED: 'authenticated',
22
+ SECOND_FACTOR_REQUIRED: 'second_factor_required',
23
+ LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
24
+ } as const;
25
+ export type LoginStatus = typeof LoginStatus[keyof typeof LoginStatus];
26
+
27
+
28
+ export function instanceOfLoginStatus(value: any): boolean {
29
+ for (const key in LoginStatus) {
30
+ if (Object.prototype.hasOwnProperty.call(LoginStatus, key)) {
31
+ if (LoginStatus[key as keyof typeof LoginStatus] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function LoginStatusFromJSON(json: any): LoginStatus {
40
+ return LoginStatusFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function LoginStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginStatus {
44
+ return json as LoginStatus;
45
+ }
46
+
47
+ export function LoginStatusToJSON(value?: LoginStatus | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function LoginStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): LoginStatus {
52
+ return value as LoginStatus;
53
+ }
54
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PartnerMajesticMetricsDto } from './PartnerMajesticMetricsDto';
17
+ import {
18
+ PartnerMajesticMetricsDtoFromJSON,
19
+ PartnerMajesticMetricsDtoFromJSONTyped,
20
+ PartnerMajesticMetricsDtoToJSON,
21
+ PartnerMajesticMetricsDtoToJSONTyped,
22
+ } from './PartnerMajesticMetricsDto';
23
+ import type { PartnerMozMetricsDto } from './PartnerMozMetricsDto';
24
+ import {
25
+ PartnerMozMetricsDtoFromJSON,
26
+ PartnerMozMetricsDtoFromJSONTyped,
27
+ PartnerMozMetricsDtoToJSON,
28
+ PartnerMozMetricsDtoToJSONTyped,
29
+ } from './PartnerMozMetricsDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PartnerDomainSeoMetricsDto
35
+ */
36
+ export interface PartnerDomainSeoMetricsDto {
37
+ /**
38
+ * Moz metrics, or null when Moz has none for the domain.
39
+ * @type {PartnerMozMetricsDto}
40
+ * @memberof PartnerDomainSeoMetricsDto
41
+ */
42
+ moz: PartnerMozMetricsDto | null;
43
+ /**
44
+ * Majestic metrics, or null when Majestic has none for the domain.
45
+ * @type {PartnerMajesticMetricsDto}
46
+ * @memberof PartnerDomainSeoMetricsDto
47
+ */
48
+ majestic: PartnerMajesticMetricsDto | null;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PartnerDomainSeoMetricsDto interface.
53
+ */
54
+ export function instanceOfPartnerDomainSeoMetricsDto(value: object): value is PartnerDomainSeoMetricsDto {
55
+ if (!('moz' in value) || value['moz'] === undefined) return false;
56
+ if (!('majestic' in value) || value['majestic'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PartnerDomainSeoMetricsDtoFromJSON(json: any): PartnerDomainSeoMetricsDto {
61
+ return PartnerDomainSeoMetricsDtoFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PartnerDomainSeoMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerDomainSeoMetricsDto {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'moz': PartnerMozMetricsDtoFromJSON(json['moz']),
71
+ 'majestic': PartnerMajesticMetricsDtoFromJSON(json['majestic']),
72
+ };
73
+ }
74
+
75
+ export function PartnerDomainSeoMetricsDtoToJSON(json: any): PartnerDomainSeoMetricsDto {
76
+ return PartnerDomainSeoMetricsDtoToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PartnerDomainSeoMetricsDtoToJSONTyped(value?: PartnerDomainSeoMetricsDto | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'moz': PartnerMozMetricsDtoToJSON(value['moz']),
87
+ 'majestic': PartnerMajesticMetricsDtoToJSON(value['majestic']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PartnerMajesticMetricsDto
20
+ */
21
+ export interface PartnerMajesticMetricsDto {
22
+ /**
23
+ * Majestic trust flow.
24
+ * @type {number}
25
+ * @memberof PartnerMajesticMetricsDto
26
+ */
27
+ trustFlow: number | null;
28
+ /**
29
+ * Majestic citation flow.
30
+ * @type {number}
31
+ * @memberof PartnerMajesticMetricsDto
32
+ */
33
+ citationFlow: number | null;
34
+ /**
35
+ * Referring domains reported by Majestic.
36
+ * @type {number}
37
+ * @memberof PartnerMajesticMetricsDto
38
+ */
39
+ referringDomains: number | null;
40
+ /**
41
+ * Backlinks reported by Majestic.
42
+ * @type {number}
43
+ * @memberof PartnerMajesticMetricsDto
44
+ */
45
+ backlinks: number;
46
+ /**
47
+ * When the Majestic metrics were fetched.
48
+ * @type {Date}
49
+ * @memberof PartnerMajesticMetricsDto
50
+ */
51
+ updatedAt: Date | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the PartnerMajesticMetricsDto interface.
56
+ */
57
+ export function instanceOfPartnerMajesticMetricsDto(value: object): value is PartnerMajesticMetricsDto {
58
+ if (!('trustFlow' in value) || value['trustFlow'] === undefined) return false;
59
+ if (!('citationFlow' in value) || value['citationFlow'] === undefined) return false;
60
+ if (!('referringDomains' in value) || value['referringDomains'] === undefined) return false;
61
+ if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
62
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function PartnerMajesticMetricsDtoFromJSON(json: any): PartnerMajesticMetricsDto {
67
+ return PartnerMajesticMetricsDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function PartnerMajesticMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerMajesticMetricsDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'trustFlow': json['trustFlow'],
77
+ 'citationFlow': json['citationFlow'],
78
+ 'referringDomains': json['referringDomains'],
79
+ 'backlinks': json['backlinks'],
80
+ 'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
81
+ };
82
+ }
83
+
84
+ export function PartnerMajesticMetricsDtoToJSON(json: any): PartnerMajesticMetricsDto {
85
+ return PartnerMajesticMetricsDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function PartnerMajesticMetricsDtoToJSONTyped(value?: PartnerMajesticMetricsDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'trustFlow': value['trustFlow'],
96
+ 'citationFlow': value['citationFlow'],
97
+ 'referringDomains': value['referringDomains'],
98
+ 'backlinks': value['backlinks'],
99
+ 'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
100
+ };
101
+ }
102
+