@randock/nameshift-api-client 0.0.557 → 0.0.558

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,35 @@
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
+ * Why no code can be sent.
14
+ * @export
15
+ */
16
+ export declare const LeadPhoneVerificationReason: {
17
+ readonly COOLDOWN: "cooldown";
18
+ readonly PHONE_HOURLY_CAP: "phone_hourly_cap";
19
+ readonly LEAD_CAP: "lead_cap";
20
+ readonly PHONE_DAILY_CAP: "phone_daily_cap";
21
+ readonly PHONE_LEADS_CAP: "phone_leads_cap";
22
+ readonly GLOBAL_CAP: "global_cap";
23
+ readonly NO_PHONE_NUMBER: "no_phone_number";
24
+ readonly INVALID_NUMBER: "invalid_number";
25
+ readonly COUNTRY_NOT_ALLOWED: "country_not_allowed";
26
+ readonly NUMBER_TYPE_NOT_ALLOWED: "number_type_not_allowed";
27
+ readonly ATTEMPTS_EXCEEDED: "attempts_exceeded";
28
+ readonly REJECTED_BY_PROVIDER: "rejected_by_provider";
29
+ };
30
+ export type LeadPhoneVerificationReason = typeof LeadPhoneVerificationReason[keyof typeof LeadPhoneVerificationReason];
31
+ export declare function instanceOfLeadPhoneVerificationReason(value: any): boolean;
32
+ export declare function LeadPhoneVerificationReasonFromJSON(json: any): LeadPhoneVerificationReason;
33
+ export declare function LeadPhoneVerificationReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationReason;
34
+ export declare function LeadPhoneVerificationReasonToJSON(value?: LeadPhoneVerificationReason | null): any;
35
+ export declare function LeadPhoneVerificationReasonToJSONTyped(value: any, ignoreDiscriminator: boolean): LeadPhoneVerificationReason;
@@ -0,0 +1,61 @@
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.LeadPhoneVerificationReason = void 0;
17
+ exports.instanceOfLeadPhoneVerificationReason = instanceOfLeadPhoneVerificationReason;
18
+ exports.LeadPhoneVerificationReasonFromJSON = LeadPhoneVerificationReasonFromJSON;
19
+ exports.LeadPhoneVerificationReasonFromJSONTyped = LeadPhoneVerificationReasonFromJSONTyped;
20
+ exports.LeadPhoneVerificationReasonToJSON = LeadPhoneVerificationReasonToJSON;
21
+ exports.LeadPhoneVerificationReasonToJSONTyped = LeadPhoneVerificationReasonToJSONTyped;
22
+ /**
23
+ * Why no code can be sent.
24
+ * @export
25
+ */
26
+ exports.LeadPhoneVerificationReason = {
27
+ COOLDOWN: 'cooldown',
28
+ PHONE_HOURLY_CAP: 'phone_hourly_cap',
29
+ LEAD_CAP: 'lead_cap',
30
+ PHONE_DAILY_CAP: 'phone_daily_cap',
31
+ PHONE_LEADS_CAP: 'phone_leads_cap',
32
+ GLOBAL_CAP: 'global_cap',
33
+ NO_PHONE_NUMBER: 'no_phone_number',
34
+ INVALID_NUMBER: 'invalid_number',
35
+ COUNTRY_NOT_ALLOWED: 'country_not_allowed',
36
+ NUMBER_TYPE_NOT_ALLOWED: 'number_type_not_allowed',
37
+ ATTEMPTS_EXCEEDED: 'attempts_exceeded',
38
+ REJECTED_BY_PROVIDER: 'rejected_by_provider'
39
+ };
40
+ function instanceOfLeadPhoneVerificationReason(value) {
41
+ for (var key in exports.LeadPhoneVerificationReason) {
42
+ if (Object.prototype.hasOwnProperty.call(exports.LeadPhoneVerificationReason, key)) {
43
+ if (exports.LeadPhoneVerificationReason[key] === value) {
44
+ return true;
45
+ }
46
+ }
47
+ }
48
+ return false;
49
+ }
50
+ function LeadPhoneVerificationReasonFromJSON(json) {
51
+ return LeadPhoneVerificationReasonFromJSONTyped(json, false);
52
+ }
53
+ function LeadPhoneVerificationReasonFromJSONTyped(json, ignoreDiscriminator) {
54
+ return json;
55
+ }
56
+ function LeadPhoneVerificationReasonToJSON(value) {
57
+ return value;
58
+ }
59
+ function LeadPhoneVerificationReasonToJSONTyped(value, ignoreDiscriminator) {
60
+ return value;
61
+ }
@@ -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 LeadPhoneVerificationSummaryDto
16
+ */
17
+ export interface LeadPhoneVerificationSummaryDto {
18
+ /**
19
+ * When the buyer confirmed their phone number.
20
+ * @type {Date}
21
+ * @memberof LeadPhoneVerificationSummaryDto
22
+ */
23
+ verifiedAt: Date;
24
+ }
25
+ /**
26
+ * Check if a given object implements the LeadPhoneVerificationSummaryDto interface.
27
+ */
28
+ export declare function instanceOfLeadPhoneVerificationSummaryDto(value: object): value is LeadPhoneVerificationSummaryDto;
29
+ export declare function LeadPhoneVerificationSummaryDtoFromJSON(json: any): LeadPhoneVerificationSummaryDto;
30
+ export declare function LeadPhoneVerificationSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationSummaryDto;
31
+ export declare function LeadPhoneVerificationSummaryDtoToJSON(json: any): LeadPhoneVerificationSummaryDto;
32
+ export declare function LeadPhoneVerificationSummaryDtoToJSONTyped(value?: LeadPhoneVerificationSummaryDto | 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.instanceOfLeadPhoneVerificationSummaryDto = instanceOfLeadPhoneVerificationSummaryDto;
17
+ exports.LeadPhoneVerificationSummaryDtoFromJSON = LeadPhoneVerificationSummaryDtoFromJSON;
18
+ exports.LeadPhoneVerificationSummaryDtoFromJSONTyped = LeadPhoneVerificationSummaryDtoFromJSONTyped;
19
+ exports.LeadPhoneVerificationSummaryDtoToJSON = LeadPhoneVerificationSummaryDtoToJSON;
20
+ exports.LeadPhoneVerificationSummaryDtoToJSONTyped = LeadPhoneVerificationSummaryDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadPhoneVerificationSummaryDto interface.
23
+ */
24
+ function instanceOfLeadPhoneVerificationSummaryDto(value) {
25
+ if (!('verifiedAt' in value) || value['verifiedAt'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function LeadPhoneVerificationSummaryDtoFromJSON(json) {
30
+ return LeadPhoneVerificationSummaryDtoFromJSONTyped(json, false);
31
+ }
32
+ function LeadPhoneVerificationSummaryDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'verifiedAt': (new Date(json['verifiedAt'])),
38
+ };
39
+ }
40
+ function LeadPhoneVerificationSummaryDtoToJSON(json) {
41
+ return LeadPhoneVerificationSummaryDtoToJSONTyped(json, false);
42
+ }
43
+ function LeadPhoneVerificationSummaryDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'verifiedAt': ((value['verifiedAt']).toISOString()),
50
+ };
51
+ }
@@ -0,0 +1,51 @@
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 { LeadPhoneVerificationReason } from './LeadPhoneVerificationReason';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeadPhoneVerificationTooSoonOutput
17
+ */
18
+ export interface LeadPhoneVerificationTooSoonOutput {
19
+ /**
20
+ * Exception name.
21
+ * @type {string}
22
+ * @memberof LeadPhoneVerificationTooSoonOutput
23
+ */
24
+ name: string;
25
+ /**
26
+ * HTTP status code.
27
+ * @type {number}
28
+ * @memberof LeadPhoneVerificationTooSoonOutput
29
+ */
30
+ statusCode: number;
31
+ /**
32
+ * Why no code can be sent now.
33
+ * @type {LeadPhoneVerificationReason}
34
+ * @memberof LeadPhoneVerificationTooSoonOutput
35
+ */
36
+ reason: LeadPhoneVerificationReason;
37
+ /**
38
+ * Seconds to wait before asking again.
39
+ * @type {number}
40
+ * @memberof LeadPhoneVerificationTooSoonOutput
41
+ */
42
+ retryAfterSeconds: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the LeadPhoneVerificationTooSoonOutput interface.
46
+ */
47
+ export declare function instanceOfLeadPhoneVerificationTooSoonOutput(value: object): value is LeadPhoneVerificationTooSoonOutput;
48
+ export declare function LeadPhoneVerificationTooSoonOutputFromJSON(json: any): LeadPhoneVerificationTooSoonOutput;
49
+ export declare function LeadPhoneVerificationTooSoonOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationTooSoonOutput;
50
+ export declare function LeadPhoneVerificationTooSoonOutputToJSON(json: any): LeadPhoneVerificationTooSoonOutput;
51
+ export declare function LeadPhoneVerificationTooSoonOutputToJSONTyped(value?: LeadPhoneVerificationTooSoonOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfLeadPhoneVerificationTooSoonOutput = instanceOfLeadPhoneVerificationTooSoonOutput;
17
+ exports.LeadPhoneVerificationTooSoonOutputFromJSON = LeadPhoneVerificationTooSoonOutputFromJSON;
18
+ exports.LeadPhoneVerificationTooSoonOutputFromJSONTyped = LeadPhoneVerificationTooSoonOutputFromJSONTyped;
19
+ exports.LeadPhoneVerificationTooSoonOutputToJSON = LeadPhoneVerificationTooSoonOutputToJSON;
20
+ exports.LeadPhoneVerificationTooSoonOutputToJSONTyped = LeadPhoneVerificationTooSoonOutputToJSONTyped;
21
+ var LeadPhoneVerificationReason_1 = require("./LeadPhoneVerificationReason");
22
+ /**
23
+ * Check if a given object implements the LeadPhoneVerificationTooSoonOutput interface.
24
+ */
25
+ function instanceOfLeadPhoneVerificationTooSoonOutput(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
29
+ return false;
30
+ if (!('reason' in value) || value['reason'] === undefined)
31
+ return false;
32
+ if (!('retryAfterSeconds' in value) || value['retryAfterSeconds'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function LeadPhoneVerificationTooSoonOutputFromJSON(json) {
37
+ return LeadPhoneVerificationTooSoonOutputFromJSONTyped(json, false);
38
+ }
39
+ function LeadPhoneVerificationTooSoonOutputFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'statusCode': json['statusCode'],
46
+ 'reason': (0, LeadPhoneVerificationReason_1.LeadPhoneVerificationReasonFromJSON)(json['reason']),
47
+ 'retryAfterSeconds': json['retryAfterSeconds'],
48
+ };
49
+ }
50
+ function LeadPhoneVerificationTooSoonOutputToJSON(json) {
51
+ return LeadPhoneVerificationTooSoonOutputToJSONTyped(json, false);
52
+ }
53
+ function LeadPhoneVerificationTooSoonOutputToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'name': value['name'],
60
+ 'statusCode': value['statusCode'],
61
+ 'reason': (0, LeadPhoneVerificationReason_1.LeadPhoneVerificationReasonToJSON)(value['reason']),
62
+ 'retryAfterSeconds': value['retryAfterSeconds'],
63
+ };
64
+ }
@@ -0,0 +1,51 @@
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 { LeadPhoneVerificationReason } from './LeadPhoneVerificationReason';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeadPhoneVerificationUnavailableOutput
17
+ */
18
+ export interface LeadPhoneVerificationUnavailableOutput {
19
+ /**
20
+ * Exception name.
21
+ * @type {string}
22
+ * @memberof LeadPhoneVerificationUnavailableOutput
23
+ */
24
+ name: string;
25
+ /**
26
+ * HTTP status code.
27
+ * @type {number}
28
+ * @memberof LeadPhoneVerificationUnavailableOutput
29
+ */
30
+ statusCode: number;
31
+ /**
32
+ * Error code.
33
+ * @type {string}
34
+ * @memberof LeadPhoneVerificationUnavailableOutput
35
+ */
36
+ code: string;
37
+ /**
38
+ * Why no code can be sent.
39
+ * @type {LeadPhoneVerificationReason}
40
+ * @memberof LeadPhoneVerificationUnavailableOutput
41
+ */
42
+ reason: LeadPhoneVerificationReason;
43
+ }
44
+ /**
45
+ * Check if a given object implements the LeadPhoneVerificationUnavailableOutput interface.
46
+ */
47
+ export declare function instanceOfLeadPhoneVerificationUnavailableOutput(value: object): value is LeadPhoneVerificationUnavailableOutput;
48
+ export declare function LeadPhoneVerificationUnavailableOutputFromJSON(json: any): LeadPhoneVerificationUnavailableOutput;
49
+ export declare function LeadPhoneVerificationUnavailableOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationUnavailableOutput;
50
+ export declare function LeadPhoneVerificationUnavailableOutputToJSON(json: any): LeadPhoneVerificationUnavailableOutput;
51
+ export declare function LeadPhoneVerificationUnavailableOutputToJSONTyped(value?: LeadPhoneVerificationUnavailableOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfLeadPhoneVerificationUnavailableOutput = instanceOfLeadPhoneVerificationUnavailableOutput;
17
+ exports.LeadPhoneVerificationUnavailableOutputFromJSON = LeadPhoneVerificationUnavailableOutputFromJSON;
18
+ exports.LeadPhoneVerificationUnavailableOutputFromJSONTyped = LeadPhoneVerificationUnavailableOutputFromJSONTyped;
19
+ exports.LeadPhoneVerificationUnavailableOutputToJSON = LeadPhoneVerificationUnavailableOutputToJSON;
20
+ exports.LeadPhoneVerificationUnavailableOutputToJSONTyped = LeadPhoneVerificationUnavailableOutputToJSONTyped;
21
+ var LeadPhoneVerificationReason_1 = require("./LeadPhoneVerificationReason");
22
+ /**
23
+ * Check if a given object implements the LeadPhoneVerificationUnavailableOutput interface.
24
+ */
25
+ function instanceOfLeadPhoneVerificationUnavailableOutput(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
29
+ return false;
30
+ if (!('code' in value) || value['code'] === undefined)
31
+ return false;
32
+ if (!('reason' in value) || value['reason'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function LeadPhoneVerificationUnavailableOutputFromJSON(json) {
37
+ return LeadPhoneVerificationUnavailableOutputFromJSONTyped(json, false);
38
+ }
39
+ function LeadPhoneVerificationUnavailableOutputFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'statusCode': json['statusCode'],
46
+ 'code': json['code'],
47
+ 'reason': (0, LeadPhoneVerificationReason_1.LeadPhoneVerificationReasonFromJSON)(json['reason']),
48
+ };
49
+ }
50
+ function LeadPhoneVerificationUnavailableOutputToJSON(json) {
51
+ return LeadPhoneVerificationUnavailableOutputToJSONTyped(json, false);
52
+ }
53
+ function LeadPhoneVerificationUnavailableOutputToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'name': value['name'],
60
+ 'statusCode': value['statusCode'],
61
+ 'code': value['code'],
62
+ 'reason': (0, LeadPhoneVerificationReason_1.LeadPhoneVerificationReasonToJSON)(value['reason']),
63
+ };
64
+ }
@@ -0,0 +1,40 @@
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 { LeadEmailVerificationDto } from './LeadEmailVerificationDto';
13
+ import type { LeadPhoneVerificationDto } from './LeadPhoneVerificationDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface LeadVerificationDto
18
+ */
19
+ export interface LeadVerificationDto {
20
+ /**
21
+ *
22
+ * @type {LeadEmailVerificationDto}
23
+ * @memberof LeadVerificationDto
24
+ */
25
+ email: LeadEmailVerificationDto;
26
+ /**
27
+ *
28
+ * @type {LeadPhoneVerificationDto}
29
+ * @memberof LeadVerificationDto
30
+ */
31
+ phone: LeadPhoneVerificationDto;
32
+ }
33
+ /**
34
+ * Check if a given object implements the LeadVerificationDto interface.
35
+ */
36
+ export declare function instanceOfLeadVerificationDto(value: object): value is LeadVerificationDto;
37
+ export declare function LeadVerificationDtoFromJSON(json: any): LeadVerificationDto;
38
+ export declare function LeadVerificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadVerificationDto;
39
+ export declare function LeadVerificationDtoToJSON(json: any): LeadVerificationDto;
40
+ export declare function LeadVerificationDtoToJSONTyped(value?: LeadVerificationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfLeadVerificationDto = instanceOfLeadVerificationDto;
17
+ exports.LeadVerificationDtoFromJSON = LeadVerificationDtoFromJSON;
18
+ exports.LeadVerificationDtoFromJSONTyped = LeadVerificationDtoFromJSONTyped;
19
+ exports.LeadVerificationDtoToJSON = LeadVerificationDtoToJSON;
20
+ exports.LeadVerificationDtoToJSONTyped = LeadVerificationDtoToJSONTyped;
21
+ var LeadEmailVerificationDto_1 = require("./LeadEmailVerificationDto");
22
+ var LeadPhoneVerificationDto_1 = require("./LeadPhoneVerificationDto");
23
+ /**
24
+ * Check if a given object implements the LeadVerificationDto interface.
25
+ */
26
+ function instanceOfLeadVerificationDto(value) {
27
+ if (!('email' in value) || value['email'] === undefined)
28
+ return false;
29
+ if (!('phone' in value) || value['phone'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function LeadVerificationDtoFromJSON(json) {
34
+ return LeadVerificationDtoFromJSONTyped(json, false);
35
+ }
36
+ function LeadVerificationDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'email': (0, LeadEmailVerificationDto_1.LeadEmailVerificationDtoFromJSON)(json['email']),
42
+ 'phone': (0, LeadPhoneVerificationDto_1.LeadPhoneVerificationDtoFromJSON)(json['phone']),
43
+ };
44
+ }
45
+ function LeadVerificationDtoToJSON(json) {
46
+ return LeadVerificationDtoToJSONTyped(json, false);
47
+ }
48
+ function LeadVerificationDtoToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'email': (0, LeadEmailVerificationDto_1.LeadEmailVerificationDtoToJSON)(value['email']),
55
+ 'phone': (0, LeadPhoneVerificationDto_1.LeadPhoneVerificationDtoToJSON)(value['phone']),
56
+ };
57
+ }
@@ -34,6 +34,30 @@ export interface LeadVerificationInput {
34
34
  * @memberof LeadVerificationInput
35
35
  */
36
36
  otpUpperBound?: MoneyDto | null;
37
+ /**
38
+ * Whether the buyer confirms their phone number by WhatsApp or SMS. Null on a domain inherits the account value.
39
+ * @type {boolean}
40
+ * @memberof LeadVerificationInput
41
+ */
42
+ phoneOtp?: boolean | null;
43
+ /**
44
+ * Whether the email code is asked for next to the phone code. Null on a domain inherits the account value.
45
+ * @type {boolean}
46
+ * @memberof LeadVerificationInput
47
+ */
48
+ emailOtpWithPhone?: boolean | null;
49
+ /**
50
+ * Hybrid mode: offers below this amount require the phone code. Null leaves the lower side open on an account, or inherits it on a domain.
51
+ * @type {MoneyDto}
52
+ * @memberof LeadVerificationInput
53
+ */
54
+ phoneOtpLowerBound?: MoneyDto | null;
55
+ /**
56
+ * Hybrid mode: offers above this amount require the phone code. Null leaves the upper side open on an account, or inherits it on a domain.
57
+ * @type {MoneyDto}
58
+ * @memberof LeadVerificationInput
59
+ */
60
+ phoneOtpUpperBound?: MoneyDto | null;
37
61
  }
38
62
  /**
39
63
  * @export
@@ -45,6 +45,10 @@ function LeadVerificationInputFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'mode': json['mode'] == null ? undefined : json['mode'],
46
46
  'otpLowerBound': json['otpLowerBound'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['otpLowerBound']),
47
47
  'otpUpperBound': json['otpUpperBound'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['otpUpperBound']),
48
+ 'phoneOtp': json['phoneOtp'] == null ? undefined : json['phoneOtp'],
49
+ 'emailOtpWithPhone': json['emailOtpWithPhone'] == null ? undefined : json['emailOtpWithPhone'],
50
+ 'phoneOtpLowerBound': json['phoneOtpLowerBound'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['phoneOtpLowerBound']),
51
+ 'phoneOtpUpperBound': json['phoneOtpUpperBound'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['phoneOtpUpperBound']),
48
52
  };
49
53
  }
50
54
  function LeadVerificationInputToJSON(json) {
@@ -59,5 +63,9 @@ function LeadVerificationInputToJSONTyped(value, ignoreDiscriminator) {
59
63
  'mode': value['mode'],
60
64
  'otpLowerBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['otpLowerBound']),
61
65
  'otpUpperBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['otpUpperBound']),
66
+ 'phoneOtp': value['phoneOtp'],
67
+ 'emailOtpWithPhone': value['emailOtpWithPhone'],
68
+ 'phoneOtpLowerBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['phoneOtpLowerBound']),
69
+ 'phoneOtpUpperBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['phoneOtpUpperBound']),
62
70
  };
63
71
  }
@@ -34,6 +34,30 @@ export interface LeadVerificationSettingsDto {
34
34
  * @memberof LeadVerificationSettingsDto
35
35
  */
36
36
  otpUpperBound: MoneyDto | null;
37
+ /**
38
+ * Whether the buyer confirms their phone number by WhatsApp or SMS. Null on a domain inherits the account value.
39
+ * @type {boolean}
40
+ * @memberof LeadVerificationSettingsDto
41
+ */
42
+ phoneOtp: boolean | null;
43
+ /**
44
+ * Whether the email code is asked for next to the phone code. Null on a domain inherits the account value.
45
+ * @type {boolean}
46
+ * @memberof LeadVerificationSettingsDto
47
+ */
48
+ emailOtpWithPhone: boolean | null;
49
+ /**
50
+ * Hybrid mode: offers below this amount require the phone code. Null leaves that side open (account) or inherits it (domain).
51
+ * @type {MoneyDto}
52
+ * @memberof LeadVerificationSettingsDto
53
+ */
54
+ phoneOtpLowerBound: MoneyDto | null;
55
+ /**
56
+ * Hybrid mode: offers above this amount require the phone code. Null leaves that side open (account) or inherits it (domain).
57
+ * @type {MoneyDto}
58
+ * @memberof LeadVerificationSettingsDto
59
+ */
60
+ phoneOtpUpperBound: MoneyDto | null;
37
61
  }
