@randock/nameshift-api-client 0.0.557 → 0.0.559

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 (95) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +38 -1
  4. package/dist/apis/AdminApi.js +165 -0
  5. package/dist/apis/BuyersApi.d.ts +3 -2
  6. package/dist/apis/BuyersApi.js +5 -2
  7. package/dist/apis/LeadsPublicApi.d.ts +43 -1
  8. package/dist/apis/LeadsPublicApi.js +151 -0
  9. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  10. package/dist/models/FeatureFlagListItemDto.js +3 -1
  11. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  12. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  13. package/dist/models/LeadDto.d.ts +7 -0
  14. package/dist/models/LeadDto.js +5 -0
  15. package/dist/models/LeadEmailVerificationDto.d.ts +38 -0
  16. package/dist/models/LeadEmailVerificationDto.js +55 -0
  17. package/dist/models/LeadPhoneVerificationDeliveryDto.d.ts +49 -0
  18. package/dist/models/LeadPhoneVerificationDeliveryDto.js +66 -0
  19. package/dist/models/LeadPhoneVerificationDto.d.ts +80 -0
  20. package/dist/models/LeadPhoneVerificationDto.js +89 -0
  21. package/dist/models/LeadPhoneVerificationReason.d.ts +35 -0
  22. package/dist/models/LeadPhoneVerificationReason.js +61 -0
  23. package/dist/models/LeadPhoneVerificationSummaryDto.d.ts +32 -0
  24. package/dist/models/LeadPhoneVerificationSummaryDto.js +51 -0
  25. package/dist/models/LeadPhoneVerificationTooSoonOutput.d.ts +51 -0
  26. package/dist/models/LeadPhoneVerificationTooSoonOutput.js +64 -0
  27. package/dist/models/LeadPhoneVerificationUnavailableOutput.d.ts +51 -0
  28. package/dist/models/LeadPhoneVerificationUnavailableOutput.js +64 -0
  29. package/dist/models/LeadVerificationDto.d.ts +40 -0
  30. package/dist/models/LeadVerificationDto.js +57 -0
  31. package/dist/models/LeadVerificationInput.d.ts +24 -0
  32. package/dist/models/LeadVerificationInput.js +8 -0
  33. package/dist/models/LeadVerificationSettingsDto.d.ts +24 -0
  34. package/dist/models/LeadVerificationSettingsDto.js +16 -0
  35. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  36. package/dist/models/ListLeadsResultItem.js +5 -0
  37. package/dist/models/ManualLeadDetails.d.ts +7 -0
  38. package/dist/models/ManualLeadDetails.js +5 -0
  39. package/dist/models/PhoneMessageDeliveryStatus.d.ts +27 -0
  40. package/dist/models/PhoneMessageDeliveryStatus.js +53 -0
  41. package/dist/models/PlatformConfigurationBlock.d.ts +25 -0
  42. package/dist/models/PlatformConfigurationBlock.js +51 -0
  43. package/dist/models/PlatformConfigurationDto.d.ts +62 -0
  44. package/dist/models/PlatformConfigurationDto.js +69 -0
  45. package/dist/models/PlatformConfigurationUpdatedByDto.d.ts +44 -0
  46. package/dist/models/PlatformConfigurationUpdatedByDto.js +59 -0
  47. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  48. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  49. package/dist/models/PublicLeadDto.d.ts +7 -0
  50. package/dist/models/PublicLeadDto.js +5 -0
  51. package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +9 -2
  52. package/dist/models/RegisterAuctionBuyerPhoneInput.js +3 -3
  53. package/dist/models/RequestLeadPhoneVerificationCodeInput.d.ts +32 -0
  54. package/dist/models/RequestLeadPhoneVerificationCodeInput.js +49 -0
  55. package/dist/models/SellerLeadDetails.d.ts +7 -0
  56. package/dist/models/SellerLeadDetails.js +5 -0
  57. package/dist/models/UpdatePlatformConfigurationInput.d.ts +34 -0
  58. package/dist/models/UpdatePlatformConfigurationInput.js +51 -0
  59. package/dist/models/VerifyLeadPhoneInput.d.ts +32 -0
  60. package/dist/models/VerifyLeadPhoneInput.js +51 -0
  61. package/dist/models/VerifyPhoneOtpInput.d.ts +1 -1
  62. package/dist/models/index.d.ts +15 -0
  63. package/dist/models/index.js +15 -0
  64. package/package.json +1 -1
  65. package/src/apis/AdminApi.ts +149 -0
  66. package/src/apis/BuyersApi.ts +7 -2
  67. package/src/apis/LeadsPublicApi.ts +162 -0
  68. package/src/models/FeatureFlagListItemDto.ts +3 -1
  69. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  70. package/src/models/LeadDto.ts +16 -0
  71. package/src/models/LeadEmailVerificationDto.ts +75 -0
  72. package/src/models/LeadPhoneVerificationDeliveryDto.ts +96 -0
  73. package/src/models/LeadPhoneVerificationDto.ts +132 -0
  74. package/src/models/LeadPhoneVerificationReason.ts +63 -0
  75. package/src/models/LeadPhoneVerificationSummaryDto.ts +66 -0
  76. package/src/models/LeadPhoneVerificationTooSoonOutput.ts +103 -0
  77. package/src/models/LeadPhoneVerificationUnavailableOutput.ts +103 -0
  78. package/src/models/LeadVerificationDto.ts +90 -0
  79. package/src/models/LeadVerificationInput.ts +32 -0
  80. package/src/models/LeadVerificationSettingsDto.ts +36 -0
  81. package/src/models/ListLeadsResultItem.ts +16 -0
  82. package/src/models/ManualLeadDetails.ts +16 -0
  83. package/src/models/PhoneMessageDeliveryStatus.ts +55 -0
  84. package/src/models/PlatformConfigurationBlock.ts +53 -0
  85. package/src/models/PlatformConfigurationDto.ts +119 -0
  86. package/src/models/PlatformConfigurationUpdatedByDto.ts +84 -0
  87. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  88. package/src/models/PublicLeadDto.ts +16 -0
  89. package/src/models/RegisterAuctionBuyerPhoneInput.ts +12 -4
  90. package/src/models/RequestLeadPhoneVerificationCodeInput.ts +65 -0
  91. package/src/models/SellerLeadDetails.ts +16 -0
  92. package/src/models/UpdatePlatformConfigurationInput.ts +66 -0
  93. package/src/models/VerifyLeadPhoneInput.ts +66 -0
  94. package/src/models/VerifyPhoneOtpInput.ts +1 -1
  95. package/src/models/index.ts +15 -0
