@randock/nameshift-api-client 0.0.479 → 0.0.481

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.
@@ -50,17 +50,21 @@ import type {
50
50
  GetAllOwnedDomains200Response,
51
51
  GetAllSubscriptions200Response,
52
52
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
53
+ LeadEnrichmentDto,
53
54
  LeadMessageDto,
54
55
  LedgerMutationsDto,
55
56
  LinkBankDepositToBankAccountInput,
56
57
  LinkBankDepositToInvoiceInput,
57
58
  ListAccounts200Response,
59
+ ListAdminRelatedLeads200Response,
58
60
  ListBankAccounts200Response,
59
61
  ListBankDeposits200Response,
60
62
  ListDomains200Response,
63
+ ListLeadMessagesDto,
61
64
  ListLeads200Response,
62
65
  NotFoundException,
63
66
  ObjectId,
67
+ SellerLeadDetails,
64
68
  SellerSalesByTldStatsItemDto,
65
69
  SellerSalesCountStatsItemDto,
66
70
  SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
@@ -146,6 +150,8 @@ import {
146
150
  GetAllSubscriptions200ResponseToJSON,
147
151
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON,
148
152
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
153
+ LeadEnrichmentDtoFromJSON,
154
+ LeadEnrichmentDtoToJSON,
149
155
  LeadMessageDtoFromJSON,
150
156
  LeadMessageDtoToJSON,
151
157
  LedgerMutationsDtoFromJSON,
@@ -156,18 +162,24 @@ import {
156
162
  LinkBankDepositToInvoiceInputToJSON,
157
163
  ListAccounts200ResponseFromJSON,
158
164
  ListAccounts200ResponseToJSON,
165
+ ListAdminRelatedLeads200ResponseFromJSON,
166
+ ListAdminRelatedLeads200ResponseToJSON,
159
167
  ListBankAccounts200ResponseFromJSON,
160
168
  ListBankAccounts200ResponseToJSON,
161
169
  ListBankDeposits200ResponseFromJSON,
162
170
  ListBankDeposits200ResponseToJSON,
163
171
  ListDomains200ResponseFromJSON,
164
172
  ListDomains200ResponseToJSON,
173
+ ListLeadMessagesDtoFromJSON,
174
+ ListLeadMessagesDtoToJSON,
165
175
  ListLeads200ResponseFromJSON,
166
176
  ListLeads200ResponseToJSON,
167
177
  NotFoundExceptionFromJSON,
168
178
  NotFoundExceptionToJSON,
169
179
  ObjectIdFromJSON,
170
180
  ObjectIdToJSON,
181
+ SellerLeadDetailsFromJSON,
182
+ SellerLeadDetailsToJSON,
171
183
  SellerSalesByTldStatsItemDtoFromJSON,
172
184
  SellerSalesByTldStatsItemDtoToJSON,
173
185
  SellerSalesCountStatsItemDtoFromJSON,
@@ -294,6 +306,14 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
294
306
  domainTransferId: string;
295
307
  }
296
308
 
309
+ export interface AdminApiGetAdminLeadDetailsRequest {
310
+ leadId: string;
311
+ }
312
+
313
+ export interface AdminApiGetAdminLeadEnrichmentRequest {
314
+ leadId: string;
315
+ }
316
+
297
317
  export interface AdminApiGetAdminSalesByTldRequest {
298
318
  currency: string;
299
319
  accountId?: string;
@@ -398,6 +418,19 @@ export interface AdminApiListAccountsRequest {
398
418
  filterSearchTerm?: string;
399
419
  }
400
420
 
421
+ export interface AdminApiListAdminLeadMessagesRequest {
422
+ leadId: string;
423
+ }
424
+
425
+ export interface AdminApiListAdminRelatedLeadsRequest {
426
+ leadId: string;
427
+ filter?: { [key: string]: string; };
428
+ page?: number;
429
+ limit?: number;
430
+ sortBy?: Array<string>;
431
+ filterStatus?: string;
432
+ }
433
+
401
434
  export interface AdminApiListAllCommissionsRequest {
402
435
  accountId?: string;
403
436
  }
@@ -490,6 +523,10 @@ export interface AdminApiRemoveDomainLockRequest {
490
523
  lockId: string;
491
524
  }
492
525
 
526
+ export interface AdminApiReopenAdminLeadRequest {
527
+ leadId: string;
528
+ }
529
+
493
530
  export interface AdminApiShowcaseDomainRequest {
494
531
  domainId: string;
495
532
  }
@@ -1564,6 +1601,92 @@ export class AdminApi extends runtime.BaseAPI {
1564
1601
  return await response.value();
1565
1602
  }
1566
1603
 
1604
+ /**
1605
+ * Returns a lead as the seller sees it, for any account. Read only. Requires admin bearer authentication.
1606
+ * Get lead details
1607
+ */
1608
+ async getAdminLeadDetailsRaw(requestParameters: AdminApiGetAdminLeadDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerLeadDetails>> {
1609
+ if (requestParameters['leadId'] == null) {
1610
+ throw new runtime.RequiredError(
1611
+ 'leadId',
1612
+ 'Required parameter "leadId" was null or undefined when calling getAdminLeadDetails().'
1613
+ );
1614
+ }
1615
+
1616
+ const queryParameters: any = {};
1617
+
1618
+ const headerParameters: runtime.HTTPHeaders = {};
1619
+
1620
+ if (this.configuration && this.configuration.accessToken) {
1621
+ const token = this.configuration.accessToken;
1622
+ const tokenString = await token("bearer", []);
1623
+
1624
+ if (tokenString) {
1625
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1626
+ }
1627
+ }
1628
+ const response = await this.request({
1629
+ path: `/admin/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
1630
+ method: 'GET',
1631
+ headers: headerParameters,
1632
+ query: queryParameters,
1633
+ }, initOverrides);
1634
+
1635
+ return new runtime.JSONApiResponse(response, (jsonValue) => SellerLeadDetailsFromJSON(jsonValue));
1636
+ }
1637
+
1638
+ /**
1639
+ * Returns a lead as the seller sees it, for any account. Read only. Requires admin bearer authentication.
1640
+ * Get lead details
1641
+ */
1642
+ async getAdminLeadDetails(requestParameters: AdminApiGetAdminLeadDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerLeadDetails> {
1643
+ const response = await this.getAdminLeadDetailsRaw(requestParameters, initOverrides);
1644
+ return await response.value();
1645
+ }
1646
+
1647
+ /**
1648
+ * Returns the buyer background enrichment of a lead, for any account. Requires admin bearer authentication.
1649
+ * Get lead buyer enrichment
1650
+ */
1651
+ async getAdminLeadEnrichmentRaw(requestParameters: AdminApiGetAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadEnrichmentDto>> {
1652
+ if (requestParameters['leadId'] == null) {
1653
+ throw new runtime.RequiredError(
1654
+ 'leadId',
1655
+ 'Required parameter "leadId" was null or undefined when calling getAdminLeadEnrichment().'
1656
+ );
1657
+ }
1658
+
1659
+ const queryParameters: any = {};
1660
+
1661
+ const headerParameters: runtime.HTTPHeaders = {};
1662
+
1663
+ if (this.configuration && this.configuration.accessToken) {
1664
+ const token = this.configuration.accessToken;
1665
+ const tokenString = await token("bearer", []);
1666
+
1667
+ if (tokenString) {
1668
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1669
+ }
1670
+ }
1671
+ const response = await this.request({
1672
+ path: `/admin/leads/{leadId}/enrichment`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
1673
+ method: 'GET',
1674
+ headers: headerParameters,
1675
+ query: queryParameters,
1676
+ }, initOverrides);
1677
+
1678
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadEnrichmentDtoFromJSON(jsonValue));
1679
+ }
1680
+
1681
+ /**
1682
+ * Returns the buyer background enrichment of a lead, for any account. Requires admin bearer authentication.
1683
+ * Get lead buyer enrichment
1684
+ */
1685
+ async getAdminLeadEnrichment(requestParameters: AdminApiGetAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadEnrichmentDto> {
1686
+ const response = await this.getAdminLeadEnrichmentRaw(requestParameters, initOverrides);
1687
+ return await response.value();
1688
+ }
1689
+
1567
1690
  /**
1568
1691
  * Returns sales statistics grouped by top-level domain, optionally filtered by account, currency, and date range.
1569
1692
  * Get admin sales by TLD
@@ -2399,6 +2522,49 @@ export class AdminApi extends runtime.BaseAPI {
2399
2522
  return await response.value();
2400
2523
  }
2401
2524
 
2525
+ /**
2526
+ * Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
2527
+ * List lead messages
2528
+ */
2529
+ async listAdminLeadMessagesRaw(requestParameters: AdminApiListAdminLeadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeadMessagesDto>> {
2530
+ if (requestParameters['leadId'] == null) {
2531
+ throw new runtime.RequiredError(
2532
+ 'leadId',
2533
+ 'Required parameter "leadId" was null or undefined when calling listAdminLeadMessages().'
2534
+ );
2535
+ }
2536
+
2537
+ const queryParameters: any = {};
2538
+
2539
+ const headerParameters: runtime.HTTPHeaders = {};
2540
+
2541
+ if (this.configuration && this.configuration.accessToken) {
2542
+ const token = this.configuration.accessToken;
2543
+ const tokenString = await token("bearer", []);
2544
+
2545
+ if (tokenString) {
2546
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2547
+ }
2548
+ }
2549
+ const response = await this.request({
2550
+ path: `/admin/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
2551
+ method: 'GET',
2552
+ headers: headerParameters,
2553
+ query: queryParameters,
2554
+ }, initOverrides);
2555
+
2556
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListLeadMessagesDtoFromJSON(jsonValue));
2557
+ }
2558
+
2559
+ /**
2560
+ * Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
2561
+ * List lead messages
2562
+ */
2563
+ async listAdminLeadMessages(requestParameters: AdminApiListAdminLeadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLeadMessagesDto> {
2564
+ const response = await this.listAdminLeadMessagesRaw(requestParameters, initOverrides);
2565
+ return await response.value();
2566
+ }
2567
+
2402
2568
  /**
2403
2569
  * Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
2404
2570
  * List all marketplaces
@@ -2435,6 +2601,69 @@ export class AdminApi extends runtime.BaseAPI {
2435
2601
  return await response.value();
2436
2602
  }
2437
2603
 
2604
+ /**
2605
+ * Lists the leads related to the given one, for any account. Requires admin bearer authentication.
2606
+ * List related leads
2607
+ */
2608
+ async listAdminRelatedLeadsRaw(requestParameters: AdminApiListAdminRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAdminRelatedLeads200Response>> {
2609
+ if (requestParameters['leadId'] == null) {
2610
+ throw new runtime.RequiredError(
2611
+ 'leadId',
2612
+ 'Required parameter "leadId" was null or undefined when calling listAdminRelatedLeads().'
2613
+ );
2614
+ }
2615
+
2616
+ const queryParameters: any = {};
2617
+
2618
+ if (requestParameters['filter'] != null) {
2619
+ queryParameters['filter'] = requestParameters['filter'];
2620
+ }
2621
+
2622
+ if (requestParameters['page'] != null) {
2623
+ queryParameters['page'] = requestParameters['page'];
2624
+ }
2625
+
2626
+ if (requestParameters['limit'] != null) {
2627
+ queryParameters['limit'] = requestParameters['limit'];
2628
+ }
2629
+
2630
+ if (requestParameters['sortBy'] != null) {
2631
+ queryParameters['sortBy'] = requestParameters['sortBy'];
2632
+ }
2633
+
2634
+ if (requestParameters['filterStatus'] != null) {
2635
+ queryParameters['filter[status]'] = requestParameters['filterStatus'];
2636
+ }
2637
+
2638
+ const headerParameters: runtime.HTTPHeaders = {};
2639
+
2640
+ if (this.configuration && this.configuration.accessToken) {
2641
+ const token = this.configuration.accessToken;
2642
+ const tokenString = await token("bearer", []);
2643
+
2644
+ if (tokenString) {
2645
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2646
+ }
2647
+ }
2648
+ const response = await this.request({
2649
+ path: `/admin/leads/{leadId}/related`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
2650
+ method: 'GET',
2651
+ headers: headerParameters,
2652
+ query: queryParameters,
2653
+ }, initOverrides);
2654
+
2655
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListAdminRelatedLeads200ResponseFromJSON(jsonValue));
2656
+ }
2657
+
2658
+ /**
2659
+ * Lists the leads related to the given one, for any account. Requires admin bearer authentication.
2660
+ * List related leads
2661
+ */
2662
+ async listAdminRelatedLeads(requestParameters: AdminApiListAdminRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAdminRelatedLeads200Response> {
2663
+ const response = await this.listAdminRelatedLeadsRaw(requestParameters, initOverrides);
2664
+ return await response.value();
2665
+ }
2666
+
2438
2667
  /**
2439
2668
  * Lists all existing non-deleted challenges.
2440
2669
  * List all challenges
@@ -3305,6 +3534,48 @@ export class AdminApi extends runtime.BaseAPI {
3305
3534
  await this.removeDomainLockRaw(requestParameters, initOverrides);
3306
3535
  }
3307
3536
 
3537
+ /**
3538
+ * Puts a closed lead back to active so the buyer and seller can keep negotiating. Only closed leads whose domain still exists qualify. Requires admin bearer authentication.
3539
+ * Reopen a closed lead
3540
+ */
3541
+ async reopenAdminLeadRaw(requestParameters: AdminApiReopenAdminLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3542
+ if (requestParameters['leadId'] == null) {
3543
+ throw new runtime.RequiredError(
3544
+ 'leadId',
3545
+ 'Required parameter "leadId" was null or undefined when calling reopenAdminLead().'
3546
+ );
3547
+ }
3548
+
3549
+ const queryParameters: any = {};
3550
+
3551
+ const headerParameters: runtime.HTTPHeaders = {};
3552
+
3553
+ if (this.configuration && this.configuration.accessToken) {
3554
+ const token = this.configuration.accessToken;
3555
+ const tokenString = await token("bearer", []);
3556
+
3557
+ if (tokenString) {
3558
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3559
+ }
3560
+ }
3561
+ const response = await this.request({
3562
+ path: `/admin/leads/{leadId}/status/reopen`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
3563
+ method: 'POST',
3564
+ headers: headerParameters,
3565
+ query: queryParameters,
3566
+ }, initOverrides);
3567
+
3568
+ return new runtime.VoidApiResponse(response);
3569
+ }
3570
+
3571
+ /**
3572
+ * Puts a closed lead back to active so the buyer and seller can keep negotiating. Only closed leads whose domain still exists qualify. Requires admin bearer authentication.
3573
+ * Reopen a closed lead
3574
+ */
3575
+ async reopenAdminLead(requestParameters: AdminApiReopenAdminLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3576
+ await this.reopenAdminLeadRaw(requestParameters, initOverrides);
3577
+ }
3578
+
3308
3579
  /**
3309
3580
  * Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
3310
3581
  * Showcase domain
@@ -24,8 +24,8 @@ import type {
24
24
  LeadLeaseToOwnAndRentConfigurationPresetsDto,
25
25
  LeadOfferExpirationConfigurationInput,
26
26
  List200Response,
27
+ ListAdminRelatedLeads200Response,
27
28
  ListLeadMessagesDto,
28
- ListRelatedLeads200Response,
29
29
  LockConfigurationInput,
30
30
  ObjectId,
31
31
  PutLeadOfferInput,
@@ -52,10 +52,10 @@ import {
52
52
  LeadOfferExpirationConfigurationInputToJSON,
53
53
  List200ResponseFromJSON,
54
54
  List200ResponseToJSON,
55
+ ListAdminRelatedLeads200ResponseFromJSON,
56
+ ListAdminRelatedLeads200ResponseToJSON,
55
57
  ListLeadMessagesDtoFromJSON,
56
58
  ListLeadMessagesDtoToJSON,
57
- ListRelatedLeads200ResponseFromJSON,
58
- ListRelatedLeads200ResponseToJSON,
59
59
  LockConfigurationInputFromJSON,
60
60
  LockConfigurationInputToJSON,
61
61
  ObjectIdFromJSON,
@@ -768,7 +768,7 @@ export class LeadsApi extends runtime.BaseAPI {
768
768
  * Lists leads related to the specified lead. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
769
769
  * List related leads
770
770
  */
771
- async listRelatedLeadsRaw(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRelatedLeads200Response>> {
771
+ async listRelatedLeadsRaw(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAdminRelatedLeads200Response>> {
772
772
  if (requestParameters['leadId'] == null) {
773
773
  throw new runtime.RequiredError(
774
774
  'leadId',
@@ -819,14 +819,14 @@ export class LeadsApi extends runtime.BaseAPI {
819
819
  query: queryParameters,
820
820
  }, initOverrides);
821
821
 
822
- return new runtime.JSONApiResponse(response, (jsonValue) => ListRelatedLeads200ResponseFromJSON(jsonValue));
822
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListAdminRelatedLeads200ResponseFromJSON(jsonValue));
823
823
  }
824
824
 
825
825
  /**
826
826
  * Lists leads related to the specified lead. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
827
827
  * List related leads
828
828
  */
829
- async listRelatedLeads(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRelatedLeads200Response> {
829
+ async listRelatedLeads(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAdminRelatedLeads200Response> {
830
830
  const response = await this.listRelatedLeadsRaw(requestParameters, initOverrides);
831
831
  return await response.value();
832
832
  }
@@ -19,8 +19,10 @@ import type {
19
19
  LoginDto,
20
20
  LoginInput,
21
21
  NotFoundException,
22
+ NotificationsUnsubscribeResultDto,
22
23
  SetNewPasswordInput,
23
24
  UserPasswordResetDto,
25
+ UserSignedTokenInput,
24
26
  ValidationException,
25
27
  } from '../models/index';
26
28
  import {
@@ -32,10 +34,14 @@ import {
32
34
  LoginInputToJSON,
33
35
  NotFoundExceptionFromJSON,
34
36
  NotFoundExceptionToJSON,
37
+ NotificationsUnsubscribeResultDtoFromJSON,
38
+ NotificationsUnsubscribeResultDtoToJSON,
35
39
  SetNewPasswordInputFromJSON,
36
40
  SetNewPasswordInputToJSON,
37
41
  UserPasswordResetDtoFromJSON,
38
42
  UserPasswordResetDtoToJSON,
43
+ UserSignedTokenInputFromJSON,
44
+ UserSignedTokenInputToJSON,
39
45
  ValidationExceptionFromJSON,
40
46
  ValidationExceptionToJSON,
41
47
  } from '../models/index';
@@ -57,6 +63,10 @@ export interface UsersPublicApiPostNewPasswordRequest {
57
63
  setNewPasswordInput: SetNewPasswordInput;
58
64
  }
59
65
 
66
+ export interface UsersPublicApiUnsubscribeFromNotificationsByTokenRequest {
67
+ userSignedTokenInput: UserSignedTokenInput;
68
+ }
69
+
60
70
  /**
61
71
  *
62
72
  */
@@ -216,4 +226,42 @@ export class UsersPublicApi extends runtime.BaseAPI {
216
226
  await this.postNewPasswordRaw(requestParameters, initOverrides);
217
227
  }
218
228
 
229
+ /**
230
+ * Applies the unsubscription carried by the signed token of an email footer link, without a session: mutes the notifications of a task or a lead, or disables one notification setting.
231
+ * Unsubscribe from notifications with an email link token
232
+ */
233
+ async unsubscribeFromNotificationsByTokenRaw(requestParameters: UsersPublicApiUnsubscribeFromNotificationsByTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationsUnsubscribeResultDto>> {
234
+ if (requestParameters['userSignedTokenInput'] == null) {
235
+ throw new runtime.RequiredError(
236
+ 'userSignedTokenInput',
237
+ 'Required parameter "userSignedTokenInput" was null or undefined when calling unsubscribeFromNotificationsByToken().'
238
+ );
239
+ }
240
+
241
+ const queryParameters: any = {};
242
+
243
+ const headerParameters: runtime.HTTPHeaders = {};
244
+
245
+ headerParameters['Content-Type'] = 'application/json';
246
+
247
+ const response = await this.request({
248
+ path: `/users/notifications/unsubscribe`,
249
+ method: 'POST',
250
+ headers: headerParameters,
251
+ query: queryParameters,
252
+ body: UserSignedTokenInputToJSON(requestParameters['userSignedTokenInput']),
253
+ }, initOverrides);
254
+
255
+ return new runtime.JSONApiResponse(response, (jsonValue) => NotificationsUnsubscribeResultDtoFromJSON(jsonValue));
256
+ }
257
+
258
+ /**
259
+ * Applies the unsubscription carried by the signed token of an email footer link, without a session: mutes the notifications of a task or a lead, or disables one notification setting.
260
+ * Unsubscribe from notifications with an email link token
261
+ */
262
+ async unsubscribeFromNotificationsByToken(requestParameters: UsersPublicApiUnsubscribeFromNotificationsByTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationsUnsubscribeResultDto> {
263
+ const response = await this.unsubscribeFromNotificationsByTokenRaw(requestParameters, initOverrides);
264
+ return await response.value();
265
+ }
266
+
219
267
  }
@@ -38,44 +38,44 @@ import {
38
38
  /**
39
39
  *
40
40
  * @export
41
- * @interface ListRelatedLeads200Response
41
+ * @interface ListAdminRelatedLeads200Response
42
42
  */
43
- export interface ListRelatedLeads200Response {
43
+ export interface ListAdminRelatedLeads200Response {
44
44
  /**
45
45
  *
46
46
  * @type {Array<RelatedLeadDto>}
47
- * @memberof ListRelatedLeads200Response
47
+ * @memberof ListAdminRelatedLeads200Response
48
48
  */
49
49
  data: Array<RelatedLeadDto>;
50
50
  /**
51
51
  *
52
52
  * @type {PaginateResponseMeta}
53
- * @memberof ListRelatedLeads200Response
53
+ * @memberof ListAdminRelatedLeads200Response
54
54
  */
55
55
  meta: PaginateResponseMeta;
56
56
  /**
57
57
  *
58
58
  * @type {PaginateResponseLinks}
59
- * @memberof ListRelatedLeads200Response
59
+ * @memberof ListAdminRelatedLeads200Response
60
60
  */
61
61
  links: PaginateResponseLinks;
62
62
  }
63
63
 
64
64
  /**
65
- * Check if a given object implements the ListRelatedLeads200Response interface.
65
+ * Check if a given object implements the ListAdminRelatedLeads200Response interface.
66
66
  */
67
- export function instanceOfListRelatedLeads200Response(value: object): value is ListRelatedLeads200Response {
67
+ export function instanceOfListAdminRelatedLeads200Response(value: object): value is ListAdminRelatedLeads200Response {
68
68
  if (!('data' in value) || value['data'] === undefined) return false;
69
69
  if (!('meta' in value) || value['meta'] === undefined) return false;
70
70
  if (!('links' in value) || value['links'] === undefined) return false;
71
71
  return true;
72
72
  }
73
73
 
74
- export function ListRelatedLeads200ResponseFromJSON(json: any): ListRelatedLeads200Response {
75
- return ListRelatedLeads200ResponseFromJSONTyped(json, false);
74
+ export function ListAdminRelatedLeads200ResponseFromJSON(json: any): ListAdminRelatedLeads200Response {
75
+ return ListAdminRelatedLeads200ResponseFromJSONTyped(json, false);
76
76
  }
77
77
 
78
- export function ListRelatedLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRelatedLeads200Response {
78
+ export function ListAdminRelatedLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAdminRelatedLeads200Response {
79
79
  if (json == null) {
80
80
  return json;
81
81
  }
@@ -87,11 +87,11 @@ export function ListRelatedLeads200ResponseFromJSONTyped(json: any, ignoreDiscri
87
87
  };
88
88
  }
89
89
 
90
- export function ListRelatedLeads200ResponseToJSON(json: any): ListRelatedLeads200Response {
91
- return ListRelatedLeads200ResponseToJSONTyped(json, false);
90
+ export function ListAdminRelatedLeads200ResponseToJSON(json: any): ListAdminRelatedLeads200Response {
91
+ return ListAdminRelatedLeads200ResponseToJSONTyped(json, false);
92
92
  }
93
93
 
94
- export function ListRelatedLeads200ResponseToJSONTyped(value?: ListRelatedLeads200Response | null, ignoreDiscriminator: boolean = false): any {
94
+ export function ListAdminRelatedLeads200ResponseToJSONTyped(value?: ListAdminRelatedLeads200Response | null, ignoreDiscriminator: boolean = false): any {
95
95
  if (value == null) {
96
96
  return value;
97
97
  }
@@ -0,0 +1,114 @@
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 NotificationsUnsubscribeResultDto
20
+ */
21
+ export interface NotificationsUnsubscribeResultDto {
22
+ /**
23
+ * What was unsubscribed: the notifications of one task, of one lead, or one notification setting.
24
+ * @type {string}
25
+ * @memberof NotificationsUnsubscribeResultDto
26
+ */
27
+ scope: NotificationsUnsubscribeResultDtoScopeEnum;
28
+ /**
29
+ * The notification setting that was disabled, when the scope is a setting.
30
+ * @type {string}
31
+ * @memberof NotificationsUnsubscribeResultDto
32
+ */
33
+ setting: NotificationsUnsubscribeResultDtoSettingEnum | null;
34
+ /**
35
+ * Whether the unsubscription was already in place before this request.
36
+ * @type {boolean}
37
+ * @memberof NotificationsUnsubscribeResultDto
38
+ */
39
+ alreadyUnsubscribed: boolean;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const NotificationsUnsubscribeResultDtoScopeEnum = {
47
+ TASK: 'task',
48
+ LEAD: 'lead',
49
+ SETTING: 'setting'
50
+ } as const;
51
+ export type NotificationsUnsubscribeResultDtoScopeEnum = typeof NotificationsUnsubscribeResultDtoScopeEnum[keyof typeof NotificationsUnsubscribeResultDtoScopeEnum];
52
+
53
+ /**
54
+ * @export
55
+ */
56
+ export const NotificationsUnsubscribeResultDtoSettingEnum = {
57
+ DOMAIN_SOLD: 'domainSold',
58
+ DOMAIN_TRANSFER_COMPLETED: 'domainTransferCompleted',
59
+ LEAD_CLOSED: 'leadClosed',
60
+ INVOICES: 'invoices',
61
+ PAYOUTS: 'payouts',
62
+ LEAD_TASKS: 'leadTasks',
63
+ DOMAIN_TRANSFER_TASKS: 'domainTransferTasks',
64
+ CHALLENGE_REWARD_TASKS: 'challengeRewardTasks',
65
+ LEAD_NEW_OFFER: 'leadNewOffer',
66
+ LEAD_NEW_MESSAGE: 'leadNewMessage',
67
+ LEAD_STATUS_CHANGED: 'leadStatusChanged'
68
+ } as const;
69
+ export type NotificationsUnsubscribeResultDtoSettingEnum = typeof NotificationsUnsubscribeResultDtoSettingEnum[keyof typeof NotificationsUnsubscribeResultDtoSettingEnum];
70
+
71
+
72
+ /**
73
+ * Check if a given object implements the NotificationsUnsubscribeResultDto interface.
74
+ */
75
+ export function instanceOfNotificationsUnsubscribeResultDto(value: object): value is NotificationsUnsubscribeResultDto {
76
+ if (!('scope' in value) || value['scope'] === undefined) return false;
77
+ if (!('setting' in value) || value['setting'] === undefined) return false;
78
+ if (!('alreadyUnsubscribed' in value) || value['alreadyUnsubscribed'] === undefined) return false;
79
+ return true;
80
+ }
81
+
82
+ export function NotificationsUnsubscribeResultDtoFromJSON(json: any): NotificationsUnsubscribeResultDto {
83
+ return NotificationsUnsubscribeResultDtoFromJSONTyped(json, false);
84
+ }
85
+
86
+ export function NotificationsUnsubscribeResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationsUnsubscribeResultDto {
87
+ if (json == null) {
88
+ return json;
89
+ }
90
+ return {
91
+
92
+ 'scope': json['scope'],
93
+ 'setting': json['setting'],
94
+ 'alreadyUnsubscribed': json['alreadyUnsubscribed'],
95
+ };
96
+ }
97
+
98
+ export function NotificationsUnsubscribeResultDtoToJSON(json: any): NotificationsUnsubscribeResultDto {
99
+ return NotificationsUnsubscribeResultDtoToJSONTyped(json, false);
100
+ }
101
+
102
+ export function NotificationsUnsubscribeResultDtoToJSONTyped(value?: NotificationsUnsubscribeResultDto | null, ignoreDiscriminator: boolean = false): any {
103
+ if (value == null) {
104
+ return value;
105
+ }
106
+
107
+ return {
108
+
109
+ 'scope': value['scope'],
110
+ 'setting': value['setting'],
111
+ 'alreadyUnsubscribed': value['alreadyUnsubscribed'],
112
+ };
113
+ }
114
+