@randock/nameshift-api-client 0.0.448 → 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.
Files changed (69) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/APIKeysApi.d.ts +78 -0
  4. package/dist/apis/APIKeysApi.js +354 -0
  5. package/dist/apis/AccountsApi.d.ts +36 -36
  6. package/dist/apis/AccountsApi.js +360 -216
  7. package/dist/apis/AuctionsApi.d.ts +4 -4
  8. package/dist/apis/AuctionsApi.js +40 -24
  9. package/dist/apis/BankAccountsApi.d.ts +10 -10
  10. package/dist/apis/BankAccountsApi.js +100 -60
  11. package/dist/apis/ChallengesApi.d.ts +6 -6
  12. package/dist/apis/ChallengesApi.js +60 -36
  13. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  14. package/dist/apis/DomainTransfersApi.js +20 -12
  15. package/dist/apis/DomainsApi.d.ts +44 -44
  16. package/dist/apis/DomainsApi.js +440 -264
  17. package/dist/apis/EppApi.d.ts +2 -2
  18. package/dist/apis/EppApi.js +20 -12
  19. package/dist/apis/InvoicesApi.d.ts +6 -6
  20. package/dist/apis/InvoicesApi.js +60 -36
  21. package/dist/apis/LeadsApi.d.ts +38 -38
  22. package/dist/apis/LeadsApi.js +380 -228
  23. package/dist/apis/NotificationsApi.d.ts +8 -8
  24. package/dist/apis/NotificationsApi.js +80 -48
  25. package/dist/apis/StatsApi.d.ts +14 -14
  26. package/dist/apis/StatsApi.js +140 -84
  27. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  28. package/dist/apis/SubscriptionsApi.js +20 -12
  29. package/dist/apis/TasksApi.d.ts +6 -6
  30. package/dist/apis/TasksApi.js +60 -36
  31. package/dist/apis/UsersApi.d.ts +10 -10
  32. package/dist/apis/UsersApi.js +100 -60
  33. package/dist/apis/index.d.ts +1 -0
  34. package/dist/apis/index.js +1 -0
  35. package/dist/models/ApiKeyDto.d.ts +107 -0
  36. package/dist/models/ApiKeyDto.js +114 -0
  37. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  38. package/dist/models/ApiKeyScopeDto.js +98 -0
  39. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  40. package/dist/models/CreateApiKeyInput.js +96 -0
  41. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  42. package/dist/models/CreatedApiKeyDto.js +118 -0
  43. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  44. package/dist/models/UpdateApiKeyInput.js +90 -0
  45. package/dist/models/index.d.ts +5 -0
  46. package/dist/models/index.js +5 -0
  47. package/package.json +1 -1
  48. package/src/apis/APIKeysApi.ts +271 -0
  49. package/src/apis/AccountsApi.ts +108 -36
  50. package/src/apis/AuctionsApi.ts +12 -4
  51. package/src/apis/BankAccountsApi.ts +30 -10
  52. package/src/apis/ChallengesApi.ts +18 -6
  53. package/src/apis/DomainTransfersApi.ts +6 -2
  54. package/src/apis/DomainsApi.ts +132 -44
  55. package/src/apis/EppApi.ts +6 -2
  56. package/src/apis/InvoicesApi.ts +18 -6
  57. package/src/apis/LeadsApi.ts +114 -38
  58. package/src/apis/NotificationsApi.ts +24 -8
  59. package/src/apis/StatsApi.ts +42 -14
  60. package/src/apis/SubscriptionsApi.ts +6 -2
  61. package/src/apis/TasksApi.ts +18 -6
  62. package/src/apis/UsersApi.ts +30 -10
  63. package/src/apis/index.ts +1 -0
  64. package/src/models/ApiKeyDto.ts +162 -0
  65. package/src/models/ApiKeyScopeDto.ts +126 -0
  66. package/src/models/CreateApiKeyInput.ts +125 -0
  67. package/src/models/CreatedApiKeyDto.ts +171 -0
  68. package/src/models/UpdateApiKeyInput.ts +115 -0
  69. 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