@@ -0,0 +1,49 @@
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.instanceOfRequestLeadPhoneVerificationCodeInput = instanceOfRequestLeadPhoneVerificationCodeInput;
17
+ exports.RequestLeadPhoneVerificationCodeInputFromJSON = RequestLeadPhoneVerificationCodeInputFromJSON;
18
+ exports.RequestLeadPhoneVerificationCodeInputFromJSONTyped = RequestLeadPhoneVerificationCodeInputFromJSONTyped;
19
+ exports.RequestLeadPhoneVerificationCodeInputToJSON = RequestLeadPhoneVerificationCodeInputToJSON;
20
+ exports.RequestLeadPhoneVerificationCodeInputToJSONTyped = RequestLeadPhoneVerificationCodeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RequestLeadPhoneVerificationCodeInput interface.
23
+ */
24
+ function instanceOfRequestLeadPhoneVerificationCodeInput(value) {
25
+ return true;
26
+ }
27
+ function RequestLeadPhoneVerificationCodeInputFromJSON(json) {
28
+ return RequestLeadPhoneVerificationCodeInputFromJSONTyped(json, false);
29
+ }
30
+ function RequestLeadPhoneVerificationCodeInputFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'locale': json['locale'] == null ? undefined : json['locale'],
36
+ };
37
+ }
38
+ function RequestLeadPhoneVerificationCodeInputToJSON(json) {
39
+ return RequestLeadPhoneVerificationCodeInputToJSONTyped(json, false);
40
+ }
41
+ function RequestLeadPhoneVerificationCodeInputToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'locale': value['locale'],
48
+ };
49
+ }
@@ -12,6 +12,7 @@
12
12
  import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
13
13
  import type { MoneyDto } from './MoneyDto';
14
14
  import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
15
+ import type { LeadPhoneVerificationSummaryDto } from './LeadPhoneVerificationSummaryDto';
15
16
  import type { BuyerDto } from './BuyerDto';
16
17
  import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
17
18
  import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
