@randock/nameshift-api-client 0.0.504 → 0.0.506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +12 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +113 -1
- package/dist/apis/AdminApi.js +500 -0
- package/dist/apis/UsersApi.d.ts +18 -18
- package/dist/apis/UsersApi.js +69 -70
- package/dist/apis/UsersPublicApi.d.ts +20 -7
- package/dist/apis/UsersPublicApi.js +54 -6
- package/dist/models/AdminUserNewsletterInput.d.ts +41 -0
- package/dist/models/AdminUserNewsletterInput.js +60 -0
- package/dist/models/AdminUserSecurityDto.d.ts +4 -4
- package/dist/models/AdminUserSecurityDto.js +3 -4
- package/dist/models/ChangeUserSignInStepsInput.d.ts +33 -0
- package/dist/models/ChangeUserSignInStepsInput.js +51 -0
- package/dist/models/CreateNewsletterInput.d.ts +171 -0
- package/dist/models/CreateNewsletterInput.js +98 -0
- package/dist/models/LoginPasswordInput.d.ts +38 -0
- package/dist/models/LoginPasswordInput.js +55 -0
- package/dist/models/NewsStoryDto.d.ts +80 -0
- package/dist/models/NewsStoryDto.js +83 -0
- package/dist/models/NewsletterDto.d.ts +251 -0
- package/dist/models/NewsletterDto.js +200 -0
- package/dist/models/NewsletterPreviewDto.d.ts +44 -0
- package/dist/models/NewsletterPreviewDto.js +59 -0
- package/dist/models/NewsletterSecondaryStoryDto.d.ts +44 -0
- package/dist/models/NewsletterSecondaryStoryDto.js +59 -0
- package/dist/models/NewsletterSecondaryStoryInput.d.ts +44 -0
- package/dist/models/NewsletterSecondaryStoryInput.js +59 -0
- package/dist/models/SecondFactorMethod.d.ts +1 -0
- package/dist/models/SecondFactorMethod.js +1 -0
- package/dist/models/SendNewsletterPreviewInput.d.ts +32 -0
- package/dist/models/SendNewsletterPreviewInput.js +51 -0
- package/dist/models/UpdateNewsletterInput.d.ts +171 -0
- package/dist/models/UpdateNewsletterInput.js +96 -0
- package/dist/models/UserLoginAttemptResult.d.ts +1 -0
- package/dist/models/UserLoginAttemptResult.js +1 -0
- package/dist/models/UserSecurityDto.d.ts +11 -11
- package/dist/models/UserSecurityDto.js +10 -10
- package/dist/models/UserSignInFactor.d.ts +26 -0
- package/dist/models/UserSignInFactor.js +52 -0
- package/dist/models/index.d.ts +12 -2
- package/dist/models/index.js +12 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +454 -0
- package/src/apis/UsersApi.ts +73 -74
- package/src/apis/UsersPublicApi.ts +51 -6
- package/src/models/AdminUserNewsletterInput.ts +78 -0
- package/src/models/AdminUserSecurityDto.ts +12 -14
- package/src/models/ChangeUserSignInStepsInput.ts +74 -0
- package/src/models/CreateNewsletterInput.ts +258 -0
- package/src/models/LoginPasswordInput.ts +75 -0
- package/src/models/NewsStoryDto.ts +138 -0
- package/src/models/NewsletterDto.ts +400 -0
- package/src/models/NewsletterPreviewDto.ts +84 -0
- package/src/models/NewsletterSecondaryStoryDto.ts +84 -0
- package/src/models/NewsletterSecondaryStoryInput.ts +84 -0
- package/src/models/SecondFactorMethod.ts +1 -0
- package/src/models/SendNewsletterPreviewInput.ts +66 -0
- package/src/models/UpdateNewsletterInput.ts +257 -0
- package/src/models/UserLoginAttemptResult.ts +1 -0
- package/src/models/UserSecurityDto.ts +25 -27
- package/src/models/UserSignInFactor.ts +54 -0
- package/src/models/index.ts +12 -2
- package/dist/models/ChangeUserAuthenticationMethodInput.d.ts +0 -33
- package/dist/models/ChangeUserAuthenticationMethodInput.js +0 -52
- package/dist/models/UserAuthenticationMethod.d.ts +0 -27
- package/dist/models/UserAuthenticationMethod.js +0 -53
- package/src/models/ChangeUserAuthenticationMethodInput.ts +0 -76
- package/src/models/UserAuthenticationMethod.ts +0 -55
|
@@ -0,0 +1,44 @@
|
|
|
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 NewsletterSecondaryStoryInput
|
|
16
|
+
*/
|
|
17
|
+
export interface NewsletterSecondaryStoryInput {
|
|
18
|
+
/**
|
|
19
|
+
* Storyblok story UUID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NewsletterSecondaryStoryInput
|
|
22
|
+
*/
|
|
23
|
+
uuid: string;
|
|
24
|
+
/**
|
|
25
|
+
* One line of context under the headline, under 20 words.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NewsletterSecondaryStoryInput
|
|
28
|
+
*/
|
|
29
|
+
line: string;
|
|
30
|
+
/**
|
|
31
|
+
* Teaser-style link text.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NewsletterSecondaryStoryInput
|
|
34
|
+
*/
|
|
35
|
+
link: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the NewsletterSecondaryStoryInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfNewsletterSecondaryStoryInput(value: object): value is NewsletterSecondaryStoryInput;
|
|
41
|
+
export declare function NewsletterSecondaryStoryInputFromJSON(json: any): NewsletterSecondaryStoryInput;
|
|
42
|
+
export declare function NewsletterSecondaryStoryInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterSecondaryStoryInput;
|
|
43
|
+
export declare function NewsletterSecondaryStoryInputToJSON(json: any): NewsletterSecondaryStoryInput;
|
|
44
|
+
export declare function NewsletterSecondaryStoryInputToJSONTyped(value?: NewsletterSecondaryStoryInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfNewsletterSecondaryStoryInput = instanceOfNewsletterSecondaryStoryInput;
|
|
17
|
+
exports.NewsletterSecondaryStoryInputFromJSON = NewsletterSecondaryStoryInputFromJSON;
|
|
18
|
+
exports.NewsletterSecondaryStoryInputFromJSONTyped = NewsletterSecondaryStoryInputFromJSONTyped;
|
|
19
|
+
exports.NewsletterSecondaryStoryInputToJSON = NewsletterSecondaryStoryInputToJSON;
|
|
20
|
+
exports.NewsletterSecondaryStoryInputToJSONTyped = NewsletterSecondaryStoryInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NewsletterSecondaryStoryInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNewsletterSecondaryStoryInput(value) {
|
|
25
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('line' in value) || value['line'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('link' in value) || value['link'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function NewsletterSecondaryStoryInputFromJSON(json) {
|
|
34
|
+
return NewsletterSecondaryStoryInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function NewsletterSecondaryStoryInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'uuid': json['uuid'],
|
|
42
|
+
'line': json['line'],
|
|
43
|
+
'link': json['link'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function NewsletterSecondaryStoryInputToJSON(json) {
|
|
47
|
+
return NewsletterSecondaryStoryInputToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function NewsletterSecondaryStoryInputToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'uuid': value['uuid'],
|
|
56
|
+
'line': value['line'],
|
|
57
|
+
'link': value['link'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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 SendNewsletterPreviewInput
|
|
16
|
+
*/
|
|
17
|
+
export interface SendNewsletterPreviewInput {
|
|
18
|
+
/**
|
|
19
|
+
* Where the preview goes.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SendNewsletterPreviewInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SendNewsletterPreviewInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSendNewsletterPreviewInput(value: object): value is SendNewsletterPreviewInput;
|
|
29
|
+
export declare function SendNewsletterPreviewInputFromJSON(json: any): SendNewsletterPreviewInput;
|
|
30
|
+
export declare function SendNewsletterPreviewInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendNewsletterPreviewInput;
|
|
31
|
+
export declare function SendNewsletterPreviewInputToJSON(json: any): SendNewsletterPreviewInput;
|
|
32
|
+
export declare function SendNewsletterPreviewInputToJSONTyped(value?: SendNewsletterPreviewInput | 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.instanceOfSendNewsletterPreviewInput = instanceOfSendNewsletterPreviewInput;
|
|
17
|
+
exports.SendNewsletterPreviewInputFromJSON = SendNewsletterPreviewInputFromJSON;
|
|
18
|
+
exports.SendNewsletterPreviewInputFromJSONTyped = SendNewsletterPreviewInputFromJSONTyped;
|
|
19
|
+
exports.SendNewsletterPreviewInputToJSON = SendNewsletterPreviewInputToJSON;
|
|
20
|
+
exports.SendNewsletterPreviewInputToJSONTyped = SendNewsletterPreviewInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SendNewsletterPreviewInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSendNewsletterPreviewInput(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SendNewsletterPreviewInputFromJSON(json) {
|
|
30
|
+
return SendNewsletterPreviewInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SendNewsletterPreviewInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SendNewsletterPreviewInputToJSON(json) {
|
|
41
|
+
return SendNewsletterPreviewInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SendNewsletterPreviewInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'email': value['email'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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 { NewsletterSecondaryStoryInput } from './NewsletterSecondaryStoryInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateNewsletterInput
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateNewsletterInput {
|
|
19
|
+
/**
|
|
20
|
+
* Internal title, also the Mailchimp campaign name.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateNewsletterInput
|
|
23
|
+
*/
|
|
24
|
+
title?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Subject line.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateNewsletterInput
|
|
29
|
+
*/
|
|
30
|
+
subject?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Preheader, 40 to 90 characters.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateNewsletterInput
|
|
35
|
+
*/
|
|
36
|
+
preheader?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Issue label in the header; may carry HTML entities.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateNewsletterInput
|
|
41
|
+
*/
|
|
42
|
+
issueLabel?: string;
|
|
43
|
+
/**
|
|
44
|
+
* utm_campaign on every link, e.g. nl-2026-10.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateNewsletterInput
|
|
47
|
+
*/
|
|
48
|
+
campaignSlug?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Lead story UUID.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateNewsletterInput
|
|
53
|
+
*/
|
|
54
|
+
leadStoryUuid?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Lead teaser, 30 to 60 words.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof UpdateNewsletterInput
|
|
59
|
+
*/
|
|
60
|
+
leadTeaser?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Lead button text, 2 to 5 words.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof UpdateNewsletterInput
|
|
65
|
+
*/
|
|
66
|
+
leadCta?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Secondary stories, in order.
|
|
69
|
+
* @type {Array<NewsletterSecondaryStoryInput>}
|
|
70
|
+
* @memberof UpdateNewsletterInput
|
|
71
|
+
*/
|
|
72
|
+
secondaryStories?: Array<NewsletterSecondaryStoryInput>;
|
|
73
|
+
/**
|
|
74
|
+
* Feature story UUID.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof UpdateNewsletterInput
|
|
77
|
+
*/
|
|
78
|
+
featureStoryUuid?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Feature text, 1 to 2 sentences.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof UpdateNewsletterInput
|
|
83
|
+
*/
|
|
84
|
+
featureText?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Feature link text.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof UpdateNewsletterInput
|
|
89
|
+
*/
|
|
90
|
+
featureLink?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Event lead line.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof UpdateNewsletterInput
|
|
95
|
+
*/
|
|
96
|
+
eventLead?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Event text.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof UpdateNewsletterInput
|
|
101
|
+
*/
|
|
102
|
+
eventText?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Event link URL.
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof UpdateNewsletterInput
|
|
107
|
+
*/
|
|
108
|
+
eventUrl?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Event link text.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof UpdateNewsletterInput
|
|
113
|
+
*/
|
|
114
|
+
eventLink?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Whether the recent-sales module is in the issue.
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof UpdateNewsletterInput
|
|
119
|
+
*/
|
|
120
|
+
salesEnabled?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* First day of the sales period (YYYY-MM-DD).
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof UpdateNewsletterInput
|
|
125
|
+
*/
|
|
126
|
+
salesFrom?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* Last day of the sales period (YYYY-MM-DD).
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof UpdateNewsletterInput
|
|
131
|
+
*/
|
|
132
|
+
salesTo?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* Closing band line.
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof UpdateNewsletterInput
|
|
137
|
+
*/
|
|
138
|
+
closingLine?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Closing button text.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof UpdateNewsletterInput
|
|
143
|
+
*/
|
|
144
|
+
closingCta?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Closing button URL.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof UpdateNewsletterInput
|
|
149
|
+
*/
|
|
150
|
+
closingUrl?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Closing note under the button.
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof UpdateNewsletterInput
|
|
155
|
+
*/
|
|
156
|
+
closingNote?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Why the reader receives the email.
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof UpdateNewsletterInput
|
|
161
|
+
*/
|
|
162
|
+
footerReason?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Check if a given object implements the UpdateNewsletterInput interface.
|
|
166
|
+
*/
|
|
167
|
+
export declare function instanceOfUpdateNewsletterInput(value: object): value is UpdateNewsletterInput;
|
|
168
|
+
export declare function UpdateNewsletterInputFromJSON(json: any): UpdateNewsletterInput;
|
|
169
|
+
export declare function UpdateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNewsletterInput;
|
|
170
|
+
export declare function UpdateNewsletterInputToJSON(json: any): UpdateNewsletterInput;
|
|
171
|
+
export declare function UpdateNewsletterInputToJSONTyped(value?: UpdateNewsletterInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,96 @@
|
|
|
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.instanceOfUpdateNewsletterInput = instanceOfUpdateNewsletterInput;
|
|
17
|
+
exports.UpdateNewsletterInputFromJSON = UpdateNewsletterInputFromJSON;
|
|
18
|
+
exports.UpdateNewsletterInputFromJSONTyped = UpdateNewsletterInputFromJSONTyped;
|
|
19
|
+
exports.UpdateNewsletterInputToJSON = UpdateNewsletterInputToJSON;
|
|
20
|
+
exports.UpdateNewsletterInputToJSONTyped = UpdateNewsletterInputToJSONTyped;
|
|
21
|
+
var NewsletterSecondaryStoryInput_1 = require("./NewsletterSecondaryStoryInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateNewsletterInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateNewsletterInput(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UpdateNewsletterInputFromJSON(json) {
|
|
29
|
+
return UpdateNewsletterInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UpdateNewsletterInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
37
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
38
|
+
'preheader': json['preheader'] == null ? undefined : json['preheader'],
|
|
39
|
+
'issueLabel': json['issueLabel'] == null ? undefined : json['issueLabel'],
|
|
40
|
+
'campaignSlug': json['campaignSlug'] == null ? undefined : json['campaignSlug'],
|
|
41
|
+
'leadStoryUuid': json['leadStoryUuid'] == null ? undefined : json['leadStoryUuid'],
|
|
42
|
+
'leadTeaser': json['leadTeaser'] == null ? undefined : json['leadTeaser'],
|
|
43
|
+
'leadCta': json['leadCta'] == null ? undefined : json['leadCta'],
|
|
44
|
+
'secondaryStories': json['secondaryStories'] == null ? undefined : (json['secondaryStories'].map(NewsletterSecondaryStoryInput_1.NewsletterSecondaryStoryInputFromJSON)),
|
|
45
|
+
'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
|
|
46
|
+
'featureText': json['featureText'] == null ? undefined : json['featureText'],
|
|
47
|
+
'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
|
|
48
|
+
'eventLead': json['eventLead'] == null ? undefined : json['eventLead'],
|
|
49
|
+
'eventText': json['eventText'] == null ? undefined : json['eventText'],
|
|
50
|
+
'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
|
|
51
|
+
'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
|
|
52
|
+
'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
|
|
53
|
+
'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
|
|
54
|
+
'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
|
|
55
|
+
'closingLine': json['closingLine'] == null ? undefined : json['closingLine'],
|
|
56
|
+
'closingCta': json['closingCta'] == null ? undefined : json['closingCta'],
|
|
57
|
+
'closingUrl': json['closingUrl'] == null ? undefined : json['closingUrl'],
|
|
58
|
+
'closingNote': json['closingNote'] == null ? undefined : json['closingNote'],
|
|
59
|
+
'footerReason': json['footerReason'] == null ? undefined : json['footerReason'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function UpdateNewsletterInputToJSON(json) {
|
|
63
|
+
return UpdateNewsletterInputToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function UpdateNewsletterInputToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'title': value['title'],
|
|
72
|
+
'subject': value['subject'],
|
|
73
|
+
'preheader': value['preheader'],
|
|
74
|
+
'issueLabel': value['issueLabel'],
|
|
75
|
+
'campaignSlug': value['campaignSlug'],
|
|
76
|
+
'leadStoryUuid': value['leadStoryUuid'],
|
|
77
|
+
'leadTeaser': value['leadTeaser'],
|
|
78
|
+
'leadCta': value['leadCta'],
|
|
79
|
+
'secondaryStories': value['secondaryStories'] == null ? undefined : (value['secondaryStories'].map(NewsletterSecondaryStoryInput_1.NewsletterSecondaryStoryInputToJSON)),
|
|
80
|
+
'featureStoryUuid': value['featureStoryUuid'],
|
|
81
|
+
'featureText': value['featureText'],
|
|
82
|
+
'featureLink': value['featureLink'],
|
|
83
|
+
'eventLead': value['eventLead'],
|
|
84
|
+
'eventText': value['eventText'],
|
|
85
|
+
'eventUrl': value['eventUrl'],
|
|
86
|
+
'eventLink': value['eventLink'],
|
|
87
|
+
'salesEnabled': value['salesEnabled'],
|
|
88
|
+
'salesFrom': value['salesFrom'],
|
|
89
|
+
'salesTo': value['salesTo'],
|
|
90
|
+
'closingLine': value['closingLine'],
|
|
91
|
+
'closingCta': value['closingCta'],
|
|
92
|
+
'closingUrl': value['closingUrl'],
|
|
93
|
+
'closingNote': value['closingNote'],
|
|
94
|
+
'footerReason': value['footerReason'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -20,6 +20,7 @@ export declare const UserLoginAttemptResult: {
|
|
|
20
20
|
readonly SECOND_FACTOR_FAILED: "second_factor_failed";
|
|
21
21
|
readonly SECOND_FACTOR_LOCKED: "second_factor_locked";
|
|
22
22
|
readonly PASSWORD_LOGIN_DISABLED: "password_login_disabled";
|
|
23
|
+
readonly PASSKEY_LOGIN_DISABLED: "passkey_login_disabled";
|
|
23
24
|
readonly LOCATION_CONFIRMATION_REQUIRED: "location_confirmation_required";
|
|
24
25
|
};
|
|
25
26
|
export type UserLoginAttemptResult = typeof UserLoginAttemptResult[keyof typeof UserLoginAttemptResult];
|
|
@@ -30,6 +30,7 @@ exports.UserLoginAttemptResult = {
|
|
|
30
30
|
SECOND_FACTOR_FAILED: 'second_factor_failed',
|
|
31
31
|
SECOND_FACTOR_LOCKED: 'second_factor_locked',
|
|
32
32
|
PASSWORD_LOGIN_DISABLED: 'password_login_disabled',
|
|
33
|
+
PASSKEY_LOGIN_DISABLED: 'passkey_login_disabled',
|
|
33
34
|
LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
|
|
34
35
|
};
|
|
35
36
|
function instanceOfUserLoginAttemptResult(value) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { UserSignInFactor } from './UserSignInFactor';
|
|
13
13
|
import type { UserPasskeyDto } from './UserPasskeyDto';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -18,23 +18,23 @@ import type { UserPasskeyDto } from './UserPasskeyDto';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface UserSecurityDto {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {
|
|
21
|
+
* Steps the next sign-in follows, in order; each step lists the factors to choose from. Staff on a single step from before a second factor was required for them get, as a second step, the factors they set up.
|
|
22
|
+
* @type {Array<Array<UserSignInFactor>>}
|
|
23
23
|
* @memberof UserSecurityDto
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
signInSteps: Array<Array<UserSignInFactor>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {
|
|
27
|
+
* Factors the user set up, which the steps can ask for.
|
|
28
|
+
* @type {Array<UserSignInFactor>}
|
|
29
29
|
* @memberof UserSecurityDto
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
setUpSignInFactors: Array<UserSignInFactor>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {
|
|
33
|
+
* Fewest steps the user can sign in with: 2 for staff once a second factor is required for them, 1 otherwise.
|
|
34
|
+
* @type {number}
|
|
35
35
|
* @memberof UserSecurityDto
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
minSignInSteps: number;
|
|
38
38
|
/**
|
|
39
39
|
* Whether the user has a staff role, which requires a second factor or a passkey.
|
|
40
40
|
* @type {boolean}
|
|
@@ -42,7 +42,7 @@ export interface UserSecurityDto {
|
|
|
42
42
|
*/
|
|
43
43
|
isStaff: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* Whether the user must keep a
|
|
45
|
+
* Whether the user must keep a second step: staff once second factors are required for them. They sign in with two steps at least, and cannot remove their last authenticator app or passkey.
|
|
46
46
|
* @type {boolean}
|
|
47
47
|
* @memberof UserSecurityDto
|
|
48
48
|
*/
|
|
@@ -18,17 +18,17 @@ exports.UserSecurityDtoFromJSON = UserSecurityDtoFromJSON;
|
|
|
18
18
|
exports.UserSecurityDtoFromJSONTyped = UserSecurityDtoFromJSONTyped;
|
|
19
19
|
exports.UserSecurityDtoToJSON = UserSecurityDtoToJSON;
|
|
20
20
|
exports.UserSecurityDtoToJSONTyped = UserSecurityDtoToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var UserSignInFactor_1 = require("./UserSignInFactor");
|
|
22
22
|
var UserPasskeyDto_1 = require("./UserPasskeyDto");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the UserSecurityDto interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfUserSecurityDto(value) {
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('signInSteps' in value) || value['signInSteps'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('setUpSignInFactors' in value) || value['setUpSignInFactors'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('minSignInSteps' in value) || value['minSignInSteps'] === undefined)
|
|
32
32
|
return false;
|
|
33
33
|
if (!('isStaff' in value) || value['isStaff'] === undefined)
|
|
34
34
|
return false;
|
|
@@ -56,9 +56,9 @@ function UserSecurityDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
return json;
|
|
57
57
|
}
|
|
58
58
|
return {
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
59
|
+
'signInSteps': json['signInSteps'],
|
|
60
|
+
'setUpSignInFactors': (json['setUpSignInFactors'].map(UserSignInFactor_1.UserSignInFactorFromJSON)),
|
|
61
|
+
'minSignInSteps': json['minSignInSteps'],
|
|
62
62
|
'isStaff': json['isStaff'],
|
|
63
63
|
'secondFactorRequired': json['secondFactorRequired'],
|
|
64
64
|
'secondFactorSetupRequired': json['secondFactorSetupRequired'],
|
|
@@ -78,9 +78,9 @@ function UserSecurityDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
78
|
return value;
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
81
|
+
'signInSteps': value['signInSteps'],
|
|
82
|
+
'setUpSignInFactors': (value['setUpSignInFactors'].map(UserSignInFactor_1.UserSignInFactorToJSON)),
|
|
83
|
+
'minSignInSteps': value['minSignInSteps'],
|
|
84
84
|
'isStaff': value['isStaff'],
|
|
85
85
|
'secondFactorRequired': value['secondFactorRequired'],
|
|
86
86
|
'secondFactorSetupRequired': value['secondFactorSetupRequired'],
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Factors the user set up, which the steps can ask for.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const UserSignInFactor: {
|
|
17
|
+
readonly PASSWORD: "password";
|
|
18
|
+
readonly PASSKEY: "passkey";
|
|
19
|
+
readonly TOTP: "totp";
|
|
20
|
+
};
|
|
21
|
+
export type UserSignInFactor = typeof UserSignInFactor[keyof typeof UserSignInFactor];
|
|
22
|
+
export declare function instanceOfUserSignInFactor(value: any): boolean;
|
|
23
|
+
export declare function UserSignInFactorFromJSON(json: any): UserSignInFactor;
|
|
24
|
+
export declare function UserSignInFactorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSignInFactor;
|
|
25
|
+
export declare function UserSignInFactorToJSON(value?: UserSignInFactor | null): any;
|
|
26
|
+
export declare function UserSignInFactorToJSONTyped(value: any, ignoreDiscriminator: boolean): UserSignInFactor;
|