@loopstack/hub-client 0.12.2 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -1,17 +1,4 @@
1
1
  "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Loopstack Hub
6
- * Loopstack Hub Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -22,45 +9,112 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
9
  });
23
10
  };
24
11
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ApiV1WorkersApi = exports.ApiV1WorkersApiFactory = exports.ApiV1WorkersApiFp = exports.ApiV1WorkersApiAxiosParamCreator = exports.ApiV1UserSettingsApi = exports.ApiV1UserSettingsApiFactory = exports.ApiV1UserSettingsApiFp = exports.ApiV1UserSettingsApiAxiosParamCreator = exports.ApiV1UserApi = exports.ApiV1UserApiFactory = exports.ApiV1UserApiFp = exports.ApiV1UserApiAxiosParamCreator = exports.ApiV1SsoApi = exports.ApiV1SsoApiFactory = exports.ApiV1SsoApiFp = exports.ApiV1SsoApiAxiosParamCreator = exports.ApiV1AuthApi = exports.ApiV1AuthApiFactory = exports.ApiV1AuthApiFp = exports.ApiV1AuthApiAxiosParamCreator = exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = exports.WorkerSortByDtoOrderEnum = exports.WorkerSortByDtoFieldEnum = exports.UpdateUserRolesDtoRolesEnum = exports.UIPreferencesDtoThemeEnum = exports.RemoveRoleDtoRoleEnum = exports.AddRoleDtoRoleEnum = void 0;
12
+ exports.WellKnownApiAxiosParamCreator = exports.RegistryAdminApi = exports.RegistryAdminApiFactory = exports.RegistryAdminApiFp = exports.RegistryAdminApiAxiosParamCreator = exports.RegistryApi = exports.RegistryApiFactory = exports.RegistryApiFp = exports.RegistryApiAxiosParamCreator = exports.ApiV1WorkersApi = exports.ApiV1WorkersApiFactory = exports.ApiV1WorkersApiFp = exports.ApiV1WorkersApiAxiosParamCreator = exports.ApiV1UserSettingsApi = exports.ApiV1UserSettingsApiFactory = exports.ApiV1UserSettingsApiFp = exports.ApiV1UserSettingsApiAxiosParamCreator = exports.ApiV1UserApi = exports.ApiV1UserApiFactory = exports.ApiV1UserApiFp = exports.ApiV1UserApiAxiosParamCreator = exports.ApiV1SsoApi = exports.ApiV1SsoApiFactory = exports.ApiV1SsoApiFp = exports.ApiV1SsoApiAxiosParamCreator = exports.ApiV1AuthApi = exports.ApiV1AuthApiFactory = exports.ApiV1AuthApiFp = exports.ApiV1AuthApiAxiosParamCreator = exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = exports.WorkerSortByDtoOrderEnum = exports.WorkerSortByDtoFieldEnum = exports.WorkerItemDtoTypeEnum = exports.WorkerDtoTypeEnum = exports.UpdateUserRolesDtoRolesEnum = exports.UpdateStatusDtoStatusEnum = exports.UpdateEntryDtoCategoryEnum = exports.UIPreferencesDtoThemeEnum = exports.RemoveRoleDtoRoleEnum = exports.RegistryEntryResponseDtoCategoryEnum = exports.RegistryEntryResponseDtoStatusEnum = exports.RegistryEntryAdminResponseDtoCategoryEnum = exports.RegistryEntryAdminResponseDtoStatusEnum = exports.MaintenanceRunDtoTriggerTypeEnum = exports.DraftEntryResponseDtoStatusEnum = exports.ConfirmDraftDtoCategoryEnum = exports.AddRoleDtoRoleEnum = void 0;
13
+ exports.WellKnownApi = exports.WellKnownApiFactory = exports.WellKnownApiFp = void 0;
26
14
  const axios_1 = require("axios");
15
+ // @ts-ignore
16
+ const base_1 = require("./base");
27
17
  // Some imports not used depending on template conditions
28
18
  // @ts-ignore
29
19
  const common_1 = require("./common");
30
- // @ts-ignore
31
- const base_1 = require("./base");
32
20
  exports.AddRoleDtoRoleEnum = {
33
21
  RoleAdmin: 'ROLE_ADMIN',
34
22
  RoleBeta: 'ROLE_BETA',
35
- RoleUser: 'ROLE_USER'
23
+ RoleUser: 'ROLE_USER',
24
+ RoleContributor: 'ROLE_CONTRIBUTOR',
25
+ };
26
+ exports.ConfirmDraftDtoCategoryEnum = {
27
+ Tools: 'tools',
28
+ Examples: 'examples',
29
+ Bundles: 'bundles',
30
+ Modules: 'modules',
31
+ Integrations: 'integrations',
32
+ };
33
+ exports.DraftEntryResponseDtoStatusEnum = {
34
+ Draft: 'draft',
35
+ Pending: 'pending',
36
+ Active: 'active',
37
+ Inactive: 'inactive',
38
+ };
39
+ exports.MaintenanceRunDtoTriggerTypeEnum = {
40
+ Scheduled: 'scheduled',
41
+ Manual: 'manual',
42
+ };
43
+ exports.RegistryEntryAdminResponseDtoStatusEnum = {
44
+ Draft: 'draft',
45
+ Pending: 'pending',
46
+ Active: 'active',
47
+ Inactive: 'inactive',
48
+ };
49
+ exports.RegistryEntryAdminResponseDtoCategoryEnum = {
50
+ Tools: 'tools',
51
+ Examples: 'examples',
52
+ Bundles: 'bundles',
53
+ Modules: 'modules',
54
+ Integrations: 'integrations',
55
+ };
56
+ exports.RegistryEntryResponseDtoStatusEnum = {
57
+ Draft: 'draft',
58
+ Pending: 'pending',
59
+ Active: 'active',
60
+ Inactive: 'inactive',
61
+ };
62
+ exports.RegistryEntryResponseDtoCategoryEnum = {
63
+ Tools: 'tools',
64
+ Examples: 'examples',
65
+ Bundles: 'bundles',
66
+ Modules: 'modules',
67
+ Integrations: 'integrations',
36
68
  };
37
69
  exports.RemoveRoleDtoRoleEnum = {
38
70
  RoleAdmin: 'ROLE_ADMIN',
39
71
  RoleBeta: 'ROLE_BETA',
40
- RoleUser: 'ROLE_USER'
72
+ RoleUser: 'ROLE_USER',
73
+ RoleContributor: 'ROLE_CONTRIBUTOR',
41
74
  };
42
75
  exports.UIPreferencesDtoThemeEnum = {
43
76
  Light: 'light',
44
- Dark: 'dark'
77
+ Dark: 'dark',
78
+ };
79
+ exports.UpdateEntryDtoCategoryEnum = {
80
+ Tools: 'tools',
81
+ Examples: 'examples',
82
+ Bundles: 'bundles',
83
+ Modules: 'modules',
84
+ Integrations: 'integrations',
85
+ };
86
+ exports.UpdateStatusDtoStatusEnum = {
87
+ Draft: 'draft',
88
+ Pending: 'pending',
89
+ Active: 'active',
90
+ Inactive: 'inactive',
45
91
  };
46
92
  exports.UpdateUserRolesDtoRolesEnum = {
47
93
  RoleAdmin: 'ROLE_ADMIN',
48
94
  RoleBeta: 'ROLE_BETA',
49
- RoleUser: 'ROLE_USER'
95
+ RoleUser: 'ROLE_USER',
96
+ RoleContributor: 'ROLE_CONTRIBUTOR',
97
+ };
98
+ exports.WorkerDtoTypeEnum = {
99
+ SelfHosted: 'self_hosted',
100
+ Managed: 'managed',
101
+ };
102
+ exports.WorkerItemDtoTypeEnum = {
103
+ SelfHosted: 'self_hosted',
104
+ Managed: 'managed',
50
105
  };
51
106
  exports.WorkerSortByDtoFieldEnum = {
52
107
  Id: 'id',
53
108
  Url: 'url',
54
- WebsocketUrl: 'websocketUrl',
55
109
  Name: 'name',
56
- ClientSecret: 'clientSecret',
110
+ Type: 'type',
57
111
  CreatedAt: 'createdAt',
58
112
  UpdatedAt: 'updatedAt',
59
- UserId: 'userId'
113
+ UserId: 'userId',
60
114
  };
61
115
  exports.WorkerSortByDtoOrderEnum = {
62
116
  Asc: 'ASC',
63
- Desc: 'DESC'
117
+ Desc: 'DESC',
64
118
  };
65
119
  /**
66
120
  * AdminApi - axios parameter creator
@@ -81,8 +135,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
81
135
  (0, common_1.assertParamExists)('adminControllerAddRoleToUser', 'userId', userId);
82
136
  // verify required parameter 'addRoleDto' is not null or undefined
83
137
  (0, common_1.assertParamExists)('adminControllerAddRoleToUser', 'addRoleDto', addRoleDto);
84
- const localVarPath = `/api/v1/admin/users/{userId}/roles/add`
85
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
138
+ const localVarPath = `/api/v1/admin/users/{userId}/roles/add`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
86
139
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
140
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
141
  let baseOptions;
@@ -112,8 +165,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
112
165
  adminControllerDeleteUser: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
113
166
  // verify required parameter 'userId' is not null or undefined
114
167
  (0, common_1.assertParamExists)('adminControllerDeleteUser', 'userId', userId);
115
- const localVarPath = `/api/v1/admin/users/{userId}`
116
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
168
+ const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
117
169
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
118
170
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
119
171
  let baseOptions;
@@ -178,8 +230,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
178
230
  adminControllerGetUserById: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
179
231
  // verify required parameter 'userId' is not null or undefined
180
232
  (0, common_1.assertParamExists)('adminControllerGetUserById', 'userId', userId);
181
- const localVarPath = `/api/v1/admin/users/{userId}`
182
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
233
+ const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
183
234
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
184
235
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
185
236
  let baseOptions;
@@ -210,8 +261,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
210
261
  (0, common_1.assertParamExists)('adminControllerRemoveRoleFromUser', 'userId', userId);
211
262
  // verify required parameter 'removeRoleDto' is not null or undefined
212
263
  (0, common_1.assertParamExists)('adminControllerRemoveRoleFromUser', 'removeRoleDto', removeRoleDto);
213
- const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`
214
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
264
+ const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
215
265
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
216
266
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
217
267
  let baseOptions;
@@ -275,8 +325,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
275
325
  (0, common_1.assertParamExists)('adminControllerToggleUserAccess', 'userId', userId);
276
326
  // verify required parameter 'toggleAccessDto' is not null or undefined
277
327
  (0, common_1.assertParamExists)('adminControllerToggleUserAccess', 'toggleAccessDto', toggleAccessDto);
278
- const localVarPath = `/api/v1/admin/users/{userId}/access`
279
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
328
+ const localVarPath = `/api/v1/admin/users/{userId}/access`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
280
329
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
281
330
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
282
331
  let baseOptions;
@@ -309,8 +358,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
309
358
  (0, common_1.assertParamExists)('adminControllerToggleUserActive', 'userId', userId);
310
359
  // verify required parameter 'toggleActiveDto' is not null or undefined
311
360
  (0, common_1.assertParamExists)('adminControllerToggleUserActive', 'toggleActiveDto', toggleActiveDto);
312
- const localVarPath = `/api/v1/admin/users/{userId}/active`
313
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
361
+ const localVarPath = `/api/v1/admin/users/{userId}/active`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
314
362
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
315
363
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
316
364
  let baseOptions;
@@ -343,8 +391,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
343
391
  (0, common_1.assertParamExists)('adminControllerUpdateUserRoles', 'userId', userId);
344
392
  // verify required parameter 'updateUserRolesDto' is not null or undefined
345
393
  (0, common_1.assertParamExists)('adminControllerUpdateUserRoles', 'updateUserRolesDto', updateUserRolesDto);
346
- const localVarPath = `/api/v1/admin/users/{userId}/roles`
347
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
394
+ const localVarPath = `/api/v1/admin/users/{userId}/roles`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
348
395
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
349
396
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
350
397
  let baseOptions;
@@ -542,7 +589,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
542
589
  * @throws {RequiredError}
543
590
  */
