@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,26 @@
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
+ * Second factors the user can prove, when one is required, preferred first.
14
+ * @export
15
+ */
16
+ export declare const SecondFactorMethod: {
17
+ readonly PASSKEY: "passkey";
18
+ readonly TOTP: "totp";
19
+ readonly RECOVERY_CODE: "recovery_code";
20
+ };
21
+ export type SecondFactorMethod = typeof SecondFactorMethod[keyof typeof SecondFactorMethod];
22
+ export declare function instanceOfSecondFactorMethod(value: any): boolean;
23
+ export declare function SecondFactorMethodFromJSON(json: any): SecondFactorMethod;
24
+ export declare function SecondFactorMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecondFactorMethod;
25
+ export declare function SecondFactorMethodToJSON(value?: SecondFactorMethod | null): any;
26
+ export declare function SecondFactorMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): SecondFactorMethod;
@@ -0,0 +1,52 @@
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.SecondFactorMethod = void 0;
17
+ exports.instanceOfSecondFactorMethod = instanceOfSecondFactorMethod;
18
+ exports.SecondFactorMethodFromJSON = SecondFactorMethodFromJSON;
19
+ exports.SecondFactorMethodFromJSONTyped = SecondFactorMethodFromJSONTyped;
20
+ exports.SecondFactorMethodToJSON = SecondFactorMethodToJSON;
21
+ exports.SecondFactorMethodToJSONTyped = SecondFactorMethodToJSONTyped;
22
+ /**
23
+ * Second factors the user can prove, when one is required, preferred first.
24
+ * @export
25
+ */
26
+ exports.SecondFactorMethod = {
27
+ PASSKEY: 'passkey',
28
+ TOTP: 'totp',
29
+ RECOVERY_CODE: 'recovery_code'
30
+ };
31
+ function instanceOfSecondFactorMethod(value) {
32
+ for (var key in exports.SecondFactorMethod) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.SecondFactorMethod, key)) {
34
+ if (exports.SecondFactorMethod[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function SecondFactorMethodFromJSON(json) {
42
+ return SecondFactorMethodFromJSONTyped(json, false);
43
+ }
44
+ function SecondFactorMethodFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function SecondFactorMethodToJSON(value) {
48
+ return value;
49
+ }
50
+ function SecondFactorMethodToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -70,6 +70,18 @@ export interface SellerSecurityUserDto {
70
70
  * @memberof SellerSecurityUserDto
71
71
  */
72
72
  account: SellerSecurityUserAccountDto;
73
+ /**
74
+ * What the user proved to sign in (RFC 8176): pwd, otp, rec, hwk (passkey) or imp (impersonation).
75
+ * @type {Array<string>}
76
+ * @memberof SellerSecurityUserDto
77
+ */
78
+ amr?: Array<string>;
79
+ /**
80
+ * Whether the session was opened with more than a password.
81
+ * @type {boolean}
82
+ * @memberof SellerSecurityUserDto
83
+ */
84
+ mfa?: boolean;
73
85
  }
74
86
  /**
75
87
  * @export
@@ -68,6 +68,8 @@ function SellerSecurityUserDtoFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'firstname': json['firstname'],
69
69
  'lastname': json['lastname'],
70
70
  'account': (0, SellerSecurityUserAccountDto_1.SellerSecurityUserAccountDtoFromJSON)(json['account']),
71
+ 'amr': json['amr'] == null ? undefined : json['amr'],
72
+ 'mfa': json['mfa'] == null ? undefined : json['mfa'],
71
73
  };
72
74
  }
73
75
  function SellerSecurityUserDtoToJSON(json) {
@@ -88,5 +90,7 @@ function SellerSecurityUserDtoToJSONTyped(value, ignoreDiscriminator) {
88
90
  'firstname': value['firstname'],
89
91
  'lastname': value['lastname'],
90
92
  'account': (0, SellerSecurityUserAccountDto_1.SellerSecurityUserAccountDtoToJSON)(value['account']),
93
+ 'amr': value['amr'],
94
+ 'mfa': value['mfa'],
91
95
  };
92
96
  }
@@ -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 TotpCodeInput
16
+ */
17
+ export interface TotpCodeInput {
18
+ /**
19
+ * Code the authenticator app shows.
20
+ * @type {string}
21
+ * @memberof TotpCodeInput
22
+ */
23
+ code: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the TotpCodeInput interface.
27
+ */
28
+ export declare function instanceOfTotpCodeInput(value: object): value is TotpCodeInput;
29
+ export declare function TotpCodeInputFromJSON(json: any): TotpCodeInput;
30
+ export declare function TotpCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpCodeInput;
31
+ export declare function TotpCodeInputToJSON(json: any): TotpCodeInput;
32
+ export declare function TotpCodeInputToJSONTyped(value?: TotpCodeInput | 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.instanceOfTotpCodeInput = instanceOfTotpCodeInput;
17
+ exports.TotpCodeInputFromJSON = TotpCodeInputFromJSON;
18
+ exports.TotpCodeInputFromJSONTyped = TotpCodeInputFromJSONTyped;
19
+ exports.TotpCodeInputToJSON = TotpCodeInputToJSON;
20
+ exports.TotpCodeInputToJSONTyped = TotpCodeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TotpCodeInput interface.
23
+ */
24
+ function instanceOfTotpCodeInput(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function TotpCodeInputFromJSON(json) {
30
+ return TotpCodeInputFromJSONTyped(json, false);
31
+ }
32
+ function TotpCodeInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'code': json['code'],
38
+ };
39
+ }
40
+ function TotpCodeInputToJSON(json) {
41
+ return TotpCodeInputToJSONTyped(json, false);
42
+ }
43
+ function TotpCodeInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'code': value['code'],
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 TotpEnrolmentDto
16
+ */
17
+ export interface TotpEnrolmentDto {
18
+ /**
19
+ * otpauth:// URI to show as a QR code for the authenticator app to scan.
20
+ * @type {string}
21
+ * @memberof TotpEnrolmentDto
22
+ */
23
+ otpauthUrl: string;
24
+ /**
25
+ * Base32 secret, to type in the app by hand when the QR code cannot be scanned.
26
+ * @type {string}
27
+ * @memberof TotpEnrolmentDto
28
+ */
29
+ secret: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TotpEnrolmentDto interface.
33
+ */
34
+ export declare function instanceOfTotpEnrolmentDto(value: object): value is TotpEnrolmentDto;
35
+ export declare function TotpEnrolmentDtoFromJSON(json: any): TotpEnrolmentDto;
36
+ export declare function TotpEnrolmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpEnrolmentDto;
37
+ export declare function TotpEnrolmentDtoToJSON(json: any): TotpEnrolmentDto;
38
+ export declare function TotpEnrolmentDtoToJSONTyped(value?: TotpEnrolmentDto | 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.instanceOfTotpEnrolmentDto = instanceOfTotpEnrolmentDto;
17
+ exports.TotpEnrolmentDtoFromJSON = TotpEnrolmentDtoFromJSON;
18
+ exports.TotpEnrolmentDtoFromJSONTyped = TotpEnrolmentDtoFromJSONTyped;
19
+ exports.TotpEnrolmentDtoToJSON = TotpEnrolmentDtoToJSON;
20
+ exports.TotpEnrolmentDtoToJSONTyped = TotpEnrolmentDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TotpEnrolmentDto interface.
23
+ */
24
+ function instanceOfTotpEnrolmentDto(value) {
25
+ if (!('otpauthUrl' in value) || value['otpauthUrl'] === undefined)
26
+ return false;
27
+ if (!('secret' in value) || value['secret'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function TotpEnrolmentDtoFromJSON(json) {
32
+ return TotpEnrolmentDtoFromJSONTyped(json, false);
33
+ }
34
+ function TotpEnrolmentDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'otpauthUrl': json['otpauthUrl'],
40
+ 'secret': json['secret'],
41
+ };
42
+ }
43
+ function TotpEnrolmentDtoToJSON(json) {
44
+ return TotpEnrolmentDtoToJSONTyped(json, false);
45
+ }
46
+ function TotpEnrolmentDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'otpauthUrl': value['otpauthUrl'],
53
+ 'secret': value['secret'],
54
+ };
55
+ }
@@ -0,0 +1,27 @@
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
+ * Method the user signs in with.
14
+ * @export
15
+ */
16
+ export declare const UserAuthenticationMethod: {
17
+ readonly PASSWORD: "password";
18
+ readonly PASSWORD_AND_SECOND_FACTOR: "password_and_second_factor";
19
+ readonly PASSKEY_AND_TOTP: "passkey_and_totp";
20
+ readonly PASSKEY: "passkey";
21
+ };
22
+ export type UserAuthenticationMethod = typeof UserAuthenticationMethod[keyof typeof UserAuthenticationMethod];
23
+ export declare function instanceOfUserAuthenticationMethod(value: any): boolean;
24
+ export declare function UserAuthenticationMethodFromJSON(json: any): UserAuthenticationMethod;
25
+ export declare function UserAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
26
+ export declare function UserAuthenticationMethodToJSON(value?: UserAuthenticationMethod | null): any;
27
+ export declare function UserAuthenticationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
@@ -0,0 +1,53 @@
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.UserAuthenticationMethod = void 0;
17
+ exports.instanceOfUserAuthenticationMethod = instanceOfUserAuthenticationMethod;
18
+ exports.UserAuthenticationMethodFromJSON = UserAuthenticationMethodFromJSON;
19
+ exports.UserAuthenticationMethodFromJSONTyped = UserAuthenticationMethodFromJSONTyped;
20
+ exports.UserAuthenticationMethodToJSON = UserAuthenticationMethodToJSON;
21
+ exports.UserAuthenticationMethodToJSONTyped = UserAuthenticationMethodToJSONTyped;
22
+ /**
23
+ * Method the user signs in with.
24
+ * @export
25
+ */
26
+ exports.UserAuthenticationMethod = {
27
+ PASSWORD: 'password',
28
+ PASSWORD_AND_SECOND_FACTOR: 'password_and_second_factor',
29
+ PASSKEY_AND_TOTP: 'passkey_and_totp',
30
+ PASSKEY: 'passkey'
31
+ };
32
+ function instanceOfUserAuthenticationMethod(value) {
33
+ for (var key in exports.UserAuthenticationMethod) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.UserAuthenticationMethod, key)) {
35
+ if (exports.UserAuthenticationMethod[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function UserAuthenticationMethodFromJSON(json) {
43
+ return UserAuthenticationMethodFromJSONTyped(json, false);
44
+ }
45
+ function UserAuthenticationMethodFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function UserAuthenticationMethodToJSON(value) {
49
+ return value;
50
+ }
51
+ function UserAuthenticationMethodToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,88 @@
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 { UserLoginAttemptMethod } from './UserLoginAttemptMethod';
13
+ import type { UserLoginAttemptResult } from './UserLoginAttemptResult';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface UserLoginAttemptDto
18
+ */
19
+ export interface UserLoginAttemptDto {
20
+ /**
21
+ * Attempt ID.
22
+ * @type {string}
23
+ * @memberof UserLoginAttemptDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * Outcome of the step.
28
+ * @type {UserLoginAttemptResult}
29
+ * @memberof UserLoginAttemptDto
30
+ */
31
+ result: UserLoginAttemptResult;
32
+ /**
33
+ * What the user signed in with in this step.
34
+ * @type {UserLoginAttemptMethod}
35
+ * @memberof UserLoginAttemptDto
36
+ */
37
+ method: UserLoginAttemptMethod;
38
+ /**
39
+ * IP address.
40
+ * @type {string}
41
+ * @memberof UserLoginAttemptDto
42
+ */
43
+ ip: string | null;
44
+ /**
45
+ * Autonomous system number of the network.
46
+ * @type {number}
47
+ * @memberof UserLoginAttemptDto
48
+ */
49
+ asn: number | null;
50
+ /**
51
+ * Operator of the network.
52
+ * @type {string}
53
+ * @memberof UserLoginAttemptDto
54
+ */
55
+ asnOrganization: string | null;
56
+ /**
57
+ * ISO 3166-1 alpha-2 country of the IP address.
58
+ * @type {string}
59
+ * @memberof UserLoginAttemptDto
60
+ */
61
+ country: string | null;
62
+ /**
63
+ * Browser.
64
+ * @type {string}
65
+ * @memberof UserLoginAttemptDto
66
+ */
67
+ userAgent: string | null;
68
+ /**
69
+ * Whether a staff member signed in as the user.
70
+ * @type {boolean}
71
+ * @memberof UserLoginAttemptDto
72
+ */
73
+ impersonated: boolean;
74
+ /**
75
+ * When it happened.
76
+ * @type {Date}
77
+ * @memberof UserLoginAttemptDto
78
+ */
79
+ createdAt: Date;
80
+ }
81
+ /**
82
+ * Check if a given object implements the UserLoginAttemptDto interface.
83
+ */
84
+ export declare function instanceOfUserLoginAttemptDto(value: object): value is UserLoginAttemptDto;
85
+ export declare function UserLoginAttemptDtoFromJSON(json: any): UserLoginAttemptDto;
86
+ export declare function UserLoginAttemptDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptDto;
87
+ export declare function UserLoginAttemptDtoToJSON(json: any): UserLoginAttemptDto;
88
+ export declare function UserLoginAttemptDtoToJSONTyped(value?: UserLoginAttemptDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,89 @@
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.instanceOfUserLoginAttemptDto = instanceOfUserLoginAttemptDto;
17
+ exports.UserLoginAttemptDtoFromJSON = UserLoginAttemptDtoFromJSON;
18
+ exports.UserLoginAttemptDtoFromJSONTyped = UserLoginAttemptDtoFromJSONTyped;
19
+ exports.UserLoginAttemptDtoToJSON = UserLoginAttemptDtoToJSON;
20
+ exports.UserLoginAttemptDtoToJSONTyped = UserLoginAttemptDtoToJSONTyped;
21
+ var UserLoginAttemptMethod_1 = require("./UserLoginAttemptMethod");
22
+ var UserLoginAttemptResult_1 = require("./UserLoginAttemptResult");
23
+ /**
24
+ * Check if a given object implements the UserLoginAttemptDto interface.
25
+ */
26
+ function instanceOfUserLoginAttemptDto(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('result' in value) || value['result'] === undefined)
30
+ return false;
31
+ if (!('method' in value) || value['method'] === undefined)
32
+ return false;
33
+ if (!('ip' in value) || value['ip'] === undefined)
34
+ return false;
35
+ if (!('asn' in value) || value['asn'] === undefined)
36
+ return false;
37
+ if (!('asnOrganization' in value) || value['asnOrganization'] === undefined)
38
+ return false;
39
+ if (!('country' in value) || value['country'] === undefined)
40
+ return false;
41
+ if (!('userAgent' in value) || value['userAgent'] === undefined)
42
+ return false;
43
+ if (!('impersonated' in value) || value['impersonated'] === undefined)
44
+ return false;
45
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function UserLoginAttemptDtoFromJSON(json) {
50
+ return UserLoginAttemptDtoFromJSONTyped(json, false);
51
+ }
52
+ function UserLoginAttemptDtoFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'result': (0, UserLoginAttemptResult_1.UserLoginAttemptResultFromJSON)(json['result']),
59
+ 'method': (0, UserLoginAttemptMethod_1.UserLoginAttemptMethodFromJSON)(json['method']),
60
+ 'ip': json['ip'],
61
+ 'asn': json['asn'],
62
+ 'asnOrganization': json['asnOrganization'],
63
+ 'country': json['country'],
64
+ 'userAgent': json['userAgent'],
65
+ 'impersonated': json['impersonated'],
66
+ 'createdAt': (new Date(json['createdAt'])),
67
+ };
68
+ }
69
+ function UserLoginAttemptDtoToJSON(json) {
70
+ return UserLoginAttemptDtoToJSONTyped(json, false);
71
+ }
72
+ function UserLoginAttemptDtoToJSONTyped(value, ignoreDiscriminator) {
73
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'id': value['id'],
79
+ 'result': (0, UserLoginAttemptResult_1.UserLoginAttemptResultToJSON)(value['result']),
80
+ 'method': (0, UserLoginAttemptMethod_1.UserLoginAttemptMethodToJSON)(value['method']),
81
+ 'ip': value['ip'],
82
+ 'asn': value['asn'],
83
+ 'asnOrganization': value['asnOrganization'],
84
+ 'country': value['country'],
85
+ 'userAgent': value['userAgent'],
86
+ 'impersonated': value['impersonated'],
87
+ 'createdAt': ((value['createdAt']).toISOString()),
88
+ };
89
+ }
@@ -0,0 +1,29 @@
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
+ * What the user signed in with in this step.
14
+ * @export
15
+ */
16
+ export declare const UserLoginAttemptMethod: {
17
+ readonly PASSWORD: "password";
18
+ readonly PASSKEY: "passkey";
19
+ readonly TOTP: "totp";
20
+ readonly RECOVERY_CODE: "recovery_code";
21
+ readonly LOCATION_CONFIRMATION: "location_confirmation";
22
+ readonly IMPERSONATION: "impersonation";
23
+ };
24
+ export type UserLoginAttemptMethod = typeof UserLoginAttemptMethod[keyof typeof UserLoginAttemptMethod];
25
+ export declare function instanceOfUserLoginAttemptMethod(value: any): boolean;
26
+ export declare function UserLoginAttemptMethodFromJSON(json: any): UserLoginAttemptMethod;
27
+ export declare function UserLoginAttemptMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptMethod;
28
+ export declare function UserLoginAttemptMethodToJSON(value?: UserLoginAttemptMethod | null): any;
29
+ export declare function UserLoginAttemptMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserLoginAttemptMethod;
@@ -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.UserLoginAttemptMethod = void 0;
17
+ exports.instanceOfUserLoginAttemptMethod = instanceOfUserLoginAttemptMethod;
18
+ exports.UserLoginAttemptMethodFromJSON = UserLoginAttemptMethodFromJSON;
19
+ exports.UserLoginAttemptMethodFromJSONTyped = UserLoginAttemptMethodFromJSONTyped;
20
+ exports.UserLoginAttemptMethodToJSON = UserLoginAttemptMethodToJSON;
21
+ exports.UserLoginAttemptMethodToJSONTyped = UserLoginAttemptMethodToJSONTyped;
22
+ /**
23
+ * What the user signed in with in this step.
24
+ * @export
25
+ */
26
+ exports.UserLoginAttemptMethod = {
27
+ PASSWORD: 'password',
28
+ PASSKEY: 'passkey',
29
+ TOTP: 'totp',
30
+ RECOVERY_CODE: 'recovery_code',
31
+ LOCATION_CONFIRMATION: 'location_confirmation',
32
+ IMPERSONATION: 'impersonation'
33
+ };
34
+ function instanceOfUserLoginAttemptMethod(value) {
35
+ for (var key in exports.UserLoginAttemptMethod) {
36
+ if (Object.prototype.hasOwnProperty.call(exports.UserLoginAttemptMethod, key)) {
37
+ if (exports.UserLoginAttemptMethod[key] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+ function UserLoginAttemptMethodFromJSON(json) {
45
+ return UserLoginAttemptMethodFromJSONTyped(json, false);
46
+ }
47
+ function UserLoginAttemptMethodFromJSONTyped(json, ignoreDiscriminator) {
48
+ return json;
49
+ }
50
+ function UserLoginAttemptMethodToJSON(value) {
51
+ return value;
52
+ }
53
+ function UserLoginAttemptMethodToJSONTyped(value, ignoreDiscriminator) {
54
+ return value;
55
+ }