+
@@ -0,0 +1,115 @@
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 UpdateApiKeyInput
20
+ */
21
+ export interface UpdateApiKeyInput {
22
+ /**
23
+ * New name for the key.
24
+ * @type {string}
25
+ * @memberof UpdateApiKeyInput
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Replacement set of scopes. Takes effect on the next request made with the key.
30
+ * @type {Array<string>}
31
+ * @memberof UpdateApiKeyInput
32
+ */
33
+ scope?: Array<UpdateApiKeyInputScopeEnum>;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const UpdateApiKeyInputScopeEnum = {
41
+ DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
42
+ DOMAINS_FIND: 'DOMAINS_FIND',
43
+ AUCTION_LIST: 'AUCTION_LIST',
44
+ MARKET_DATA: 'MARKET_DATA',
45
+ DOMAINS_READ: 'DOMAINS_READ',
46
+ DOMAINS_WRITE: 'DOMAINS_WRITE',
47
+ EPP_WRITE: 'EPP_WRITE',
48
+ TRANSFERS_READ: 'TRANSFERS_READ',
49
+ TRANSFERS_WRITE: 'TRANSFERS_WRITE',
50
+ LEADS_READ: 'LEADS_READ',
51
+ LEADS_WRITE: 'LEADS_WRITE',
52
+ AUCTIONS_READ: 'AUCTIONS_READ',
53
+ AUCTIONS_WRITE: 'AUCTIONS_WRITE',
54
+ STATS_READ: 'STATS_READ',
55
+ INVOICES_READ: 'INVOICES_READ',
56
+ SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
57
+ COMMISSIONS_READ: 'COMMISSIONS_READ',
58
+ TASKS_READ: 'TASKS_READ',
59
+ TASKS_WRITE: 'TASKS_WRITE',
60
+ NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
61
+ NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
62
+ CHALLENGES_READ: 'CHALLENGES_READ',
63
+ CHALLENGES_WRITE: 'CHALLENGES_WRITE',
64
+ ACCOUNT_READ: 'ACCOUNT_READ',
65
+ ACCOUNT_WRITE: 'ACCOUNT_WRITE',
66
+ ACCOUNT_DELETE: 'ACCOUNT_DELETE',
67
+ PAYOUTS_READ: 'PAYOUTS_READ',
68
+ PAYOUTS_WRITE: 'PAYOUTS_WRITE',
69
+ PAYMENTS_READ: 'PAYMENTS_READ',
70
+ PAYMENTS_WRITE: 'PAYMENTS_WRITE',
71
+ USERS_READ: 'USERS_READ',
72
+ USERS_WRITE: 'USERS_WRITE',
73
+ USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
74
+ } as const;
75
+ export type UpdateApiKeyInputScopeEnum = typeof UpdateApiKeyInputScopeEnum[keyof typeof UpdateApiKeyInputScopeEnum];
76
+
77
+
78
+ /**
79
+ * Check if a given object implements the UpdateApiKeyInput interface.
80
+ */
81
+ export function instanceOfUpdateApiKeyInput(value: object): value is UpdateApiKeyInput {
82
+ return true;
83
+ }
84
+
85
+ export function UpdateApiKeyInputFromJSON(json: any): UpdateApiKeyInput {
86
+ return UpdateApiKeyInputFromJSONTyped(json, false);
87
+ }
88
+
89
+ export function UpdateApiKeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiKeyInput {
90
+ if (json == null) {
91
+ return json;
92
+ }
93
+ return {
94
+
95
+ 'name': json['name'] == null ? undefined : json['name'],
96
+ 'scope': json['scope'] == null ? undefined : json['scope'],
97
+ };
98
+ }
99
+
100
+ export function UpdateApiKeyInputToJSON(json: any): UpdateApiKeyInput {
101
+ return UpdateApiKeyInputToJSONTyped(json, false);
102
+ }
103
+
104
+ export function UpdateApiKeyInputToJSONTyped(value?: UpdateApiKeyInput | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'name': value['name'],
112
+ 'scope': value['scope'],
113
+ };
114
+ }
115
+