544
591
  adminControllerAddRoleToUser(requestParameters, options) {
545
- return localVarFp.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options).then((request) => request(axios, basePath));
592
+ return localVarFp
593
+ .adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
594
+ .then((request) => request(axios, basePath));
546
595
  },
547
596
  /**
548
597
  *
@@ -552,7 +601,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
552
601
  * @throws {RequiredError}
553
602
  */
554
603
  adminControllerDeleteUser(requestParameters, options) {
555
- return localVarFp.adminControllerDeleteUser(requestParameters.userId, options).then((request) => request(axios, basePath));
604
+ return localVarFp
605
+ .adminControllerDeleteUser(requestParameters.userId, options)
606
+ .then((request) => request(axios, basePath));
556
607
  },
557
608
  /**
558
609
  *
@@ -562,7 +613,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
562
613
  * @throws {RequiredError}
563
614
  */
564
615
  adminControllerGetAllUsers(requestParameters, options) {
565
- return localVarFp.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options).then((request) => request(axios, basePath));
616
+ return localVarFp
617
+ .adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
618
+ .then((request) => request(axios, basePath));
566
619
  },
567
620
  /**
568
621
  *
@@ -572,7 +625,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
572
625
  * @throws {RequiredError}
573
626
  */
574
627
  adminControllerGetUserById(requestParameters, options) {
575
- return localVarFp.adminControllerGetUserById(requestParameters.userId, options).then((request) => request(axios, basePath));
628
+ return localVarFp
629
+ .adminControllerGetUserById(requestParameters.userId, options)
630
+ .then((request) => request(axios, basePath));
576
631
  },
577
632
  /**
578
633
  *
@@ -582,7 +637,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
582
637
  * @throws {RequiredError}
583
638
  */
584
639
  adminControllerRemoveRoleFromUser(requestParameters, options) {
585
- return localVarFp.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options).then((request) => request(axios, basePath));
640
+ return localVarFp
641
+ .adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
642
+ .then((request) => request(axios, basePath));
586
643
  },
587
644
  /**
588
645
  *
@@ -592,7 +649,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
592
649
  * @throws {RequiredError}
593
650
  */
594
651
  adminControllerSearchUsers(requestParameters, options) {
595
- return localVarFp.adminControllerSearchUsers(requestParameters.q, options).then((request) => request(axios, basePath));
652
+ return localVarFp
653
+ .adminControllerSearchUsers(requestParameters.q, options)
654
+ .then((request) => request(axios, basePath));
596
655
  },
597
656
  /**
598
657
  *
@@ -602,7 +661,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
602
661
  * @throws {RequiredError}
603
662
  */
604
663
  adminControllerToggleUserAccess(requestParameters, options) {
605
- return localVarFp.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options).then((request) => request(axios, basePath));
664
+ return localVarFp
665
+ .adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
666
+ .then((request) => request(axios, basePath));
606
667
  },
607
668
  /**
608
669
  *
@@ -612,7 +673,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
612
673
  * @throws {RequiredError}
613
674
  */
614
675
  adminControllerToggleUserActive(requestParameters, options) {
615
- return localVarFp.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options).then((request) => request(axios, basePath));
676
+ return localVarFp
677
+ .adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
678
+ .then((request) => request(axios, basePath));
616
679
  },
617
680
  /**
618
681
  *
@@ -622,7 +685,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
622
685
  * @throws {RequiredError}
623
686
  */
624
687
  adminControllerUpdateUserRoles(requestParameters, options) {
625
- return localVarFp.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options).then((request) => request(axios, basePath));
688
+ return localVarFp
689
+ .adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
690
+ .then((request) => request(axios, basePath));
626
691
  },
627
692
  };
628
693
  };
@@ -643,7 +708,9 @@ class AdminApi extends base_1.BaseAPI {
643
708
  * @memberof AdminApi
644
709
  */
645
710
  adminControllerAddRoleToUser(requestParameters, options) {
646
- return (0, exports.AdminApiFp)(this.configuration).adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options).then((request) => request(this.axios, this.basePath));
711
+ return (0, exports.AdminApiFp)(this.configuration)
712
+ .adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
713
+ .then((request) => request(this.axios, this.basePath));
647
714
  }
648
715
  /**
649
716
  *
@@ -654,7 +721,9 @@ class AdminApi extends base_1.BaseAPI {
654
721
  * @memberof AdminApi
655
722
  */
656
723
  adminControllerDeleteUser(requestParameters, options) {
657
- return (0, exports.AdminApiFp)(this.configuration).adminControllerDeleteUser(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
724
+ return (0, exports.AdminApiFp)(this.configuration)
725
+ .adminControllerDeleteUser(requestParameters.userId, options)
726
+ .then((request) => request(this.axios, this.basePath));
658
727
  }
659
728
  /**
660
729
  *
@@ -665,7 +734,9 @@ class AdminApi extends base_1.BaseAPI {
665
734
  * @memberof AdminApi
666
735
  */
667
736
  adminControllerGetAllUsers(requestParameters, options) {
668
- return (0, exports.AdminApiFp)(this.configuration).adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options).then((request) => request(this.axios, this.basePath));
737
+ return (0, exports.AdminApiFp)(this.configuration)
738
+ .adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
739
+ .then((request) => request(this.axios, this.basePath));
669
740
  }
670
741
  /**
671
742
  *
@@ -676,7 +747,9 @@ class AdminApi extends base_1.BaseAPI {
676
747
  * @memberof AdminApi
677
748
  */
678
749
  adminControllerGetUserById(requestParameters, options) {
679
- return (0, exports.AdminApiFp)(this.configuration).adminControllerGetUserById(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
750
+ return (0, exports.AdminApiFp)(this.configuration)
751
+ .adminControllerGetUserById(requestParameters.userId, options)
752
+ .then((request) => request(this.axios, this.basePath));
680
753
  }
681
754
  /**
682
755
  *
@@ -687,7 +760,9 @@ class AdminApi extends base_1.BaseAPI {
687
760
  * @memberof AdminApi
688
761
  */
689
762
  adminControllerRemoveRoleFromUser(requestParameters, options) {
690
- return (0, exports.AdminApiFp)(this.configuration).adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options).then((request) => request(this.axios, this.basePath));
763
+ return (0, exports.AdminApiFp)(this.configuration)
764
+ .adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
765
+ .then((request) => request(this.axios, this.basePath));
691
766
  }
692
767
  /**
693
768
  *
@@ -698,7 +773,9 @@ class AdminApi extends base_1.BaseAPI {
698
773
  * @memberof AdminApi
699
774
  */
700
775
  adminControllerSearchUsers(requestParameters, options) {
701
- return (0, exports.AdminApiFp)(this.configuration).adminControllerSearchUsers(requestParameters.q, options).then((request) => request(this.axios, this.basePath));
776
+ return (0, exports.AdminApiFp)(this.configuration)
777
+ .adminControllerSearchUsers(requestParameters.q, options)
778
+ .then((request) => request(this.axios, this.basePath));
702
779
  }
703
780
  /**
704
781
  *
@@ -709,7 +786,9 @@ class AdminApi extends base_1.BaseAPI {
709
786
  * @memberof AdminApi
710
787
  */
711
788
  adminControllerToggleUserAccess(requestParameters, options) {
712
- return (0, exports.AdminApiFp)(this.configuration).adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options).then((request) => request(this.axios, this.basePath));
789
+ return (0, exports.AdminApiFp)(this.configuration)
790
+ .adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
791
+ .then((request) => request(this.axios, this.basePath));
713
792
  }
714
793
  /**
715
794
  *
@@ -720,7 +799,9 @@ class AdminApi extends base_1.BaseAPI {
720
799
  * @memberof AdminApi
721
800
  */
722
801
  adminControllerToggleUserActive(requestParameters, options) {
723
- return (0, exports.AdminApiFp)(this.configuration).adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options).then((request) => request(this.axios, this.basePath));
802
+ return (0, exports.AdminApiFp)(this.configuration)
803
+ .adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
804
+ .then((request) => request(this.axios, this.basePath));
724
805
  }
725
806
  /**
726
807
  *
@@ -731,7 +812,9 @@ class AdminApi extends base_1.BaseAPI {
731
812
  * @memberof AdminApi
732
813
  */
733
814
  adminControllerUpdateUserRoles(requestParameters, options) {
734
- return (0, exports.AdminApiFp)(this.configuration).adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options).then((request) => request(this.axios, this.basePath));
815
+ return (0, exports.AdminApiFp)(this.configuration)
816
+ .adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
817
+ .then((request) => request(this.axios, this.basePath));
735
818
  }
736
819
  }
737
820
  exports.AdminApi = AdminApi;
@@ -1563,7 +1646,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
1563
1646
  * @throws {RequiredError}
1564
1647
  */
1565
1648
  authControllerLinkProvider(requestParameters, options) {
1566
- return localVarFp.authControllerLinkProvider(requestParameters.body, options).then((request) => request(axios, basePath));
1649
+ return localVarFp
1650
+ .authControllerLinkProvider(requestParameters.body, options)
1651
+ .then((request) => request(axios, basePath));
1567
1652
  },
1568
1653
  /**
1569
1654
  *
@@ -1573,7 +1658,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
1573
1658
  * @throws {RequiredError}
1574
1659
  */
1575
1660
  authControllerLogin(requestParameters, options) {
1576
- return localVarFp.authControllerLogin(requestParameters.body, options).then((request) => request(axios, basePath));
1661
+ return localVarFp
1662
+ .authControllerLogin(requestParameters.body, options)
1663
+ .then((request) => request(axios, basePath));
1577
1664
  },
1578
1665
  /**
1579
1666
  *
@@ -1601,7 +1688,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
1601
1688
  * @throws {RequiredError}
1602
1689
  */
1603
1690
  authControllerRegister(requestParameters, options) {
1604
- return localVarFp.authControllerRegister(requestParameters.body, options).then((request) => request(axios, basePath));
1691
+ return localVarFp
1692
+ .authControllerRegister(requestParameters.body, options)
1693
+ .then((request) => request(axios, basePath));
1605
1694
  },
1606
1695
  /**
1607
1696
  *
@@ -1611,7 +1700,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
1611
1700
  * @throws {RequiredError}
1612
1701
  */
1613
1702
  authControllerRequestPasswordReset(requestParameters, options) {
1614
- return localVarFp.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options).then((request) => request(axios, basePath));
1703
+ return localVarFp
1704
+ .authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
1705
+ .then((request) => request(axios, basePath));
1615
1706
  },
1616
1707
  /**
1617
1708
  *
@@ -1621,7 +1712,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
1621
1712
  * @throws {RequiredError}
1622
1713
  */
1623
1714
  authControllerResendVerification(requestParameters, options) {
1624
- return localVarFp.authControllerResendVerification(requestParameters.resendVerificationDto, options).then((request) => request(axios, basePath));
1715
+ return localVarFp
1716
+ .authControllerResendVerification(requestParameters.resendVerificationDto, options)
1717
+ .then((request) => request(axios, basePath));
1625
1718
  },
1626
1719
  /**
1627
1720
  *
@@ -1631,7 +1724,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
1631
1724
  * @throws {RequiredError}
1632
1725
  */
1633
1726
  authControllerResetPassword(requestParameters, options) {
1634
- return localVarFp.authControllerResetPassword(requestParameters.resetPasswordDto, options).then((request) => request(axios, basePath));
1727
+ return localVarFp
1728
+ .authControllerResetPassword(requestParameters.resetPasswordDto, options)
1729
+ .then((request) => request(axios, basePath));
1635
1730
  },
1636
1731
  /**
1637
1732
  *
@@ -1641,7 +1736,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
1641
1736
  * @throws {RequiredError}
1642
1737
  */
1643
1738
  authControllerVerifyEmail(requestParameters, options) {
1644
- return localVarFp.authControllerVerifyEmail(requestParameters.verifyEmailDto, options).then((request) => request(axios, basePath));
1739
+ return localVarFp
1740
+ .authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
1741
+ .then((request) => request(axios, basePath));
1645
1742
  },
1646
1743
  };
1647
1744
  };
@@ -1661,7 +1758,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1661
1758
  * @memberof ApiV1AuthApi
1662
1759
  */
