@randock/nameshift-api-client 0.0.561 → 0.0.563

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 (54) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +3 -3
  3. package/dist/apis/BuyersApi.d.ts +14 -1
  4. package/dist/apis/BuyersApi.js +57 -0
  5. package/dist/apis/BuyersPublicApi.d.ts +100 -1
  6. package/dist/apis/BuyersPublicApi.js +426 -0
  7. package/dist/apis/LeadsPublicApi.d.ts +5 -5
  8. package/dist/apis/LeadsPublicApi.js +6 -4
  9. package/dist/models/BuyerCheckoutProfileDto.d.ts +116 -0
  10. package/dist/models/BuyerCheckoutProfileDto.js +107 -0
  11. package/dist/models/BuyerCheckoutProfileSummaryDto.d.ts +74 -0
  12. package/dist/models/BuyerCheckoutProfileSummaryDto.js +79 -0
  13. package/dist/models/BuyerLandingSessionOutput.d.ts +68 -0
  14. package/dist/models/BuyerLandingSessionOutput.js +75 -0
  15. package/dist/models/BuyerSessionEstablishTicketOutput.d.ts +32 -0
  16. package/dist/models/BuyerSessionEstablishTicketOutput.js +51 -0
  17. package/dist/models/BuyerSessionPurchaseTypeEnum.d.ts +26 -0
  18. package/dist/models/BuyerSessionPurchaseTypeEnum.js +52 -0
  19. package/dist/models/CreateBuyerSessionEstablishTicketInput.d.ts +38 -0
  20. package/dist/models/CreateBuyerSessionEstablishTicketInput.js +55 -0
  21. package/dist/models/CreateBuyerSessionFromPurchaseInput.d.ts +39 -0
  22. package/dist/models/CreateBuyerSessionFromPurchaseInput.js +56 -0
  23. package/dist/models/CreateDashboardBuyerSessionInput.d.ts +32 -0
  24. package/dist/models/CreateDashboardBuyerSessionInput.js +51 -0
  25. package/dist/models/ExchangeBuyerSessionCodeInput.d.ts +38 -0
  26. package/dist/models/ExchangeBuyerSessionCodeInput.js +55 -0
  27. package/dist/models/LeadEmailVerificationResultOutput.d.ts +33 -0
  28. package/dist/models/LeadEmailVerificationResultOutput.js +52 -0
  29. package/dist/models/LeadPhoneVerificationResultOutput.d.ts +47 -0
  30. package/dist/models/LeadPhoneVerificationResultOutput.js +62 -0
  31. package/dist/models/PrivateAccountGetMeResponse.d.ts +6 -0
  32. package/dist/models/PrivateAccountGetMeResponse.js +4 -0
  33. package/dist/models/VerifyBuyerSessionEmailOtpInput.d.ts +32 -0
  34. package/dist/models/VerifyBuyerSessionEmailOtpInput.js +51 -0
  35. package/dist/models/index.d.ts +12 -0
  36. package/dist/models/index.js +12 -0
  37. package/package.json +1 -1
  38. package/src/apis/BuyersApi.ts +56 -0
  39. package/src/apis/BuyersPublicApi.ts +378 -0
  40. package/src/apis/LeadsPublicApi.ts +14 -7
  41. package/src/models/BuyerCheckoutProfileDto.ts +192 -0
  42. package/src/models/BuyerCheckoutProfileSummaryDto.ts +129 -0
  43. package/src/models/BuyerLandingSessionOutput.ts +120 -0
  44. package/src/models/BuyerSessionEstablishTicketOutput.ts +66 -0
  45. package/src/models/BuyerSessionPurchaseTypeEnum.ts +54 -0
  46. package/src/models/CreateBuyerSessionEstablishTicketInput.ts +75 -0
  47. package/src/models/CreateBuyerSessionFromPurchaseInput.ts +85 -0
  48. package/src/models/CreateDashboardBuyerSessionInput.ts +66 -0
  49. package/src/models/ExchangeBuyerSessionCodeInput.ts +75 -0
  50. package/src/models/LeadEmailVerificationResultOutput.ts +74 -0
  51. package/src/models/LeadPhoneVerificationResultOutput.ts +106 -0
  52. package/src/models/PrivateAccountGetMeResponse.ts +9 -0
  53. package/src/models/VerifyBuyerSessionEmailOtpInput.ts +66 -0
  54. package/src/models/index.ts +12 -0