38
62
  /**
39
63
  * @export
@@ -38,6 +38,14 @@ function instanceOfLeadVerificationSettingsDto(value) {
38
38
  return false;
39
39
  if (!('otpUpperBound' in value) || value['otpUpperBound'] === undefined)
40
40
  return false;
41
+ if (!('phoneOtp' in value) || value['phoneOtp'] === undefined)
42
+ return false;
43
+ if (!('emailOtpWithPhone' in value) || value['emailOtpWithPhone'] === undefined)
44
+ return false;
45
+ if (!('phoneOtpLowerBound' in value) || value['phoneOtpLowerBound'] === undefined)
46
+ return false;
47
+ if (!('phoneOtpUpperBound' in value) || value['phoneOtpUpperBound'] === undefined)
48
+ return false;
41
49
  return true;
42
50
  }
43
51
  function LeadVerificationSettingsDtoFromJSON(json) {
@@ -51,6 +59,10 @@ function LeadVerificationSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
51
59
  'mode': json['mode'],
52
60
  'otpLowerBound': (0, MoneyDto_1.MoneyDtoFromJSON)(json['otpLowerBound']),
53
61
  'otpUpperBound': (0, MoneyDto_1.MoneyDtoFromJSON)(json['otpUpperBound']),
62
+ 'phoneOtp': json['phoneOtp'],
63
+ 'emailOtpWithPhone': json['emailOtpWithPhone'],
64
+ 'phoneOtpLowerBound': (0, MoneyDto_1.MoneyDtoFromJSON)(json['phoneOtpLowerBound']),
65
+ 'phoneOtpUpperBound': (0, MoneyDto_1.MoneyDtoFromJSON)(json['phoneOtpUpperBound']),
54
66
  };
55
67
  }
56
68
  function LeadVerificationSettingsDtoToJSON(json) {
@@ -65,5 +77,9 @@ function LeadVerificationSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
65
77
  'mode': value['mode'],
66
78
  'otpLowerBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['otpLowerBound']),
67
79
  'otpUpperBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['otpUpperBound']),
80
+ 'phoneOtp': value['phoneOtp'],
81
+ 'emailOtpWithPhone': value['emailOtpWithPhone'],
82
+ 'phoneOtpLowerBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['phoneOtpLowerBound']),
83
+ 'phoneOtpUpperBound': (0, MoneyDto_1.MoneyDtoToJSON)(value['phoneOtpUpperBound']),
68
84
  };
69
85
  }
@@ -14,6 +14,7 @@ import type { LeadMessageData } from './LeadMessageData';
14
14
  import type { LeadBrokeredDealDto } from './LeadBrokeredDealDto';
15
15
  import type { LeadDomainDto } from './LeadDomainDto';
16
16
  import type { MoneyDto } from './MoneyDto';
17
+ import type { LeadPhoneVerificationSummaryDto } from './LeadPhoneVerificationSummaryDto';
17
18
  import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
18
19
  import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
19
20
  import type { LeadOfferDto } from './LeadOfferDto';
@@ -167,6 +168,12 @@ export interface ListLeadsResultItem {
167
168
  * @memberof ListLeadsResultItem
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 ListLeadsResultItem
175
+ */
176
+ phoneVerification: LeadPhoneVerificationSummaryDto | null;
170
177
  /**
171
178
  * Buyer initials derived from the buyer name.
172
179
  * @type {string}