@randock/nameshift-api-client 0.0.448 → 0.0.450

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 (162) hide show
  1. package/.openapi-generator/FILES +12 -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/AdminApi.d.ts +37 -1
  8. package/dist/apis/AdminApi.js +122 -1
  9. package/dist/apis/AuctionsApi.d.ts +4 -4
  10. package/dist/apis/AuctionsApi.js +40 -24
  11. package/dist/apis/BankAccountsApi.d.ts +10 -10
  12. package/dist/apis/BankAccountsApi.js +100 -60
  13. package/dist/apis/ChallengesApi.d.ts +6 -6
  14. package/dist/apis/ChallengesApi.js +60 -36
  15. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  16. package/dist/apis/DomainTransfersApi.js +20 -12
  17. package/dist/apis/DomainsApi.d.ts +44 -44
  18. package/dist/apis/DomainsApi.js +440 -264
  19. package/dist/apis/EppApi.d.ts +2 -2
  20. package/dist/apis/EppApi.js +20 -12
  21. package/dist/apis/InvoicesApi.d.ts +6 -6
  22. package/dist/apis/InvoicesApi.js +60 -36
  23. package/dist/apis/LeadsApi.d.ts +38 -38
  24. package/dist/apis/LeadsApi.js +380 -228
  25. package/dist/apis/MarketplacesApi.d.ts +89 -0
  26. package/dist/apis/MarketplacesApi.js +332 -0
  27. package/dist/apis/NotificationsApi.d.ts +8 -8
  28. package/dist/apis/NotificationsApi.js +80 -48
  29. package/dist/apis/StatsApi.d.ts +14 -14
  30. package/dist/apis/StatsApi.js +140 -84
  31. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  32. package/dist/apis/SubscriptionsApi.js +20 -12
  33. package/dist/apis/TasksApi.d.ts +6 -6
  34. package/dist/apis/TasksApi.js +60 -36
  35. package/dist/apis/UsersApi.d.ts +10 -10
  36. package/dist/apis/UsersApi.js +100 -60
  37. package/dist/apis/index.d.ts +2 -0
  38. package/dist/apis/index.js +2 -0
  39. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  40. package/dist/models/AccountMarketplaceDto.js +71 -0
  41. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  42. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  43. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  44. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  45. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  46. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  47. package/dist/models/AccountSettingsDto.d.ts +18 -0
  48. package/dist/models/AccountSettingsDto.js +16 -0
  49. package/dist/models/AccountSettingsInput.d.ts +18 -0
  50. package/dist/models/AccountSettingsInput.js +14 -0
  51. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  52. package/dist/models/AdminDomainListItemDto.js +17 -1
  53. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  54. package/dist/models/AdminMarketplaceDto.js +91 -0
  55. package/dist/models/ApiKeyDto.d.ts +107 -0
  56. package/dist/models/ApiKeyDto.js +114 -0
  57. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  58. package/dist/models/ApiKeyScopeDto.js +98 -0
  59. package/dist/models/CommissionDto.d.ts +1 -0
  60. package/dist/models/CommissionDto.js +1 -0
  61. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  62. package/dist/models/CommissionPayloadInput.js +1 -0
  63. package/dist/models/CommissionReasonDto.d.ts +1 -0
  64. package/dist/models/CommissionReasonDto.js +1 -0
  65. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  66. package/dist/models/CommissionSimulationItemInput.js +1 -0
  67. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  68. package/dist/models/CreateApiKeyInput.js +96 -0
  69. package/dist/models/CreateOrderInput.d.ts +6 -0
  70. package/dist/models/CreateOrderInput.js +2 -0
  71. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  72. package/dist/models/CreateSubscriptionInput.js +2 -0
  73. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  74. package/dist/models/CreatedApiKeyDto.js +118 -0
  75. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  76. package/dist/models/FeatureFlagListItemDto.js +2 -1
  77. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  78. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  79. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  80. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  81. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  82. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  83. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  84. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  85. package/dist/models/MarketplaceDto.d.ts +74 -0
  86. package/dist/models/MarketplaceDto.js +83 -0
  87. package/dist/models/OrderDto.d.ts +7 -1
  88. package/dist/models/OrderDto.js +4 -0
  89. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  90. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  91. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  92. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  93. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  94. package/dist/models/SimulateCommissionInput.js +1 -0
  95. package/dist/models/SubscriptionDto.d.ts +7 -1
  96. package/dist/models/SubscriptionDto.js +4 -0
  97. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  98. package/dist/models/UpdateApiKeyInput.js +90 -0
  99. package/dist/models/UpdateDomainInput.d.ts +18 -0
  100. package/dist/models/UpdateDomainInput.js +14 -0
  101. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  102. package/dist/models/UpdateMarketplaceInput.js +53 -0
  103. package/dist/models/UpdateOrderInput.d.ts +6 -0
  104. package/dist/models/UpdateOrderInput.js +2 -0
  105. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  106. package/dist/models/UpdateSubscriptionInput.js +2 -0
  107. package/dist/models/index.d.ts +10 -0
  108. package/dist/models/index.js +10 -0
  109. package/package.json +1 -1
  110. package/src/apis/APIKeysApi.ts +271 -0
  111. package/src/apis/AccountsApi.ts +108 -36
  112. package/src/apis/AdminApi.ts +112 -0
  113. package/src/apis/AuctionsApi.ts +12 -4
  114. package/src/apis/BankAccountsApi.ts +30 -10
  115. package/src/apis/ChallengesApi.ts +18 -6
  116. package/src/apis/DomainTransfersApi.ts +6 -2
  117. package/src/apis/DomainsApi.ts +132 -44
  118. package/src/apis/EppApi.ts +6 -2
  119. package/src/apis/InvoicesApi.ts +18 -6
  120. package/src/apis/LeadsApi.ts +114 -38
  121. package/src/apis/MarketplacesApi.ts +240 -0
  122. package/src/apis/NotificationsApi.ts +24 -8
  123. package/src/apis/StatsApi.ts +42 -14
  124. package/src/apis/SubscriptionsApi.ts +6 -2
  125. package/src/apis/TasksApi.ts +18 -6
  126. package/src/apis/UsersApi.ts +30 -10
  127. package/src/apis/index.ts +2 -0
  128. package/src/models/AccountMarketplaceDto.ts +99 -0
  129. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  130. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  131. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  132. package/src/models/AccountSettingsDto.ts +24 -0
  133. package/src/models/AccountSettingsInput.ts +23 -0
  134. package/src/models/AdminDomainListItemDto.ts +23 -0
  135. package/src/models/AdminMarketplaceDto.ts +144 -0
  136. package/src/models/ApiKeyDto.ts +162 -0
  137. package/src/models/ApiKeyScopeDto.ts +126 -0
  138. package/src/models/CommissionDto.ts +1 -0
  139. package/src/models/CommissionPayloadInput.ts +1 -0
  140. package/src/models/CommissionReasonDto.ts +1 -0
  141. package/src/models/CommissionSimulationItemInput.ts +1 -0
  142. package/src/models/CreateApiKeyInput.ts +125 -0
  143. package/src/models/CreateOrderInput.ts +8 -0
  144. package/src/models/CreateSubscriptionInput.ts +8 -0
  145. package/src/models/CreatedApiKeyDto.ts +171 -0
  146. package/src/models/FeatureFlagListItemDto.ts +2 -1
  147. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  148. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  149. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  150. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  151. package/src/models/MarketplaceDto.ts +126 -0
  152. package/src/models/OrderDto.ts +10 -1
  153. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  154. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  155. package/src/models/SimulateCommissionInput.ts +1 -0
  156. package/src/models/SubscriptionDto.ts +10 -1
  157. package/src/models/UpdateApiKeyInput.ts +115 -0
  158. package/src/models/UpdateDomainInput.ts +23 -0
  159. package/src/models/UpdateMarketplaceInput.ts +81 -0
  160. package/src/models/UpdateOrderInput.ts +8 -0
  161. package/src/models/UpdateSubscriptionInput.ts +8 -0
  162. package/src/models/index.ts +10 -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
