@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
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
* Method the user signs in with.
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const UserAuthenticationMethod: {
|
|
17
|
-
readonly PASSWORD: "password";
|
|
18
|
-
readonly PASSWORD_AND_SECOND_FACTOR: "password_and_second_factor";
|
|
19
|
-
readonly PASSKEY_AND_TOTP: "passkey_and_totp";
|
|
20
|
-
readonly PASSKEY: "passkey";
|
|
21
|
-
};
|
|
22
|
-
export type UserAuthenticationMethod = typeof UserAuthenticationMethod[keyof typeof UserAuthenticationMethod];
|
|
23
|
-
export declare function instanceOfUserAuthenticationMethod(value: any): boolean;
|
|
24
|
-
export declare function UserAuthenticationMethodFromJSON(json: any): UserAuthenticationMethod;
|
|
25
|
-
export declare function UserAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
|
|
26
|
-
export declare function UserAuthenticationMethodToJSON(value?: UserAuthenticationMethod | null): any;
|
|
27
|
-
export declare function UserAuthenticationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
|
|
@@ -1,53 +0,0 @@
|
|
|
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.UserAuthenticationMethod = void 0;
|
|
17
|
-
exports.instanceOfUserAuthenticationMethod = instanceOfUserAuthenticationMethod;
|
|
18
|
-
exports.UserAuthenticationMethodFromJSON = UserAuthenticationMethodFromJSON;
|
|
19
|
-
exports.UserAuthenticationMethodFromJSONTyped = UserAuthenticationMethodFromJSONTyped;
|
|
20
|
-
exports.UserAuthenticationMethodToJSON = UserAuthenticationMethodToJSON;
|
|
21
|
-
exports.UserAuthenticationMethodToJSONTyped = UserAuthenticationMethodToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* Method the user signs in with.
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.UserAuthenticationMethod = {
|
|
27
|
-
PASSWORD: 'password',
|
|
28
|
-
PASSWORD_AND_SECOND_FACTOR: 'password_and_second_factor',
|
|
29
|
-
PASSKEY_AND_TOTP: 'passkey_and_totp',
|
|
30
|
-
PASSKEY: 'passkey'
|
|
31
|
-
};
|
|
32
|
-
function instanceOfUserAuthenticationMethod(value) {
|
|
33
|
-
for (var key in exports.UserAuthenticationMethod) {
|
|
34
|
-
if (Object.prototype.hasOwnProperty.call(exports.UserAuthenticationMethod, key)) {
|
|
35
|
-
if (exports.UserAuthenticationMethod[key] === value) {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
function UserAuthenticationMethodFromJSON(json) {
|
|
43
|
-
return UserAuthenticationMethodFromJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
function UserAuthenticationMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
function UserAuthenticationMethodToJSON(value) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
function UserAuthenticationMethodToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Nameshift
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { UserAuthenticationMethod } from './UserAuthenticationMethod';
|
|
17
|
-
import {
|
|
18
|
-
UserAuthenticationMethodFromJSON,
|
|
19
|
-
UserAuthenticationMethodFromJSONTyped,
|
|
20
|
-
UserAuthenticationMethodToJSON,
|
|
21
|
-
UserAuthenticationMethodToJSONTyped,
|
|
22
|
-
} from './UserAuthenticationMethod';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ChangeUserAuthenticationMethodInput
|
|
28
|
-
*/
|
|
29
|
-
export interface ChangeUserAuthenticationMethodInput {
|
|
30
|
-
/**
|
|
31
|
-
* Method to sign in with from now on.
|
|
32
|
-
* @type {UserAuthenticationMethod}
|
|
33
|
-
* @memberof ChangeUserAuthenticationMethodInput
|
|
34
|
-
*/
|
|
35
|
-
method: UserAuthenticationMethod;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Check if a given object implements the ChangeUserAuthenticationMethodInput interface.
|
|
42
|
-
*/
|
|
43
|
-
export function instanceOfChangeUserAuthenticationMethodInput(value: object): value is ChangeUserAuthenticationMethodInput {
|
|
44
|
-
if (!('method' in value) || value['method'] === undefined) return false;
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function ChangeUserAuthenticationMethodInputFromJSON(json: any): ChangeUserAuthenticationMethodInput {
|
|
49
|
-
return ChangeUserAuthenticationMethodInputFromJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ChangeUserAuthenticationMethodInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeUserAuthenticationMethodInput {
|
|
53
|
-
if (json == null) {
|
|
54
|
-
return json;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
|
|
58
|
-
'method': UserAuthenticationMethodFromJSON(json['method']),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function ChangeUserAuthenticationMethodInputToJSON(json: any): ChangeUserAuthenticationMethodInput {
|
|
63
|
-
return ChangeUserAuthenticationMethodInputToJSONTyped(json, false);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function ChangeUserAuthenticationMethodInputToJSONTyped(value?: ChangeUserAuthenticationMethodInput | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
-
if (value == null) {
|
|
68
|
-
return value;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
|
|
73
|
-
'method': UserAuthenticationMethodToJSON(value['method']),
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Nameshift
|
|
5
|
-
* 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.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Method the user signs in with.
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const UserAuthenticationMethod = {
|
|
21
|
-
PASSWORD: 'password',
|
|
22
|
-
PASSWORD_AND_SECOND_FACTOR: 'password_and_second_factor',
|
|
23
|
-
PASSKEY_AND_TOTP: 'passkey_and_totp',
|
|
24
|
-
PASSKEY: 'passkey'
|
|
25
|
-
} as const;
|
|
26
|
-
export type UserAuthenticationMethod = typeof UserAuthenticationMethod[keyof typeof UserAuthenticationMethod];
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export function instanceOfUserAuthenticationMethod(value: any): boolean {
|
|
30
|
-
for (const key in UserAuthenticationMethod) {
|
|
31
|
-
if (Object.prototype.hasOwnProperty.call(UserAuthenticationMethod, key)) {
|
|
32
|
-
if (UserAuthenticationMethod[key as keyof typeof UserAuthenticationMethod] === value) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function UserAuthenticationMethodFromJSON(json: any): UserAuthenticationMethod {
|
|
41
|
-
return UserAuthenticationMethodFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function UserAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthenticationMethod {
|
|
45
|
-
return json as UserAuthenticationMethod;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function UserAuthenticationMethodToJSON(value?: UserAuthenticationMethod | null): any {
|
|
49
|
-
return value as any;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function UserAuthenticationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAuthenticationMethod {
|
|
53
|
-
return value as UserAuthenticationMethod;
|
|
54
|
-
}
|
|
55
|
-
|