@randock/nameshift-api-client 0.0.504 → 0.0.506

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 (69) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +113 -1
  4. package/dist/apis/AdminApi.js +500 -0
  5. package/dist/apis/UsersApi.d.ts +18 -18
  6. package/dist/apis/UsersApi.js +69 -70
  7. package/dist/apis/UsersPublicApi.d.ts +20 -7
  8. package/dist/apis/UsersPublicApi.js +54 -6
  9. package/dist/models/AdminUserNewsletterInput.d.ts +41 -0
  10. package/dist/models/AdminUserNewsletterInput.js +60 -0
  11. package/dist/models/AdminUserSecurityDto.d.ts +4 -4
  12. package/dist/models/AdminUserSecurityDto.js +3 -4
  13. package/dist/models/ChangeUserSignInStepsInput.d.ts +33 -0
  14. package/dist/models/ChangeUserSignInStepsInput.js +51 -0
  15. package/dist/models/CreateNewsletterInput.d.ts +171 -0
  16. package/dist/models/CreateNewsletterInput.js +98 -0
  17. package/dist/models/LoginPasswordInput.d.ts +38 -0
  18. package/dist/models/LoginPasswordInput.js +55 -0
  19. package/dist/models/NewsStoryDto.d.ts +80 -0
  20. package/dist/models/NewsStoryDto.js +83 -0
  21. package/dist/models/NewsletterDto.d.ts +251 -0
  22. package/dist/models/NewsletterDto.js +200 -0
  23. package/dist/models/NewsletterPreviewDto.d.ts +44 -0
  24. package/dist/models/NewsletterPreviewDto.js +59 -0
  25. package/dist/models/NewsletterSecondaryStoryDto.d.ts +44 -0
  26. package/dist/models/NewsletterSecondaryStoryDto.js +59 -0
  27. package/dist/models/NewsletterSecondaryStoryInput.d.ts +44 -0
  28. package/dist/models/NewsletterSecondaryStoryInput.js +59 -0
  29. package/dist/models/SecondFactorMethod.d.ts +1 -0
  30. package/dist/models/SecondFactorMethod.js +1 -0
  31. package/dist/models/SendNewsletterPreviewInput.d.ts +32 -0
  32. package/dist/models/SendNewsletterPreviewInput.js +51 -0
  33. package/dist/models/UpdateNewsletterInput.d.ts +171 -0
  34. package/dist/models/UpdateNewsletterInput.js +96 -0
  35. package/dist/models/UserLoginAttemptResult.d.ts +1 -0
  36. package/dist/models/UserLoginAttemptResult.js +1 -0
  37. package/dist/models/UserSecurityDto.d.ts +11 -11
  38. package/dist/models/UserSecurityDto.js +10 -10
  39. package/dist/models/UserSignInFactor.d.ts +26 -0
  40. package/dist/models/UserSignInFactor.js +52 -0
  41. package/dist/models/index.d.ts +12 -2
  42. package/dist/models/index.js +12 -2
  43. package/package.json +1 -1
  44. package/src/apis/AdminApi.ts +454 -0
  45. package/src/apis/UsersApi.ts +73 -74
  46. package/src/apis/UsersPublicApi.ts +51 -6
  47. package/src/models/AdminUserNewsletterInput.ts +78 -0
  48. package/src/models/AdminUserSecurityDto.ts +12 -14
  49. package/src/models/ChangeUserSignInStepsInput.ts +74 -0
  50. package/src/models/CreateNewsletterInput.ts +258 -0
  51. package/src/models/LoginPasswordInput.ts +75 -0
  52. package/src/models/NewsStoryDto.ts +138 -0
  53. package/src/models/NewsletterDto.ts +400 -0
  54. package/src/models/NewsletterPreviewDto.ts +84 -0
  55. package/src/models/NewsletterSecondaryStoryDto.ts +84 -0
  56. package/src/models/NewsletterSecondaryStoryInput.ts +84 -0
  57. package/src/models/SecondFactorMethod.ts +1 -0
  58. package/src/models/SendNewsletterPreviewInput.ts +66 -0
  59. package/src/models/UpdateNewsletterInput.ts +257 -0
  60. package/src/models/UserLoginAttemptResult.ts +1 -0
  61. package/src/models/UserSecurityDto.ts +25 -27
  62. package/src/models/UserSignInFactor.ts +54 -0
  63. package/src/models/index.ts +12 -2
  64. package/dist/models/ChangeUserAuthenticationMethodInput.d.ts +0 -33
  65. package/dist/models/ChangeUserAuthenticationMethodInput.js +0 -52
  66. package/dist/models/UserAuthenticationMethod.d.ts +0 -27
  67. package/dist/models/UserAuthenticationMethod.js +0 -53
  68. package/src/models/ChangeUserAuthenticationMethodInput.ts +0 -76
  69. package/src/models/UserAuthenticationMethod.ts +0 -55
