@randock/nameshift-api-client 0.0.447 → 0.0.449
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 +6 -0
- package/README.md +3 -3
- package/dist/apis/APIKeysApi.d.ts +78 -0
- package/dist/apis/APIKeysApi.js +354 -0
- package/dist/apis/AccountsApi.d.ts +36 -36
- package/dist/apis/AccountsApi.js +360 -216
- package/dist/apis/AdminApi.d.ts +26 -0
- package/dist/apis/AdminApi.js +106 -0
- package/dist/apis/AuctionsApi.d.ts +4 -4
- package/dist/apis/AuctionsApi.js +40 -24
- package/dist/apis/BankAccountsApi.d.ts +10 -10
- package/dist/apis/BankAccountsApi.js +100 -60
- package/dist/apis/ChallengesApi.d.ts +6 -6
- package/dist/apis/ChallengesApi.js +60 -36
- package/dist/apis/DomainTransfersApi.d.ts +2 -2
- package/dist/apis/DomainTransfersApi.js +20 -12
- package/dist/apis/DomainsApi.d.ts +44 -44
- package/dist/apis/DomainsApi.js +440 -264
- package/dist/apis/EppApi.d.ts +2 -2
- package/dist/apis/EppApi.js +20 -12
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +60 -36
- package/dist/apis/LeadsApi.d.ts +38 -38
- package/dist/apis/LeadsApi.js +380 -228
- package/dist/apis/MarketApi.d.ts +2 -2
- package/dist/apis/MarketApi.js +2 -2
- package/dist/apis/NotificationsApi.d.ts +8 -8
- package/dist/apis/NotificationsApi.js +80 -48
- package/dist/apis/StatsApi.d.ts +14 -14
- package/dist/apis/StatsApi.js +140 -84
- package/dist/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/apis/SubscriptionsApi.js +20 -12
- package/dist/apis/TasksApi.d.ts +6 -6
- package/dist/apis/TasksApi.js +60 -36
- package/dist/apis/UsersApi.d.ts +10 -10
- package/dist/apis/UsersApi.js +100 -60
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AdminDomainListItemDto.d.ts +6 -0
- package/dist/models/AdminDomainListItemDto.js +4 -0
- package/dist/models/ApiKeyDto.d.ts +107 -0
- package/dist/models/ApiKeyDto.js +114 -0
- package/dist/models/ApiKeyScopeDto.d.ts +83 -0
- package/dist/models/ApiKeyScopeDto.js +98 -0
- package/dist/models/CreateApiKeyInput.d.ts +83 -0
- package/dist/models/CreateApiKeyInput.js +96 -0
- package/dist/models/CreatedApiKeyDto.d.ts +113 -0
- package/dist/models/CreatedApiKeyDto.js +118 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
- package/dist/models/UpdateApiKeyInput.d.ts +77 -0
- package/dist/models/UpdateApiKeyInput.js +90 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/APIKeysApi.ts +271 -0
- package/src/apis/AccountsApi.ts +108 -36
- package/src/apis/AdminApi.ts +92 -0
- package/src/apis/AuctionsApi.ts +12 -4
- package/src/apis/BankAccountsApi.ts +30 -10
- package/src/apis/ChallengesApi.ts +18 -6
- package/src/apis/DomainTransfersApi.ts +6 -2
- package/src/apis/DomainsApi.ts +132 -44
- package/src/apis/EppApi.ts +6 -2
- package/src/apis/InvoicesApi.ts +18 -6
- package/src/apis/LeadsApi.ts +114 -38
- package/src/apis/MarketApi.ts +2 -2
- package/src/apis/NotificationsApi.ts +24 -8
- package/src/apis/StatsApi.ts +42 -14
- package/src/apis/SubscriptionsApi.ts +6 -2
- package/src/apis/TasksApi.ts +18 -6
- package/src/apis/UsersApi.ts +30 -10
- package/src/apis/index.ts +1 -0
- package/src/models/AdminDomainListItemDto.ts +9 -0
- package/src/models/ApiKeyDto.ts +162 -0
- package/src/models/ApiKeyScopeDto.ts +126 -0
- package/src/models/CreateApiKeyInput.ts +125 -0
- package/src/models/CreatedApiKeyDto.ts +171 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
- package/src/models/UpdateApiKeyInput.ts +115 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,162 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiKeyDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiKeyDto {
|
|
22
|
+
/**
|
|
23
|
+
* API key identifier.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiKeyDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Human readable name given to the key on creation.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiKeyDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Authorization scopes granted to this API key.
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof ApiKeyDto
|
|
38
|
+
*/
|
|
39
|
+
scope: Array<ApiKeyDtoScopeEnum>;
|
|
40
|
+
/**
|
|
41
|
+
* Masked fragment of the token, for recognising the key in a list. The full token is only returned once, at creation.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiKeyDto
|
|
44
|
+
*/
|
|
45
|
+
displayPrefix: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* When the key was last used to authenticate. Accurate to within 15 minutes; null if never used.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof ApiKeyDto
|
|
50
|
+
*/
|
|
51
|
+
lastUsedAt: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
* When the key stops being accepted. Null if it never expires.
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof ApiKeyDto
|
|
56
|
+
*/
|
|
57
|
+
expiresAt: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
* When the key was created.
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof ApiKeyDto
|
|
62
|
+
*/
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const ApiKeyDtoScopeEnum = {
|
|
71
|
+
DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
|
|
72
|
+
DOMAINS_FIND: 'DOMAINS_FIND',
|
|
73
|
+
AUCTION_LIST: 'AUCTION_LIST',
|
|
74
|
+
MARKET_DATA: 'MARKET_DATA',
|
|
75
|
+
DOMAINS_READ: 'DOMAINS_READ',
|
|
76
|
+
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
77
|
+
EPP_WRITE: 'EPP_WRITE',
|
|
78
|
+
TRANSFERS_READ: 'TRANSFERS_READ',
|
|
79
|
+
TRANSFERS_WRITE: 'TRANSFERS_WRITE',
|
|
80
|
+
LEADS_READ: 'LEADS_READ',
|
|
81
|
+
LEADS_WRITE: 'LEADS_WRITE',
|
|
82
|
+
AUCTIONS_READ: 'AUCTIONS_READ',
|
|
83
|
+
AUCTIONS_WRITE: 'AUCTIONS_WRITE',
|
|
84
|
+
STATS_READ: 'STATS_READ',
|
|
85
|
+
INVOICES_READ: 'INVOICES_READ',
|
|
86
|
+
SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
|
|
87
|
+
COMMISSIONS_READ: 'COMMISSIONS_READ',
|
|
88
|
+
TASKS_READ: 'TASKS_READ',
|
|
89
|
+
TASKS_WRITE: 'TASKS_WRITE',
|
|
90
|
+
NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
|
|
91
|
+
NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
|
|
92
|
+
CHALLENGES_READ: 'CHALLENGES_READ',
|
|
93
|
+
CHALLENGES_WRITE: 'CHALLENGES_WRITE',
|
|
94
|
+
ACCOUNT_READ: 'ACCOUNT_READ',
|
|
95
|
+
ACCOUNT_WRITE: 'ACCOUNT_WRITE',
|
|
96
|
+
ACCOUNT_DELETE: 'ACCOUNT_DELETE',
|
|
97
|
+
PAYOUTS_READ: 'PAYOUTS_READ',
|
|
98
|
+
PAYOUTS_WRITE: 'PAYOUTS_WRITE',
|
|
99
|
+
PAYMENTS_READ: 'PAYMENTS_READ',
|
|
100
|
+
PAYMENTS_WRITE: 'PAYMENTS_WRITE',
|
|
101
|
+
USERS_READ: 'USERS_READ',
|
|
102
|
+
USERS_WRITE: 'USERS_WRITE',
|
|
103
|
+
USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
|
|
104
|
+
} as const;
|
|
105
|
+
export type ApiKeyDtoScopeEnum = typeof ApiKeyDtoScopeEnum[keyof typeof ApiKeyDtoScopeEnum];
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the ApiKeyDto interface.
|
|
110
|
+
*/
|
|
111
|
+
export function instanceOfApiKeyDto(value: object): value is ApiKeyDto {
|
|
112
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
113
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
114
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
115
|
+
if (!('displayPrefix' in value) || value['displayPrefix'] === undefined) return false;
|
|
116
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined) return false;
|
|
117
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
118
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function ApiKeyDtoFromJSON(json: any): ApiKeyDto {
|
|
123
|
+
return ApiKeyDtoFromJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function ApiKeyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyDto {
|
|
127
|
+
if (json == null) {
|
|
128
|
+
return json;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'id': json['id'],
|
|
133
|
+
'name': json['name'],
|
|
134
|
+
'scope': json['scope'],
|
|
135
|
+
'displayPrefix': json['displayPrefix'],
|
|
136
|
+
'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
|
|
137
|
+
'expiresAt': (json['expiresAt'] == null ? null : new Date(json['expiresAt'])),
|
|
138
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function ApiKeyDtoToJSON(json: any): ApiKeyDto {
|
|
143
|
+
return ApiKeyDtoToJSONTyped(json, false);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function ApiKeyDtoToJSONTyped(value?: ApiKeyDto | null, ignoreDiscriminator: boolean = false): any {
|
|
147
|
+
if (value == null) {
|
|
148
|
+
return value;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'id': value['id'],
|
|
154
|
+
'name': value['name'],
|
|
155
|
+
'scope': value['scope'],
|
|
156
|
+
'displayPrefix': value['displayPrefix'],
|
|
157
|
+
'lastUsedAt': (value['lastUsedAt'] == null ? null : (value['lastUsedAt'] as any).toISOString()),
|
|
158
|
+
'expiresAt': (value['expiresAt'] == null ? null : (value['expiresAt'] as any).toISOString()),
|
|
159
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiKeyScopeDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiKeyScopeDto {
|
|
22
|
+
/**
|
|
23
|
+
* Scope value to send when creating or updating a key.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiKeyScopeDto
|
|
26
|
+
*/
|
|
27
|
+
scope: ApiKeyScopeDtoScopeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* What holding this scope allows the key to do.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiKeyScopeDto
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the scope grants irreversible or account-takeover adjacent access, and should therefore be confirmed separately before being granted.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ApiKeyScopeDto
|
|
38
|
+
*/
|
|
39
|
+
sensitive: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ApiKeyScopeDtoScopeEnum = {
|
|
47
|
+
DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
|
|
48
|
+
DOMAINS_FIND: 'DOMAINS_FIND',
|
|
49
|
+
AUCTION_LIST: 'AUCTION_LIST',
|
|
50
|
+
MARKET_DATA: 'MARKET_DATA',
|
|
51
|
+
DOMAINS_READ: 'DOMAINS_READ',
|
|
52
|
+
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
53
|
+
EPP_WRITE: 'EPP_WRITE',
|
|
54
|
+
TRANSFERS_READ: 'TRANSFERS_READ',
|
|
55
|
+
TRANSFERS_WRITE: 'TRANSFERS_WRITE',
|
|
56
|
+
LEADS_READ: 'LEADS_READ',
|
|
57
|
+
LEADS_WRITE: 'LEADS_WRITE',
|
|
58
|
+
AUCTIONS_READ: 'AUCTIONS_READ',
|
|
59
|
+
AUCTIONS_WRITE: 'AUCTIONS_WRITE',
|
|
60
|
+
STATS_READ: 'STATS_READ',
|
|
61
|
+
INVOICES_READ: 'INVOICES_READ',
|
|
62
|
+
SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
|
|
63
|
+
COMMISSIONS_READ: 'COMMISSIONS_READ',
|
|
64
|
+
TASKS_READ: 'TASKS_READ',
|
|
65
|
+
TASKS_WRITE: 'TASKS_WRITE',
|
|
66
|
+
NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
|
|
67
|
+
NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
|
|
68
|
+
CHALLENGES_READ: 'CHALLENGES_READ',
|
|
69
|
+
CHALLENGES_WRITE: 'CHALLENGES_WRITE',
|
|
70
|
+
ACCOUNT_READ: 'ACCOUNT_READ',
|
|
71
|
+
ACCOUNT_WRITE: 'ACCOUNT_WRITE',
|
|
72
|
+
ACCOUNT_DELETE: 'ACCOUNT_DELETE',
|
|
73
|
+
PAYOUTS_READ: 'PAYOUTS_READ',
|
|
74
|
+
PAYOUTS_WRITE: 'PAYOUTS_WRITE',
|
|
75
|
+
PAYMENTS_READ: 'PAYMENTS_READ',
|
|
76
|
+
PAYMENTS_WRITE: 'PAYMENTS_WRITE',
|
|
77
|
+
USERS_READ: 'USERS_READ',
|
|
78
|
+
USERS_WRITE: 'USERS_WRITE',
|
|
79
|
+
USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
|
|
80
|
+
} as const;
|
|
81
|
+
export type ApiKeyScopeDtoScopeEnum = typeof ApiKeyScopeDtoScopeEnum[keyof typeof ApiKeyScopeDtoScopeEnum];
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the ApiKeyScopeDto interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfApiKeyScopeDto(value: object): value is ApiKeyScopeDto {
|
|
88
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
89
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
90
|
+
if (!('sensitive' in value) || value['sensitive'] === undefined) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ApiKeyScopeDtoFromJSON(json: any): ApiKeyScopeDto {
|
|
95
|
+
return ApiKeyScopeDtoFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ApiKeyScopeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyScopeDto {
|
|
99
|
+
if (json == null) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'scope': json['scope'],
|
|
105
|
+
'description': json['description'],
|
|
106
|
+
'sensitive': json['sensitive'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function ApiKeyScopeDtoToJSON(json: any): ApiKeyScopeDto {
|
|
111
|
+
return ApiKeyScopeDtoToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ApiKeyScopeDtoToJSONTyped(value?: ApiKeyScopeDto | null, ignoreDiscriminator: boolean = false): any {
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'scope': value['scope'],
|
|
122
|
+
'description': value['description'],
|
|
123
|
+
'sensitive': value['sensitive'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateApiKeyInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateApiKeyInput {
|
|
22
|
+
/**
|
|
23
|
+
* Name to recognise the key by, for example the integration that will use it.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateApiKeyInput
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Scopes to grant. Must be a subset of the scopes returned by the available-scopes endpoint; a key can only reach endpoints covered by its scopes.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof CreateApiKeyInput
|
|
32
|
+
*/
|
|
33
|
+
scope: Array<CreateApiKeyInputScopeEnum>;
|
|
34
|
+
/**
|
|
35
|
+
* When the key should stop working. Omit for a key that never expires.
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof CreateApiKeyInput
|
|
38
|
+
*/
|
|
39
|
+
expiresAt?: Date;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const CreateApiKeyInputScopeEnum = {
|
|
47
|
+
DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
|
|
48
|
+
DOMAINS_FIND: 'DOMAINS_FIND',
|
|
49
|
+
AUCTION_LIST: 'AUCTION_LIST',
|
|
50
|
+
MARKET_DATA: 'MARKET_DATA',
|
|
51
|
+
DOMAINS_READ: 'DOMAINS_READ',
|
|
52
|
+
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
53
|
+
EPP_WRITE: 'EPP_WRITE',
|
|
54
|
+
TRANSFERS_READ: 'TRANSFERS_READ',
|
|
55
|
+
TRANSFERS_WRITE: 'TRANSFERS_WRITE',
|
|
56
|
+
LEADS_READ: 'LEADS_READ',
|
|
57
|
+
LEADS_WRITE: 'LEADS_WRITE',
|
|
58
|
+
AUCTIONS_READ: 'AUCTIONS_READ',
|
|
59
|
+
AUCTIONS_WRITE: 'AUCTIONS_WRITE',
|
|
60
|
+
STATS_READ: 'STATS_READ',
|
|
61
|
+
INVOICES_READ: 'INVOICES_READ',
|
|
62
|
+
SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
|
|
63
|
+
COMMISSIONS_READ: 'COMMISSIONS_READ',
|
|
64
|
+
TASKS_READ: 'TASKS_READ',
|
|
65
|
+
TASKS_WRITE: 'TASKS_WRITE',
|
|
66
|
+
NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
|
|
67
|
+
NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
|
|
68
|
+
CHALLENGES_READ: 'CHALLENGES_READ',
|
|
69
|
+
CHALLENGES_WRITE: 'CHALLENGES_WRITE',
|
|
70
|
+
ACCOUNT_READ: 'ACCOUNT_READ',
|
|
71
|
+
ACCOUNT_WRITE: 'ACCOUNT_WRITE',
|
|
72
|
+
ACCOUNT_DELETE: 'ACCOUNT_DELETE',
|
|
73
|
+
PAYOUTS_READ: 'PAYOUTS_READ',
|
|
74
|
+
PAYOUTS_WRITE: 'PAYOUTS_WRITE',
|
|
75
|
+
PAYMENTS_READ: 'PAYMENTS_READ',
|
|
76
|
+
PAYMENTS_WRITE: 'PAYMENTS_WRITE',
|
|
77
|
+
USERS_READ: 'USERS_READ',
|
|
78
|
+
USERS_WRITE: 'USERS_WRITE',
|
|
79
|
+
USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
|
|
80
|
+
} as const;
|
|
81
|
+
export type CreateApiKeyInputScopeEnum = typeof CreateApiKeyInputScopeEnum[keyof typeof CreateApiKeyInputScopeEnum];
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the CreateApiKeyInput interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfCreateApiKeyInput(value: object): value is CreateApiKeyInput {
|
|
88
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
89
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function CreateApiKeyInputFromJSON(json: any): CreateApiKeyInput {
|
|
94
|
+
return CreateApiKeyInputFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function CreateApiKeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiKeyInput {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'name': json['name'],
|
|
104
|
+
'scope': json['scope'],
|
|
105
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function CreateApiKeyInputToJSON(json: any): CreateApiKeyInput {
|
|
110
|
+
return CreateApiKeyInputToJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function CreateApiKeyInputToJSONTyped(value?: CreateApiKeyInput | null, ignoreDiscriminator: boolean = false): any {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'name': value['name'],
|
|
121
|
+
'scope': value['scope'],
|
|
122
|
+
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreatedApiKeyDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CreatedApiKeyDto {
|
|
22
|
+
/**
|
|
23
|
+
* API key identifier.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreatedApiKeyDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Human readable name given to the key on creation.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreatedApiKeyDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Authorization scopes granted to this API key.
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof CreatedApiKeyDto
|
|
38
|
+
*/
|
|
39
|
+
scope: Array<CreatedApiKeyDtoScopeEnum>;
|
|
40
|
+
/**
|
|
41
|
+
* Masked fragment of the token, for recognising the key in a list. The full token is only returned once, at creation.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreatedApiKeyDto
|
|
44
|
+
*/
|
|
45
|
+
displayPrefix: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* When the key was last used to authenticate. Accurate to within 15 minutes; null if never used.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof CreatedApiKeyDto
|
|
50
|
+
*/
|
|
51
|
+
lastUsedAt: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
* When the key stops being accepted. Null if it never expires.
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof CreatedApiKeyDto
|
|
56
|
+
*/
|
|
57
|
+
expiresAt: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
* When the key was created.
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof CreatedApiKeyDto
|
|
62
|
+
*/
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
/**
|
|
65
|
+
* The API key token. Shown only once, on creation, and unrecoverable afterwards. Send it in the `apikey` request header.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CreatedApiKeyDto
|
|
68
|
+
*/
|
|
69
|
+
token: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const CreatedApiKeyDtoScopeEnum = {
|
|
77
|
+
DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
|
|
78
|
+
DOMAINS_FIND: 'DOMAINS_FIND',
|
|
79
|
+
AUCTION_LIST: 'AUCTION_LIST',
|
|
80
|
+
MARKET_DATA: 'MARKET_DATA',
|
|
81
|
+
DOMAINS_READ: 'DOMAINS_READ',
|
|
82
|
+
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
83
|
+
EPP_WRITE: 'EPP_WRITE',
|
|
84
|
+
TRANSFERS_READ: 'TRANSFERS_READ',
|
|
85
|
+
TRANSFERS_WRITE: 'TRANSFERS_WRITE',
|
|
86
|
+
LEADS_READ: 'LEADS_READ',
|
|
87
|
+
LEADS_WRITE: 'LEADS_WRITE',
|
|
88
|
+
AUCTIONS_READ: 'AUCTIONS_READ',
|
|
89
|
+
AUCTIONS_WRITE: 'AUCTIONS_WRITE',
|
|
90
|
+
STATS_READ: 'STATS_READ',
|
|
91
|
+
INVOICES_READ: 'INVOICES_READ',
|
|
92
|
+
SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
|
|
93
|
+
COMMISSIONS_READ: 'COMMISSIONS_READ',
|
|
94
|
+
TASKS_READ: 'TASKS_READ',
|
|
95
|
+
TASKS_WRITE: 'TASKS_WRITE',
|
|
96
|
+
NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
|
|
97
|
+
NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
|
|
98
|
+
CHALLENGES_READ: 'CHALLENGES_READ',
|
|
99
|
+
CHALLENGES_WRITE: 'CHALLENGES_WRITE',
|
|
100
|
+
ACCOUNT_READ: 'ACCOUNT_READ',
|
|
101
|
+
ACCOUNT_WRITE: 'ACCOUNT_WRITE',
|
|
102
|
+
ACCOUNT_DELETE: 'ACCOUNT_DELETE',
|
|
103
|
+
PAYOUTS_READ: 'PAYOUTS_READ',
|
|
104
|
+
PAYOUTS_WRITE: 'PAYOUTS_WRITE',
|
|
105
|
+
PAYMENTS_READ: 'PAYMENTS_READ',
|
|
106
|
+
PAYMENTS_WRITE: 'PAYMENTS_WRITE',
|
|
107
|
+
USERS_READ: 'USERS_READ',
|
|
108
|
+
USERS_WRITE: 'USERS_WRITE',
|
|
109
|
+
USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
|
|
110
|
+
} as const;
|
|
111
|
+
export type CreatedApiKeyDtoScopeEnum = typeof CreatedApiKeyDtoScopeEnum[keyof typeof CreatedApiKeyDtoScopeEnum];
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the CreatedApiKeyDto interface.
|
|
116
|
+
*/
|
|
117
|
+
export function instanceOfCreatedApiKeyDto(value: object): value is CreatedApiKeyDto {
|
|
118
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
119
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
120
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
121
|
+
if (!('displayPrefix' in value) || value['displayPrefix'] === undefined) return false;
|
|
122
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined) return false;
|
|
123
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
124
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
125
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function CreatedApiKeyDtoFromJSON(json: any): CreatedApiKeyDto {
|
|
130
|
+
return CreatedApiKeyDtoFromJSONTyped(json, false);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function CreatedApiKeyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedApiKeyDto {
|
|
134
|
+
if (json == null) {
|
|
135
|
+
return json;
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
|
|
139
|
+
'id': json['id'],
|
|
140
|
+
'name': json['name'],
|
|
141
|
+
'scope': json['scope'],
|
|
142
|
+
'displayPrefix': json['displayPrefix'],
|
|
143
|
+
'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
|
|
144
|
+
'expiresAt': (json['expiresAt'] == null ? null : new Date(json['expiresAt'])),
|
|
145
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
146
|
+
'token': json['token'],
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function CreatedApiKeyDtoToJSON(json: any): CreatedApiKeyDto {
|
|
151
|
+
return CreatedApiKeyDtoToJSONTyped(json, false);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function CreatedApiKeyDtoToJSONTyped(value?: CreatedApiKeyDto | null, ignoreDiscriminator: boolean = false): any {
|
|
155
|
+
if (value == null) {
|
|
156
|
+
return value;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'id': value['id'],
|
|
162
|
+
'name': value['name'],
|
|
163
|
+
'scope': value['scope'],
|
|
164
|
+
'displayPrefix': value['displayPrefix'],
|
|
165
|
+
'lastUsedAt': (value['lastUsedAt'] == null ? null : (value['lastUsedAt'] as any).toISOString()),
|
|
166
|
+
'expiresAt': (value['expiresAt'] == null ? null : (value['expiresAt'] as any).toISOString()),
|
|
167
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
168
|
+
'token': value['token'],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -243,6 +243,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
243
243
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
244
244
|
*/
|
|
245
245
|
lockedUntil: Date | null;
|
|
246
|
+
/**
|
|
247
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
248
|
+
* @type {boolean}
|
|
249
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
250
|
+
*/
|
|
251
|
+
showcased: boolean;
|
|
246
252
|
/**
|
|
247
253
|
* Account that owns the domain.
|
|
248
254
|
* @type {AccountDto}
|
|
@@ -290,6 +296,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
|
|
|
290
296
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
291
297
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
292
298
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
299
|
+
if (!('showcased' in value) || value['showcased'] === undefined) return false;
|
|
293
300
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
294
301
|
if (!('hasAuction' in value) || value['hasAuction'] === undefined) return false;
|
|
295
302
|
return true;
|
|
@@ -334,6 +341,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
|
|
|
334
341
|
'isDeleteable': json['isDeleteable'],
|
|
335
342
|
'isLocked': json['isLocked'],
|
|
336
343
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
344
|
+
'showcased': json['showcased'],
|
|
337
345
|
'account': AccountDtoFromJSON(json['account']),
|
|
338
346
|
'hasAuction': json['hasAuction'],
|
|
339
347
|
};
|
|
@@ -379,6 +387,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
|
|
|
379
387
|
'isDeleteable': value['isDeleteable'],
|
|
380
388
|
'isLocked': value['isLocked'],
|
|
381
389
|
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
390
|
+
'showcased': value['showcased'],
|
|
382
391
|
'account': AccountDtoToJSON(value['account']),
|
|
383
392
|
'hasAuction': value['hasAuction'],
|
|
384
393
|
};
|
|
@@ -243,6 +243,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
243
243
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
244
244
|
*/
|
|
245
245
|
lockedUntil: Date | null;
|
|
246
|
+
/**
|
|
247
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
248
|
+
* @type {boolean}
|
|
249
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
250
|
+
*/
|
|
251
|
+
showcased: boolean;
|
|
246
252
|
/**
|
|
247
253
|
* Account managing the domain on behalf of the owner, when a hijacker is assigned.
|
|
248
254
|
* @type {AccountDto}
|
|
@@ -290,6 +296,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
290
296
|
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined) return false;
|
|
291
297
|
if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
|
|
292
298
|
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
|
|
299
|
+
if (!('showcased' in value) || value['showcased'] === undefined) return false;
|
|
293
300
|
if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
|
|
294
301
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
295
302
|
return true;
|
|
@@ -334,6 +341,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
334
341
|
'isDeleteable': json['isDeleteable'],
|
|
335
342
|
'isLocked': json['isLocked'],
|
|
336
343
|
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
344
|
+
'showcased': json['showcased'],
|
|
337
345
|
'hijacker': AccountDtoFromJSON(json['hijacker']),
|
|
338
346
|
'account': AccountDtoFromJSON(json['account']),
|
|
339
347
|
};
|
|
@@ -379,6 +387,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
379
387
|
'isDeleteable': value['isDeleteable'],
|
|
380
388
|
'isLocked': value['isLocked'],
|
|
381
389
|
'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
|
|
390
|
+
'showcased': value['showcased'],
|
|
382
391
|
'hijacker': AccountDtoToJSON(value['hijacker']),
|
|
383
392
|
'account': AccountDtoToJSON(value['account']),
|
|
384
393
|
};
|