1663
1760
  authControllerDiscordAuth(options) {
1664
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerDiscordAuth(options).then((request) => request(this.axios, this.basePath));
1761
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1762
+ .authControllerDiscordAuth(options)
1763
+ .then((request) => request(this.axios, this.basePath));
1665
1764
  }
1666
1765
  /**
1667
1766
  *
@@ -1671,7 +1770,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1671
1770
  * @memberof ApiV1AuthApi
1672
1771
  */
1673
1772
  authControllerDiscordCallback(options) {
1674
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerDiscordCallback(options).then((request) => request(this.axios, this.basePath));
1773
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1774
+ .authControllerDiscordCallback(options)
1775
+ .then((request) => request(this.axios, this.basePath));
1675
1776
  }
1676
1777
  /**
1677
1778
  *
@@ -1681,7 +1782,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1681
1782
  * @memberof ApiV1AuthApi
1682
1783
  */
1683
1784
  authControllerGetProviders(options) {
1684
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
1785
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1786
+ .authControllerGetProviders(options)
1787
+ .then((request) => request(this.axios, this.basePath));
1685
1788
  }
1686
1789
  /**
1687
1790
  *
@@ -1691,7 +1794,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1691
1794
  * @memberof ApiV1AuthApi
1692
1795
  */
1693
1796
  authControllerGithubAuth(options) {
1694
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGithubAuth(options).then((request) => request(this.axios, this.basePath));
1797
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1798
+ .authControllerGithubAuth(options)
1799
+ .then((request) => request(this.axios, this.basePath));
1695
1800
  }
1696
1801
  /**
1697
1802
  *
@@ -1701,7 +1806,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1701
1806
  * @memberof ApiV1AuthApi
1702
1807
  */
1703
1808
  authControllerGithubCallback(options) {
1704
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGithubCallback(options).then((request) => request(this.axios, this.basePath));
1809
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1810
+ .authControllerGithubCallback(options)
1811
+ .then((request) => request(this.axios, this.basePath));
1705
1812
  }
1706
1813
  /**
1707
1814
  *
@@ -1711,7 +1818,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1711
1818
  * @memberof ApiV1AuthApi
1712
1819
  */
1713
1820
  authControllerGoogleAuth(options) {
1714
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGoogleAuth(options).then((request) => request(this.axios, this.basePath));
1821
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1822
+ .authControllerGoogleAuth(options)
1823
+ .then((request) => request(this.axios, this.basePath));
1715
1824
  }
1716
1825
  /**
1717
1826
  *
@@ -1721,7 +1830,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1721
1830
  * @memberof ApiV1AuthApi
1722
1831
  */
1723
1832
  authControllerGoogleCallback(options) {
1724
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGoogleCallback(options).then((request) => request(this.axios, this.basePath));
1833
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1834
+ .authControllerGoogleCallback(options)
1835
+ .then((request) => request(this.axios, this.basePath));
1725
1836
  }
1726
1837
  /**
1727
1838
  *
@@ -1731,7 +1842,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1731
1842
  * @memberof ApiV1AuthApi
1732
1843
  */
1733
1844
  authControllerHealthCheck(options) {
1734
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerHealthCheck(options).then((request) => request(this.axios, this.basePath));
1845
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1846
+ .authControllerHealthCheck(options)
1847
+ .then((request) => request(this.axios, this.basePath));
1735
1848
  }
1736
1849
  /**
1737
1850
  *
@@ -1742,7 +1855,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1742
1855
  * @memberof ApiV1AuthApi
1743
1856
  */