+
@@ -130,6 +130,7 @@ export type CommissionDtoTypeEnum = typeof CommissionDtoTypeEnum[keyof typeof Co
130
130
  export const CommissionDtoSubtypeEnum = {
131
131
  POINTING: 'pointing',
132
132
  NOT_POINTING: 'not_pointing',
133
+ ROUTED: 'routed',
133
134
  MANUAL_LEAD: 'manual_lead',
134
135
  AUCTION: 'auction'
135
136
  } as const;
@@ -111,6 +111,7 @@ export type CommissionPayloadInputTypeEnum = typeof CommissionPayloadInputTypeEn
111
111
  export const CommissionPayloadInputSubtypeEnum = {
112
112
  POINTING: 'pointing',
113
113
  NOT_POINTING: 'not_pointing',
114
+ ROUTED: 'routed',
114
115
  MANUAL_LEAD: 'manual_lead',
115
116
  AUCTION: 'auction'
116
117
  } as const;
@@ -148,6 +148,7 @@ export type CommissionReasonDtoTypeEnum = typeof CommissionReasonDtoTypeEnum[key
148
148
  export const CommissionReasonDtoSubtypeEnum = {
149
149
  POINTING: 'pointing',
150
150
  NOT_POINTING: 'not_pointing',
151
+ ROUTED: 'routed',
151
152
  MANUAL_LEAD: 'manual_lead',
152
153
  AUCTION: 'auction'
153
154
  } as const;
@@ -123,6 +123,7 @@ export type CommissionSimulationItemInputTypeEnum = typeof CommissionSimulationI
123
123
  export const CommissionSimulationItemInputSubtypeEnum = {
124
124
  POINTING: 'pointing',
125
125
  NOT_POINTING: 'not_pointing',
126
+ ROUTED: 'routed',
126
127
  MANUAL_LEAD: 'manual_lead',
127
128
  AUCTION: 'auction'
128
129
  } as const;
@@ -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
+
@@ -99,6 +99,12 @@ export interface CreateOrderInput {
99
99
  * @memberof CreateOrderInput
100
100
  */
101
101
  selfDeclaredTaxCountry?: string;
102
+ /**
103
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
104
+ * @type {boolean}
105
+ * @memberof CreateOrderInput
106
+ */
107
+ forceUpdatePaymentMethods?: boolean;
102
108
  /**
103
109
  * Full domain name to purchase
104
110
  * @type {string}
@@ -149,6 +155,7 @@ export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
149
155
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
150
156
  'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
151
157
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
158
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
152
159
  'domainName': json['domainName'],
153
160
  'leadId': json['leadId'] == null ? undefined : json['leadId'],
154
161
  'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
@@ -178,6 +185,7 @@ export function CreateOrderInputToJSONTyped(value?: CreateOrderInput | null, ign
178
185
  'addressCity': value['addressCity'],
179
186
  'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
180
187
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
188
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
181
189
  'domainName': value['domainName'],
182
190
  'leadId': value['leadId'],
183
191
  'affiliateId': value['affiliateId'],
@@ -118,6 +118,12 @@ export interface CreateSubscriptionInput {
118
118
  * @memberof CreateSubscriptionInput
119
119
  */
120
120
  selfDeclaredTaxCountry?: string;
121
+ /**
122
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
123
+ * @type {boolean}
124
+ * @memberof CreateSubscriptionInput
125
+ */
126
+ forceUpdatePaymentMethods?: boolean;
121
127
  /**
122
128
  * Full domain name for the subscription
123
129
  * @type {string}
@@ -182,6 +188,7 @@ export function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
182
188
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
183
189
  'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
184
190
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
191
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
185
192
  'domainName': json['domainName'],
186
193
  'subscriptionType': json['subscriptionType'],
187
194
  'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
@@ -213,6 +220,7 @@ export function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInp
213
220
  'addressCity': value['addressCity'],
214
221
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
215
222
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
223
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
216
224
  'domainName': value['domainName'],
217
225
  'subscriptionType': value['subscriptionType'],
218
226
  'affiliateId': value['affiliateId'],
@@ -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
+