@@ -0,0 +1,66 @@
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 SendNewsletterPreviewInput
20
+ */
21
+ export interface SendNewsletterPreviewInput {
22
+ /**
23
+ * Where the preview goes.
24
+ * @type {string}
25
+ * @memberof SendNewsletterPreviewInput
26
+ */
27
+ email: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SendNewsletterPreviewInput interface.
32
+ */
33
+ export function instanceOfSendNewsletterPreviewInput(value: object): value is SendNewsletterPreviewInput {
34
+ if (!('email' in value) || value['email'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SendNewsletterPreviewInputFromJSON(json: any): SendNewsletterPreviewInput {
39
+ return SendNewsletterPreviewInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SendNewsletterPreviewInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendNewsletterPreviewInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'email': json['email'],
49
+ };
50
+ }
51
+
52
+ export function SendNewsletterPreviewInputToJSON(json: any): SendNewsletterPreviewInput {
53
+ return SendNewsletterPreviewInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function SendNewsletterPreviewInputToJSONTyped(value?: SendNewsletterPreviewInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'email': value['email'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,257 @@
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 { NewsletterSecondaryStoryInput } from './NewsletterSecondaryStoryInput';
17
+ import {
18
+ NewsletterSecondaryStoryInputFromJSON,
19
+ NewsletterSecondaryStoryInputFromJSONTyped,
20
+ NewsletterSecondaryStoryInputToJSON,
21
+ NewsletterSecondaryStoryInputToJSONTyped,
22
+ } from './NewsletterSecondaryStoryInput';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateNewsletterInput
28
+ */
29
+ export interface UpdateNewsletterInput {
30
+ /**
31
+ * Internal title, also the Mailchimp campaign name.
32
+ * @type {string}
33
+ * @memberof UpdateNewsletterInput
34
+ */
35
+ title?: string;
36
+ /**
37
+ * Subject line.
38
+ * @type {string}
39
+ * @memberof UpdateNewsletterInput
40
+ */
41
+ subject?: string;
42
+ /**
43
+ * Preheader, 40 to 90 characters.
44
+ * @type {string}
45
+ * @memberof UpdateNewsletterInput
46
+ */
47
+ preheader?: string;
48
+ /**
49
+ * Issue label in the header; may carry HTML entities.
50
+ * @type {string}
51
+ * @memberof UpdateNewsletterInput
52
+ */
53
+ issueLabel?: string;
54
+ /**
55
+ * utm_campaign on every link, e.g. nl-2026-10.
56
+ * @type {string}
57
+ * @memberof UpdateNewsletterInput
58
+ */
59
+ campaignSlug?: string;
60
+ /**
61
+ * Lead story UUID.
62
+ * @type {string}
63
+ * @memberof UpdateNewsletterInput
64
+ */
65
+ leadStoryUuid?: string | null;
66
+ /**
67
+ * Lead teaser, 30 to 60 words.
68
+ * @type {string}
69
+ * @memberof UpdateNewsletterInput
70
+ */
71
+ leadTeaser?: string;
72
+ /**
73
+ * Lead button text, 2 to 5 words.
74
+ * @type {string}
75
+ * @memberof UpdateNewsletterInput
76
+ */
77
+ leadCta?: string;
78
+ /**
79
+ * Secondary stories, in order.
80
+ * @type {Array<NewsletterSecondaryStoryInput>}
81
+ * @memberof UpdateNewsletterInput
82
+ */
83
+ secondaryStories?: Array<NewsletterSecondaryStoryInput>;
84
+ /**
85
+ * Feature story UUID.
86
+ * @type {string}
87
+ * @memberof UpdateNewsletterInput
88
+ */
89
+ featureStoryUuid?: string | null;
90
+ /**
91
+ * Feature text, 1 to 2 sentences.
92
+ * @type {string}
93
+ * @memberof UpdateNewsletterInput
94
+ */
95
+ featureText?: string;
96
+ /**
97
+ * Feature link text.
98
+ * @type {string}
99
+ * @memberof UpdateNewsletterInput
100
+ */
101
+ featureLink?: string;
102
+ /**
103
+ * Event lead line.
104
+ * @type {string}
105
+ * @memberof UpdateNewsletterInput
106
+ */
107
+ eventLead?: string | null;
108
+ /**
109
+ * Event text.
110
+ * @type {string}
111
+ * @memberof UpdateNewsletterInput
112
+ */
113
+ eventText?: string | null;
114
+ /**
115
+ * Event link URL.
116
+ * @type {string}
117
+ * @memberof UpdateNewsletterInput
118
+ */
119
+ eventUrl?: string | null;
120
+ /**
121
+ * Event link text.
122
+ * @type {string}
123
+ * @memberof UpdateNewsletterInput
124
+ */
125
+ eventLink?: string | null;
126
+ /**
127
+ * Whether the recent-sales module is in the issue.
128
+ * @type {boolean}
129
+ * @memberof UpdateNewsletterInput
130
+ */
131
+ salesEnabled?: boolean;
132
+ /**
133
+ * First day of the sales period (YYYY-MM-DD).
134
+ * @type {string}
135
+ * @memberof UpdateNewsletterInput
136
+ */
137
+ salesFrom?: string | null;
138
+ /**
139
+ * Last day of the sales period (YYYY-MM-DD).
140
+ * @type {string}
141
+ * @memberof UpdateNewsletterInput
142
+ */
143
+ salesTo?: string | null;
144
+ /**
145
+ * Closing band line.
146
+ * @type {string}
147
+ * @memberof UpdateNewsletterInput
148
+ */
149
+ closingLine?: string;
150
+ /**
151
+ * Closing button text.
152
+ * @type {string}
153
+ * @memberof UpdateNewsletterInput
154
+ */
155
+ closingCta?: string;
156
+ /**
157
+ * Closing button URL.
158
+ * @type {string}
159
+ * @memberof UpdateNewsletterInput
160
+ */
161
+ closingUrl?: string;
162
+ /**
163
+ * Closing note under the button.
164
+ * @type {string}
165
+ * @memberof UpdateNewsletterInput
166
+ */
167
+ closingNote?: string;
168
+ /**
169
+ * Why the reader receives the email.
170
+ * @type {string}
171
+ * @memberof UpdateNewsletterInput
172
+ */
173
+ footerReason?: string;
174
+ }
175
+
176
+ /**
177
+ * Check if a given object implements the UpdateNewsletterInput interface.
178
+ */
179
+ export function instanceOfUpdateNewsletterInput(value: object): value is UpdateNewsletterInput {
180
+ return true;
181
+ }
182
+
183
+ export function UpdateNewsletterInputFromJSON(json: any): UpdateNewsletterInput {
184
+ return UpdateNewsletterInputFromJSONTyped(json, false);
185
+ }
186
+
187
+ export function UpdateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNewsletterInput {
188
+ if (json == null) {
189
+ return json;
190
+ }
191
+ return {
192
+
193
+ 'title': json['title'] == null ? undefined : json['title'],
194
+ 'subject': json['subject'] == null ? undefined : json['subject'],
195
+ 'preheader': json['preheader'] == null ? undefined : json['preheader'],
196
+ 'issueLabel': json['issueLabel'] == null ? undefined : json['issueLabel'],
197
+ 'campaignSlug': json['campaignSlug'] == null ? undefined : json['campaignSlug'],
198
+ 'leadStoryUuid': json['leadStoryUuid'] == null ? undefined : json['leadStoryUuid'],
199
+ 'leadTeaser': json['leadTeaser'] == null ? undefined : json['leadTeaser'],
200
+ 'leadCta': json['leadCta'] == null ? undefined : json['leadCta'],
201
+ 'secondaryStories': json['secondaryStories'] == null ? undefined : ((json['secondaryStories'] as Array<any>).map(NewsletterSecondaryStoryInputFromJSON)),
202
+ 'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
203
+ 'featureText': json['featureText'] == null ? undefined : json['featureText'],
204
+ 'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
205
+ 'eventLead': json['eventLead'] == null ? undefined : json['eventLead'],
206
+ 'eventText': json['eventText'] == null ? undefined : json['eventText'],
207
+ 'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
208
+ 'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
209
+ 'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
210
+ 'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
211
+ 'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
212
+ 'closingLine': json['closingLine'] == null ? undefined : json['closingLine'],
213
+ 'closingCta': json['closingCta'] == null ? undefined : json['closingCta'],
214
+ 'closingUrl': json['closingUrl'] == null ? undefined : json['closingUrl'],
215
+ 'closingNote': json['closingNote'] == null ? undefined : json['closingNote'],
216
+ 'footerReason': json['footerReason'] == null ? undefined : json['footerReason'],
217
+ };
218
+ }
219
+
220
+ export function UpdateNewsletterInputToJSON(json: any): UpdateNewsletterInput {
221
+ return UpdateNewsletterInputToJSONTyped(json, false);
222
+ }
223
+
224
+ export function UpdateNewsletterInputToJSONTyped(value?: UpdateNewsletterInput | null, ignoreDiscriminator: boolean = false): any {
225
+ if (value == null) {
226
+ return value;
227
+ }
228
+
229
+ return {
230
+
231
+ 'title': value['title'],
232
+ 'subject': value['subject'],
233
+ 'preheader': value['preheader'],
234
+ 'issueLabel': value['issueLabel'],
235
+ 'campaignSlug': value['campaignSlug'],
236
+ 'leadStoryUuid': value['leadStoryUuid'],
237
+ 'leadTeaser': value['leadTeaser'],
238
+ 'leadCta': value['leadCta'],
239
+ 'secondaryStories': value['secondaryStories'] == null ? undefined : ((value['secondaryStories'] as Array<any>).map(NewsletterSecondaryStoryInputToJSON)),
240
+ 'featureStoryUuid': value['featureStoryUuid'],
241
+ 'featureText': value['featureText'],
242
+ 'featureLink': value['featureLink'],
243
+ 'eventLead': value['eventLead'],
244
+ 'eventText': value['eventText'],
245
+ 'eventUrl': value['eventUrl'],
246
+ 'eventLink': value['eventLink'],
247
+ 'salesEnabled': value['salesEnabled'],
248
+ 'salesFrom': value['salesFrom'],
249
+ 'salesTo': value['salesTo'],
250
+ 'closingLine': value['closingLine'],
251
+ 'closingCta': value['closingCta'],
252
+ 'closingUrl': value['closingUrl'],
253
+ 'closingNote': value['closingNote'],
254
+ 'footerReason': value['footerReason'],
255
+ };
256
+ }
257
+
@@ -24,6 +24,7 @@ export const UserLoginAttemptResult = {
24
24
  SECOND_FACTOR_FAILED: 'second_factor_failed',
25
25
  SECOND_FACTOR_LOCKED: 'second_factor_locked',
26
26
  PASSWORD_LOGIN_DISABLED: 'password_login_disabled',
27
+ PASSKEY_LOGIN_DISABLED: 'passkey_login_disabled',
27
28
  LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
28
29
  } as const;
29
30
  export type UserLoginAttemptResult = typeof UserLoginAttemptResult[keyof typeof UserLoginAttemptResult];
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { UserAuthenticationMethod } from './UserAuthenticationMethod';
16
+ import type { UserSignInFactor } from './UserSignInFactor';
17
17
  import {
18
- UserAuthenticationMethodFromJSON,
19
- UserAuthenticationMethodFromJSONTyped,
20
- UserAuthenticationMethodToJSON,
21
- UserAuthenticationMethodToJSONTyped,
22
- } from './UserAuthenticationMethod';
18
+ UserSignInFactorFromJSON,
19
+ UserSignInFactorFromJSONTyped,
20
+ UserSignInFactorToJSON,
21
+ UserSignInFactorToJSONTyped,
22
+ } from './UserSignInFactor';
23
23
  import type { UserPasskeyDto } from './UserPasskeyDto';
24
24
  import {
25
25
  UserPasskeyDtoFromJSON,
@@ -35,23 +35,23 @@ import {
35
35
  */
36
36
  export interface UserSecurityDto {
37
37
  /**
38
- * Method the user signs in with.
39
- * @type {UserAuthenticationMethod}
38
+ * Steps the next sign-in follows, in order; each step lists the factors to choose from. Staff on a single step from before a second factor was required for them get, as a second step, the factors they set up.
39
+ * @type {Array<Array<UserSignInFactor>>}
40
40
  * @memberof UserSecurityDto
41
41
  */
42
- authenticationMethod: UserAuthenticationMethod;
42
+ signInSteps: Array<Array<UserSignInFactor>>;
43
43
  /**
44
- * Method the next sign-in follows. It differs from authenticationMethod for staff on a password alone once a second factor is required for them.
45
- * @type {UserAuthenticationMethod}
44
+ * Factors the user set up, which the steps can ask for.
45
+ * @type {Array<UserSignInFactor>}
46
46
  * @memberof UserSecurityDto
47
47
  */
48
- effectiveAuthenticationMethod: UserAuthenticationMethod;
48
+ setUpSignInFactors: Array<UserSignInFactor>;
49
49
  /**
50
- * Methods the user can switch to with the factors set up right now.
51
- * @type {Array<UserAuthenticationMethod>}
50
+ * Fewest steps the user can sign in with: 2 for staff once a second factor is required for them, 1 otherwise.
51
+ * @type {number}
52
52
  * @memberof UserSecurityDto
53
53
  */
54
- allowedAuthenticationMethods: Array<UserAuthenticationMethod>;
54
+ minSignInSteps: number;
55
55
  /**
56
56
  * Whether the user has a staff role, which requires a second factor or a passkey.
57
57
  * @type {boolean}
@@ -59,7 +59,7 @@ export interface UserSecurityDto {
59
59
  */
60
60
  isStaff: boolean;
61
61
  /**
62
- * Whether the user must keep a verification step: staff once second factors are required for them. They always sign in with a password and a verification step, and cannot remove their last authenticator app or passkey.
62
+ * Whether the user must keep a second step: staff once second factors are required for them. They sign in with two steps at least, and cannot remove their last authenticator app or passkey.
63
63
  * @type {boolean}
64
64
  * @memberof UserSecurityDto
65
65
  */
@@ -102,15 +102,13 @@ export interface UserSecurityDto {
102
102
  loginLocationVerificationEnabled: boolean;
103
103
  }
104
104
 
105
-
106
-
107
105
  /**
108
106
  * Check if a given object implements the UserSecurityDto interface.
109
107
  */
110
108
  export function instanceOfUserSecurityDto(value: object): value is UserSecurityDto {
111
- if (!('authenticationMethod' in value) || value['authenticationMethod'] === undefined) return false;
112
- if (!('effectiveAuthenticationMethod' in value) || value['effectiveAuthenticationMethod'] === undefined) return false;
113
- if (!('allowedAuthenticationMethods' in value) || value['allowedAuthenticationMethods'] === undefined) return false;
109
+ if (!('signInSteps' in value) || value['signInSteps'] === undefined) return false;
110
+ if (!('setUpSignInFactors' in value) || value['setUpSignInFactors'] === undefined) return false;
111
+ if (!('minSignInSteps' in value) || value['minSignInSteps'] === undefined) return false;
114
112
  if (!('isStaff' in value) || value['isStaff'] === undefined) return false;
115
113
  if (!('secondFactorRequired' in value) || value['secondFactorRequired'] === undefined) return false;
116
114
  if (!('secondFactorSetupRequired' in value) || value['secondFactorSetupRequired'] === undefined) return false;
@@ -132,9 +130,9 @@ export function UserSecurityDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
132
130
  }
133
131
  return {
134
132
 
135
- 'authenticationMethod': UserAuthenticationMethodFromJSON(json['authenticationMethod']),
136
- 'effectiveAuthenticationMethod': UserAuthenticationMethodFromJSON(json['effectiveAuthenticationMethod']),
137
- 'allowedAuthenticationMethods': ((json['allowedAuthenticationMethods'] as Array<any>).map(UserAuthenticationMethodFromJSON)),
133
+ 'signInSteps': json['signInSteps'],
134
+ 'setUpSignInFactors': ((json['setUpSignInFactors'] as Array<any>).map(UserSignInFactorFromJSON)),
135
+ 'minSignInSteps': json['minSignInSteps'],
138
136
  'isStaff': json['isStaff'],
139
137
  'secondFactorRequired': json['secondFactorRequired'],
140
138
  'secondFactorSetupRequired': json['secondFactorSetupRequired'],
@@ -157,9 +155,9 @@ export function UserSecurityDtoToJSONTyped(value?: UserSecurityDto | null, ignor
157
155
 
158
156
  return {
159
157
 
160
- 'authenticationMethod': UserAuthenticationMethodToJSON(value['authenticationMethod']),
161
- 'effectiveAuthenticationMethod': UserAuthenticationMethodToJSON(value['effectiveAuthenticationMethod']),
162
- 'allowedAuthenticationMethods': ((value['allowedAuthenticationMethods'] as Array<any>).map(UserAuthenticationMethodToJSON)),
158
+ 'signInSteps': value['signInSteps'],
159
+ 'setUpSignInFactors': ((value['setUpSignInFactors'] as Array<any>).map(UserSignInFactorToJSON)),
160
+ 'minSignInSteps': value['minSignInSteps'],
163
161
  'isStaff': value['isStaff'],
164
162
  'secondFactorRequired': value['secondFactorRequired'],
165
163
  'secondFactorSetupRequired': value['secondFactorSetupRequired'],
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Factors the user set up, which the steps can ask for.
18
+ * @export
19
+ */
20
+ export const UserSignInFactor = {
21
+ PASSWORD: 'password',
22
+ PASSKEY: 'passkey',
23
+ TOTP: 'totp'
24
+ } as const;
25
+ export type UserSignInFactor = typeof UserSignInFactor[keyof typeof UserSignInFactor];
26
+
27
+
28
+ export function instanceOfUserSignInFactor(value: any): boolean {
29
+ for (const key in UserSignInFactor) {
30
+ if (Object.prototype.hasOwnProperty.call(UserSignInFactor, key)) {
31
+ if (UserSignInFactor[key as keyof typeof UserSignInFactor] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function UserSignInFactorFromJSON(json: any): UserSignInFactor {
40
+ return UserSignInFactorFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function UserSignInFactorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSignInFactor {
44
+ return json as UserSignInFactor;
45
+ }
46
+
47
+ export function UserSignInFactorToJSON(value?: UserSignInFactor | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function UserSignInFactorToJSONTyped(value: any, ignoreDiscriminator: boolean): UserSignInFactor {
52
+ return value as UserSignInFactor;
53
+ }
54
+
@@ -73,6 +73,7 @@ export * from './AdminLeadListItemDomainDto';
73
73
  export * from './AdminLeadListItemDto';
74
74
  export * from './AdminListAccountDto';
75
75
  export * from './AdminMarketplaceDto';
76
+ export * from './AdminUserNewsletterInput';
76
77
  export * from './AdminUserSecurityDto';
77
78
  export * from './AdminVerificationDepositDto';
78
79
  export * from './AffiliatesStatsDto';
@@ -157,10 +158,10 @@ export * from './ChallengeRewardBalanceDto';
157
158
  export * from './ChangeInvoiceStatusInput';
158
159
  export * from './ChangeOrderStatusInput';
159
160
  export * from './ChangeSubscriptionStatusInput';
160
- export * from './ChangeUserAuthenticationMethodInput';
161
161
  export * from './ChangeUserEmailWithOtpInput';
162
162
  export * from './ChangeUserLoginLocationVerificationInput';
163
163
  export * from './ChangeUserPasswordInput';
164
+ export * from './ChangeUserSignInStepsInput';
164
165
  export * from './ChartDataPoint';
165
166
  export * from './CheckDomainsNsInput';
166
167
  export * from './CommissionAccountDto';
@@ -202,6 +203,7 @@ export * from './CreateLeadInput';
202
203
  export * from './CreateLeadMessageInput';
203
204
  export * from './CreateManualLeadInput';
204
205
  export * from './CreateManualTransactionInput';
206
+ export * from './CreateNewsletterInput';
205
207
  export * from './CreateOrderInput';
206
208
  export * from './CreateSubscriptionBillingPeriodicityInput';
207
209
  export * from './CreateSubscriptionInput';
@@ -407,6 +409,7 @@ export * from './LoginDto';
407
409
  export * from './LoginInput';
408
410
  export * from './LoginPasskeyInput';
409
411
  export * from './LoginPasskeyOptionsInput';
412
+ export * from './LoginPasswordInput';
410
413
  export * from './LoginRecoveryCodeInput';
411
414
  export * from './LoginStatus';
412
415
  export * from './MajesticMetrics';
@@ -421,6 +424,11 @@ export * from './MoneyDecimalDto';
421
424
  export * from './MoneyDto';
422
425
  export * from './MoneyInput';
423
426
  export * from './MozMetrics';
427
+ export * from './NewsStoryDto';
428
+ export * from './NewsletterDto';
429
+ export * from './NewsletterPreviewDto';
430
+ export * from './NewsletterSecondaryStoryDto';
431
+ export * from './NewsletterSecondaryStoryInput';
424
432
  export * from './NotificationsUnsubscribeResultDto';
425
433
  export * from './ObjectId';
426
434
  export * from './OrderCompanyInfoDto';
@@ -529,6 +537,7 @@ export * from './SellerTotalEarningsByCurrencyStatsItemDto';
529
537
  export * from './SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto';
530
538
  export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
531
539
  export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel';
540
+ export * from './SendNewsletterPreviewInput';
532
541
  export * from './SeoMetricsDto';
533
542
  export * from './SetAccountMarketplaceInput';
534
543
  export * from './SetDomainTransferConfirmationInput';
@@ -595,6 +604,7 @@ export * from './UpdateLeadMuteStatusForBuyerInput';
595
604
  export * from './UpdateLeadMuteStatusInput';
596
605
  export * from './UpdateLeaseToOwnConfigurationDto';
597
606
  export * from './UpdateMarketplaceInput';
607
+ export * from './UpdateNewsletterInput';
598
608
  export * from './UpdateOrderInput';
599
609
  export * from './UpdateRentConfigurationDto';
600
610
  export * from './UpdateSubscriptionBillingPeriodicityInput';
@@ -605,7 +615,6 @@ export * from './UpdateSubscriptionInput';
605
615
  export * from './UpdateTaskMuteStatusForBuyerInput';
606
616
  export * from './UpdateTaskMuteStatusInput';
607
617
  export * from './UpdateUserNotificationSettingsInput';
608
- export * from './UserAuthenticationMethod';
609
618
  export * from './UserLoginAttemptDto';
610
619
  export * from './UserLoginAttemptMethod';
611
620
  export * from './UserLoginAttemptResult';
@@ -617,6 +626,7 @@ export * from './UserNotificationSettingsDto';
617
626
  export * from './UserPasskeyDto';
618
627
  export * from './UserPasswordResetDto';
619
628
  export * from './UserSecurityDto';
629
+ export * from './UserSignInFactor';
620
630
  export * from './UserSignedTokenInput';
621
631
  export * from './ValidateTaxNumberDto';
622
632
  export * from './ValidateTaxNumberInput';
@@ -1,33 +0,0 @@
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 { UserAuthenticationMethod } from './UserAuthenticationMethod';
13
- /**
14
- *
15
- * @export
16
- * @interface ChangeUserAuthenticationMethodInput
17
- */
18
- export interface ChangeUserAuthenticationMethodInput {
19
- /**
20
- * Method to sign in with from now on.
21
- * @type {UserAuthenticationMethod}
22
- * @memberof ChangeUserAuthenticationMethodInput
23
- */
24
- method: UserAuthenticationMethod;
25
- }
26
- /**
27
- * Check if a given object implements the ChangeUserAuthenticationMethodInput interface.
28
- */
29
- export declare function instanceOfChangeUserAuthenticationMethodInput(value: object): value is ChangeUserAuthenticationMethodInput;
30
- export declare function ChangeUserAuthenticationMethodInputFromJSON(json: any): ChangeUserAuthenticationMethodInput;
31
- export declare function ChangeUserAuthenticationMethodInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeUserAuthenticationMethodInput;
32
- export declare function ChangeUserAuthenticationMethodInputToJSON(json: any): ChangeUserAuthenticationMethodInput;
33
- export declare function ChangeUserAuthenticationMethodInputToJSONTyped(value?: ChangeUserAuthenticationMethodInput | null, ignoreDiscriminator?: boolean): any;
@@ -1,52 +0,0 @@
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.instanceOfChangeUserAuthenticationMethodInput = instanceOfChangeUserAuthenticationMethodInput;
17
- exports.ChangeUserAuthenticationMethodInputFromJSON = ChangeUserAuthenticationMethodInputFromJSON;
18
- exports.ChangeUserAuthenticationMethodInputFromJSONTyped = ChangeUserAuthenticationMethodInputFromJSONTyped;
19
- exports.ChangeUserAuthenticationMethodInputToJSON = ChangeUserAuthenticationMethodInputToJSON;
20
- exports.ChangeUserAuthenticationMethodInputToJSONTyped = ChangeUserAuthenticationMethodInputToJSONTyped;
21
- var UserAuthenticationMethod_1 = require("./UserAuthenticationMethod");
22
- /**
23
- * Check if a given object implements the ChangeUserAuthenticationMethodInput interface.
24
- */
25
- function instanceOfChangeUserAuthenticationMethodInput(value) {
26
- if (!('method' in value) || value['method'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- function ChangeUserAuthenticationMethodInputFromJSON(json) {
31
- return ChangeUserAuthenticationMethodInputFromJSONTyped(json, false);
32
- }
33
- function ChangeUserAuthenticationMethodInputFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'method': (0, UserAuthenticationMethod_1.UserAuthenticationMethodFromJSON)(json['method']),
39
- };
40
- }
41
- function ChangeUserAuthenticationMethodInputToJSON(json) {
42
- return ChangeUserAuthenticationMethodInputToJSONTyped(json, false);
43
- }
44
- function ChangeUserAuthenticationMethodInputToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'method': (0, UserAuthenticationMethod_1.UserAuthenticationMethodToJSON)(value['method']),
51
- };
52
- }