1744
1857
  authControllerLinkProvider(requestParameters, options) {
1745
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerLinkProvider(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1858
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1859
+ .authControllerLinkProvider(requestParameters.body, options)
1860
+ .then((request) => request(this.axios, this.basePath));
1746
1861
  }
1747
1862
  /**
1748
1863
  *
@@ -1753,7 +1868,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1753
1868
  * @memberof ApiV1AuthApi
1754
1869
  */
1755
1870
  authControllerLogin(requestParameters, options) {
1756
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerLogin(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1871
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1872
+ .authControllerLogin(requestParameters.body, options)
1873
+ .then((request) => request(this.axios, this.basePath));
1757
1874
  }
1758
1875
  /**
1759
1876
  *
@@ -1763,7 +1880,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1763
1880
  * @memberof ApiV1AuthApi
1764
1881
  */
1765
1882
  authControllerLogout(options) {
1766
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerLogout(options).then((request) => request(this.axios, this.basePath));
1883
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1884
+ .authControllerLogout(options)
1885
+ .then((request) => request(this.axios, this.basePath));
1767
1886
  }
1768
1887
  /**
1769
1888
  *
@@ -1773,7 +1892,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1773
1892
  * @memberof ApiV1AuthApi
1774
1893
  */
1775
1894
  authControllerRefresh(options) {
1776
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerRefresh(options).then((request) => request(this.axios, this.basePath));
1895
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1896
+ .authControllerRefresh(options)
1897
+ .then((request) => request(this.axios, this.basePath));
1777
1898
  }
1778
1899
  /**
1779
1900
  *
@@ -1784,7 +1905,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1784
1905
  * @memberof ApiV1AuthApi
1785
1906
  */
1786
1907
  authControllerRegister(requestParameters, options) {
1787
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerRegister(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1908
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1909
+ .authControllerRegister(requestParameters.body, options)
1910
+ .then((request) => request(this.axios, this.basePath));
1788
1911
  }
1789
1912
  /**
1790
1913
  *
@@ -1795,7 +1918,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1795
1918
  * @memberof ApiV1AuthApi
1796
1919
  */
1797
1920
  authControllerRequestPasswordReset(requestParameters, options) {
1798
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options).then((request) => request(this.axios, this.basePath));
1921
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1922
+ .authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
1923
+ .then((request) => request(this.axios, this.basePath));
1799
1924
  }
1800
1925
  /**
1801
1926
  *
@@ -1806,7 +1931,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1806
1931
  * @memberof ApiV1AuthApi
1807
1932
  */
1808
1933
  authControllerResendVerification(requestParameters, options) {
1809
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerResendVerification(requestParameters.resendVerificationDto, options).then((request) => request(this.axios, this.basePath));
1934
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1935
+ .authControllerResendVerification(requestParameters.resendVerificationDto, options)
1936
+ .then((request) => request(this.axios, this.basePath));
1810
1937
  }
1811
1938
  /**
1812
1939
  *
@@ -1817,7 +1944,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1817
1944
  * @memberof ApiV1AuthApi
1818
1945
  */
1819
1946
  authControllerResetPassword(requestParameters, options) {
1820
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerResetPassword(requestParameters.resetPasswordDto, options).then((request) => request(this.axios, this.basePath));
1947
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1948
+ .authControllerResetPassword(requestParameters.resetPasswordDto, options)
1949
+ .then((request) => request(this.axios, this.basePath));
1821
1950
  }
1822
1951
  /**
1823
1952
  *
@@ -1828,7 +1957,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
1828
1957
  * @memberof ApiV1AuthApi
1829
1958
  */
1830
1959
  authControllerVerifyEmail(requestParameters, options) {
1831
- return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerVerifyEmail(requestParameters.verifyEmailDto, options).then((request) => request(this.axios, this.basePath));
1960
+ return (0, exports.ApiV1AuthApiFp)(this.configuration)
1961
+ .authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
1962
+ .then((request) => request(this.axios, this.basePath));
1832
1963
  }
1833
1964
  }
1834
1965
  exports.ApiV1AuthApi = ApiV1AuthApi;
@@ -1839,46 +1970,16 @@ exports.ApiV1AuthApi = ApiV1AuthApi;
1839
1970
  const ApiV1SsoApiAxiosParamCreator = function (configuration) {
1840
1971
  return {
1841
1972
  /**
1842
- * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
1843
- * @summary Generate an authorization code for SSO authentication
1844
- * @param {object} body
1845
- * @param {*} [options] Override http request option.
1846
- * @throws {RequiredError}
1847
- */
1848
- ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1849
- // verify required parameter 'body' is not null or undefined
1850
- (0, common_1.assertParamExists)('ssoControllerGenerateLocalCode', 'body', body);
1851
- const localVarPath = `/api/v1/sso/generate-code`;
1852
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1853
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1854
- let baseOptions;
1855
- if (configuration) {
1856
- baseOptions = configuration.baseOptions;
1857
- }
1858
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1859
- const localVarHeaderParameter = {};
1860
- const localVarQueryParameter = {};
1861
- localVarHeaderParameter['Content-Type'] = 'application/json';
1862
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1863
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1864
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1865
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1866
- return {
1867
- url: (0, common_1.toPathString)(localVarUrlObj),
1868
- options: localVarRequestOptions,
1869
- };
1870
- }),
1871
- /**
1872
- * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
1873
- * @summary Validate and consume an authorization code
1874
- * @param {object} body
1973
+ * Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
1974
+ * @summary Generate a signed ID token for worker authentication
1975
+ * @param {SsoTokenRequestDto} ssoTokenRequestDto
1875
1976
  * @param {*} [options] Override http request option.
1876
1977
  * @throws {RequiredError}
1877
1978
  */
1878
- ssoControllerValidateCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1879
- // verify required parameter 'body' is not null or undefined
1880
- (0, common_1.assertParamExists)('ssoControllerValidateCode', 'body', body);
1881
- const localVarPath = `/api/v1/sso/validate`;
1979
+ ssoControllerGenerateToken: (ssoTokenRequestDto_1, ...args_1) => __awaiter(this, [ssoTokenRequestDto_1, ...args_1], void 0, function* (ssoTokenRequestDto, options = {}) {
1980
+ // verify required parameter 'ssoTokenRequestDto' is not null or undefined
1981
+ (0, common_1.assertParamExists)('ssoControllerGenerateToken', 'ssoTokenRequestDto', ssoTokenRequestDto);
1982
+ const localVarPath = `/api/v1/sso/token`;
1882
1983
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1883
1984
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1884
1985
  let baseOptions;
@@ -1892,7 +1993,7 @@ const ApiV1SsoApiAxiosParamCreator = function (configuration) {
1892
1993
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1893
1994
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1894
1995
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1895
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1996
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ssoTokenRequestDto, localVarRequestOptions, configuration);
1896
1997
  return {
1897
1998
  url: (0, common_1.toPathString)(localVarUrlObj),
1898
1999
  options: localVarRequestOptions,
@@ -1909,34 +2010,18 @@ const ApiV1SsoApiFp = function (configuration) {
1909
2010
  const localVarAxiosParamCreator = (0, exports.ApiV1SsoApiAxiosParamCreator)(configuration);
1910
2011
  return {
1911
2012
  /**
1912
- * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
1913
- * @summary Generate an authorization code for SSO authentication
1914
- * @param {object} body
1915
- * @param {*} [options] Override http request option.
1916
- * @throws {RequiredError}
1917
- */
1918
- ssoControllerGenerateLocalCode(body, options) {
1919
- return __awaiter(this, void 0, void 0, function* () {
1920
- var _a, _b, _c;
1921
- const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
1922
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1923
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1924
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1925
- });
1926
- },
1927
- /**
1928
- * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
1929
- * @summary Validate and consume an authorization code
1930
- * @param {object} body
2013
+ * Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
2014
+ * @summary Generate a signed ID token for worker authentication
2015
+ * @param {SsoTokenRequestDto} ssoTokenRequestDto
1931
2016
  * @param {*} [options] Override http request option.
1932
2017
  * @throws {RequiredError}
1933
2018
  */
1934
- ssoControllerValidateCode(body, options) {
2019
+ ssoControllerGenerateToken(ssoTokenRequestDto, options) {
1935
2020
  return __awaiter(this, void 0, void 0, function* () {
1936
2021
  var _a, _b, _c;
1937
- const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
2022
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateToken(ssoTokenRequestDto, options);
1938
2023
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1939
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1SsoApi.ssoControllerValidateCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2024
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1SsoApi.ssoControllerGenerateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1940
2025
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1941
2026
  });
1942
2027
  },
@@ -1951,24 +2036,16 @@ const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
1951
2036
  const localVarFp = (0, exports.ApiV1SsoApiFp)(configuration);
1952
2037
  return {
1953
2038
  /**
1954
- * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
1955
- * @summary Generate an authorization code for SSO authentication
1956
- * @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
1957
- * @param {*} [options] Override http request option.
1958
- * @throws {RequiredError}
1959
- */
1960
- ssoControllerGenerateLocalCode(requestParameters, options) {
1961
- return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
1962
- },
1963
- /**
1964
- * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
1965
- * @summary Validate and consume an authorization code
1966
- * @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
2039
+ * Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
2040
+ * @summary Generate a signed ID token for worker authentication
2041
+ * @param {ApiV1SsoApiSsoControllerGenerateTokenRequest} requestParameters Request parameters.
1967
2042
  * @param {*} [options] Override http request option.
1968
2043
  * @throws {RequiredError}
1969
2044
  */
1970
- ssoControllerValidateCode(requestParameters, options) {
1971
- return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
2045
+ ssoControllerGenerateToken(requestParameters, options) {
2046
+ return localVarFp
2047
+ .ssoControllerGenerateToken(requestParameters.ssoTokenRequestDto, options)
2048
+ .then((request) => request(axios, basePath));
1972
2049
  },
1973
2050
  };
1974
2051
  };
@@ -1981,26 +2058,17 @@ exports.ApiV1SsoApiFactory = ApiV1SsoApiFactory;
1981
2058
  */
1982
2059
  class ApiV1SsoApi extends base_1.BaseAPI {
1983
2060
  /**
1984
- * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
1985
- * @summary Generate an authorization code for SSO authentication
1986
- * @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
1987
- * @param {*} [options] Override http request option.
1988
- * @throws {RequiredError}
1989
- * @memberof ApiV1SsoApi
1990
- */
1991
- ssoControllerGenerateLocalCode(requestParameters, options) {
1992
- return (0, exports.ApiV1SsoApiFp)(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1993
- }
1994
- /**
1995
- * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
1996
- * @summary Validate and consume an authorization code
1997
- * @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
2061
+ * Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
2062
+ * @summary Generate a signed ID token for worker authentication
2063
+ * @param {ApiV1SsoApiSsoControllerGenerateTokenRequest} requestParameters Request parameters.
1998
2064
  * @param {*} [options] Override http request option.
1999
2065
  * @throws {RequiredError}
2000
2066
  * @memberof ApiV1SsoApi
2001
2067
  */
2002
- ssoControllerValidateCode(requestParameters, options) {
2003
- return (0, exports.ApiV1SsoApiFp)(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2068
+ ssoControllerGenerateToken(requestParameters, options) {
2069
+ return (0, exports.ApiV1SsoApiFp)(this.configuration)
2070
+ .ssoControllerGenerateToken(requestParameters.ssoTokenRequestDto, options)
2071
+ .then((request) => request(this.axios, this.basePath));
2004
2072
  }
2005
2073
  }
2006
2074
  exports.ApiV1SsoApi = ApiV1SsoApi;
@@ -2146,7 +2214,9 @@ class ApiV1UserApi extends base_1.BaseAPI {
2146
2214
  * @memberof ApiV1UserApi
2147
2215
  */
2148
2216
  userControllerDeleteAccount(options) {
2149
- return (0, exports.ApiV1UserApiFp)(this.configuration).userControllerDeleteAccount(options).then((request) => request(this.axios, this.basePath));
2217
+ return (0, exports.ApiV1UserApiFp)(this.configuration)
2218
+ .userControllerDeleteAccount(options)
2219
+ .then((request) => request(this.axios, this.basePath));
2150
2220
  }
2151
2221
  /**
2152
2222
  *
@@ -2156,7 +2226,9 @@ class ApiV1UserApi extends base_1.BaseAPI {
2156
2226
  * @memberof ApiV1UserApi
2157
2227
  */
2158
2228
  userControllerInfo(options) {
2159
- return (0, exports.ApiV1UserApiFp)(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
2229
+ return (0, exports.ApiV1UserApiFp)(this.configuration)
2230
+ .userControllerInfo(options)
2231
+ .then((request) => request(this.axios, this.basePath));
2160
2232
  }
2161
2233
  }
2162
2234
  exports.ApiV1UserApi = ApiV1UserApi;
@@ -2286,7 +2358,9 @@ const ApiV1UserSettingsApiFactory = function (configuration, basePath, axios) {
2286
2358
  * @throws {RequiredError}
2287
2359
  */
2288
2360
  userSettingsControllerUpdateSettings(requestParameters, options) {
2289
- return localVarFp.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(axios, basePath));
2361
+ return localVarFp
2362
+ .userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
2363
+ .then((request) => request(axios, basePath));
2290
2364
  },
2291
2365
  };
2292
2366
  };
@@ -2305,7 +2379,9 @@ class ApiV1UserSettingsApi extends base_1.BaseAPI {
2305
2379
  * @memberof ApiV1UserSettingsApi
2306
2380
  */
2307
2381
  userSettingsControllerGetSettings(options) {
2308
- return (0, exports.ApiV1UserSettingsApiFp)(this.configuration).userSettingsControllerGetSettings(options).then((request) => request(this.axios, this.basePath));
2382
+ return (0, exports.ApiV1UserSettingsApiFp)(this.configuration)
2383
+ .userSettingsControllerGetSettings(options)
2384
+ .then((request) => request(this.axios, this.basePath));
2309
2385
  }
2310
2386
  /**
2311
2387
  *
@@ -2316,7 +2392,9 @@ class ApiV1UserSettingsApi extends base_1.BaseAPI {
2316
2392
  * @memberof ApiV1UserSettingsApi
2317
2393
  */
2318
2394
  userSettingsControllerUpdateSettings(requestParameters, options) {
2319
- return (0, exports.ApiV1UserSettingsApiFp)(this.configuration).userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(this.axios, this.basePath));
2395
+ return (0, exports.ApiV1UserSettingsApiFp)(this.configuration)
2396
+ .userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
2397
+ .then((request) => request(this.axios, this.basePath));
2320
2398
  }
2321
2399
  }
2322
2400
  exports.ApiV1UserSettingsApi = ApiV1UserSettingsApi;
@@ -2396,8 +2474,7 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
2396
2474
  workerControllerDeleteWorker: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2397
2475
  // verify required parameter 'id' is not null or undefined
2398
2476
  (0, common_1.assertParamExists)('workerControllerDeleteWorker', 'id', id);
2399
- const localVarPath = `/api/v1/workers/id/{id}`
2400
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2477
+ const localVarPath = `/api/v1/workers/id/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2401
2478
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2402
2479
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2403
2480
  let baseOptions;
@@ -2415,35 +2492,6 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
2415
2492
  options: localVarRequestOptions,
2416
2493
  };
2417
2494
  }),
2418
- /**
2419
- *
2420
- * @summary Create a worker secret
2421
- * @param {string} id The ID of the worker
2422
- * @param {*} [options] Override http request option.
2423
- * @throws {RequiredError}
2424
- */
2425
- workerControllerGenerateWorkerSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2426
- // verify required parameter 'id' is not null or undefined
2427
- (0, common_1.assertParamExists)('workerControllerGenerateWorkerSecret', 'id', id);
2428
- const localVarPath = `/api/v1/workers/{id}/generate-secret`
2429
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2430
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2431
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2432
- let baseOptions;
2433
- if (configuration) {
2434
- baseOptions = configuration.baseOptions;
2435
- }
2436
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2437
- const localVarHeaderParameter = {};
2438
- const localVarQueryParameter = {};
2439
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2440
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2441
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2442
- return {
2443
- url: (0, common_1.toPathString)(localVarUrlObj),
2444
- options: localVarRequestOptions,
2445
- };
2446
- }),
2447
2495
  /**
2448
2496
  *
2449
2497
  * @summary Get a worker by ID
@@ -2454,8 +2502,7 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
2454
2502
  workerControllerGetWorkerById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2455
2503
  // verify required parameter 'id' is not null or undefined
2456
2504
  (0, common_1.assertParamExists)('workerControllerGetWorkerById', 'id', id);
2457
- const localVarPath = `/api/v1/workers/{id}`
2458
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2505
+ const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2459
2506
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2460
2507
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2461
2508
  let baseOptions;
@@ -2535,8 +2582,7 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
2535
2582
  (0, common_1.assertParamExists)('workerControllerUpdateWorker', 'id', id);
2536
2583
  // verify required parameter 'workerUpdateDto' is not null or undefined
2537
2584
  (0, common_1.assertParamExists)('workerControllerUpdateWorker', 'workerUpdateDto', workerUpdateDto);
2538
- const localVarPath = `/api/v1/workers/{id}`
2539
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2585
+ const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2540
2586
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2541
2587
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2542
2588
  let baseOptions;
@@ -2614,22 +2660,6 @@ const ApiV1WorkersApiFp = function (configuration) {
2614
2660
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2615
2661
  });
2616
2662
  },
2617
- /**
2618
- *
2619
- * @summary Create a worker secret
2620
- * @param {string} id The ID of the worker
2621
- * @param {*} [options] Override http request option.
2622
- * @throws {RequiredError}
2623
- */
2624
- workerControllerGenerateWorkerSecret(id, options) {
2625
- return __awaiter(this, void 0, void 0, function* () {
2626
- var _a, _b, _c;
2627
- const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
2628
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2629
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2630
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2631
- });
2632
- },
2633
2663
  /**
2634
2664
  *
2635
2665
  * @summary Get a worker by ID
@@ -2702,7 +2732,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
2702
2732
  * @throws {RequiredError}
2703
2733
  */
2704
2734
  workerControllerBatchDeleteWorkers(requestParameters, options) {
2705
- return localVarFp.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options).then((request) => request(axios, basePath));
2735
+ return localVarFp
2736
+ .workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
2737
+ .then((request) => request(axios, basePath));
2706
2738
  },
2707
2739
  /**
2708
2740
  *
@@ -2712,7 +2744,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
2712
2744
  * @throws {RequiredError}
2713
2745
  */
2714
2746
  workerControllerCreateWorker(requestParameters, options) {
2715
- return localVarFp.workerControllerCreateWorker(requestParameters.workerCreateDto, options).then((request) => request(axios, basePath));
2747
+ return localVarFp
2748
+ .workerControllerCreateWorker(requestParameters.workerCreateDto, options)
2749
+ .then((request) => request(axios, basePath));
2716
2750
  },
2717
2751
  /**
2718
2752
  *
@@ -2722,17 +2756,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
2722
2756
  * @throws {RequiredError}
2723
2757
  */
2724
2758
  workerControllerDeleteWorker(requestParameters, options) {
2725
- return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
2726
- },
2727
- /**
2728
- *
2729
- * @summary Create a worker secret
2730
- * @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
2731
- * @param {*} [options] Override http request option.
2732
- * @throws {RequiredError}
2733
- */
2734
- workerControllerGenerateWorkerSecret(requestParameters, options) {
2735
- return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
2759
+ return localVarFp
2760
+ .workerControllerDeleteWorker(requestParameters.id, options)
2761
+ .then((request) => request(axios, basePath));
2736
2762
  },
2737
2763
  /**
2738
2764
  *
@@ -2742,7 +2768,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
2742
2768
  * @throws {RequiredError}
2743
2769
  */
2744
2770
  workerControllerGetWorkerById(requestParameters, options) {
2745
- return localVarFp.workerControllerGetWorkerById(requestParameters.id, options).then((request) => request(axios, basePath));
2771
+ return localVarFp
2772
+ .workerControllerGetWorkerById(requestParameters.id, options)
2773
+ .then((request) => request(axios, basePath));
2746
2774
  },
2747
2775
  /**
2748
2776
  *
@@ -2752,7 +2780,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
2752
2780
  * @throws {RequiredError}
2753
2781
  */
2754
2782
  workerControllerGetWorkers(requestParameters = {}, options) {
2755
- return localVarFp.workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options).then((request) => request(axios, basePath));
2783
+ return localVarFp
2784
+ .workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options)
2785
+ .then((request) => request(axios, basePath));
2756
2786
  },
2757
2787
  /**
2758
2788
  *
@@ -2762,7 +2792,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
2762
2792
  * @throws {RequiredError}
2763
2793
  */
2764
2794
  workerControllerUpdateWorker(requestParameters, options) {
2765
- return localVarFp.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(axios, basePath));
2795
+ return localVarFp
2796
+ .workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options)
2797
+ .then((request) => request(axios, basePath));
2766
2798
  },
2767
2799
  };
2768
2800
  };
@@ -2783,7 +2815,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
2783
2815
  * @memberof ApiV1WorkersApi
2784
2816
  */
2785
2817
  workerControllerBatchDeleteWorkers(requestParameters, options) {
2786
- return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options).then((request) => request(this.axios, this.basePath));
2818
+ return (0, exports.ApiV1WorkersApiFp)(this.configuration)
2819
+ .workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
2820
+ .then((request) => request(this.axios, this.basePath));
2787
2821
  }
2788
2822
  /**
2789
2823
  *
@@ -2794,7 +2828,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
2794
2828
  * @memberof ApiV1WorkersApi
2795
2829
  */
2796
2830
  workerControllerCreateWorker(requestParameters, options) {
2797
- return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerCreateWorker(requestParameters.workerCreateDto, options).then((request) => request(this.axios, this.basePath));
2831
+ return (0, exports.ApiV1WorkersApiFp)(this.configuration)
2832
+ .workerControllerCreateWorker(requestParameters.workerCreateDto, options)
2833
+ .then((request) => request(this.axios, this.basePath));
2798
2834
  }
2799
2835
  /**
2800
2836
  *
@@ -2805,18 +2841,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
2805
2841
  * @memberof ApiV1WorkersApi
2806
2842
  */
2807
2843
  workerControllerDeleteWorker(requestParameters, options) {
2808
- return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2809
- }
2810
- /**
2811
- *
2812
- * @summary Create a worker secret
2813
- * @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
2814
- * @param {*} [options] Override http request option.
2815
- * @throws {RequiredError}
2816
- * @memberof ApiV1WorkersApi
2817
- */
2818
- workerControllerGenerateWorkerSecret(requestParameters, options) {
2819
- return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2844
+ return (0, exports.ApiV1WorkersApiFp)(this.configuration)
2845
+ .workerControllerDeleteWorker(requestParameters.id, options)
2846
+ .then((request) => request(this.axios, this.basePath));
2820
2847
  }
2821
2848
  /**
2822
2849
  *
@@ -2827,7 +2854,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
2827
2854
  * @memberof ApiV1WorkersApi
2828
2855
  */
2829
2856
  workerControllerGetWorkerById(requestParameters, options) {
2830
- return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerGetWorkerById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2857
+ return (0, exports.ApiV1WorkersApiFp)(this.configuration)
2858
+ .workerControllerGetWorkerById(requestParameters.id, options)
2859
+ .then((request) => request(this.axios, this.basePath));
2831
2860
  }
2832
2861
  /**
2833
2862
  *
@@ -2838,7 +2867,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
2838
2867
  * @memberof ApiV1WorkersApi
2839
2868
  */
2840
2869
  workerControllerGetWorkers(requestParameters = {}, options) {
2841
- return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options).then((request) => request(this.axios, this.basePath));
2870
+ return (0, exports.ApiV1WorkersApiFp)(this.configuration)
2871
+ .workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options)
2872
+ .then((request) => request(this.axios, this.basePath));
2842
2873
  }
2843
2874
  /**
2844
2875
  *
@@ -2849,7 +2880,1126 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
2849
2880
  * @memberof ApiV1WorkersApi
2850
2881
  */
2851
2882
  workerControllerUpdateWorker(requestParameters, options) {
2852
- return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(this.axios, this.basePath));
2883
+ return (0, exports.ApiV1WorkersApiFp)(this.configuration)
2884
+ .workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options)
2885
+ .then((request) => request(this.axios, this.basePath));
2853
2886
  }
2854
2887
  }
2855
2888
  exports.ApiV1WorkersApi = ApiV1WorkersApi;
2889
+ /**
2890
+ * RegistryApi - axios parameter creator
2891
+ * @export
2892
+ */
2893
+ const RegistryApiAxiosParamCreator = function (configuration) {
2894
+ return {
2895
+ /**
2896
+ * Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
2897
+ * @summary Confirm a draft entry
2898
+ * @param {string} id
2899
+ * @param {ConfirmDraftDto} confirmDraftDto
2900
+ * @param {*} [options] Override http request option.
2901
+ * @throws {RequiredError}
2902
+ */
2903
+ registryControllerConfirmDraft: (id_1, confirmDraftDto_1, ...args_1) => __awaiter(this, [id_1, confirmDraftDto_1, ...args_1], void 0, function* (id, confirmDraftDto, options = {}) {
2904
+ // verify required parameter 'id' is not null or undefined
2905
+ (0, common_1.assertParamExists)('registryControllerConfirmDraft', 'id', id);
2906
+ // verify required parameter 'confirmDraftDto' is not null or undefined
2907
+ (0, common_1.assertParamExists)('registryControllerConfirmDraft', 'confirmDraftDto', confirmDraftDto);
2908
+ const localVarPath = `/api/v1/registry/drafts/{id}/confirm`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2909
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2910
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2911
+ let baseOptions;
2912
+ if (configuration) {
2913
+ baseOptions = configuration.baseOptions;
2914
+ }
2915
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2916
+ const localVarHeaderParameter = {};
2917
+ const localVarQueryParameter = {};
2918
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2919
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2920
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2921
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2922
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmDraftDto, localVarRequestOptions, configuration);
2923
+ return {
2924
+ url: (0, common_1.toPathString)(localVarUrlObj),
2925
+ options: localVarRequestOptions,
2926
+ };
2927
+ }),
2928
+ /**
2929
+ *
2930
+ * @summary List active entries
2931
+ * @param {string} [category]
2932
+ * @param {Array<string>} [tags]
2933
+ * @param {string} [search]
2934
+ * @param {number} [page]
2935
+ * @param {number} [limit]
2936
+ * @param {*} [options] Override http request option.
2937
+ * @throws {RequiredError}
2938
+ */
2939
+ registryControllerFindAll: (category_1, tags_1, search_1, page_1, limit_1, ...args_1) => __awaiter(this, [category_1, tags_1, search_1, page_1, limit_1, ...args_1], void 0, function* (category, tags, search, page, limit, options = {}) {
2940
+ const localVarPath = `/api/v1/registry/entries`;
2941
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2942
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2943
+ let baseOptions;
2944
+ if (configuration) {
2945
+ baseOptions = configuration.baseOptions;
2946
+ }
2947
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2948
+ const localVarHeaderParameter = {};
2949
+ const localVarQueryParameter = {};
2950
+ if (category !== undefined) {
2951
+ localVarQueryParameter['category'] = category;
2952
+ }
2953
+ if (tags) {
2954
+ localVarQueryParameter['tags'] = tags;
2955
+ }
2956
+ if (search !== undefined) {
2957
+ localVarQueryParameter['search'] = search;
2958
+ }
2959
+ if (page !== undefined) {
2960
+ localVarQueryParameter['page'] = page;
2961
+ }
2962
+ if (limit !== undefined) {
2963
+ localVarQueryParameter['limit'] = limit;
2964
+ }
2965
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2967
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2968
+ return {
2969
+ url: (0, common_1.toPathString)(localVarUrlObj),
2970
+ options: localVarRequestOptions,
2971
+ };
2972
+ }),
2973
+ /**
2974
+ *
2975
+ * @summary Get single entry details by URL slug
2976
+ * @param {string} slug
2977
+ * @param {*} [options] Override http request option.
2978
+ * @throws {RequiredError}
2979
+ */
2980
+ registryControllerFindOne: (slug_1, ...args_1) => __awaiter(this, [slug_1, ...args_1], void 0, function* (slug, options = {}) {
2981
+ // verify required parameter 'slug' is not null or undefined
2982
+ (0, common_1.assertParamExists)('registryControllerFindOne', 'slug', slug);
2983
+ const localVarPath = `/api/v1/registry/entries/{slug}`.replace(`{${'slug'}}`, encodeURIComponent(String(slug)));
2984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2985
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2986
+ let baseOptions;
2987
+ if (configuration) {
2988
+ baseOptions = configuration.baseOptions;
2989
+ }
2990
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2991
+ const localVarHeaderParameter = {};
2992
+ const localVarQueryParameter = {};
2993
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2994
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2995
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2996
+ return {
2997
+ url: (0, common_1.toPathString)(localVarUrlObj),
2998
+ options: localVarRequestOptions,
2999
+ };
3000
+ }),
3001
+ /**
3002
+ *
3003
+ * @summary Get current user draft entries
3004
+ * @param {*} [options] Override http request option.
3005
+ * @throws {RequiredError}
3006
+ */
3007
+ registryControllerGetUserDrafts: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3008
+ const localVarPath = `/api/v1/registry/drafts`;
3009
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3010
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3011
+ let baseOptions;
3012
+ if (configuration) {
3013
+ baseOptions = configuration.baseOptions;
3014
+ }
3015
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3016
+ const localVarHeaderParameter = {};
3017
+ const localVarQueryParameter = {};
3018
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3019
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3020
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3021
+ return {
3022
+ url: (0, common_1.toPathString)(localVarUrlObj),
3023
+ options: localVarRequestOptions,
3024
+ };
3025
+ }),
3026
+ /**
3027
+ * Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
3028
+ * @summary Submit an NPM package
3029
+ * @param {SubmitPackageDto} submitPackageDto
3030
+ * @param {*} [options] Override http request option.
3031
+ * @throws {RequiredError}
3032
+ */
3033
+ registryControllerSubmitPackage: (submitPackageDto_1, ...args_1) => __awaiter(this, [submitPackageDto_1, ...args_1], void 0, function* (submitPackageDto, options = {}) {
3034
+ // verify required parameter 'submitPackageDto' is not null or undefined
3035
+ (0, common_1.assertParamExists)('registryControllerSubmitPackage', 'submitPackageDto', submitPackageDto);
3036
+ const localVarPath = `/api/v1/registry/submit`;
3037
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3038
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3039
+ let baseOptions;
3040
+ if (configuration) {
3041
+ baseOptions = configuration.baseOptions;
3042
+ }
3043
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3044
+ const localVarHeaderParameter = {};
3045
+ const localVarQueryParameter = {};
3046
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3047
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3048
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3049
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3050
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitPackageDto, localVarRequestOptions, configuration);
3051
+ return {
3052
+ url: (0, common_1.toPathString)(localVarUrlObj),
3053
+ options: localVarRequestOptions,
3054
+ };
3055
+ }),
3056
+ };
3057
+ };
3058
+ exports.RegistryApiAxiosParamCreator = RegistryApiAxiosParamCreator;
3059
+ /**
3060
+ * RegistryApi - functional programming interface
3061
+ * @export
3062
+ */
3063
+ const RegistryApiFp = function (configuration) {
3064
+ const localVarAxiosParamCreator = (0, exports.RegistryApiAxiosParamCreator)(configuration);
3065
+ return {
3066
+ /**
3067
+ * Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
3068
+ * @summary Confirm a draft entry
3069
+ * @param {string} id
3070
+ * @param {ConfirmDraftDto} confirmDraftDto
3071
+ * @param {*} [options] Override http request option.
3072
+ * @throws {RequiredError}
3073
+ */
3074
+ registryControllerConfirmDraft(id, confirmDraftDto, options) {
3075
+ return __awaiter(this, void 0, void 0, function* () {
3076
+ var _a, _b, _c;
3077
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerConfirmDraft(id, confirmDraftDto, options);
3078
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3079
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerConfirmDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3080
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3081
+ });
3082
+ },
3083
+ /**
3084
+ *
3085
+ * @summary List active entries
3086
+ * @param {string} [category]
3087
+ * @param {Array<string>} [tags]
3088
+ * @param {string} [search]
3089
+ * @param {number} [page]
3090
+ * @param {number} [limit]
3091
+ * @param {*} [options] Override http request option.
3092
+ * @throws {RequiredError}
3093
+ */
3094
+ registryControllerFindAll(category, tags, search, page, limit, options) {
3095
+ return __awaiter(this, void 0, void 0, function* () {
3096
+ var _a, _b, _c;
3097
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerFindAll(category, tags, search, page, limit, options);
3098
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3099
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3100
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3101
+ });
3102
+ },
3103
+ /**
3104
+ *
3105
+ * @summary Get single entry details by URL slug
3106
+ * @param {string} slug
3107
+ * @param {*} [options] Override http request option.
3108
+ * @throws {RequiredError}
3109
+ */
3110
+ registryControllerFindOne(slug, options) {
3111
+ return __awaiter(this, void 0, void 0, function* () {
3112
+ var _a, _b, _c;
3113
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerFindOne(slug, options);
3114
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3115
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerFindOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3116
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3117
+ });
3118
+ },
3119
+ /**
3120
+ *
3121
+ * @summary Get current user draft entries
3122
+ * @param {*} [options] Override http request option.
3123
+ * @throws {RequiredError}
3124
+ */
3125
+ registryControllerGetUserDrafts(options) {
3126
+ return __awaiter(this, void 0, void 0, function* () {
3127
+ var _a, _b, _c;
3128
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerGetUserDrafts(options);
3129
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3130
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerGetUserDrafts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3131
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3132
+ });
3133
+ },
3134
+ /**
3135
+ * Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
3136
+ * @summary Submit an NPM package
3137
+ * @param {SubmitPackageDto} submitPackageDto
3138
+ * @param {*} [options] Override http request option.
3139
+ * @throws {RequiredError}
3140
+ */
3141
+ registryControllerSubmitPackage(submitPackageDto, options) {
3142
+ return __awaiter(this, void 0, void 0, function* () {
3143
+ var _a, _b, _c;
3144
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerSubmitPackage(submitPackageDto, options);
3145
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3146
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerSubmitPackage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3147
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3148
+ });
3149
+ },
3150
+ };
3151
+ };
3152
+ exports.RegistryApiFp = RegistryApiFp;
3153
+ /**
3154
+ * RegistryApi - factory interface
3155
+ * @export
3156
+ */
3157
+ const RegistryApiFactory = function (configuration, basePath, axios) {
3158
+ const localVarFp = (0, exports.RegistryApiFp)(configuration);
3159
+ return {
3160
+ /**
3161
+ * Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
3162
+ * @summary Confirm a draft entry
3163
+ * @param {RegistryApiRegistryControllerConfirmDraftRequest} requestParameters Request parameters.
3164
+ * @param {*} [options] Override http request option.
3165
+ * @throws {RequiredError}
3166
+ */
3167
+ registryControllerConfirmDraft(requestParameters, options) {
3168
+ return localVarFp
3169
+ .registryControllerConfirmDraft(requestParameters.id, requestParameters.confirmDraftDto, options)
3170
+ .then((request) => request(axios, basePath));
3171
+ },
3172
+ /**
3173
+ *
3174
+ * @summary List active entries
3175
+ * @param {RegistryApiRegistryControllerFindAllRequest} requestParameters Request parameters.
3176
+ * @param {*} [options] Override http request option.
3177
+ * @throws {RequiredError}
3178
+ */
3179
+ registryControllerFindAll(requestParameters = {}, options) {
3180
+ return localVarFp
3181
+ .registryControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
3182
+ .then((request) => request(axios, basePath));
3183
+ },
3184
+ /**
3185
+ *
3186
+ * @summary Get single entry details by URL slug
3187
+ * @param {RegistryApiRegistryControllerFindOneRequest} requestParameters Request parameters.
3188
+ * @param {*} [options] Override http request option.
3189
+ * @throws {RequiredError}
3190
+ */
3191
+ registryControllerFindOne(requestParameters, options) {
3192
+ return localVarFp
3193
+ .registryControllerFindOne(requestParameters.slug, options)
3194
+ .then((request) => request(axios, basePath));
3195
+ },
3196
+ /**
3197
+ *
3198
+ * @summary Get current user draft entries
3199
+ * @param {*} [options] Override http request option.
3200
+ * @throws {RequiredError}
3201
+ */
3202
+ registryControllerGetUserDrafts(options) {
3203
+ return localVarFp.registryControllerGetUserDrafts(options).then((request) => request(axios, basePath));
3204
+ },
3205
+ /**
3206
+ * Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
3207
+ * @summary Submit an NPM package
3208
+ * @param {RegistryApiRegistryControllerSubmitPackageRequest} requestParameters Request parameters.
3209
+ * @param {*} [options] Override http request option.
3210
+ * @throws {RequiredError}
3211
+ */
3212
+ registryControllerSubmitPackage(requestParameters, options) {
3213
+ return localVarFp
3214
+ .registryControllerSubmitPackage(requestParameters.submitPackageDto, options)
3215
+ .then((request) => request(axios, basePath));
3216
+ },
3217
+ };
3218
+ };
3219
+ exports.RegistryApiFactory = RegistryApiFactory;
3220
+ /**
3221
+ * RegistryApi - object-oriented interface
3222
+ * @export
3223
+ * @class RegistryApi
3224
+ * @extends {BaseAPI}
3225
+ */
3226
+ class RegistryApi extends base_1.BaseAPI {
3227
+ /**
3228
+ * Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
3229
+ * @summary Confirm a draft entry
3230
+ * @param {RegistryApiRegistryControllerConfirmDraftRequest} requestParameters Request parameters.
3231
+ * @param {*} [options] Override http request option.
3232
+ * @throws {RequiredError}
3233
+ * @memberof RegistryApi
3234
+ */
3235
+ registryControllerConfirmDraft(requestParameters, options) {
3236
+ return (0, exports.RegistryApiFp)(this.configuration)
3237
+ .registryControllerConfirmDraft(requestParameters.id, requestParameters.confirmDraftDto, options)
3238
+ .then((request) => request(this.axios, this.basePath));
3239
+ }
3240
+ /**
3241
+ *
3242
+ * @summary List active entries
3243
+ * @param {RegistryApiRegistryControllerFindAllRequest} requestParameters Request parameters.
3244
+ * @param {*} [options] Override http request option.
3245
+ * @throws {RequiredError}
3246
+ * @memberof RegistryApi
3247
+ */
3248
+ registryControllerFindAll(requestParameters = {}, options) {
3249
+ return (0, exports.RegistryApiFp)(this.configuration)
3250
+ .registryControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
3251
+ .then((request) => request(this.axios, this.basePath));
3252
+ }
3253
+ /**
3254
+ *
3255
+ * @summary Get single entry details by URL slug
3256
+ * @param {RegistryApiRegistryControllerFindOneRequest} requestParameters Request parameters.
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ * @memberof RegistryApi
3260
+ */
3261
+ registryControllerFindOne(requestParameters, options) {
3262
+ return (0, exports.RegistryApiFp)(this.configuration)
3263
+ .registryControllerFindOne(requestParameters.slug, options)
3264
+ .then((request) => request(this.axios, this.basePath));
3265
+ }
3266
+ /**
3267
+ *
3268
+ * @summary Get current user draft entries
3269
+ * @param {*} [options] Override http request option.
3270
+ * @throws {RequiredError}
3271
+ * @memberof RegistryApi
3272
+ */
3273
+ registryControllerGetUserDrafts(options) {
3274
+ return (0, exports.RegistryApiFp)(this.configuration)
3275
+ .registryControllerGetUserDrafts(options)
3276
+ .then((request) => request(this.axios, this.basePath));
3277
+ }
3278
+ /**
3279
+ * Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
3280
+ * @summary Submit an NPM package
3281
+ * @param {RegistryApiRegistryControllerSubmitPackageRequest} requestParameters Request parameters.
3282
+ * @param {*} [options] Override http request option.
3283
+ * @throws {RequiredError}
3284
+ * @memberof RegistryApi
3285
+ */
3286
+ registryControllerSubmitPackage(requestParameters, options) {
3287
+ return (0, exports.RegistryApiFp)(this.configuration)
3288
+ .registryControllerSubmitPackage(requestParameters.submitPackageDto, options)
3289
+ .then((request) => request(this.axios, this.basePath));
3290
+ }
3291
+ }
3292
+ exports.RegistryApi = RegistryApi;
3293
+ /**
3294
+ * RegistryAdminApi - axios parameter creator
3295
+ * @export
3296
+ */
3297
+ const RegistryAdminApiAxiosParamCreator = function (configuration) {
3298
+ return {
3299
+ /**
3300
+ *
3301
+ * @summary Delete entry (admin)
3302
+ * @param {string} id
3303
+ * @param {*} [options] Override http request option.
3304
+ * @throws {RequiredError}
3305
+ */
3306
+ registryAdminControllerDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3307
+ // verify required parameter 'id' is not null or undefined
3308
+ (0, common_1.assertParamExists)('registryAdminControllerDelete', 'id', id);
3309
+ const localVarPath = `/api/v1/registry/entries/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3310
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3311
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3312
+ let baseOptions;
3313
+ if (configuration) {
3314
+ baseOptions = configuration.baseOptions;
3315
+ }
3316
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3317
+ const localVarHeaderParameter = {};
3318
+ const localVarQueryParameter = {};
3319
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3321
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3322
+ return {
3323
+ url: (0, common_1.toPathString)(localVarUrlObj),
3324
+ options: localVarRequestOptions,
3325
+ };
3326
+ }),
3327
+ /**
3328
+ *
3329
+ * @summary List all entries (admin)
3330
+ * @param {string} [category]
3331
+ * @param {Array<string>} [tags]
3332
+ * @param {string} [search]
3333
+ * @param {number} [page]
3334
+ * @param {number} [limit]
3335
+ * @param {*} [options] Override http request option.
3336
+ * @throws {RequiredError}
3337
+ */
3338
+ registryAdminControllerFindAll: (category_1, tags_1, search_1, page_1, limit_1, ...args_1) => __awaiter(this, [category_1, tags_1, search_1, page_1, limit_1, ...args_1], void 0, function* (category, tags, search, page, limit, options = {}) {
3339
+ const localVarPath = `/api/v1/registry/entries/admin`;
3340
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3341
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3342
+ let baseOptions;
3343
+ if (configuration) {
3344
+ baseOptions = configuration.baseOptions;
3345
+ }
3346
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3347
+ const localVarHeaderParameter = {};
3348
+ const localVarQueryParameter = {};
3349
+ if (category !== undefined) {
3350
+ localVarQueryParameter['category'] = category;
3351
+ }
3352
+ if (tags) {
3353
+ localVarQueryParameter['tags'] = tags;
3354
+ }
3355
+ if (search !== undefined) {
3356
+ localVarQueryParameter['search'] = search;
3357
+ }
3358
+ if (page !== undefined) {
3359
+ localVarQueryParameter['page'] = page;
3360
+ }
3361
+ if (limit !== undefined) {
3362
+ localVarQueryParameter['limit'] = limit;
3363
+ }
3364
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3365
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3366
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3367
+ return {
3368
+ url: (0, common_1.toPathString)(localVarUrlObj),
3369
+ options: localVarRequestOptions,
3370
+ };
3371
+ }),
3372
+ /**
3373
+ *
3374
+ * @summary Get maintenance run history (admin)
3375
+ * @param {number} [limit] Maximum number of runs to return
3376
+ * @param {*} [options] Override http request option.
3377
+ * @throws {RequiredError}
3378
+ */
3379
+ registryAdminControllerGetMaintenanceHistory: (limit_1, ...args_1) => __awaiter(this, [limit_1, ...args_1], void 0, function* (limit, options = {}) {
3380
+ const localVarPath = `/api/v1/registry/maintenance/history`;
3381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3382
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3383
+ let baseOptions;
3384
+ if (configuration) {
3385
+ baseOptions = configuration.baseOptions;
3386
+ }
3387
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3388
+ const localVarHeaderParameter = {};
3389
+ const localVarQueryParameter = {};
3390
+ if (limit !== undefined) {
3391
+ localVarQueryParameter['limit'] = limit;
3392
+ }
3393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3396
+ return {
3397
+ url: (0, common_1.toPathString)(localVarUrlObj),
3398
+ options: localVarRequestOptions,
3399
+ };
3400
+ }),
3401
+ /**
3402
+ *
3403
+ * @summary Get registry maintenance statistics (admin)
3404
+ * @param {*} [options] Override http request option.
3405
+ * @throws {RequiredError}
3406
+ */
3407
+ registryAdminControllerGetStatistics: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3408
+ const localVarPath = `/api/v1/registry/maintenance/statistics`;
3409
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3410
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3411
+ let baseOptions;
3412
+ if (configuration) {
3413
+ baseOptions = configuration.baseOptions;
3414
+ }
3415
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3416
+ const localVarHeaderParameter = {};
3417
+ const localVarQueryParameter = {};
3418
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3419
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3420
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3421
+ return {
3422
+ url: (0, common_1.toPathString)(localVarUrlObj),
3423
+ options: localVarRequestOptions,
3424
+ };
3425
+ }),
3426
+ /**
3427
+ *
3428
+ * @summary Run registry maintenance manually (admin)
3429
+ * @param {*} [options] Override http request option.
3430
+ * @throws {RequiredError}
3431
+ */
3432
+ registryAdminControllerRunMaintenance: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3433
+ const localVarPath = `/api/v1/registry/maintenance/run`;
3434
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3435
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3436
+ let baseOptions;
3437
+ if (configuration) {
3438
+ baseOptions = configuration.baseOptions;
3439
+ }
3440
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3441
+ const localVarHeaderParameter = {};
3442
+ const localVarQueryParameter = {};
3443
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3446
+ return {
3447
+ url: (0, common_1.toPathString)(localVarUrlObj),
3448
+ options: localVarRequestOptions,
3449
+ };
3450
+ }),
3451
+ /**
3452
+ *
3453
+ * @summary Update entry (admin)
3454
+ * @param {string} id
3455
+ * @param {UpdateEntryDto} updateEntryDto
3456
+ * @param {*} [options] Override http request option.
3457
+ * @throws {RequiredError}
3458
+ */
3459
+ registryAdminControllerUpdate: (id_1, updateEntryDto_1, ...args_1) => __awaiter(this, [id_1, updateEntryDto_1, ...args_1], void 0, function* (id, updateEntryDto, options = {}) {
3460
+ // verify required parameter 'id' is not null or undefined
3461
+ (0, common_1.assertParamExists)('registryAdminControllerUpdate', 'id', id);
3462
+ // verify required parameter 'updateEntryDto' is not null or undefined
3463
+ (0, common_1.assertParamExists)('registryAdminControllerUpdate', 'updateEntryDto', updateEntryDto);
3464
+ const localVarPath = `/api/v1/registry/entries/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3465
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3466
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3467
+ let baseOptions;
3468
+ if (configuration) {
3469
+ baseOptions = configuration.baseOptions;
3470
+ }
3471
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3472
+ const localVarHeaderParameter = {};
3473
+ const localVarQueryParameter = {};
3474
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3475
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3476
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3477
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3478
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEntryDto, localVarRequestOptions, configuration);
3479
+ return {
3480
+ url: (0, common_1.toPathString)(localVarUrlObj),
3481
+ options: localVarRequestOptions,
3482
+ };
3483
+ }),
3484
+ /**
3485
+ *
3486
+ * @summary Manage staff tags (admin)
3487
+ * @param {string} id
3488
+ * @param {UpdateStaffTagsDto} updateStaffTagsDto
3489
+ * @param {*} [options] Override http request option.
3490
+ * @throws {RequiredError}
3491
+ */
3492
+ registryAdminControllerUpdateStaffTags: (id_1, updateStaffTagsDto_1, ...args_1) => __awaiter(this, [id_1, updateStaffTagsDto_1, ...args_1], void 0, function* (id, updateStaffTagsDto, options = {}) {
3493
+ // verify required parameter 'id' is not null or undefined
3494
+ (0, common_1.assertParamExists)('registryAdminControllerUpdateStaffTags', 'id', id);
3495
+ // verify required parameter 'updateStaffTagsDto' is not null or undefined
3496
+ (0, common_1.assertParamExists)('registryAdminControllerUpdateStaffTags', 'updateStaffTagsDto', updateStaffTagsDto);
3497
+ const localVarPath = `/api/v1/registry/entries/{id}/staff-tags`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3498
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3499
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3500
+ let baseOptions;
3501
+ if (configuration) {
3502
+ baseOptions = configuration.baseOptions;
3503
+ }
3504
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3505
+ const localVarHeaderParameter = {};
3506
+ const localVarQueryParameter = {};
3507
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3508
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3509
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3510
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3511
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateStaffTagsDto, localVarRequestOptions, configuration);
3512
+ return {
3513
+ url: (0, common_1.toPathString)(localVarUrlObj),
3514
+ options: localVarRequestOptions,
3515
+ };
3516
+ }),
3517
+ /**
3518
+ *
3519
+ * @summary Activate/deactivate entry (admin)
3520
+ * @param {string} id
3521
+ * @param {UpdateStatusDto} updateStatusDto
3522
+ * @param {*} [options] Override http request option.
3523
+ * @throws {RequiredError}
3524
+ */
3525
+ registryAdminControllerUpdateStatus: (id_1, updateStatusDto_1, ...args_1) => __awaiter(this, [id_1, updateStatusDto_1, ...args_1], void 0, function* (id, updateStatusDto, options = {}) {
3526
+ // verify required parameter 'id' is not null or undefined
3527
+ (0, common_1.assertParamExists)('registryAdminControllerUpdateStatus', 'id', id);
3528
+ // verify required parameter 'updateStatusDto' is not null or undefined
3529
+ (0, common_1.assertParamExists)('registryAdminControllerUpdateStatus', 'updateStatusDto', updateStatusDto);
3530
+ const localVarPath = `/api/v1/registry/entries/{id}/status`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3531
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3532
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3533
+ let baseOptions;
3534
+ if (configuration) {
3535
+ baseOptions = configuration.baseOptions;
3536
+ }
3537
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3538
+ const localVarHeaderParameter = {};
3539
+ const localVarQueryParameter = {};
3540
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3541
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3543
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3544
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateStatusDto, localVarRequestOptions, configuration);
3545
+ return {
3546
+ url: (0, common_1.toPathString)(localVarUrlObj),
3547
+ options: localVarRequestOptions,
3548
+ };
3549
+ }),
3550
+ };
3551
+ };
3552
+ exports.RegistryAdminApiAxiosParamCreator = RegistryAdminApiAxiosParamCreator;
3553
+ /**
3554
+ * RegistryAdminApi - functional programming interface
3555
+ * @export
3556
+ */
3557
+ const RegistryAdminApiFp = function (configuration) {
3558
+ const localVarAxiosParamCreator = (0, exports.RegistryAdminApiAxiosParamCreator)(configuration);
3559
+ return {
3560
+ /**
3561
+ *
3562
+ * @summary Delete entry (admin)
3563
+ * @param {string} id
3564
+ * @param {*} [options] Override http request option.
3565
+ * @throws {RequiredError}
3566
+ */
3567
+ registryAdminControllerDelete(id, options) {
3568
+ return __awaiter(this, void 0, void 0, function* () {
3569
+ var _a, _b, _c;
3570
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerDelete(id, options);
3571
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3572
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3573
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3574
+ });
3575
+ },
3576
+ /**
3577
+ *
3578
+ * @summary List all entries (admin)
3579
+ * @param {string} [category]
3580
+ * @param {Array<string>} [tags]
3581
+ * @param {string} [search]
3582
+ * @param {number} [page]
3583
+ * @param {number} [limit]
3584
+ * @param {*} [options] Override http request option.
3585
+ * @throws {RequiredError}
3586
+ */
3587
+ registryAdminControllerFindAll(category, tags, search, page, limit, options) {
3588
+ return __awaiter(this, void 0, void 0, function* () {
3589
+ var _a, _b, _c;
3590
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerFindAll(category, tags, search, page, limit, options);
3591
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3592
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3593
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3594
+ });
3595
+ },
3596
+ /**
3597
+ *
3598
+ * @summary Get maintenance run history (admin)
3599
+ * @param {number} [limit] Maximum number of runs to return
3600
+ * @param {*} [options] Override http request option.
3601
+ * @throws {RequiredError}
3602
+ */
3603
+ registryAdminControllerGetMaintenanceHistory(limit, options) {
3604
+ return __awaiter(this, void 0, void 0, function* () {
3605
+ var _a, _b, _c;
3606
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerGetMaintenanceHistory(limit, options);
3607
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3608
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerGetMaintenanceHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3609
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3610
+ });
3611
+ },
3612
+ /**
3613
+ *
3614
+ * @summary Get registry maintenance statistics (admin)
3615
+ * @param {*} [options] Override http request option.
3616
+ * @throws {RequiredError}
3617
+ */
3618
+ registryAdminControllerGetStatistics(options) {
3619
+ return __awaiter(this, void 0, void 0, function* () {
3620
+ var _a, _b, _c;
3621
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerGetStatistics(options);
3622
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3623
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerGetStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3624
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3625
+ });
3626
+ },
3627
+ /**
3628
+ *
3629
+ * @summary Run registry maintenance manually (admin)
3630
+ * @param {*} [options] Override http request option.
3631
+ * @throws {RequiredError}
3632
+ */
3633
+ registryAdminControllerRunMaintenance(options) {
3634
+ return __awaiter(this, void 0, void 0, function* () {
3635
+ var _a, _b, _c;
3636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerRunMaintenance(options);
3637
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3638
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerRunMaintenance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3639
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3640
+ });
3641
+ },
3642
+ /**
3643
+ *
3644
+ * @summary Update entry (admin)
3645
+ * @param {string} id
3646
+ * @param {UpdateEntryDto} updateEntryDto
3647
+ * @param {*} [options] Override http request option.
3648
+ * @throws {RequiredError}
3649
+ */
3650
+ registryAdminControllerUpdate(id, updateEntryDto, options) {
3651
+ return __awaiter(this, void 0, void 0, function* () {
3652
+ var _a, _b, _c;
3653
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdate(id, updateEntryDto, options);
3654
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3655
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3656
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3657
+ });
3658
+ },
3659
+ /**
3660
+ *
3661
+ * @summary Manage staff tags (admin)
3662
+ * @param {string} id
3663
+ * @param {UpdateStaffTagsDto} updateStaffTagsDto
3664
+ * @param {*} [options] Override http request option.
3665
+ * @throws {RequiredError}
3666
+ */
3667
+ registryAdminControllerUpdateStaffTags(id, updateStaffTagsDto, options) {
3668
+ return __awaiter(this, void 0, void 0, function* () {
3669
+ var _a, _b, _c;
3670
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdateStaffTags(id, updateStaffTagsDto, options);
3671
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3672
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerUpdateStaffTags']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3673
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3674
+ });
3675
+ },
3676
+ /**
3677
+ *
3678
+ * @summary Activate/deactivate entry (admin)
3679
+ * @param {string} id
3680
+ * @param {UpdateStatusDto} updateStatusDto
3681
+ * @param {*} [options] Override http request option.
3682
+ * @throws {RequiredError}
3683
+ */
3684
+ registryAdminControllerUpdateStatus(id, updateStatusDto, options) {
3685
+ return __awaiter(this, void 0, void 0, function* () {
3686
+ var _a, _b, _c;
3687
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdateStatus(id, updateStatusDto, options);
3688
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3689
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerUpdateStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3690
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3691
+ });
3692
+ },
3693
+ };
3694
+ };
3695
+ exports.RegistryAdminApiFp = RegistryAdminApiFp;
3696
+ /**
3697
+ * RegistryAdminApi - factory interface
3698
+ * @export
3699
+ */
3700
+ const RegistryAdminApiFactory = function (configuration, basePath, axios) {
3701
+ const localVarFp = (0, exports.RegistryAdminApiFp)(configuration);
3702
+ return {
3703
+ /**
3704
+ *
3705
+ * @summary Delete entry (admin)
3706
+ * @param {RegistryAdminApiRegistryAdminControllerDeleteRequest} requestParameters Request parameters.
3707
+ * @param {*} [options] Override http request option.
3708
+ * @throws {RequiredError}
3709
+ */
3710
+ registryAdminControllerDelete(requestParameters, options) {
3711
+ return localVarFp
3712
+ .registryAdminControllerDelete(requestParameters.id, options)
3713
+ .then((request) => request(axios, basePath));
3714
+ },
3715
+ /**
3716
+ *
3717
+ * @summary List all entries (admin)
3718
+ * @param {RegistryAdminApiRegistryAdminControllerFindAllRequest} requestParameters Request parameters.
3719
+ * @param {*} [options] Override http request option.
3720
+ * @throws {RequiredError}
3721
+ */
3722
+ registryAdminControllerFindAll(requestParameters = {}, options) {
3723
+ return localVarFp
3724
+ .registryAdminControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
3725
+ .then((request) => request(axios, basePath));
3726
+ },
3727
+ /**
3728
+ *
3729
+ * @summary Get maintenance run history (admin)
3730
+ * @param {RegistryAdminApiRegistryAdminControllerGetMaintenanceHistoryRequest} requestParameters Request parameters.
3731
+ * @param {*} [options] Override http request option.
3732
+ * @throws {RequiredError}
3733
+ */
3734
+ registryAdminControllerGetMaintenanceHistory(requestParameters = {}, options) {
3735
+ return localVarFp
3736
+ .registryAdminControllerGetMaintenanceHistory(requestParameters.limit, options)
3737
+ .then((request) => request(axios, basePath));
3738
+ },
3739
+ /**
3740
+ *
3741
+ * @summary Get registry maintenance statistics (admin)
3742
+ * @param {*} [options] Override http request option.
3743
+ * @throws {RequiredError}
3744
+ */
3745
+ registryAdminControllerGetStatistics(options) {
3746
+ return localVarFp.registryAdminControllerGetStatistics(options).then((request) => request(axios, basePath));
3747
+ },
3748
+ /**
3749
+ *
3750
+ * @summary Run registry maintenance manually (admin)
3751
+ * @param {*} [options] Override http request option.
3752
+ * @throws {RequiredError}
3753
+ */
3754
+ registryAdminControllerRunMaintenance(options) {
3755
+ return localVarFp.registryAdminControllerRunMaintenance(options).then((request) => request(axios, basePath));
3756
+ },
3757
+ /**
3758
+ *
3759
+ * @summary Update entry (admin)
3760
+ * @param {RegistryAdminApiRegistryAdminControllerUpdateRequest} requestParameters Request parameters.
3761
+ * @param {*} [options] Override http request option.
3762
+ * @throws {RequiredError}
3763
+ */
3764
+ registryAdminControllerUpdate(requestParameters, options) {
3765
+ return localVarFp
3766
+ .registryAdminControllerUpdate(requestParameters.id, requestParameters.updateEntryDto, options)
3767
+ .then((request) => request(axios, basePath));
3768
+ },
3769
+ /**
3770
+ *
3771
+ * @summary Manage staff tags (admin)
3772
+ * @param {RegistryAdminApiRegistryAdminControllerUpdateStaffTagsRequest} requestParameters Request parameters.
3773
+ * @param {*} [options] Override http request option.
3774
+ * @throws {RequiredError}
3775
+ */
3776
+ registryAdminControllerUpdateStaffTags(requestParameters, options) {
3777
+ return localVarFp
3778
+ .registryAdminControllerUpdateStaffTags(requestParameters.id, requestParameters.updateStaffTagsDto, options)
3779
+ .then((request) => request(axios, basePath));
3780
+ },
3781
+ /**
3782
+ *
3783
+ * @summary Activate/deactivate entry (admin)
3784
+ * @param {RegistryAdminApiRegistryAdminControllerUpdateStatusRequest} requestParameters Request parameters.
3785
+ * @param {*} [options] Override http request option.
3786
+ * @throws {RequiredError}
3787
+ */
3788
+ registryAdminControllerUpdateStatus(requestParameters, options) {
3789
+ return localVarFp
3790
+ .registryAdminControllerUpdateStatus(requestParameters.id, requestParameters.updateStatusDto, options)
3791
+ .then((request) => request(axios, basePath));
3792
+ },
3793
+ };
3794
+ };
3795
+ exports.RegistryAdminApiFactory = RegistryAdminApiFactory;
3796
+ /**
3797
+ * RegistryAdminApi - object-oriented interface
3798
+ * @export
3799
+ * @class RegistryAdminApi
3800
+ * @extends {BaseAPI}
3801
+ */
3802
+ class RegistryAdminApi extends base_1.BaseAPI {
3803
+ /**
3804
+ *
3805
+ * @summary Delete entry (admin)
3806
+ * @param {RegistryAdminApiRegistryAdminControllerDeleteRequest} requestParameters Request parameters.
3807
+ * @param {*} [options] Override http request option.
3808
+ * @throws {RequiredError}
3809
+ * @memberof RegistryAdminApi
3810
+ */
3811
+ registryAdminControllerDelete(requestParameters, options) {
3812
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3813
+ .registryAdminControllerDelete(requestParameters.id, options)
3814
+ .then((request) => request(this.axios, this.basePath));
3815
+ }
3816
+ /**
3817
+ *
3818
+ * @summary List all entries (admin)
3819
+ * @param {RegistryAdminApiRegistryAdminControllerFindAllRequest} requestParameters Request parameters.
3820
+ * @param {*} [options] Override http request option.
3821
+ * @throws {RequiredError}
3822
+ * @memberof RegistryAdminApi
3823
+ */
3824
+ registryAdminControllerFindAll(requestParameters = {}, options) {
3825
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3826
+ .registryAdminControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
3827
+ .then((request) => request(this.axios, this.basePath));
3828
+ }
3829
+ /**
3830
+ *
3831
+ * @summary Get maintenance run history (admin)
3832
+ * @param {RegistryAdminApiRegistryAdminControllerGetMaintenanceHistoryRequest} requestParameters Request parameters.
3833
+ * @param {*} [options] Override http request option.
3834
+ * @throws {RequiredError}
3835
+ * @memberof RegistryAdminApi
3836
+ */
3837
+ registryAdminControllerGetMaintenanceHistory(requestParameters = {}, options) {
3838
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3839
+ .registryAdminControllerGetMaintenanceHistory(requestParameters.limit, options)
3840
+ .then((request) => request(this.axios, this.basePath));
3841
+ }
3842
+ /**
3843
+ *
3844
+ * @summary Get registry maintenance statistics (admin)
3845
+ * @param {*} [options] Override http request option.
3846
+ * @throws {RequiredError}
3847
+ * @memberof RegistryAdminApi
3848
+ */
3849
+ registryAdminControllerGetStatistics(options) {
3850
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3851
+ .registryAdminControllerGetStatistics(options)
3852
+ .then((request) => request(this.axios, this.basePath));
3853
+ }
3854
+ /**
3855
+ *
3856
+ * @summary Run registry maintenance manually (admin)
3857
+ * @param {*} [options] Override http request option.
3858
+ * @throws {RequiredError}
3859
+ * @memberof RegistryAdminApi
3860
+ */
3861
+ registryAdminControllerRunMaintenance(options) {
3862
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3863
+ .registryAdminControllerRunMaintenance(options)
3864
+ .then((request) => request(this.axios, this.basePath));
3865
+ }
3866
+ /**
3867
+ *
3868
+ * @summary Update entry (admin)
3869
+ * @param {RegistryAdminApiRegistryAdminControllerUpdateRequest} requestParameters Request parameters.
3870
+ * @param {*} [options] Override http request option.
3871
+ * @throws {RequiredError}
3872
+ * @memberof RegistryAdminApi
3873
+ */
3874
+ registryAdminControllerUpdate(requestParameters, options) {
3875
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3876
+ .registryAdminControllerUpdate(requestParameters.id, requestParameters.updateEntryDto, options)
3877
+ .then((request) => request(this.axios, this.basePath));
3878
+ }
3879
+ /**
3880
+ *
3881
+ * @summary Manage staff tags (admin)
3882
+ * @param {RegistryAdminApiRegistryAdminControllerUpdateStaffTagsRequest} requestParameters Request parameters.
3883
+ * @param {*} [options] Override http request option.
3884
+ * @throws {RequiredError}
3885
+ * @memberof RegistryAdminApi
3886
+ */
3887
+ registryAdminControllerUpdateStaffTags(requestParameters, options) {
3888
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3889
+ .registryAdminControllerUpdateStaffTags(requestParameters.id, requestParameters.updateStaffTagsDto, options)
3890
+ .then((request) => request(this.axios, this.basePath));
3891
+ }
3892
+ /**
3893
+ *
3894
+ * @summary Activate/deactivate entry (admin)
3895
+ * @param {RegistryAdminApiRegistryAdminControllerUpdateStatusRequest} requestParameters Request parameters.
3896
+ * @param {*} [options] Override http request option.
3897
+ * @throws {RequiredError}
3898
+ * @memberof RegistryAdminApi
3899
+ */
3900
+ registryAdminControllerUpdateStatus(requestParameters, options) {
3901
+ return (0, exports.RegistryAdminApiFp)(this.configuration)
3902
+ .registryAdminControllerUpdateStatus(requestParameters.id, requestParameters.updateStatusDto, options)
3903
+ .then((request) => request(this.axios, this.basePath));
3904
+ }
3905
+ }
3906
+ exports.RegistryAdminApi = RegistryAdminApi;
3907
+ /**
3908
+ * WellKnownApi - axios parameter creator
3909
+ * @export
3910
+ */
3911
+ const WellKnownApiAxiosParamCreator = function (configuration) {
3912
+ return {
3913
+ /**
3914
+ *
3915
+ * @summary JSON Web Key Set for verifying Hub-signed ID tokens
3916
+ * @param {*} [options] Override http request option.
3917
+ * @throws {RequiredError}
3918
+ */
3919
+ ssoJwksControllerGetJwks: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3920
+ const localVarPath = `/.well-known/jwks.json`;
3921
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3922
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3923
+ let baseOptions;
3924
+ if (configuration) {
3925
+ baseOptions = configuration.baseOptions;
3926
+ }
3927
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3928
+ const localVarHeaderParameter = {};
3929
+ const localVarQueryParameter = {};
3930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3932
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3933
+ return {
3934
+ url: (0, common_1.toPathString)(localVarUrlObj),
3935
+ options: localVarRequestOptions,
3936
+ };
3937
+ }),
3938
+ };
3939
+ };
3940
+ exports.WellKnownApiAxiosParamCreator = WellKnownApiAxiosParamCreator;
3941
+ /**
3942
+ * WellKnownApi - functional programming interface
3943
+ * @export
3944
+ */
3945
+ const WellKnownApiFp = function (configuration) {
3946
+ const localVarAxiosParamCreator = (0, exports.WellKnownApiAxiosParamCreator)(configuration);
3947
+ return {
3948
+ /**
3949
+ *
3950
+ * @summary JSON Web Key Set for verifying Hub-signed ID tokens
3951
+ * @param {*} [options] Override http request option.
3952
+ * @throws {RequiredError}
3953
+ */
3954
+ ssoJwksControllerGetJwks(options) {
3955
+ return __awaiter(this, void 0, void 0, function* () {
3956
+ var _a, _b, _c;
3957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoJwksControllerGetJwks(options);
3958
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3959
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WellKnownApi.ssoJwksControllerGetJwks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3960
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3961
+ });
3962
+ },
3963
+ };
3964
+ };
3965
+ exports.WellKnownApiFp = WellKnownApiFp;
3966
+ /**
3967
+ * WellKnownApi - factory interface
3968
+ * @export
3969
+ */
3970
+ const WellKnownApiFactory = function (configuration, basePath, axios) {
3971
+ const localVarFp = (0, exports.WellKnownApiFp)(configuration);
3972
+ return {
3973
+ /**
3974
+ *
3975
+ * @summary JSON Web Key Set for verifying Hub-signed ID tokens
3976
+ * @param {*} [options] Override http request option.
3977
+ * @throws {RequiredError}
3978
+ */
3979
+ ssoJwksControllerGetJwks(options) {
3980
+ return localVarFp.ssoJwksControllerGetJwks(options).then((request) => request(axios, basePath));
3981
+ },
3982
+ };
3983
+ };
3984
+ exports.WellKnownApiFactory = WellKnownApiFactory;
3985
+ /**
3986
+ * WellKnownApi - object-oriented interface
3987
+ * @export
3988
+ * @class WellKnownApi
3989
+ * @extends {BaseAPI}
3990
+ */
3991
+ class WellKnownApi extends base_1.BaseAPI {
3992
+ /**
3993
+ *
3994
+ * @summary JSON Web Key Set for verifying Hub-signed ID tokens
3995
+ * @param {*} [options] Override http request option.
3996
+ * @throws {RequiredError}
3997
+ * @memberof WellKnownApi
3998
+ */
3999
+ ssoJwksControllerGetJwks(options) {
4000
+ return (0, exports.WellKnownApiFp)(this.configuration)
4001
+ .ssoJwksControllerGetJwks(options)
4002
+ .then((request) => request(this.axios, this.basePath));
4003
+ }
4004
+ }
4005
+ exports.WellKnownApi = WellKnownApi;