@@ -167,6 +168,12 @@ export interface SellerLeadDetails {
167
168
  * @memberof SellerLeadDetails
168
169
  */
169
170
  awaitingSellerFirstMessage: boolean;
171
+ /**
172
+ * How the buyer phone number was confirmed. Null when the buyer did not confirm a phone code.
173
+ * @type {LeadPhoneVerificationSummaryDto}
174
+ * @memberof SellerLeadDetails
175
+ */
176
+ phoneVerification: LeadPhoneVerificationSummaryDto | null;
170
177
  /**
171
178
  * Buyer details associated with the lead.
172
179
  * @type {BuyerDto}
@@ -22,6 +22,7 @@ exports.SellerLeadDetailsToJSONTyped = SellerLeadDetailsToJSONTyped;
22
22
  var LeadLeaseToOwnConfigurationDto_1 = require("./LeadLeaseToOwnConfigurationDto");
23
23
  var MoneyDto_1 = require("./MoneyDto");
24
24
  var IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1 = require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto");
25
+ var LeadPhoneVerificationSummaryDto_1 = require("./LeadPhoneVerificationSummaryDto");
25
26
  var BuyerDto_1 = require("./BuyerDto");
26
27
  var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
27
28
  var LeadOfferExpirationConfigurationDto_1 = require("./LeadOfferExpirationConfigurationDto");
@@ -117,6 +118,8 @@ function instanceOfSellerLeadDetails(value) {
117
118
  return false;
118
119
  if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined)
119
120
  return false;
121
+ if (!('phoneVerification' in value) || value['phoneVerification'] === undefined)
122
+ return false;
120
123
  if (!('buyer' in value) || value['buyer'] === undefined)
121
124
  return false;
122
125
  if (!('isMutedForSeller' in value) || value['isMutedForSeller'] === undefined)
@@ -157,6 +160,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
157
160
  'canBeClosedBySeller': json['canBeClosedBySeller'],
158
161
  'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
159
162
  'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
163
+ 'phoneVerification': (0, LeadPhoneVerificationSummaryDto_1.LeadPhoneVerificationSummaryDtoFromJSON)(json['phoneVerification']),
160
164
  'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
161
165
  'isMutedForSeller': json['isMutedForSeller'],
162
166
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
@@ -195,6 +199,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
195
199
  'canBeClosedBySeller': value['canBeClosedBySeller'],
196
200
  'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
197
201
  'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
202
+ 'phoneVerification': (0, LeadPhoneVerificationSummaryDto_1.LeadPhoneVerificationSummaryDtoToJSON)(value['phoneVerification']),
198
203
  'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
199
204
  'isMutedForSeller': value['isMutedForSeller'],
200
205
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdatePlatformConfigurationInput
16
+ */
17
+ export interface UpdatePlatformConfigurationInput {
18
+ /**
19
+ * New values of the block, as its JSON Schema describes.
20
+ * @type {{ [key: string]: any; }}
21
+ * @memberof UpdatePlatformConfigurationInput
22
+ */
23
+ value: {
24
+ [key: string]: any;
25
+ };
26
+ }
27
+ /**
28
+ * Check if a given object implements the UpdatePlatformConfigurationInput interface.
29
+ */
30
+ export declare function instanceOfUpdatePlatformConfigurationInput(value: object): value is UpdatePlatformConfigurationInput;
31
+ export declare function UpdatePlatformConfigurationInputFromJSON(json: any): UpdatePlatformConfigurationInput;
32
+ export declare function UpdatePlatformConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePlatformConfigurationInput;
33
+ export declare function UpdatePlatformConfigurationInputToJSON(json: any): UpdatePlatformConfigurationInput;
34
+ export declare function UpdatePlatformConfigurationInputToJSONTyped(value?: UpdatePlatformConfigurationInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUpdatePlatformConfigurationInput = instanceOfUpdatePlatformConfigurationInput;
17
+ exports.UpdatePlatformConfigurationInputFromJSON = UpdatePlatformConfigurationInputFromJSON;
18
+ exports.UpdatePlatformConfigurationInputFromJSONTyped = UpdatePlatformConfigurationInputFromJSONTyped;
19
+ exports.UpdatePlatformConfigurationInputToJSON = UpdatePlatformConfigurationInputToJSON;
20
+ exports.UpdatePlatformConfigurationInputToJSONTyped = UpdatePlatformConfigurationInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdatePlatformConfigurationInput interface.
23
+ */
24
+ function instanceOfUpdatePlatformConfigurationInput(value) {
25
+ if (!('value' in value) || value['value'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdatePlatformConfigurationInputFromJSON(json) {
30
+ return UpdatePlatformConfigurationInputFromJSONTyped(json, false);
31
+ }
32
+ function UpdatePlatformConfigurationInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'value': json['value'],
38
+ };
39
+ }
40
+ function UpdatePlatformConfigurationInputToJSON(json) {
41
+ return UpdatePlatformConfigurationInputToJSONTyped(json, false);
42
+ }
43
+ function UpdatePlatformConfigurationInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'value': value['value'],
50
+ };
51
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VerifyLeadPhoneInput
16
+ */
17
+ export interface VerifyLeadPhoneInput {
18
+ /**
19
+ * Code the buyer received by WhatsApp or SMS.
20
+ * @type {string}
21
+ * @memberof VerifyLeadPhoneInput
22
+ */
23
+ code: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the VerifyLeadPhoneInput interface.
27
+ */
28
+ export declare function instanceOfVerifyLeadPhoneInput(value: object): value is VerifyLeadPhoneInput;
29
+ export declare function VerifyLeadPhoneInputFromJSON(json: any): VerifyLeadPhoneInput;
30
+ export declare function VerifyLeadPhoneInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyLeadPhoneInput;
31
+ export declare function VerifyLeadPhoneInputToJSON(json: any): VerifyLeadPhoneInput;
32
+ export declare function VerifyLeadPhoneInputToJSONTyped(value?: VerifyLeadPhoneInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVerifyLeadPhoneInput = instanceOfVerifyLeadPhoneInput;
17
+ exports.VerifyLeadPhoneInputFromJSON = VerifyLeadPhoneInputFromJSON;
18
+ exports.VerifyLeadPhoneInputFromJSONTyped = VerifyLeadPhoneInputFromJSONTyped;
19
+ exports.VerifyLeadPhoneInputToJSON = VerifyLeadPhoneInputToJSON;
20
+ exports.VerifyLeadPhoneInputToJSONTyped = VerifyLeadPhoneInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VerifyLeadPhoneInput interface.
23
+ */
24
+ function instanceOfVerifyLeadPhoneInput(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function VerifyLeadPhoneInputFromJSON(json) {
30
+ return VerifyLeadPhoneInputFromJSONTyped(json, false);
31
+ }
32
+ function VerifyLeadPhoneInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'code': json['code'],
38
+ };
39
+ }
40
+ function VerifyLeadPhoneInputToJSON(json) {
41
+ return VerifyLeadPhoneInputToJSONTyped(json, false);
42
+ }
43
+ function VerifyLeadPhoneInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'code': value['code'],
50
+ };
51
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface VerifyPhoneOtpInput {
18
18
  /**
19
- * One-time password received via SMS or WhatsApp
19
+ * One-time password received by Telegram, WhatsApp, SMS or a voice call
20
20
  * @type {string}
21
21
  * @memberof VerifyPhoneOtpInput
22
22
  */
@@ -400,6 +400,7 @@ export * from './LeadBrokeredDealDto';
400
400
  export * from './LeadBuyerConfigDto';
401
401
  export * from './LeadDomainDto';
402
402
  export * from './LeadDto';
403
+ export * from './LeadEmailVerificationDto';
403
404
  export * from './LeadEnrichmentActivityDto';
404
405
  export * from './LeadEnrichmentCompanyDto';
405
406
  export * from './LeadEnrichmentDomainDto';
@@ -423,12 +424,19 @@ export * from './LeadOfferDto';
423
424
  export * from './LeadOfferExpirationConfigurationDto';
424
425
  export * from './LeadOfferExpirationConfigurationInput';
425
426
  export * from './LeadOfferExpirationDurationInput';
427
+ export * from './LeadPhoneVerificationDeliveryDto';
428
+ export * from './LeadPhoneVerificationDto';
429
+ export * from './LeadPhoneVerificationReason';
430
+ export * from './LeadPhoneVerificationSummaryDto';
431
+ export * from './LeadPhoneVerificationTooSoonOutput';
432
+ export * from './LeadPhoneVerificationUnavailableOutput';
426
433
  export * from './LeadPriceNegotiatorAiAgentConfigurationDto';
427
434
  export * from './LeadPriceNegotiatorAiAgentConfigurationInput';
428
435
  export * from './LeadQuickReplyDto';
429
436
  export * from './LeadQuickReplyListDto';
430
437
  export * from './LeadRentConfigurationDto';
431
438
  export * from './LeadStatusDto';
439
+ export * from './LeadVerificationDto';
432
440
  export * from './LeadVerificationInput';
433
441
  export * from './LeadVerificationSettingsDto';
434
442
  export * from './LeaseToOwnConfigurationDto';
@@ -530,6 +538,10 @@ export * from './PaymentMethodAvailabilityProfile';
530
538
  export * from './PaymentMethodsAvailabilityDto';
531
539
  export * from './PaymentMethodsStatsDto';
532
540
  export * from './PayoutFrequency';
541
+ export * from './PhoneMessageDeliveryStatus';
542
+ export * from './PlatformConfigurationBlock';
543
+ export * from './PlatformConfigurationDto';
544
+ export * from './PlatformConfigurationUpdatedByDto';
533
545
  export * from './PopularCategoryDto';
534
546
  export * from './PreviewDomainEditInput';
535
547
  export * from './PrivateAccountGetMeResponse';
@@ -576,6 +588,7 @@ export * from './RentDto';
576
588
  export * from './RentIndexationDto';
577
589
  export * from './RequestAccessTokenInput';
578
590
  export * from './RequestEmailOtpInput';
591
+ export * from './RequestLeadPhoneVerificationCodeInput';
579
592
  export * from './RequestUserEmailChangeOtpInput';
580
593
  export * from './SalesCountCommissionPayloadDto';
581
594
  export * from './SalesCountCommissionPayloadInput';
@@ -690,6 +703,7 @@ export * from './UpdateLeaseToOwnConfigurationDto';
690
703
  export * from './UpdateMarketplaceInput';
691
704
  export * from './UpdateNewsletterInput';
692
705
  export * from './UpdateOrderInput';
706
+ export * from './UpdatePlatformConfigurationInput';
693
707
  export * from './UpdateRentConfigurationDto';
694
708
  export * from './UpdateSubscriptionBillingPeriodicityInput';
695
709
  export * from './UpdateSubscriptionBuyerInformationInput';
@@ -721,6 +735,7 @@ export * from './ValidationError';
721
735
  export * from './ValidationException';
722
736
  export * from './VerifyEmailOtpInput';
723
737
  export * from './VerifyLeadInput';
738
+ export * from './VerifyLeadPhoneInput';
724
739
  export * from './VerifyPhoneOtpInput';
725
740
  export * from './WebhookAttemptTrigger';
726
741
  export * from './WebhookDeliveriesSummaryDto';
@@ -418,6 +418,7 @@ __exportStar(require("./LeadBrokeredDealDto"), exports);
418
418
  __exportStar(require("./LeadBuyerConfigDto"), exports);
419
419
  __exportStar(require("./LeadDomainDto"), exports);
420
420
  __exportStar(require("./LeadDto"), exports);
421
+ __exportStar(require("./LeadEmailVerificationDto"), exports);
421
422
  __exportStar(require("./LeadEnrichmentActivityDto"), exports);
422
423
  __exportStar(require("./LeadEnrichmentCompanyDto"), exports);
423
424
  __exportStar(require("./LeadEnrichmentDomainDto"), exports);
@@ -441,12 +442,19 @@ __exportStar(require("./LeadOfferDto"), exports);
441
442
  __exportStar(require("./LeadOfferExpirationConfigurationDto"), exports);
442
443
  __exportStar(require("./LeadOfferExpirationConfigurationInput"), exports);
443
444
  __exportStar(require("./LeadOfferExpirationDurationInput"), exports);
445
+ __exportStar(require("./LeadPhoneVerificationDeliveryDto"), exports);
446
+ __exportStar(require("./LeadPhoneVerificationDto"), exports);
447
+ __exportStar(require("./LeadPhoneVerificationReason"), exports);
448
+ __exportStar(require("./LeadPhoneVerificationSummaryDto"), exports);
449
+ __exportStar(require("./LeadPhoneVerificationTooSoonOutput"), exports);
450
+ __exportStar(require("./LeadPhoneVerificationUnavailableOutput"), exports);
444
451
  __exportStar(require("./LeadPriceNegotiatorAiAgentConfigurationDto"), exports);
445
452
  __exportStar(require("./LeadPriceNegotiatorAiAgentConfigurationInput"), exports);
446
453
  __exportStar(require("./LeadQuickReplyDto"), exports);
447
454
  __exportStar(require("./LeadQuickReplyListDto"), exports);
448
455
  __exportStar(require("./LeadRentConfigurationDto"), exports);
449
456
  __exportStar(require("./LeadStatusDto"), exports);
457
+ __exportStar(require("./LeadVerificationDto"), exports);
450
458
  __exportStar(require("./LeadVerificationInput"), exports);
451
459
  __exportStar(require("./LeadVerificationSettingsDto"), exports);
452
460
  __exportStar(require("./LeaseToOwnConfigurationDto"), exports);
@@ -548,6 +556,10 @@ __exportStar(require("./PaymentMethodAvailabilityProfile"), exports);
548
556
  __exportStar(require("./PaymentMethodsAvailabilityDto"), exports);
549
557
  __exportStar(require("./PaymentMethodsStatsDto"), exports);
550
558
  __exportStar(require("./PayoutFrequency"), exports);
559
+ __exportStar(require("./PhoneMessageDeliveryStatus"), exports);
560
+ __exportStar(require("./PlatformConfigurationBlock"), exports);
561
+ __exportStar(require("./PlatformConfigurationDto"), exports);
562
+ __exportStar(require("./PlatformConfigurationUpdatedByDto"), exports);
551
563
  __exportStar(require("./PopularCategoryDto"), exports);
552
564
  __exportStar(require("./PreviewDomainEditInput"), exports);
553
565
  __exportStar(require("./PrivateAccountGetMeResponse"), exports);
@@ -594,6 +606,7 @@ __exportStar(require("./RentDto"), exports);
594
606
  __exportStar(require("./RentIndexationDto"), exports);
595
607
  __exportStar(require("./RequestAccessTokenInput"), exports);
596
608
  __exportStar(require("./RequestEmailOtpInput"), exports);
609
+ __exportStar(require("./RequestLeadPhoneVerificationCodeInput"), exports);
597
610
  __exportStar(require("./RequestUserEmailChangeOtpInput"), exports);
598
611
  __exportStar(require("./SalesCountCommissionPayloadDto"), exports);
599
612
  __exportStar(require("./SalesCountCommissionPayloadInput"), exports);
@@ -708,6 +721,7 @@ __exportStar(require("./UpdateLeaseToOwnConfigurationDto"), exports);
708
721
  __exportStar(require("./UpdateMarketplaceInput"), exports);
709
722
  __exportStar(require("./UpdateNewsletterInput"), exports);
710
723
  __exportStar(require("./UpdateOrderInput"), exports);
724
+ __exportStar(require("./UpdatePlatformConfigurationInput"), exports);
711
725
  __exportStar(require("./UpdateRentConfigurationDto"), exports);
712
726
  __exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
713
727
  __exportStar(require("./UpdateSubscriptionBuyerInformationInput"), exports);
@@ -739,6 +753,7 @@ __exportStar(require("./ValidationError"), exports);
739
753
  __exportStar(require("./ValidationException"), exports);
740
754
  __exportStar(require("./VerifyEmailOtpInput"), exports);
741
755
  __exportStar(require("./VerifyLeadInput"), exports);
756
+ __exportStar(require("./VerifyLeadPhoneInput"), exports);
742
757
  __exportStar(require("./VerifyPhoneOtpInput"), exports);
743
758
  __exportStar(require("./WebhookAttemptTrigger"), exports);
744
759
  __exportStar(require("./WebhookDeliveriesSummaryDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.557",
3
+ "version": "0.0.559",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -81,6 +81,8 @@ import type {
81
81
  OverrideBrokeredLeadNameshiftCommissionInput,
82
82
  PaySellerInvoicesInput,
83
83
  PaymentMethodsStatsDto,
84
+ PlatformConfigurationBlock,
85
+ PlatformConfigurationDto,
84
86
  SalesStatsDto,
85
87
  SellerLeadDetails,
86
88
  SellerPayoutPreviewDto,
@@ -99,6 +101,7 @@ import type {
99
101
  UpdateFeatureFlagInput,
100
102
  UpdateMarketplaceInput,
101
103
  UpdateNewsletterInput,
104
+ UpdatePlatformConfigurationInput,
102
105
  UpdateSubscriptionBuyerInformationInput,
103
106
  ValidationException,
104
107
  } from '../models/index';
@@ -235,6 +238,10 @@ import {
235
238
  PaySellerInvoicesInputToJSON,
236
239
  PaymentMethodsStatsDtoFromJSON,
237
240
  PaymentMethodsStatsDtoToJSON,
241
+ PlatformConfigurationBlockFromJSON,
242
+ PlatformConfigurationBlockToJSON,
243
+ PlatformConfigurationDtoFromJSON,
244
+ PlatformConfigurationDtoToJSON,
238
245
  SalesStatsDtoFromJSON,
239
246
  SalesStatsDtoToJSON,
240
247
  SellerLeadDetailsFromJSON,
@@ -271,6 +278,8 @@ import {
271
278
  UpdateMarketplaceInputToJSON,
272
279
  UpdateNewsletterInputFromJSON,
273
280
  UpdateNewsletterInputToJSON,
281
+ UpdatePlatformConfigurationInputFromJSON,
282
+ UpdatePlatformConfigurationInputToJSON,
274
283
  UpdateSubscriptionBuyerInformationInputFromJSON,
275
284
  UpdateSubscriptionBuyerInformationInputToJSON,
276
285
  ValidationExceptionFromJSON,
@@ -290,6 +299,10 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
290
299
  filterStatus?: string;
291
300
  }
292
301
 
302
+ export interface AdminApiAdminGetPlatformConfigurationRequest {
303
+ name: PlatformConfigurationBlock;
304
+ }
305
+
293
306
  export interface AdminApiAdminListBrokeredLeadsRequest {
294
307
  filter?: { [key: string]: string; };
295
308
  page?: number;
@@ -317,6 +330,11 @@ export interface AdminApiAdminUpdateDomainTransferBuyerInfoRequest {
317
330
  updateAdminDomainTransferBuyerInfoInput: UpdateAdminDomainTransferBuyerInfoInput;
318
331
  }
319
332
 
333
+ export interface AdminApiAdminUpdatePlatformConfigurationRequest {
334
+ name: PlatformConfigurationBlock;
335
+ updatePlatformConfigurationInput: UpdatePlatformConfigurationInput;
336
+ }
337
+
320
338
  export interface AdminApiBulkCommissionActionsRequest {
321
339
  bulkCommissionActionsInput: BulkCommissionActionsInput;
322
340
  }
@@ -929,6 +947,49 @@ export class AdminApi extends runtime.BaseAPI {
929
947
  return await response.value();
930
948
  }
931
949
 
950
+ /**
951
+ * Returns one configuration block with its JSON Schema and its values.
952
+ * Get a platform configuration block
953
+ */
954
+ async adminGetPlatformConfigurationRaw(requestParameters: AdminApiAdminGetPlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlatformConfigurationDto>> {
955
+ if (requestParameters['name'] == null) {
956
+ throw new runtime.RequiredError(
957
+ 'name',
958
+ 'Required parameter "name" was null or undefined when calling adminGetPlatformConfiguration().'
959
+ );
960
+ }
961
+
962
+ const queryParameters: any = {};
963
+
964
+ const headerParameters: runtime.HTTPHeaders = {};
965
+
966
+ if (this.configuration && this.configuration.accessToken) {
967
+ const token = this.configuration.accessToken;
968
+ const tokenString = await token("bearer", []);
969
+
970
+ if (tokenString) {
971
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
972
+ }
973
+ }
974
+ const response = await this.request({
975
+ path: `/admin/platform-configurations/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))),
976
+ method: 'GET',
977
+ headers: headerParameters,
978
+ query: queryParameters,
979
+ }, initOverrides);
980
+
981
+ return new runtime.JSONApiResponse(response, (jsonValue) => PlatformConfigurationDtoFromJSON(jsonValue));
982
+ }
983
+
984
+ /**
985
+ * Returns one configuration block with its JSON Schema and its values.
986
+ * Get a platform configuration block
987
+ */
988
+ async adminGetPlatformConfiguration(requestParameters: AdminApiAdminGetPlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlatformConfigurationDto> {
989
+ const response = await this.adminGetPlatformConfigurationRaw(requestParameters, initOverrides);
990
+ return await response.value();
991
+ }
992
+
932
993
  /**
933
994
  * List all brokered deals
934
995
  */
@@ -999,6 +1060,42 @@ export class AdminApi extends runtime.BaseAPI {
999
1060
  return await response.value();
1000
1061
  }
1001
1062
 
1063
+ /**
1064
+ * Lists every configuration block with its JSON Schema and its values.
1065
+ * List platform configuration blocks
1066
+ */
1067
+ async adminListPlatformConfigurationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PlatformConfigurationDto>>> {
1068
+ const queryParameters: any = {};
1069
+
1070
+ const headerParameters: runtime.HTTPHeaders = {};
1071
+
1072
+ if (this.configuration && this.configuration.accessToken) {
1073
+ const token = this.configuration.accessToken;
1074
+ const tokenString = await token("bearer", []);
1075
+
1076
+ if (tokenString) {
1077
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1078
+ }
1079
+ }
1080
+ const response = await this.request({
1081
+ path: `/admin/platform-configurations`,
1082
+ method: 'GET',
1083
+ headers: headerParameters,
1084
+ query: queryParameters,
1085
+ }, initOverrides);
1086
+
1087
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PlatformConfigurationDtoFromJSON));
1088
+ }
1089
+
1090
+ /**
1091
+ * Lists every configuration block with its JSON Schema and its values.
1092
+ * List platform configuration blocks
1093
+ */
1094
+ async adminListPlatformConfigurations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlatformConfigurationDto>> {
1095
+ const response = await this.adminListPlatformConfigurationsRaw(initOverrides);
1096
+ return await response.value();
1097
+ }
1098
+
1002
1099
  /**
1003
1100
  * Overrides the platform fee charged to the broker, e.g. for a high value deal. Only until the buyer has paid, and never above the broker commission.
1004
1101
  * Set a custom platform fee for a brokered deal
@@ -1155,6 +1252,58 @@ export class AdminApi extends runtime.BaseAPI {
1155
1252
  await this.adminUpdateDomainTransferBuyerInfoRaw(requestParameters, initOverrides);
1156
1253
  }
1157
1254
 
1255
+ /**
1256
+ * Replaces the values of a configuration block.
1257
+ * Save a platform configuration block
1258
+ */
1259
+ async adminUpdatePlatformConfigurationRaw(requestParameters: AdminApiAdminUpdatePlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1260
+ if (requestParameters['name'] == null) {
1261
+ throw new runtime.RequiredError(
1262
+ 'name',
1263
+ 'Required parameter "name" was null or undefined when calling adminUpdatePlatformConfiguration().'
1264
+ );
1265
+ }
1266
+
1267
+ if (requestParameters['updatePlatformConfigurationInput'] == null) {
1268
+ throw new runtime.RequiredError(
1269
+ 'updatePlatformConfigurationInput',
1270
+ 'Required parameter "updatePlatformConfigurationInput" was null or undefined when calling adminUpdatePlatformConfiguration().'
1271
+ );
1272
+ }
1273
+
1274
+ const queryParameters: any = {};
1275
+
1276
+ const headerParameters: runtime.HTTPHeaders = {};
1277
+
1278
+ headerParameters['Content-Type'] = 'application/json';
1279
+
1280
+ if (this.configuration && this.configuration.accessToken) {
1281
+ const token = this.configuration.accessToken;
1282
+ const tokenString = await token("bearer", []);
1283
+
1284
+ if (tokenString) {
1285
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1286
+ }
1287
+ }
1288
+ const response = await this.request({
1289
+ path: `/admin/platform-configurations/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))),
1290
+ method: 'PUT',
1291
+ headers: headerParameters,
1292
+ query: queryParameters,
1293
+ body: UpdatePlatformConfigurationInputToJSON(requestParameters['updatePlatformConfigurationInput']),
1294
+ }, initOverrides);
1295
+
1296
+ return new runtime.VoidApiResponse(response);
1297
+ }
1298
+
1299
+ /**
1300
+ * Replaces the values of a configuration block.
1301
+ * Save a platform configuration block
1302
+ */
1303
+ async adminUpdatePlatformConfiguration(requestParameters: AdminApiAdminUpdatePlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1304
+ await this.adminUpdatePlatformConfigurationRaw(requestParameters, initOverrides);
1305
+ }
1306
+
1158
1307
  /**
1159
1308
  * Executes multiple commission add, update, or delete actions in a single request.
1160
1309
  * Bulk commission actions
@@ -314,6 +314,7 @@ export interface BuyersApiRegisterRequest {
314
314
 
315
315
  export interface BuyersApiRegisterPhoneRequest {
316
316
  registerAuctionBuyerPhoneInput: RegisterAuctionBuyerPhoneInput;
317
+ xRecaptchaToken?: string;
317
318
  }
318
319
 
319
320
  export interface BuyersApiRemoveSubscriptionDomainRecordRequest {
@@ -1999,7 +2000,7 @@ export class BuyersApi extends runtime.BaseAPI {
1999
2000
  }
2000
2001
 
2001
2002
  /**
2002
- * Initiates phone number verification for the auction buyer via SMS or WhatsApp.
2003
+ * Initiates phone number verification for the auction buyer, on the channels of the platform configuration.
2003
2004
  * Register auction buyer phone
2004
2005
  */
2005
2006
  async registerPhoneRaw(requestParameters: BuyersApiRegisterPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -2016,6 +2017,10 @@ export class BuyersApi extends runtime.BaseAPI {
2016
2017
 
2017
2018
  headerParameters['Content-Type'] = 'application/json';
2018
2019
 
2020
+ if (requestParameters['xRecaptchaToken'] != null) {
2021
+ headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
2022
+ }
2023
+
2019
2024
  if (this.configuration && this.configuration.accessToken) {
2020
2025
  const token = this.configuration.accessToken;
2021
2026
  const tokenString = await token("bearer", []);
@@ -2036,7 +2041,7 @@ export class BuyersApi extends runtime.BaseAPI {
2036
2041
  }
2037
2042
 
2038
2043
  /**
2039
- * Initiates phone number verification for the auction buyer via SMS or WhatsApp.
2044
+ * Initiates phone number verification for the auction buyer, on the channels of the platform configuration.
2040
2045
  * Register auction buyer phone
2041
2046
  */
2042
2047
  async registerPhone(requestParameters: BuyersApiRegisterPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {