@randock/nameshift-api-client 0.0.472 → 0.0.474

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 (165) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +6 -6
  4. package/dist/apis/BuyersApi.d.ts +2 -2
  5. package/dist/apis/BuyersApi.js +2 -2
  6. package/dist/apis/BuyersPublicApi.d.ts +2 -2
  7. package/dist/apis/BuyersPublicApi.js +2 -2
  8. package/dist/apis/LeadsPublicApi.d.ts +3 -2
  9. package/dist/apis/LeadsPublicApi.js +19 -5
  10. package/dist/apis/MarketingApi.d.ts +2 -2
  11. package/dist/apis/StatsApi.d.ts +5 -5
  12. package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.d.ts +1 -1
  13. package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.js +3 -1
  14. package/dist/models/AccountSettingsDto.d.ts +7 -0
  15. package/dist/models/AccountSettingsDto.js +5 -0
  16. package/dist/models/AccountSettingsInput.d.ts +7 -0
  17. package/dist/models/AccountSettingsInput.js +3 -0
  18. package/dist/models/AdminBankDepositDto.d.ts +4 -2
  19. package/dist/models/AdminChallengeListItemDto.d.ts +4 -2
  20. package/dist/models/AdminDomainListItemDto.d.ts +7 -0
  21. package/dist/models/AdminDomainListItemDto.js +5 -0
  22. package/dist/models/AdminLeadListItemDto.d.ts +1 -0
  23. package/dist/models/AdminLeadListItemDto.js +1 -0
  24. package/dist/models/AggregatedPaginationResponse.d.ts +4 -2
  25. package/dist/models/AirwallexDepositDto.d.ts +4 -2
  26. package/dist/models/AirwallexDepositDtoFee.d.ts +2 -2
  27. package/dist/models/AirwallexDepositDtoFee.js +6 -2
  28. package/dist/models/BuyerDto.d.ts +3 -3
  29. package/dist/models/BuyerLeadListItemDto.d.ts +1 -0
  30. package/dist/models/BuyerLeadListItemDto.js +1 -0
  31. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  32. package/dist/models/BuyerNotificationDto.js +1 -0
  33. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  34. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  35. package/dist/models/CommissionAction.d.ts +1 -1
  36. package/dist/models/CommissionAction.js +1 -1
  37. package/dist/models/CommissionAddUpdateActionInput.d.ts +1 -1
  38. package/dist/models/CommissionConfigurationInput.d.ts +1 -1
  39. package/dist/models/CommissionDeleteActionInput.d.ts +1 -1
  40. package/dist/models/CommissionFactor.d.ts +1 -1
  41. package/dist/models/CommissionFactor.js +1 -1
  42. package/dist/models/CreateAccountPaymentInput.d.ts +4 -2
  43. package/dist/models/CreateApiKeyInput.d.ts +2 -2
  44. package/dist/models/CreateApiKeyInput.js +2 -2
  45. package/dist/models/CustomerSuccessDomainListItemDto.d.ts +7 -0
  46. package/dist/models/CustomerSuccessDomainListItemDto.js +5 -0
  47. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  48. package/dist/models/FeatureFlagListItemDto.js +2 -1
  49. package/dist/models/FixedCommissionPayloadDto.d.ts +1 -1
  50. package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +1 -1
  51. package/dist/models/FixedCommissionReasonPayloadDto.d.ts +1 -1
  52. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  53. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  54. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +7 -0
  55. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +5 -0
  56. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  57. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  58. package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.d.ts +7 -0
  59. package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.js +5 -0
  60. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +1 -0
  61. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +1 -0
  62. package/dist/models/LeadDto.d.ts +1 -0
  63. package/dist/models/LeadDto.js +1 -0
  64. package/dist/models/LeadStatusDto.d.ts +1 -0
  65. package/dist/models/LeadStatusDto.js +1 -0
  66. package/dist/models/LeadVerificationInput.d.ts +54 -0
  67. package/dist/models/LeadVerificationInput.js +63 -0
  68. package/dist/models/LeadVerificationSettingsDto.d.ts +54 -0
  69. package/dist/models/LeadVerificationSettingsDto.js +69 -0
  70. package/dist/models/List200Response3.d.ts +4 -2
  71. package/dist/models/List200Response4.d.ts +4 -2
  72. package/dist/models/ListLeadsResultItem.d.ts +1 -0
  73. package/dist/models/ListLeadsResultItem.js +1 -0
  74. package/dist/models/OrderDto.d.ts +4 -2
  75. package/dist/models/OwnedDomainDto.d.ts +4 -2
  76. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  77. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  78. package/dist/models/PublicLeadDto.d.ts +1 -0
  79. package/dist/models/PublicLeadDto.js +1 -0
  80. package/dist/models/RelatedLeadDto.d.ts +1 -0
  81. package/dist/models/RelatedLeadDto.js +1 -0
  82. package/dist/models/SalesCountCommissionPayloadDto.d.ts +1 -1
  83. package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +1 -1
  84. package/dist/models/SalesCountCommissionReasonPayloadDto.d.ts +1 -1
  85. package/dist/models/SellerLeadDetails.d.ts +1 -0
  86. package/dist/models/SellerLeadDetails.js +1 -0
  87. package/dist/models/SellerScaleChallengeListItemDto.d.ts +4 -2
  88. package/dist/models/SubscriptionDto.d.ts +5 -2
  89. package/dist/models/SubscriptionDto.js +1 -0
  90. package/dist/models/UpdateApiKeyInput.d.ts +2 -2
  91. package/dist/models/UpdateApiKeyInput.js +2 -2
  92. package/dist/models/UpdateChallengeInput.d.ts +4 -2
  93. package/dist/models/UpdateDomainInput.d.ts +7 -0
  94. package/dist/models/UpdateDomainInput.js +3 -0
  95. package/dist/models/UserNotificationDto.d.ts +1 -0
  96. package/dist/models/UserNotificationDto.js +1 -0
  97. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  98. package/dist/models/UserNotificationListItemDto.js +1 -0
  99. package/dist/models/WithSettingsInner.d.ts +7 -0
  100. package/dist/models/WithSettingsInner.js +5 -0
  101. package/dist/models/index.d.ts +2 -0
  102. package/dist/models/index.js +2 -0
  103. package/package.json +1 -1
  104. package/src/apis/AdminApi.ts +8 -5
  105. package/src/apis/BuyersApi.ts +2 -2
  106. package/src/apis/BuyersPublicApi.ts +2 -2
  107. package/src/apis/LeadsPublicApi.ts +17 -4
  108. package/src/apis/MarketingApi.ts +4 -1
  109. package/src/apis/StatsApi.ts +7 -4
  110. package/src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts +3 -2
  111. package/src/models/AccountSettingsDto.ts +16 -0
  112. package/src/models/AccountSettingsInput.ts +15 -0
  113. package/src/models/AdminBankDepositDto.ts +2 -2
  114. package/src/models/AdminChallengeListItemDto.ts +2 -2
  115. package/src/models/AdminDomainListItemDto.ts +16 -0
  116. package/src/models/AdminLeadListItemDto.ts +1 -0
  117. package/src/models/AggregatedPaginationResponse.ts +2 -2
  118. package/src/models/AirwallexDepositDto.ts +2 -2
  119. package/src/models/AirwallexDepositDtoFee.ts +6 -4
  120. package/src/models/BuyerDto.ts +3 -3
  121. package/src/models/BuyerLeadListItemDto.ts +1 -0
  122. package/src/models/BuyerNotificationDto.ts +1 -0
  123. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  124. package/src/models/CommissionAction.ts +1 -1
  125. package/src/models/CommissionAddUpdateActionInput.ts +1 -1
  126. package/src/models/CommissionConfigurationInput.ts +1 -1
  127. package/src/models/CommissionDeleteActionInput.ts +1 -1
  128. package/src/models/CommissionFactor.ts +1 -1
  129. package/src/models/CreateAccountPaymentInput.ts +2 -2
  130. package/src/models/CreateApiKeyInput.ts +4 -4
  131. package/src/models/CustomerSuccessDomainListItemDto.ts +16 -0
  132. package/src/models/FeatureFlagListItemDto.ts +2 -1
  133. package/src/models/FixedCommissionPayloadDto.ts +1 -1
  134. package/src/models/FixedCommissionPayloadSimulationInput.ts +1 -1
  135. package/src/models/FixedCommissionReasonPayloadDto.ts +1 -1
  136. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  137. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +16 -0
  138. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  139. package/src/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.ts +16 -0
  140. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +1 -0
  141. package/src/models/LeadDto.ts +1 -0
  142. package/src/models/LeadStatusDto.ts +1 -0
  143. package/src/models/LeadVerificationInput.ts +101 -0
  144. package/src/models/LeadVerificationSettingsDto.ts +104 -0
  145. package/src/models/List200Response3.ts +2 -2
  146. package/src/models/List200Response4.ts +2 -2
  147. package/src/models/ListLeadsResultItem.ts +1 -0
  148. package/src/models/OrderDto.ts +2 -2
  149. package/src/models/OwnedDomainDto.ts +2 -2
  150. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  151. package/src/models/PublicLeadDto.ts +1 -0
  152. package/src/models/RelatedLeadDto.ts +1 -0
  153. package/src/models/SalesCountCommissionPayloadDto.ts +1 -1
  154. package/src/models/SalesCountCommissionPayloadSimulationInput.ts +1 -1
  155. package/src/models/SalesCountCommissionReasonPayloadDto.ts +1 -1
  156. package/src/models/SellerLeadDetails.ts +1 -0
  157. package/src/models/SellerScaleChallengeListItemDto.ts +2 -2
  158. package/src/models/SubscriptionDto.ts +3 -2
  159. package/src/models/UpdateApiKeyInput.ts +4 -4
  160. package/src/models/UpdateChallengeInput.ts +2 -2
  161. package/src/models/UpdateDomainInput.ts +15 -0
  162. package/src/models/UserNotificationDto.ts +1 -0
  163. package/src/models/UserNotificationListItemDto.ts +1 -0
  164. package/src/models/WithSettingsInner.ts +16 -0
  165. package/src/models/index.ts +2 -0