@@ -0,0 +1,39 @@
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 { BuyerSessionPurchaseTypeEnum } from './BuyerSessionPurchaseTypeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateBuyerSessionFromPurchaseInput
17
+ */
18
+ export interface CreateBuyerSessionFromPurchaseInput {
19
+ /**
20
+ * Kind of purchase the buyer just paid.
21
+ * @type {BuyerSessionPurchaseTypeEnum}
22
+ * @memberof CreateBuyerSessionFromPurchaseInput
23
+ */
24
+ type: BuyerSessionPurchaseTypeEnum;
25
+ /**
26
+ * Identifier of the purchase.
27
+ * @type {string}
28
+ * @memberof CreateBuyerSessionFromPurchaseInput
29
+ */
30
+ id: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CreateBuyerSessionFromPurchaseInput interface.
34
+ */
35
+ export declare function instanceOfCreateBuyerSessionFromPurchaseInput(value: object): value is CreateBuyerSessionFromPurchaseInput;
36
+ export declare function CreateBuyerSessionFromPurchaseInputFromJSON(json: any): CreateBuyerSessionFromPurchaseInput;
37
+ export declare function CreateBuyerSessionFromPurchaseInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerSessionFromPurchaseInput;
38
+ export declare function CreateBuyerSessionFromPurchaseInputToJSON(json: any): CreateBuyerSessionFromPurchaseInput;
39
+ export declare function CreateBuyerSessionFromPurchaseInputToJSONTyped(value?: CreateBuyerSessionFromPurchaseInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfCreateBuyerSessionFromPurchaseInput = instanceOfCreateBuyerSessionFromPurchaseInput;
17
+ exports.CreateBuyerSessionFromPurchaseInputFromJSON = CreateBuyerSessionFromPurchaseInputFromJSON;
18
+ exports.CreateBuyerSessionFromPurchaseInputFromJSONTyped = CreateBuyerSessionFromPurchaseInputFromJSONTyped;
19
+ exports.CreateBuyerSessionFromPurchaseInputToJSON = CreateBuyerSessionFromPurchaseInputToJSON;
20
+ exports.CreateBuyerSessionFromPurchaseInputToJSONTyped = CreateBuyerSessionFromPurchaseInputToJSONTyped;
21
+ var BuyerSessionPurchaseTypeEnum_1 = require("./BuyerSessionPurchaseTypeEnum");
22
+ /**
23
+ * Check if a given object implements the CreateBuyerSessionFromPurchaseInput interface.
24
+ */
25
+ function instanceOfCreateBuyerSessionFromPurchaseInput(value) {
26
+ if (!('type' in value) || value['type'] === undefined)
27
+ return false;
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CreateBuyerSessionFromPurchaseInputFromJSON(json) {
33
+ return CreateBuyerSessionFromPurchaseInputFromJSONTyped(json, false);
34
+ }
35
+ function CreateBuyerSessionFromPurchaseInputFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'type': (0, BuyerSessionPurchaseTypeEnum_1.BuyerSessionPurchaseTypeEnumFromJSON)(json['type']),
41
+ 'id': json['id'],
42
+ };
43
+ }
44
+ function CreateBuyerSessionFromPurchaseInputToJSON(json) {
45
+ return CreateBuyerSessionFromPurchaseInputToJSONTyped(json, false);
46
+ }
47
+ function CreateBuyerSessionFromPurchaseInputToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'type': (0, BuyerSessionPurchaseTypeEnum_1.BuyerSessionPurchaseTypeEnumToJSON)(value['type']),
54
+ 'id': value['id'],
55
+ };
56
+ }
@@ -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 CreateDashboardBuyerSessionInput
16
+ */
17
+ export interface CreateDashboardBuyerSessionInput {
18
+ /**
19
+ * Locale of the dashboard page.
20
+ * @type {string}
21
+ * @memberof CreateDashboardBuyerSessionInput
22
+ */
23
+ locale: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateDashboardBuyerSessionInput interface.
27
+ */
28
+ export declare function instanceOfCreateDashboardBuyerSessionInput(value: object): value is CreateDashboardBuyerSessionInput;
29
+ export declare function CreateDashboardBuyerSessionInputFromJSON(json: any): CreateDashboardBuyerSessionInput;
30
+ export declare function CreateDashboardBuyerSessionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDashboardBuyerSessionInput;
31
+ export declare function CreateDashboardBuyerSessionInputToJSON(json: any): CreateDashboardBuyerSessionInput;
32
+ export declare function CreateDashboardBuyerSessionInputToJSONTyped(value?: CreateDashboardBuyerSessionInput | 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.instanceOfCreateDashboardBuyerSessionInput = instanceOfCreateDashboardBuyerSessionInput;
17
+ exports.CreateDashboardBuyerSessionInputFromJSON = CreateDashboardBuyerSessionInputFromJSON;
18
+ exports.CreateDashboardBuyerSessionInputFromJSONTyped = CreateDashboardBuyerSessionInputFromJSONTyped;
19
+ exports.CreateDashboardBuyerSessionInputToJSON = CreateDashboardBuyerSessionInputToJSON;
20
+ exports.CreateDashboardBuyerSessionInputToJSONTyped = CreateDashboardBuyerSessionInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateDashboardBuyerSessionInput interface.
23
+ */
24
+ function instanceOfCreateDashboardBuyerSessionInput(value) {
25
+ if (!('locale' in value) || value['locale'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateDashboardBuyerSessionInputFromJSON(json) {
30
+ return CreateDashboardBuyerSessionInputFromJSONTyped(json, false);
31
+ }
32
+ function CreateDashboardBuyerSessionInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'locale': json['locale'],
38
+ };
39
+ }
40
+ function CreateDashboardBuyerSessionInputToJSON(json) {
41
+ return CreateDashboardBuyerSessionInputToJSONTyped(json, false);
42
+ }
43
+ function CreateDashboardBuyerSessionInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'locale': value['locale'],
50
+ };
51
+ }
@@ -0,0 +1,38 @@
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 ExchangeBuyerSessionCodeInput
16
+ */
17
+ export interface ExchangeBuyerSessionCodeInput {
18
+ /**
19
+ * Code the API sent back to the landing after the redirect.
20
+ * @type {string}
21
+ * @memberof ExchangeBuyerSessionCodeInput
22
+ */
23
+ code: string;
24
+ /**
25
+ * PKCE verifier whose SHA-256, in base64url, was sent as codeChallenge.
26
+ * @type {string}
27
+ * @memberof ExchangeBuyerSessionCodeInput
28
+ */
29
+ codeVerifier: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ExchangeBuyerSessionCodeInput interface.
33
+ */
34
+ export declare function instanceOfExchangeBuyerSessionCodeInput(value: object): value is ExchangeBuyerSessionCodeInput;
35
+ export declare function ExchangeBuyerSessionCodeInputFromJSON(json: any): ExchangeBuyerSessionCodeInput;
36
+ export declare function ExchangeBuyerSessionCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeBuyerSessionCodeInput;
37
+ export declare function ExchangeBuyerSessionCodeInputToJSON(json: any): ExchangeBuyerSessionCodeInput;
38
+ export declare function ExchangeBuyerSessionCodeInputToJSONTyped(value?: ExchangeBuyerSessionCodeInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfExchangeBuyerSessionCodeInput = instanceOfExchangeBuyerSessionCodeInput;
17
+ exports.ExchangeBuyerSessionCodeInputFromJSON = ExchangeBuyerSessionCodeInputFromJSON;
18
+ exports.ExchangeBuyerSessionCodeInputFromJSONTyped = ExchangeBuyerSessionCodeInputFromJSONTyped;
19
+ exports.ExchangeBuyerSessionCodeInputToJSON = ExchangeBuyerSessionCodeInputToJSON;
20
+ exports.ExchangeBuyerSessionCodeInputToJSONTyped = ExchangeBuyerSessionCodeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ExchangeBuyerSessionCodeInput interface.
23
+ */
24
+ function instanceOfExchangeBuyerSessionCodeInput(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ if (!('codeVerifier' in value) || value['codeVerifier'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ExchangeBuyerSessionCodeInputFromJSON(json) {
32
+ return ExchangeBuyerSessionCodeInputFromJSONTyped(json, false);
33
+ }
34
+ function ExchangeBuyerSessionCodeInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'code': json['code'],
40
+ 'codeVerifier': json['codeVerifier'],
41
+ };
42
+ }
43
+ function ExchangeBuyerSessionCodeInputToJSON(json) {
44
+ return ExchangeBuyerSessionCodeInputToJSONTyped(json, false);
45
+ }
46
+ function ExchangeBuyerSessionCodeInputToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'code': value['code'],
53
+ 'codeVerifier': value['codeVerifier'],
54
+ };
55
+ }
@@ -0,0 +1,33 @@
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 { BuyerLandingSessionOutput } from './BuyerLandingSessionOutput';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeadEmailVerificationResultOutput
17
+ */
18
+ export interface LeadEmailVerificationResultOutput {
19
+ /**
20
+ * Buyer session for the landing that sent the request.
21
+ * @type {BuyerLandingSessionOutput}
22
+ * @memberof LeadEmailVerificationResultOutput
23
+ */
24
+ session: BuyerLandingSessionOutput | null;
25
+ }
26
+ /**
27
+ * Check if a given object implements the LeadEmailVerificationResultOutput interface.
28
+ */
29
+ export declare function instanceOfLeadEmailVerificationResultOutput(value: object): value is LeadEmailVerificationResultOutput;
30
+ export declare function LeadEmailVerificationResultOutputFromJSON(json: any): LeadEmailVerificationResultOutput;
31
+ export declare function LeadEmailVerificationResultOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEmailVerificationResultOutput;
32
+ export declare function LeadEmailVerificationResultOutputToJSON(json: any): LeadEmailVerificationResultOutput;
33
+ export declare function LeadEmailVerificationResultOutputToJSONTyped(value?: LeadEmailVerificationResultOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfLeadEmailVerificationResultOutput = instanceOfLeadEmailVerificationResultOutput;
17
+ exports.LeadEmailVerificationResultOutputFromJSON = LeadEmailVerificationResultOutputFromJSON;
18
+ exports.LeadEmailVerificationResultOutputFromJSONTyped = LeadEmailVerificationResultOutputFromJSONTyped;
19
+ exports.LeadEmailVerificationResultOutputToJSON = LeadEmailVerificationResultOutputToJSON;
20
+ exports.LeadEmailVerificationResultOutputToJSONTyped = LeadEmailVerificationResultOutputToJSONTyped;
21
+ var BuyerLandingSessionOutput_1 = require("./BuyerLandingSessionOutput");
22
+ /**
23
+ * Check if a given object implements the LeadEmailVerificationResultOutput interface.
24
+ */
25
+ function instanceOfLeadEmailVerificationResultOutput(value) {
26
+ if (!('session' in value) || value['session'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function LeadEmailVerificationResultOutputFromJSON(json) {
31
+ return LeadEmailVerificationResultOutputFromJSONTyped(json, false);
32
+ }
33
+ function LeadEmailVerificationResultOutputFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'session': (0, BuyerLandingSessionOutput_1.BuyerLandingSessionOutputFromJSON)(json['session']),
39
+ };
40
+ }
41
+ function LeadEmailVerificationResultOutputToJSON(json) {
42
+ return LeadEmailVerificationResultOutputToJSONTyped(json, false);
43
+ }
44
+ function LeadEmailVerificationResultOutputToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'session': (0, BuyerLandingSessionOutput_1.BuyerLandingSessionOutputToJSON)(value['session']),
51
+ };
52
+ }
@@ -0,0 +1,47 @@
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 { BuyerLandingSessionOutput } from './BuyerLandingSessionOutput';
14
+ import type { LeadPhoneVerificationDto } from './LeadPhoneVerificationDto';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface LeadPhoneVerificationResultOutput
19
+ */
20
+ export interface LeadPhoneVerificationResultOutput {
21
+ /**
22
+ *
23
+ * @type {LeadEmailVerificationDto}
24
+ * @memberof LeadPhoneVerificationResultOutput
25
+ */
26
+ email: LeadEmailVerificationDto;
27
+ /**
28
+ *
29
+ * @type {LeadPhoneVerificationDto}
30
+ * @memberof LeadPhoneVerificationResultOutput
31
+ */
32
+ phone: LeadPhoneVerificationDto;
33
+ /**
34
+ * Buyer session for the landing that sent the request.
35
+ * @type {BuyerLandingSessionOutput}
36
+ * @memberof LeadPhoneVerificationResultOutput
37
+ */
38
+ session: BuyerLandingSessionOutput | null;
39
+ }
40
+ /**
41
+ * Check if a given object implements the LeadPhoneVerificationResultOutput interface.
42
+ */
43
+ export declare function instanceOfLeadPhoneVerificationResultOutput(value: object): value is LeadPhoneVerificationResultOutput;
44
+ export declare function LeadPhoneVerificationResultOutputFromJSON(json: any): LeadPhoneVerificationResultOutput;
45
+ export declare function LeadPhoneVerificationResultOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationResultOutput;
46
+ export declare function LeadPhoneVerificationResultOutputToJSON(json: any): LeadPhoneVerificationResultOutput;
47
+ export declare function LeadPhoneVerificationResultOutputToJSONTyped(value?: LeadPhoneVerificationResultOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfLeadPhoneVerificationResultOutput = instanceOfLeadPhoneVerificationResultOutput;
17
+ exports.LeadPhoneVerificationResultOutputFromJSON = LeadPhoneVerificationResultOutputFromJSON;
18
+ exports.LeadPhoneVerificationResultOutputFromJSONTyped = LeadPhoneVerificationResultOutputFromJSONTyped;
19
+ exports.LeadPhoneVerificationResultOutputToJSON = LeadPhoneVerificationResultOutputToJSON;
20
+ exports.LeadPhoneVerificationResultOutputToJSONTyped = LeadPhoneVerificationResultOutputToJSONTyped;
21
+ var LeadEmailVerificationDto_1 = require("./LeadEmailVerificationDto");
22
+ var BuyerLandingSessionOutput_1 = require("./BuyerLandingSessionOutput");
23
+ var LeadPhoneVerificationDto_1 = require("./LeadPhoneVerificationDto");
24
+ /**
25
+ * Check if a given object implements the LeadPhoneVerificationResultOutput interface.
26
+ */
27
+ function instanceOfLeadPhoneVerificationResultOutput(value) {
28
+ if (!('email' in value) || value['email'] === undefined)
29
+ return false;
30
+ if (!('phone' in value) || value['phone'] === undefined)
31
+ return false;
32
+ if (!('session' in value) || value['session'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function LeadPhoneVerificationResultOutputFromJSON(json) {
37
+ return LeadPhoneVerificationResultOutputFromJSONTyped(json, false);
38
+ }
39
+ function LeadPhoneVerificationResultOutputFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'email': (0, LeadEmailVerificationDto_1.LeadEmailVerificationDtoFromJSON)(json['email']),
45
+ 'phone': (0, LeadPhoneVerificationDto_1.LeadPhoneVerificationDtoFromJSON)(json['phone']),
46
+ 'session': (0, BuyerLandingSessionOutput_1.BuyerLandingSessionOutputFromJSON)(json['session']),
47
+ };
48
+ }
49
+ function LeadPhoneVerificationResultOutputToJSON(json) {
50
+ return LeadPhoneVerificationResultOutputToJSONTyped(json, false);
51
+ }
52
+ function LeadPhoneVerificationResultOutputToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'email': (0, LeadEmailVerificationDto_1.LeadEmailVerificationDtoToJSON)(value['email']),
59
+ 'phone': (0, LeadPhoneVerificationDto_1.LeadPhoneVerificationDtoToJSON)(value['phone']),
60
+ 'session': (0, BuyerLandingSessionOutput_1.BuyerLandingSessionOutputToJSON)(value['session']),
61
+ };
62
+ }
@@ -124,6 +124,12 @@ export interface PrivateAccountGetMeResponse {
124
124
  * @memberof PrivateAccountGetMeResponse
125
125
  */
126
126
  hasBrokerLeads: boolean;
127
+ /**
128
+ * Whether the current user must set up an authenticator app or a passkey before using the app.
129
+ * @type {boolean}
130
+ * @memberof PrivateAccountGetMeResponse
131
+ */
132
+ secondFactorSetupRequired: boolean;
127
133
  }
128
134
  /**
129
135
  * @export
@@ -109,6 +109,8 @@ function instanceOfPrivateAccountGetMeResponse(value) {
109
109
  return false;
110
110
  if (!('hasBrokerLeads' in value) || value['hasBrokerLeads'] === undefined)
111
111
  return false;
112
+ if (!('secondFactorSetupRequired' in value) || value['secondFactorSetupRequired'] === undefined)
113
+ return false;
112
114
  return true;
113
115
  }
114
116
  function PrivateAccountGetMeResponseFromJSON(json) {
@@ -136,6 +138,7 @@ function PrivateAccountGetMeResponseFromJSONTyped(json, ignoreDiscriminator) {
136
138
  'enabledFeatures': json['enabledFeatures'],
137
139
  'unreadNotificationsNumber': json['unreadNotificationsNumber'],
138
140
  'hasBrokerLeads': json['hasBrokerLeads'],
141
+ 'secondFactorSetupRequired': json['secondFactorSetupRequired'],
139
142
  };
140
143
  }
141
144
  function PrivateAccountGetMeResponseToJSON(json) {
@@ -164,5 +167,6 @@ function PrivateAccountGetMeResponseToJSONTyped(value, ignoreDiscriminator) {
164
167
  'enabledFeatures': value['enabledFeatures'],
165
168
  'unreadNotificationsNumber': value['unreadNotificationsNumber'],
166
169
  'hasBrokerLeads': value['hasBrokerLeads'],
170
+ 'secondFactorSetupRequired': value['secondFactorSetupRequired'],
167
171
  };
168
172
  }
@@ -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 VerifyBuyerSessionEmailOtpInput
16
+ */
17
+ export interface VerifyBuyerSessionEmailOtpInput {
18
+ /**
19
+ * Code emailed to the buyer.
20
+ * @type {string}
21
+ * @memberof VerifyBuyerSessionEmailOtpInput
22
+ */
23
+ code: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the VerifyBuyerSessionEmailOtpInput interface.
27
+ */
28
+ export declare function instanceOfVerifyBuyerSessionEmailOtpInput(value: object): value is VerifyBuyerSessionEmailOtpInput;
29
+ export declare function VerifyBuyerSessionEmailOtpInputFromJSON(json: any): VerifyBuyerSessionEmailOtpInput;
30
+ export declare function VerifyBuyerSessionEmailOtpInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyBuyerSessionEmailOtpInput;
31
+ export declare function VerifyBuyerSessionEmailOtpInputToJSON(json: any): VerifyBuyerSessionEmailOtpInput;
32
+ export declare function VerifyBuyerSessionEmailOtpInputToJSONTyped(value?: VerifyBuyerSessionEmailOtpInput | 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.instanceOfVerifyBuyerSessionEmailOtpInput = instanceOfVerifyBuyerSessionEmailOtpInput;
17
+ exports.VerifyBuyerSessionEmailOtpInputFromJSON = VerifyBuyerSessionEmailOtpInputFromJSON;
18
+ exports.VerifyBuyerSessionEmailOtpInputFromJSONTyped = VerifyBuyerSessionEmailOtpInputFromJSONTyped;
19
+ exports.VerifyBuyerSessionEmailOtpInputToJSON = VerifyBuyerSessionEmailOtpInputToJSON;
20
+ exports.VerifyBuyerSessionEmailOtpInputToJSONTyped = VerifyBuyerSessionEmailOtpInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VerifyBuyerSessionEmailOtpInput interface.
23
+ */
24
+ function instanceOfVerifyBuyerSessionEmailOtpInput(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function VerifyBuyerSessionEmailOtpInputFromJSON(json) {
30
+ return VerifyBuyerSessionEmailOtpInputFromJSONTyped(json, false);
31
+ }
32
+ function VerifyBuyerSessionEmailOtpInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'code': json['code'],
38
+ };
39
+ }
40
+ function VerifyBuyerSessionEmailOtpInputToJSON(json) {
41
+ return VerifyBuyerSessionEmailOtpInputToJSONTyped(json, false);
42
+ }
43
+ function VerifyBuyerSessionEmailOtpInputToJSONTyped(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
+ }