@randock/nameshift-api-client 0.0.503 → 0.0.504

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +44 -1
  4. package/dist/apis/AdminApi.js +177 -0
  5. package/dist/apis/BuyersPublicApi.d.ts +3 -3
  6. package/dist/apis/BuyersPublicApi.js +1 -1
  7. package/dist/apis/UsersApi.d.ts +285 -1
  8. package/dist/apis/UsersApi.js +1305 -46
  9. package/dist/apis/UsersPublicApi.d.ts +107 -3
  10. package/dist/apis/UsersPublicApi.js +388 -2
  11. package/dist/models/ActivateUserTotpInput.d.ts +32 -0
  12. package/dist/models/ActivateUserTotpInput.js +51 -0
  13. package/dist/models/AdminUserSecurityDto.d.ts +87 -0
  14. package/dist/models/AdminUserSecurityDto.js +88 -0
  15. package/dist/models/BuyerLoginDto.d.ts +38 -0
  16. package/dist/models/BuyerLoginDto.js +55 -0
  17. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  18. package/dist/models/BuyerNotificationDto.js +1 -0
  19. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  20. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  21. package/dist/models/ChangeUserAuthenticationMethodInput.d.ts +33 -0
  22. package/dist/models/ChangeUserAuthenticationMethodInput.js +52 -0
  23. package/dist/models/ChangeUserLoginLocationVerificationInput.d.ts +32 -0
  24. package/dist/models/ChangeUserLoginLocationVerificationInput.js +51 -0
  25. package/dist/models/ChangeUserPasswordInput.d.ts +38 -0
  26. package/dist/models/ChangeUserPasswordInput.js +55 -0
  27. package/dist/models/ConfirmLoginLocationInput.d.ts +32 -0
  28. package/dist/models/ConfirmLoginLocationInput.js +51 -0
  29. package/dist/models/CurrentPasswordInput.d.ts +32 -0
  30. package/dist/models/CurrentPasswordInput.js +51 -0
  31. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  32. package/dist/models/FeatureFlagListItemDto.js +2 -1
  33. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  34. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  35. package/dist/models/ListUserLoginAttempts200Response.d.ts +47 -0
  36. package/dist/models/ListUserLoginAttempts200Response.js +62 -0
  37. package/dist/models/LoginChallengeInput.d.ts +32 -0
  38. package/dist/models/LoginChallengeInput.js +51 -0
  39. package/dist/models/LoginCodeInput.d.ts +38 -0
  40. package/dist/models/LoginCodeInput.js +55 -0
  41. package/dist/models/LoginDto.d.ts +30 -4
  42. package/dist/models/LoginDto.js +13 -5
  43. package/dist/models/LoginPasskeyInput.d.ts +46 -0
  44. package/dist/models/LoginPasskeyInput.js +57 -0
  45. package/dist/models/LoginPasskeyOptionsInput.d.ts +32 -0
  46. package/dist/models/LoginPasskeyOptionsInput.js +49 -0
  47. package/dist/models/LoginRecoveryCodeInput.d.ts +38 -0
  48. package/dist/models/LoginRecoveryCodeInput.js +55 -0
  49. package/dist/models/LoginStatus.d.ts +26 -0
  50. package/dist/models/LoginStatus.js +52 -0
  51. package/dist/models/PasskeyOptionsDto.d.ts +40 -0
  52. package/dist/models/PasskeyOptionsDto.js +55 -0
  53. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  54. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  55. package/dist/models/ReauthenticateWithPasskeyInput.d.ts +40 -0
  56. package/dist/models/ReauthenticateWithPasskeyInput.js +55 -0
  57. package/dist/models/ReauthenticationDto.d.ts +38 -0
  58. package/dist/models/ReauthenticationDto.js +55 -0
  59. package/dist/models/RecoveryCodesDto.d.ts +32 -0
  60. package/dist/models/RecoveryCodesDto.js +51 -0
  61. package/dist/models/RegisterUserPasskeyInput.d.ts +46 -0
  62. package/dist/models/RegisterUserPasskeyInput.js +59 -0
  63. package/dist/models/RemoveUserPasskeyInput.d.ts +40 -0
  64. package/dist/models/RemoveUserPasskeyInput.js +55 -0
  65. package/dist/models/RenameUserPasskeyInput.d.ts +32 -0
  66. package/dist/models/RenameUserPasskeyInput.js +51 -0
  67. package/dist/models/SecondFactorMethod.d.ts +26 -0
  68. package/dist/models/SecondFactorMethod.js +52 -0
  69. package/dist/models/SellerSecurityUserDto.d.ts +12 -0
  70. package/dist/models/SellerSecurityUserDto.js +4 -0
  71. package/dist/models/TotpCodeInput.d.ts +32 -0
  72. package/dist/models/TotpCodeInput.js +51 -0
  73. package/dist/models/TotpEnrolmentDto.d.ts +38 -0
  74. package/dist/models/TotpEnrolmentDto.js +55 -0
  75. package/dist/models/UserAuthenticationMethod.d.ts +27 -0
  76. package/dist/models/UserAuthenticationMethod.js +53 -0
  77. package/dist/models/UserLoginAttemptDto.d.ts +88 -0
  78. package/dist/models/UserLoginAttemptDto.js +89 -0
  79. package/dist/models/UserLoginAttemptMethod.d.ts +29 -0
  80. package/dist/models/UserLoginAttemptMethod.js +55 -0
  81. package/dist/models/UserLoginAttemptResult.d.ts +30 -0
  82. package/dist/models/UserLoginAttemptResult.js +56 -0
  83. package/dist/models/UserLoginLocationConfirmationDetailsDto.d.ts +62 -0
  84. package/dist/models/UserLoginLocationConfirmationDetailsDto.js +71 -0
  85. package/dist/models/UserNotificationDto.d.ts +1 -0
  86. package/dist/models/UserNotificationDto.js +1 -0
  87. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  88. package/dist/models/UserNotificationListItemDto.js +1 -0
  89. package/dist/models/UserPasskeyDto.d.ts +62 -0
  90. package/dist/models/UserPasskeyDto.js +71 -0
  91. package/dist/models/UserSecurityDto.d.ts +94 -0
  92. package/dist/models/UserSecurityDto.js +93 -0
  93. package/dist/models/index.d.ts +32 -0
  94. package/dist/models/index.js +32 -0
  95. package/package.json +1 -1
  96. package/src/apis/AdminApi.ts +172 -0
  97. package/src/apis/BuyersPublicApi.ts +6 -6
  98. package/src/apis/UsersApi.ts +1219 -48
  99. package/src/apis/UsersPublicApi.ts +375 -2
  100. package/src/models/ActivateUserTotpInput.ts +66 -0
  101. package/src/models/AdminUserSecurityDto.ts +157 -0
  102. package/src/models/BuyerLoginDto.ts +75 -0
  103. package/src/models/BuyerNotificationDto.ts +1 -0
  104. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  105. package/src/models/ChangeUserAuthenticationMethodInput.ts +76 -0
  106. package/src/models/ChangeUserLoginLocationVerificationInput.ts +66 -0
  107. package/src/models/ChangeUserPasswordInput.ts +75 -0
  108. package/src/models/ConfirmLoginLocationInput.ts +66 -0
  109. package/src/models/CurrentPasswordInput.ts +66 -0
  110. package/src/models/FeatureFlagListItemDto.ts +2 -1
  111. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  112. package/src/models/ListUserLoginAttempts200Response.ts +106 -0
  113. package/src/models/LoginChallengeInput.ts +66 -0
  114. package/src/models/LoginCodeInput.ts +75 -0
  115. package/src/models/LoginDto.ts +56 -8
  116. package/src/models/LoginPasskeyInput.ts +83 -0
  117. package/src/models/LoginPasskeyOptionsInput.ts +65 -0
  118. package/src/models/LoginRecoveryCodeInput.ts +75 -0
  119. package/src/models/LoginStatus.ts +54 -0
  120. package/src/models/PasskeyOptionsDto.ts +75 -0
  121. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  122. package/src/models/ReauthenticateWithPasskeyInput.ts +75 -0
  123. package/src/models/ReauthenticationDto.ts +75 -0
  124. package/src/models/RecoveryCodesDto.ts +66 -0
  125. package/src/models/RegisterUserPasskeyInput.ts +84 -0
  126. package/src/models/RemoveUserPasskeyInput.ts +75 -0
  127. package/src/models/RenameUserPasskeyInput.ts +66 -0
  128. package/src/models/SecondFactorMethod.ts +54 -0
  129. package/src/models/SellerSecurityUserDto.ts +16 -0
  130. package/src/models/TotpCodeInput.ts +66 -0
  131. package/src/models/TotpEnrolmentDto.ts +75 -0
  132. package/src/models/UserAuthenticationMethod.ts +55 -0
  133. package/src/models/UserLoginAttemptDto.ts +164 -0
  134. package/src/models/UserLoginAttemptMethod.ts +57 -0
  135. package/src/models/UserLoginAttemptResult.ts +58 -0
  136. package/src/models/UserLoginLocationConfirmationDetailsDto.ts +111 -0
  137. package/src/models/UserNotificationDto.ts +1 -0
  138. package/src/models/UserNotificationListItemDto.ts +1 -0
  139. package/src/models/UserPasskeyDto.ts +111 -0
  140. package/src/models/UserSecurityDto.ts +173 -0
  141. package/src/models/index.ts +32 -0
@@ -0,0 +1,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
+ }
@@ -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
+ }