@@ -650,7 +650,7 @@ export class BuyersApi extends runtime.BaseAPI {
650
650
  }
651
651
 
652
652
  /**
653
- * Returns the current buyer profile.
653
+ * Returns the current buyer profile. A signed-in buyer has proven they own their mailbox, so this also activates any unverified lead of theirs, covering offers made while a session already existed.
654
654
  * Get current buyer session
655
655
  */
656
656
  async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionDto>> {
@@ -677,7 +677,7 @@ export class BuyersApi extends runtime.BaseAPI {
677
677
  }
678
678
 
679
679
  /**
680
- * Returns the current buyer profile.
680
+ * Returns the current buyer profile. A signed-in buyer has proven they own their mailbox, so this also activates any unverified lead of theirs, covering offers made while a session already existed.
681
681
  * Get current buyer session
682
682
  */
683
683
  async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto> {
@@ -62,7 +62,7 @@ export interface BuyersPublicApiVerifyEmailOtpRequest {
62
62
  export class BuyersPublicApi extends runtime.BaseAPI {
63
63
 
64
64
  /**
65
- * Authenticates a buyer with email and password. Requires valid buyer credentials.
65
+ * Authenticates a buyer with email and password. Requires valid buyer credentials. Signing in also activates every unverified lead of the buyer, since it proves they own the mailbox.
66
66
  * Authenticate a buyer
67
67
  */
68
68
  async buyerLoginRaw(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>> {
@@ -91,7 +91,7 @@ export class BuyersPublicApi extends runtime.BaseAPI {
91
91
  }
92
92
 
93
93
  /**
94
- * Authenticates a buyer with email and password. Requires valid buyer credentials.
94
+ * Authenticates a buyer with email and password. Requires valid buyer credentials. Signing in also activates every unverified lead of the buyer, since it proves they own the mailbox.
95
95
  * Authenticate a buyer
96
96
  */
97
97
  async buyerLogin(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto> {
@@ -56,6 +56,7 @@ export interface LeadsPublicApiAssociateLeadVisitorRequest {
56
56
 
57
57
  export interface LeadsPublicApiCreateLeadRequest {
58
58
  createLeadInput: CreateLeadInput;
59
+ xRecaptchaToken?: string;
59
60
  }
60
61
 
61
62
  export interface LeadsPublicApiGetLeadRequest {
@@ -147,6 +148,10 @@ export class LeadsPublicApi extends runtime.BaseAPI {
147
148
 
148
149
  headerParameters['Content-Type'] = 'application/json';
149
150
 
151
+ if (requestParameters['xRecaptchaToken'] != null) {
152
+ headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
153
+ }
154
+
150
155
  const response = await this.request({
151
156
  path: `/leads`,
152
157
  method: 'POST',
@@ -275,7 +280,7 @@ export class LeadsPublicApi extends runtime.BaseAPI {
275
280
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
276
281
  * Update a lead
277
282
  */
278
- async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
283
+ async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
279
284
  if (requestParameters['leadId'] == null) {
280
285
  throw new runtime.RequiredError(
281
286
  'leadId',
@@ -304,15 +309,23 @@ export class LeadsPublicApi extends runtime.BaseAPI {
304
309
  body: UpdateLeadInputToJSON(requestParameters['updateLeadInput']),
305
310
  }, initOverrides);
306
311
 
307
- return new runtime.VoidApiResponse(response);
312
+ return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
308
313
  }
309
314
 
310
315
  /**
311
316
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
312
317
  * Update a lead
313
318
  */
314
- async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
315
- await this.updateLeadRaw(requestParameters, initOverrides);
319
+ async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId | null | undefined > {
320
+ const response = await this.updateLeadRaw(requestParameters, initOverrides);
321
+ switch (response.raw.status) {
322
+ case 202:
323
+ return await response.value();
324
+ case 204:
325
+ return null;
326
+ default:
327
+ return await response.value();
328
+ }
316
329
  }
317
330
 
318
331
  /**
@@ -18,6 +18,7 @@ import type {
18
18
  GetMarketingSales200Response,
19
19
  MarketingDashboardStatsDto,
20
20
  MarketingSalesFiltersDto,
21
+ StatsFilterInputDateRange,
21
22
  ValidationException,
22
23
  } from '../models/index';
23
24
  import {
@@ -27,12 +28,14 @@ import {
27
28
  MarketingDashboardStatsDtoToJSON,
28
29
  MarketingSalesFiltersDtoFromJSON,
29
30
  MarketingSalesFiltersDtoToJSON,
31
+ StatsFilterInputDateRangeFromJSON,
32
+ StatsFilterInputDateRangeToJSON,
30
33
  ValidationExceptionFromJSON,
31
34
  ValidationExceptionToJSON,
32
35
  } from '../models/index';
33
36
 
34
37
  export interface MarketingApiGetMarketingDashboardStatsRequest {
35
- dateRange?: any | null;
38
+ dateRange?: StatsFilterInputDateRange | null;
36
39
  }
37
40
 
38
41
  export interface MarketingApiGetMarketingSalesRequest {
@@ -22,6 +22,7 @@ import type {
22
22
  SellerTotalEarningsByCurrencyOverTimeStatsItemDto,
23
23
  SellerTotalEarningsByCurrencyStatsItemDto,
24
24
  SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto,
25
+ StatsFilterInputDateRange,
25
26
  ValidationException,
26
27
  } from '../models/index';
27
28
  import {
@@ -39,25 +40,27 @@ import {
39
40
  SellerTotalEarningsByCurrencyStatsItemDtoToJSON,
40
41
  SellerTotalRentMonthlyIncomeByCurrencyStatsItemDtoFromJSON,
41
42
  SellerTotalRentMonthlyIncomeByCurrencyStatsItemDtoToJSON,
43
+ StatsFilterInputDateRangeFromJSON,
44
+ StatsFilterInputDateRangeToJSON,
42
45
  ValidationExceptionFromJSON,
43
46
  ValidationExceptionToJSON,
44
47
  } from '../models/index';
45
48
 
46
49
  export interface StatsApiGetSalesByTldRequest {
47
50
  currency: string;
48
- dateRange?: any | null;
51
+ dateRange?: StatsFilterInputDateRange | null;
49
52
  }
50
53
 
51
54
  export interface StatsApiGetSalesCountRequest {
52
- dateRange?: any | null;
55
+ dateRange?: StatsFilterInputDateRange | null;
53
56
  }
54
57
 
55
58
  export interface StatsApiGetTotalEarningsByCurrencyRequest {
56
- dateRange?: any | null;
59
+ dateRange?: StatsFilterInputDateRange | null;
57
60
  }
58
61
 
59
62
  export interface StatsApiGetTotalEarningsByCurrencyOverTimeRequest {
60
- dateRange?: any | null;
63
+ dateRange?: StatsFilterInputDateRange | null;
61
64
  }
62
65
 
63
66
  /**
@@ -24,13 +24,14 @@ export interface AccountChallengeRewardUsageListItemDtoMetadata {
24
24
  * @type {string}
25
25
  * @memberof AccountChallengeRewardUsageListItemDtoMetadata
26
26
  */
27
- initialCommissionPercentage?: string;
27
+ initialCommissionPercentage: string;
28
28
  }
29
29
 
30
30
  /**
31
31
  * Check if a given object implements the AccountChallengeRewardUsageListItemDtoMetadata interface.
32
32
  */
33
33
  export function instanceOfAccountChallengeRewardUsageListItemDtoMetadata(value: object): value is AccountChallengeRewardUsageListItemDtoMetadata {
34
+ if (!('initialCommissionPercentage' in value) || value['initialCommissionPercentage'] === undefined) return false;
34
35
  return true;
35
36
  }
36
37
 
@@ -44,7 +45,7 @@ export function AccountChallengeRewardUsageListItemDtoMetadataFromJSONTyped(json
44
45
  }
45
46
  return {
46
47
 
47
- 'initialCommissionPercentage': json['initialCommissionPercentage'] == null ? undefined : json['initialCommissionPercentage'],
48
+ 'initialCommissionPercentage': json['initialCommissionPercentage'],
48
49
  };
49
50
  }
50
51
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { LeadVerificationSettingsDto } from './LeadVerificationSettingsDto';
17
+ import {
18
+ LeadVerificationSettingsDtoFromJSON,
19
+ LeadVerificationSettingsDtoFromJSONTyped,
20
+ LeadVerificationSettingsDtoToJSON,
21
+ LeadVerificationSettingsDtoToJSONTyped,
22
+ } from './LeadVerificationSettingsDto';
16
23
  import type { MoneyDto } from './MoneyDto';
17
24
  import {
18
25
  MoneyDtoFromJSON,
@@ -160,6 +167,12 @@ export interface AccountSettingsDto {
160
167
  * @memberof AccountSettingsDto
161
168
  */
162
169
  marketplace: AccountSettingsDtoMarketplaceEnum | null;
170
+ /**
171
+ * Default lead verification settings: how offers are verified before the seller sees them. Domains may override them.
172
+ * @type {LeadVerificationSettingsDto}
173
+ * @memberof AccountSettingsDto
174
+ */
175
+ leadVerification: LeadVerificationSettingsDto;
163
176
  }
164
177
 
165
178
 
@@ -195,6 +208,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
195
208
  if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
196
209
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
197
210
  if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
211
+ if (!('leadVerification' in value) || value['leadVerification'] === undefined) return false;
198
212
  return true;
199
213
  }
200
214
 
@@ -222,6 +236,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
222
236
  'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
223
237
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
224
238
  'marketplace': json['marketplace'],
239
+ 'leadVerification': LeadVerificationSettingsDtoFromJSON(json['leadVerification']),
225
240
  };
226
241
  }
227
242
 
@@ -250,6 +265,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
250
265
  'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
251
266
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
252
267
  'marketplace': value['marketplace'],
268
+ 'leadVerification': LeadVerificationSettingsDtoToJSON(value['leadVerification']),
253
269
  };
254
270
  }
255
271
 
@@ -55,6 +55,13 @@ import {
55
55
  LeaseToOwnConfigurationInputToJSON,
56
56
  LeaseToOwnConfigurationInputToJSONTyped,
57
57
  } from './LeaseToOwnConfigurationInput';
58
+ import type { LeadVerificationInput } from './LeadVerificationInput';
59
+ import {
60
+ LeadVerificationInputFromJSON,
61
+ LeadVerificationInputFromJSONTyped,
62
+ LeadVerificationInputToJSON,
63
+ LeadVerificationInputToJSONTyped,
64
+ } from './LeadVerificationInput';
58
65
  import type { AccountAliasInput } from './AccountAliasInput';
59
66
  import {
60
67
  AccountAliasInputFromJSON,
@@ -159,6 +166,12 @@ export interface AccountSettingsInput {
159
166
  * @memberof AccountSettingsInput
160
167
  */
161
168
  leadOfferExpirationConfiguration?: LockConfigurationInput;
169
+ /**
170
+ * Default lead verification settings: how offers are verified before the seller sees them. Domains may override them.
171
+ * @type {LeadVerificationInput}
172
+ * @memberof AccountSettingsInput
173
+ */
174
+ leadVerification?: LeadVerificationInput;
162
175
  }
163
176
 
164
177
 
@@ -208,6 +221,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
208
221
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
209
222
  'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
210
223
  'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
224
+ 'leadVerification': json['leadVerification'] == null ? undefined : LeadVerificationInputFromJSON(json['leadVerification']),
211
225
  };
212
226
  }
213
227
 
@@ -237,6 +251,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
237
251
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
238
252
  'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
239
253
  'leadOfferExpirationConfiguration': LockConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
254
+ 'leadVerification': LeadVerificationInputToJSON(value['leadVerification']),
240
255
  };
241
256
  }
242
257
 
@@ -78,10 +78,10 @@ export interface AdminBankDepositDto {
78
78
  invoiceTransaction: AdminBankDepositInvoiceTransactionDto | null;
79
79
  /**
80
80
  * Raw deposit payload from the payment provider.
81
- * @type {object}
81
+ * @type {{ [key: string]: any; }}
82
82
  * @memberof AdminBankDepositDto
83
83
  */
84
- raw: object;
84
+ raw: { [key: string]: any; };
85
85
  }
86
86
 
87
87
  /**
@@ -63,10 +63,10 @@ export interface AdminChallengeListItemDto {
63
63
  rewardPoints: number;
64
64
  /**
65
65
  * Scale (threshold -> reward points); only when rewardType is scale
66
- * @type {object}
66
+ * @type {{ [key: string]: number; }}
67
67
  * @memberof AdminChallengeListItemDto
68
68
  */
69
- scale?: object;
69
+ scale?: { [key: string]: number; };
70
70
  }
71
71
 
72
72
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { LeadVerificationSettingsDto } from './LeadVerificationSettingsDto';
17
+ import {
18
+ LeadVerificationSettingsDtoFromJSON,
19
+ LeadVerificationSettingsDtoFromJSONTyped,
20
+ LeadVerificationSettingsDtoToJSON,
21
+ LeadVerificationSettingsDtoToJSONTyped,
22
+ } from './LeadVerificationSettingsDto';
16
23
  import type { MoneyDto } from './MoneyDto';
17
24
  import {
18
25
  MoneyDtoFromJSON,
@@ -255,6 +262,12 @@ export interface AdminDomainListItemDto {
255
262
  * @memberof AdminDomainListItemDto
256
263
  */
257
264
  marketplace: AdminDomainListItemDtoMarketplaceEnum | null;
265
+ /**
266
+ * Lead verification override for this domain. Every null field inherits the account default.
267
+ * @type {LeadVerificationSettingsDto}
268
+ * @memberof AdminDomainListItemDto
269
+ */
270
+ leadVerification: LeadVerificationSettingsDto;
258
271
  /**
259
272
  * Account that owns the domain.
260
273
  * @type {AccountDto}
@@ -333,6 +346,7 @@ export function instanceOfAdminDomainListItemDto(value: object): value is AdminD
333
346
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
334
347
  if (!('showcased' in value) || value['showcased'] === undefined) return false;
335
348
  if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
349
+ if (!('leadVerification' in value) || value['leadVerification'] === undefined) return false;
336
350
  if (!('account' in value) || value['account'] === undefined) return false;
337
351
  if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined) return false;
338
352
  return true;
@@ -379,6 +393,7 @@ export function AdminDomainListItemDtoFromJSONTyped(json: any, ignoreDiscriminat
379
393
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
380
394
  'showcased': json['showcased'],
381
395
  'marketplace': json['marketplace'],
396
+ 'leadVerification': LeadVerificationSettingsDtoFromJSON(json['leadVerification']),
382
397
  'account': AccountDtoFromJSON(json['account']),
383
398
  'pointsToOurServerReason': json['pointsToOurServerReason'],
384
399
  };
@@ -426,6 +441,7 @@ export function AdminDomainListItemDtoToJSONTyped(value?: AdminDomainListItemDto
426
441
  'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
427
442
  'showcased': value['showcased'],
428
443
  'marketplace': value['marketplace'],
444
+ 'leadVerification': LeadVerificationSettingsDtoToJSON(value['leadVerification']),
429
445
  'account': AccountDtoToJSON(value['account']),
430
446
  'pointsToOurServerReason': value['pointsToOurServerReason'],
431
447
  };
@@ -157,6 +157,7 @@ export interface AdminLeadListItemDto {
157
157
  * @export
158
158
  */
159
159
  export const AdminLeadListItemDtoStatusEnum = {
160
+ DRAFT: 'draft',
160
161
  UNVERIFIED: 'unverified',
161
162
  ACTIVE: 'active',
162
163
  ACCEPTED: 'accepted',
@@ -21,10 +21,10 @@ import { mapValues } from '../runtime';
21
21
  export interface AggregatedPaginationResponse {
22
22
  /**
23
23
  * Aggregation results keyed by aggregation name.
24
- * @type {object}
24
+ * @type {{ [key: string]: any; }}
25
25
  * @memberof AggregatedPaginationResponse
26
26
  */
27
- aggregations: object;
27
+ aggregations: { [key: string]: any; };
28
28
  }
29
29
 
30
30
  /**
@@ -59,10 +59,10 @@ export interface AirwallexDepositDto {
59
59
  fee: AirwallexDepositDtoFee;
60
60
  /**
61
61
  * Payer information from the payment provider.
62
- * @type {object}
62
+ * @type {{ [key: string]: any; }}
63
63
  * @memberof AirwallexDepositDto
64
64
  */
65
- payer: object;
65
+ payer: { [key: string]: any; };
66
66
  }
67
67
 
68
68
  /**
@@ -24,19 +24,21 @@ export interface AirwallexDepositDtoFee {
24
24
  * @type {number}
25
25
  * @memberof AirwallexDepositDtoFee
26
26
  */
27
- amount?: number;
27
+ amount: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof AirwallexDepositDtoFee
32
32
  */
33
- currency?: string;
33
+ currency: string;
34
34
  }
35
35
 
36
36
  /**
37
37
  * Check if a given object implements the AirwallexDepositDtoFee interface.
38
38
  */
39
39
  export function instanceOfAirwallexDepositDtoFee(value: object): value is AirwallexDepositDtoFee {
40
+ if (!('amount' in value) || value['amount'] === undefined) return false;
41
+ if (!('currency' in value) || value['currency'] === undefined) return false;
40
42
  return true;
41
43
  }
42
44
 
@@ -50,8 +52,8 @@ export function AirwallexDepositDtoFeeFromJSONTyped(json: any, ignoreDiscriminat
50
52
  }
51
53
  return {
52
54
 
53
- 'amount': json['amount'] == null ? undefined : json['amount'],
54
- 'currency': json['currency'] == null ? undefined : json['currency'],
55
+ 'amount': json['amount'],
56
+ 'currency': json['currency'],
55
57
  };
56
58
  }
57
59
 
@@ -90,19 +90,19 @@ export interface BuyerDto {
90
90
  */
91
91
  phoneNumber: string | null;
92
92
  /**
93
- *
93
+ * Experience level based on the number of domains the buyer bought: none (0), active (1-3), expert (4+).
94
94
  * @type {BuyerExperienceEnum}
95
95
  * @memberof BuyerDto
96
96
  */
97
97
  experience: BuyerExperienceEnum;
98
98
  /**
99
- *
99
+ * Share of the leads the buyer started that ever reached an accepted deal: accepts_nothing (0%), accepts_very_little (below 25%), normal (25-75%), accepts_almost_anything (75-100%), accepts_anything (100%), or unknown when the buyer has a single lead and no accepted deal yet.
100
100
  * @type {BuyerAcceptanceEnum}
101
101
  * @memberof BuyerDto
102
102
  */
103
103
  accepted: BuyerAcceptanceEnum;
104
104
  /**
105
- *
105
+ * Share of the leads the buyer started that were actually paid: pays_nothing (0%), pays_very_little (below 25%), normal (25-75%), pays_almost_everything (75-100%), pays_everything (100%), or unknown when the buyer has a single lead and no purchase yet.
106
106
  * @type {BuyerPaymentEnum}
107
107
  * @memberof BuyerDto
108
108
  */
@@ -120,6 +120,7 @@ export interface BuyerLeadListItemDto {
120
120
  * @export
121
121
  */
122
122
  export const BuyerLeadListItemDtoStatusEnum = {
123
+ DRAFT: 'draft',
123
124
  UNVERIFIED: 'unverified',
124
125
  ACTIVE: 'active',
125
126
  ACCEPTED: 'accepted',
@@ -109,6 +109,7 @@ export const BuyerNotificationDtoTypeEnum = {
109
109
  EXPORT_COMPLETED: 'export_completed',
110
110
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
111
111
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
112
+ DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
112
113
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
113
114
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
114
115
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
@@ -95,6 +95,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
95
95
  EXPORT_COMPLETED: 'export_completed',
96
96
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
97
97
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
98
+ DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
98
99
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
99
100
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
100
101
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
  /**
17
- * Bulk action type: delete an existing commission
17
+ * Bulk action type: add a new commission or update an existing one
18
18
  * @export
19
19
  */
20
20
  export const CommissionAction = {
@@ -35,7 +35,7 @@ import {
35
35
  */
36
36
  export interface CommissionAddUpdateActionInput {
37
37
  /**
38
- *
38
+ * Bulk action type: add a new commission or update an existing one
39
39
  * @type {CommissionAction}
40
40
  * @memberof CommissionAddUpdateActionInput
41
41
  */
@@ -28,7 +28,7 @@ import {
28
28
  */
29
29
  export interface CommissionConfigurationInput {
30
30
  /**
31
- *
31
+ * Factor that determines how the commission is calculated
32
32
  * @type {CommissionFactor}
33
33
  * @memberof CommissionConfigurationInput
34
34
  */
@@ -35,7 +35,7 @@ import {
35
35
  */
36
36
  export interface CommissionDeleteActionInput {
37
37
  /**
38
- *
38
+ * Bulk action type: delete an existing commission
39
39
  * @type {CommissionAction}
40
40
  * @memberof CommissionDeleteActionInput
41
41
  */
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
  /**
17
- * Commission factor (MONTHLY_SALES_COUNT)
17
+ * Commission factor: fixed.
18
18
  * @export
19
19
  */
20
20
  export const CommissionFactor = {
@@ -33,10 +33,10 @@ export interface CreateAccountPaymentInput {
33
33
  domainId?: string | null;
34
34
  /**
35
35
  * Additional payment metadata
36
- * @type {object}
36
+ * @type {{ [key: string]: any; }}
37
37
  * @memberof CreateAccountPaymentInput
38
38
  */
39
- payload?: object;
39
+ payload?: { [key: string]: any; };
40
40
  }
41
41
 
42
42
 
@@ -27,10 +27,10 @@ export interface CreateApiKeyInput {
27
27
  name: string;
28
28
  /**
29
29
  * Scopes to grant. Must be a subset of the scopes returned by the available-scopes endpoint; a key can only reach endpoints covered by its scopes.
30
- * @type {Array<string>}
30
+ * @type {Set<string>}
31
31
  * @memberof CreateApiKeyInput
32
32
  */
33
- scope: Array<CreateApiKeyInputScopeEnum>;
33
+ scope: Set<CreateApiKeyInputScopeEnum>;
34
34
  /**
35
35
  * When the key should stop working. Omit for a key that never expires.
36
36
  * @type {Date}
@@ -101,7 +101,7 @@ export function CreateApiKeyInputFromJSONTyped(json: any, ignoreDiscriminator: b
101
101
  return {
102
102
 
103
103
  'name': json['name'],
104
- 'scope': json['scope'],
104
+ 'scope': new Set(json['scope']),
105
105
  'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
106
106
  };
107
107
  }
@@ -118,7 +118,7 @@ export function CreateApiKeyInputToJSONTyped(value?: CreateApiKeyInput | null, i
118
118
  return {
119
119
 
120
120
  'name': value['name'],
121
- 'scope': value['scope'],
121
+ 'scope': Array.from(value['scope'] as Set<any>),
122
122
  'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
123
123
  };
124
124
  }
@@ -20,6 +20,13 @@ import {
20
20
  CustomerSuccessDomainAuctionDtoToJSON,
21
21
  CustomerSuccessDomainAuctionDtoToJSONTyped,
22
22
  } from './CustomerSuccessDomainAuctionDto';
23
+ import type { LeadVerificationSettingsDto } from './LeadVerificationSettingsDto';
24
+ import {
25
+ LeadVerificationSettingsDtoFromJSON,
26
+ LeadVerificationSettingsDtoFromJSONTyped,
27
+ LeadVerificationSettingsDtoToJSON,
28
+ LeadVerificationSettingsDtoToJSONTyped,
29
+ } from './LeadVerificationSettingsDto';
23
30
  import type { MoneyDto } from './MoneyDto';
24
31
  import {
25
32
  MoneyDtoFromJSON,
@@ -260,6 +267,12 @@ export interface CustomerSuccessDomainListItemDto {
260
267
  * @memberof CustomerSuccessDomainListItemDto
261
268
  */
262
269
  marketplace: CustomerSuccessDomainListItemDtoMarketplaceEnum | null;
270
+ /**
271
+ * Lead verification override for this domain. Every null field inherits the account default.
272
+ * @type {LeadVerificationSettingsDto}
273
+ * @memberof CustomerSuccessDomainListItemDto
274
+ */
275
+ leadVerification: LeadVerificationSettingsDto;
263
276
  }
264
277
 
265
278
 
@@ -328,6 +341,7 @@ export function instanceOfCustomerSuccessDomainListItemDto(value: object): value
328
341
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
329
342
  if (!('showcased' in value) || value['showcased'] === undefined) return false;
330
343
  if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
344
+ if (!('leadVerification' in value) || value['leadVerification'] === undefined) return false;
331
345
  return true;
332
346
  }
333
347
 
@@ -374,6 +388,7 @@ export function CustomerSuccessDomainListItemDtoFromJSONTyped(json: any, ignoreD
374
388
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
375
389
  'showcased': json['showcased'],
376
390
  'marketplace': json['marketplace'],
391
+ 'leadVerification': LeadVerificationSettingsDtoFromJSON(json['leadVerification']),
377
392
  };
378
393
  }
379
394
 
@@ -421,6 +436,7 @@ export function CustomerSuccessDomainListItemDtoToJSONTyped(value?: CustomerSucc
421
436
  'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
422
437
  'showcased': value['showcased'],
423
438
  'marketplace': value['marketplace'],
439
+ 'leadVerification': LeadVerificationSettingsDtoToJSON(value['leadVerification']),
424
440
  };
425
441
  }
426
442
 
@@ -96,7 +96,8 @@ export const FeatureFlagListItemDtoNameEnum = {
96
96
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
97
97
  MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
98
98
  AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
99
- LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
99
+ LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
100
+ LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA'
100
101
  } as const;
101
102
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
102
103
 
@@ -28,7 +28,7 @@ import {
28
28
  */
29
29
  export interface FixedCommissionPayloadDto {
30
30
  /**
31
- *
31
+ * Commission factor: fixed.
32
32
  * @type {CommissionFactor}
33
33
  * @memberof FixedCommissionPayloadDto
34
34
  */