@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,164 @@
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 { UserLoginAttemptMethod } from './UserLoginAttemptMethod';
17
+ import {
18
+ UserLoginAttemptMethodFromJSON,
19
+ UserLoginAttemptMethodFromJSONTyped,
20
+ UserLoginAttemptMethodToJSON,
21
+ UserLoginAttemptMethodToJSONTyped,
22
+ } from './UserLoginAttemptMethod';
23
+ import type { UserLoginAttemptResult } from './UserLoginAttemptResult';
24
+ import {
25
+ UserLoginAttemptResultFromJSON,
26
+ UserLoginAttemptResultFromJSONTyped,
27
+ UserLoginAttemptResultToJSON,
28
+ UserLoginAttemptResultToJSONTyped,
29
+ } from './UserLoginAttemptResult';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface UserLoginAttemptDto
35
+ */
36
+ export interface UserLoginAttemptDto {
37
+ /**
38
+ * Attempt ID.
39
+ * @type {string}
40
+ * @memberof UserLoginAttemptDto
41
+ */
42
+ id: string;
43
+ /**
44
+ * Outcome of the step.
45
+ * @type {UserLoginAttemptResult}
46
+ * @memberof UserLoginAttemptDto
47
+ */
48
+ result: UserLoginAttemptResult;
49
+ /**
50
+ * What the user signed in with in this step.
51
+ * @type {UserLoginAttemptMethod}
52
+ * @memberof UserLoginAttemptDto
53
+ */
54
+ method: UserLoginAttemptMethod;
55
+ /**
56
+ * IP address.
57
+ * @type {string}
58
+ * @memberof UserLoginAttemptDto
59
+ */
60
+ ip: string | null;
61
+ /**
62
+ * Autonomous system number of the network.
63
+ * @type {number}
64
+ * @memberof UserLoginAttemptDto
65
+ */
66
+ asn: number | null;
67
+ /**
68
+ * Operator of the network.
69
+ * @type {string}
70
+ * @memberof UserLoginAttemptDto
71
+ */
72
+ asnOrganization: string | null;
73
+ /**
74
+ * ISO 3166-1 alpha-2 country of the IP address.
75
+ * @type {string}
76
+ * @memberof UserLoginAttemptDto
77
+ */
78
+ country: string | null;
79
+ /**
80
+ * Browser.
81
+ * @type {string}
82
+ * @memberof UserLoginAttemptDto
83
+ */
84
+ userAgent: string | null;
85
+ /**
86
+ * Whether a staff member signed in as the user.
87
+ * @type {boolean}
88
+ * @memberof UserLoginAttemptDto
89
+ */
90
+ impersonated: boolean;
91
+ /**
92
+ * When it happened.
93
+ * @type {Date}
94
+ * @memberof UserLoginAttemptDto
95
+ */
96
+ createdAt: Date;
97
+ }
98
+
99
+
100
+
101
+ /**
102
+ * Check if a given object implements the UserLoginAttemptDto interface.
103
+ */
104
+ export function instanceOfUserLoginAttemptDto(value: object): value is UserLoginAttemptDto {
105
+ if (!('id' in value) || value['id'] === undefined) return false;
106
+ if (!('result' in value) || value['result'] === undefined) return false;
107
+ if (!('method' in value) || value['method'] === undefined) return false;
108
+ if (!('ip' in value) || value['ip'] === undefined) return false;
109
+ if (!('asn' in value) || value['asn'] === undefined) return false;
110
+ if (!('asnOrganization' in value) || value['asnOrganization'] === undefined) return false;
111
+ if (!('country' in value) || value['country'] === undefined) return false;
112
+ if (!('userAgent' in value) || value['userAgent'] === undefined) return false;
113
+ if (!('impersonated' in value) || value['impersonated'] === undefined) return false;
114
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
115
+ return true;
116
+ }
117
+
118
+ export function UserLoginAttemptDtoFromJSON(json: any): UserLoginAttemptDto {
119
+ return UserLoginAttemptDtoFromJSONTyped(json, false);
120
+ }
121
+
122
+ export function UserLoginAttemptDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptDto {
123
+ if (json == null) {
124
+ return json;
125
+ }
126
+ return {
127
+
128
+ 'id': json['id'],
129
+ 'result': UserLoginAttemptResultFromJSON(json['result']),
130
+ 'method': UserLoginAttemptMethodFromJSON(json['method']),
131
+ 'ip': json['ip'],
132
+ 'asn': json['asn'],
133
+ 'asnOrganization': json['asnOrganization'],
134
+ 'country': json['country'],
135
+ 'userAgent': json['userAgent'],
136
+ 'impersonated': json['impersonated'],
137
+ 'createdAt': (new Date(json['createdAt'])),
138
+ };
139
+ }
140
+
141
+ export function UserLoginAttemptDtoToJSON(json: any): UserLoginAttemptDto {
142
+ return UserLoginAttemptDtoToJSONTyped(json, false);
143
+ }
144
+
145
+ export function UserLoginAttemptDtoToJSONTyped(value?: UserLoginAttemptDto | null, ignoreDiscriminator: boolean = false): any {
146
+ if (value == null) {
147
+ return value;
148
+ }
149
+
150
+ return {
151
+
152
+ 'id': value['id'],
153
+ 'result': UserLoginAttemptResultToJSON(value['result']),
154
+ 'method': UserLoginAttemptMethodToJSON(value['method']),
155
+ 'ip': value['ip'],
156
+ 'asn': value['asn'],
157
+ 'asnOrganization': value['asnOrganization'],
158
+ 'country': value['country'],
159
+ 'userAgent': value['userAgent'],
160
+ 'impersonated': value['impersonated'],
161
+ 'createdAt': ((value['createdAt']).toISOString()),
162
+ };
163
+ }
164
+
@@ -0,0 +1,57 @@
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
+ * What the user signed in with in this step.
18
+ * @export
19
+ */
20
+ export const UserLoginAttemptMethod = {
21
+ PASSWORD: 'password',
22
+ PASSKEY: 'passkey',
23
+ TOTP: 'totp',
24
+ RECOVERY_CODE: 'recovery_code',
25
+ LOCATION_CONFIRMATION: 'location_confirmation',
26
+ IMPERSONATION: 'impersonation'
27
+ } as const;
28
+ export type UserLoginAttemptMethod = typeof UserLoginAttemptMethod[keyof typeof UserLoginAttemptMethod];
29
+
30
+
31
+ export function instanceOfUserLoginAttemptMethod(value: any): boolean {
32
+ for (const key in UserLoginAttemptMethod) {
33
+ if (Object.prototype.hasOwnProperty.call(UserLoginAttemptMethod, key)) {
34
+ if (UserLoginAttemptMethod[key as keyof typeof UserLoginAttemptMethod] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+
42
+ export function UserLoginAttemptMethodFromJSON(json: any): UserLoginAttemptMethod {
43
+ return UserLoginAttemptMethodFromJSONTyped(json, false);
44
+ }
45
+
46
+ export function UserLoginAttemptMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptMethod {
47
+ return json as UserLoginAttemptMethod;
48
+ }
49
+
50
+ export function UserLoginAttemptMethodToJSON(value?: UserLoginAttemptMethod | null): any {
51
+ return value as any;
52
+ }
53
+
54
+ export function UserLoginAttemptMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserLoginAttemptMethod {
55
+ return value as UserLoginAttemptMethod;
56
+ }
57
+
@@ -0,0 +1,58 @@
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
+ * Outcome of the step.
18
+ * @export
19
+ */
20
+ export const UserLoginAttemptResult = {
21
+ SUCCESS: 'success',
22
+ INVALID_CREDENTIALS: 'invalid_credentials',
23
+ SECOND_FACTOR_REQUIRED: 'second_factor_required',
24
+ SECOND_FACTOR_FAILED: 'second_factor_failed',
25
+ SECOND_FACTOR_LOCKED: 'second_factor_locked',
26
+ PASSWORD_LOGIN_DISABLED: 'password_login_disabled',
27
+ LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
28
+ } as const;
29
+ export type UserLoginAttemptResult = typeof UserLoginAttemptResult[keyof typeof UserLoginAttemptResult];
30
+
31
+
32
+ export function instanceOfUserLoginAttemptResult(value: any): boolean {
33
+ for (const key in UserLoginAttemptResult) {
34
+ if (Object.prototype.hasOwnProperty.call(UserLoginAttemptResult, key)) {
35
+ if (UserLoginAttemptResult[key as keyof typeof UserLoginAttemptResult] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function UserLoginAttemptResultFromJSON(json: any): UserLoginAttemptResult {
44
+ return UserLoginAttemptResultFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function UserLoginAttemptResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptResult {
48
+ return json as UserLoginAttemptResult;
49
+ }
50
+
51
+ export function UserLoginAttemptResultToJSON(value?: UserLoginAttemptResult | null): any {
52
+ return value as any;
53
+ }
54
+
55
+ export function UserLoginAttemptResultToJSONTyped(value: any, ignoreDiscriminator: boolean): UserLoginAttemptResult {
56
+ return value as UserLoginAttemptResult;
57
+ }
58
+
@@ -0,0 +1,111 @@
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 UserLoginLocationConfirmationDetailsDto
20
+ */
21
+ export interface UserLoginLocationConfirmationDetailsDto {
22
+ /**
23
+ * Whether the sign-in is still waiting for it.
24
+ * @type {boolean}
25
+ * @memberof UserLoginLocationConfirmationDetailsDto
26
+ */
27
+ pending: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UserLoginLocationConfirmationDetailsDto
32
+ */
33
+ ip: string | null;
34
+ /**
35
+ * Organization of the network (ASN).
36
+ * @type {string}
37
+ * @memberof UserLoginLocationConfirmationDetailsDto
38
+ */
39
+ network: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof UserLoginLocationConfirmationDetailsDto
44
+ */
45
+ country: string | null;
46
+ /**
47
+ * User agent.
48
+ * @type {string}
49
+ * @memberof UserLoginLocationConfirmationDetailsDto
50
+ */
51
+ device: string | null;
52
+ /**
53
+ *
54
+ * @type {Date}
55
+ * @memberof UserLoginLocationConfirmationDetailsDto
56
+ */
57
+ createdAt: Date;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the UserLoginLocationConfirmationDetailsDto interface.
62
+ */
63
+ export function instanceOfUserLoginLocationConfirmationDetailsDto(value: object): value is UserLoginLocationConfirmationDetailsDto {
64
+ if (!('pending' in value) || value['pending'] === undefined) return false;
65
+ if (!('ip' in value) || value['ip'] === undefined) return false;
66
+ if (!('network' in value) || value['network'] === undefined) return false;
67
+ if (!('country' in value) || value['country'] === undefined) return false;
68
+ if (!('device' in value) || value['device'] === undefined) return false;
69
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function UserLoginLocationConfirmationDetailsDtoFromJSON(json: any): UserLoginLocationConfirmationDetailsDto {
74
+ return UserLoginLocationConfirmationDetailsDtoFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function UserLoginLocationConfirmationDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginLocationConfirmationDetailsDto {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'pending': json['pending'],
84
+ 'ip': json['ip'],
85
+ 'network': json['network'],
86
+ 'country': json['country'],
87
+ 'device': json['device'],
88
+ 'createdAt': (new Date(json['createdAt'])),
89
+ };
90
+ }
91
+
92
+ export function UserLoginLocationConfirmationDetailsDtoToJSON(json: any): UserLoginLocationConfirmationDetailsDto {
93
+ return UserLoginLocationConfirmationDetailsDtoToJSONTyped(json, false);
94
+ }
95
+
96
+ export function UserLoginLocationConfirmationDetailsDtoToJSONTyped(value?: UserLoginLocationConfirmationDetailsDto | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'pending': value['pending'],
104
+ 'ip': value['ip'],
105
+ 'network': value['network'],
106
+ 'country': value['country'],
107
+ 'device': value['device'],
108
+ 'createdAt': ((value['createdAt']).toISOString()),
109
+ };
110
+ }
111
+
@@ -130,6 +130,7 @@ export const UserNotificationDtoTypeEnum = {
130
130
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
131
131
  PASSWORD_RESET: 'password_reset',
132
132
  USER_EMAIL_CHANGED: 'user_email_changed',
133
+ USER_LOGIN_LOCATION_CONFIRMATION: 'user_login_location_confirmation',
133
134
  USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
134
135
  BUYER_INVOICE: 'buyer_invoice',
135
136
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
@@ -116,6 +116,7 @@ export const UserNotificationListItemDtoTypeEnum = {
116
116
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
117
117
  PASSWORD_RESET: 'password_reset',
118
118
  USER_EMAIL_CHANGED: 'user_email_changed',
119
+ USER_LOGIN_LOCATION_CONFIRMATION: 'user_login_location_confirmation',
119
120
  USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
120
121
  BUYER_INVOICE: 'buyer_invoice',
121
122
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
@@ -0,0 +1,111 @@
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 UserPasskeyDto
20
+ */
21
+ export interface UserPasskeyDto {
22
+ /**
23
+ * Passkey ID.
24
+ * @type {string}
25
+ * @memberof UserPasskeyDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Name the user gave the passkey.
30
+ * @type {string}
31
+ * @memberof UserPasskeyDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * Whether the passkey syncs across devices (multiDevice) or lives on one (singleDevice).
36
+ * @type {string}
37
+ * @memberof UserPasskeyDto
38
+ */
39
+ deviceType: string;
40
+ /**
41
+ * Whether the passkey is backed up.
42
+ * @type {boolean}
43
+ * @memberof UserPasskeyDto
44
+ */
45
+ backedUp: boolean;
46
+ /**
47
+ * When the passkey was added.
48
+ * @type {Date}
49
+ * @memberof UserPasskeyDto
50
+ */
51
+ createdAt: Date;
52
+ /**
53
+ * When the passkey was last used to sign in.
54
+ * @type {Date}
55
+ * @memberof UserPasskeyDto
56
+ */
57
+ lastUsedAt: Date | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the UserPasskeyDto interface.
62
+ */
63
+ export function instanceOfUserPasskeyDto(value: object): value is UserPasskeyDto {
64
+ if (!('id' in value) || value['id'] === undefined) return false;
65
+ if (!('name' in value) || value['name'] === undefined) return false;
66
+ if (!('deviceType' in value) || value['deviceType'] === undefined) return false;
67
+ if (!('backedUp' in value) || value['backedUp'] === undefined) return false;
68
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
69
+ if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function UserPasskeyDtoFromJSON(json: any): UserPasskeyDto {
74
+ return UserPasskeyDtoFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function UserPasskeyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasskeyDto {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'id': json['id'],
84
+ 'name': json['name'],
85
+ 'deviceType': json['deviceType'],
86
+ 'backedUp': json['backedUp'],
87
+ 'createdAt': (new Date(json['createdAt'])),
88
+ 'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
89
+ };
90
+ }
91
+
92
+ export function UserPasskeyDtoToJSON(json: any): UserPasskeyDto {
93
+ return UserPasskeyDtoToJSONTyped(json, false);
94
+ }
95
+
96
+ export function UserPasskeyDtoToJSONTyped(value?: UserPasskeyDto | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'id': value['id'],
104
+ 'name': value['name'],
105
+ 'deviceType': value['deviceType'],
106
+ 'backedUp': value['backedUp'],
107
+ 'createdAt': ((value['createdAt']).toISOString()),
108
+ 'lastUsedAt': (value['lastUsedAt'] == null ? null : (value['lastUsedAt'] as any).toISOString()),
109
+ };
110
+ }
111
+