@halo-dev/api-client 0.0.0 → 0.0.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/index.cjs CHANGED
@@ -91,6 +91,47 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
91
91
  url: toPathString(localVarUrlObj),
92
92
  options: localVarRequestOptions
93
93
  };
94
+ },
95
+ getPermissions: async (name, options = {}) => {
96
+ assertParamExists("getPermissions", "name", name);
97
+ const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
98
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
+ let baseOptions;
100
+ if (configuration) {
101
+ baseOptions = configuration.baseOptions;
102
+ }
103
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
104
+ const localVarHeaderParameter = {};
105
+ const localVarQueryParameter = {};
106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
108
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions
112
+ };
113
+ },
114
+ grantPermission: async (name, grantRequest, options = {}) => {
115
+ assertParamExists("grantPermission", "name", name);
116
+ assertParamExists("grantPermission", "grantRequest", grantRequest);
117
+ const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
119
+ let baseOptions;
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ }
123
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
124
+ const localVarHeaderParameter = {};
125
+ const localVarQueryParameter = {};
126
+ localVarHeaderParameter["Content-Type"] = "application/json";
127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
130
+ localVarRequestOptions.data = serializeDataIfNeeded(grantRequest, localVarRequestOptions, configuration);
131
+ return {
132
+ url: toPathString(localVarUrlObj),
133
+ options: localVarRequestOptions
134
+ };
94
135
  }
95
136
  };
96
137
  };
@@ -100,6 +141,14 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
100
141
  async getCurrentUserDetail(options) {
101
142
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUserDetail(options);
102
143
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
144
+ },
145
+ async getPermissions(name, options) {
146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissions(name, options);
147
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
148
+ },
149
+ async grantPermission(name, grantRequest, options) {
150
+ const localVarAxiosArgs = await localVarAxiosParamCreator.grantPermission(name, grantRequest, options);
151
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
103
152
  }
104
153
  };
105
154
  };
@@ -108,6 +157,12 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
108
157
  return {
109
158
  getCurrentUserDetail(options) {
110
159
  return localVarFp.getCurrentUserDetail(options).then((request) => request(axios, basePath));
160
+ },
161
+ getPermissions(name, options) {
162
+ return localVarFp.getPermissions(name, options).then((request) => request(axios, basePath));
163
+ },
164
+ grantPermission(name, grantRequest, options) {
165
+ return localVarFp.grantPermission(name, grantRequest, options).then((request) => request(axios, basePath));
111
166
  }
112
167
  };
113
168
  };
@@ -115,6 +170,12 @@ class ApiHaloRunV1alpha1UserApi extends BaseAPI {
115
170
  getCurrentUserDetail(options) {
116
171
  return ApiHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
117
172
  }
173
+ getPermissions(name, options) {
174
+ return ApiHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(name, options).then((request) => request(this.axios, this.basePath));
175
+ }
176
+ grantPermission(name, grantRequest, options) {
177
+ return ApiHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(name, grantRequest, options).then((request) => request(this.axios, this.basePath));
178
+ }
118
179
  }
119
180
  const CoreHaloRunV1alpha1LinkApiAxiosParamCreator = function(configuration) {
120
181
  return {
package/dist/index.d.ts CHANGED
@@ -151,6 +151,61 @@ interface ConfigMap {
151
151
  */
152
152
  metadata: Metadata;
153
153
  }
154
+ /**
155
+ *
156
+ * @export
157
+ * @interface ConfigMapList
158
+ */
159
+ interface ConfigMapList {
160
+ /**
161
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
162
+ * @type {number}
163
+ * @memberof ConfigMapList
164
+ */
165
+ page: number;
166
+ /**
167
+ * Size of each page. If not set or equal to 0, it means no pagination.
168
+ * @type {number}
169
+ * @memberof ConfigMapList
170
+ */
171
+ size: number;
172
+ /**
173
+ * Total elements.
174
+ * @type {number}
175
+ * @memberof ConfigMapList
176
+ */
177
+ total: number;
178
+ /**
179
+ * A chunk of items.
180
+ * @type {Array<ConfigMap>}
181
+ * @memberof ConfigMapList
182
+ */
183
+ items: Array<ConfigMap>;
184
+ /**
185
+ * Indicates whether current page is the first page.
186
+ * @type {boolean}
187
+ * @memberof ConfigMapList
188
+ */
189
+ first: boolean;
190
+ /**
191
+ * Indicates whether current page is the last page.
192
+ * @type {boolean}
193
+ * @memberof ConfigMapList
194
+ */
195
+ last: boolean;
196
+ /**
197
+ * Indicates whether current page has previous page.
198
+ * @type {boolean}
199
+ * @memberof ConfigMapList
200
+ */
201
+ hasNext: boolean;
202
+ /**
203
+ * Indicates whether current page has previous page.
204
+ * @type {boolean}
205
+ * @memberof ConfigMapList
206
+ */
207
+ hasPrevious: boolean;
208
+ }
154
209
  /**
155
210
  *
156
211
  * @export
@@ -170,6 +225,19 @@ interface FileReverseProxyProvider {
170
225
  */
171
226
  filename?: string;
172
227
  }
228
+ /**
229
+ *
230
+ * @export
231
+ * @interface GrantRequest
232
+ */
233
+ interface GrantRequest {
234
+ /**
235
+ *
236
+ * @type {Set<string>}
237
+ * @memberof GrantRequest
238
+ */
239
+ roles?: Set<string>;
240
+ }
173
241
  /**
174
242
  *
175
243
  * @export
@@ -428,6 +496,61 @@ interface PersonalAccessToken {
428
496
  */
429
497
  metadata: Metadata;
430
498
  }
499
+ /**
500
+ *
501
+ * @export
502
+ * @interface PersonalAccessTokenList
503
+ */
504
+ interface PersonalAccessTokenList {
505
+ /**
506
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
507
+ * @type {number}
508
+ * @memberof PersonalAccessTokenList
509
+ */
510
+ page: number;
511
+ /**
512
+ * Size of each page. If not set or equal to 0, it means no pagination.
513
+ * @type {number}
514
+ * @memberof PersonalAccessTokenList
515
+ */
516
+ size: number;
517
+ /**
518
+ * Total elements.
519
+ * @type {number}
520
+ * @memberof PersonalAccessTokenList
521
+ */
522
+ total: number;
523
+ /**
524
+ * A chunk of items.
525
+ * @type {Array<PersonalAccessToken>}
526
+ * @memberof PersonalAccessTokenList
527
+ */
528
+ items: Array<PersonalAccessToken>;
529
+ /**
530
+ * Indicates whether current page is the first page.
531
+ * @type {boolean}
532
+ * @memberof PersonalAccessTokenList
533
+ */
534
+ first: boolean;
535
+ /**
536
+ * Indicates whether current page is the last page.
537
+ * @type {boolean}
538
+ * @memberof PersonalAccessTokenList
539
+ */
540
+ last: boolean;
541
+ /**
542
+ * Indicates whether current page has previous page.
543
+ * @type {boolean}
544
+ * @memberof PersonalAccessTokenList
545
+ */
546
+ hasNext: boolean;
547
+ /**
548
+ * Indicates whether current page has previous page.
549
+ * @type {boolean}
550
+ * @memberof PersonalAccessTokenList
551
+ */
552
+ hasPrevious: boolean;
553
+ }
431
554
  /**
432
555
  *
433
556
  * @export
@@ -508,6 +631,61 @@ interface Plugin {
508
631
  */
509
632
  metadata: Metadata;
510
633
  }
634
+ /**
635
+ *
636
+ * @export
637
+ * @interface PluginList
638
+ */
639
+ interface PluginList {
640
+ /**
641
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
642
+ * @type {number}
643
+ * @memberof PluginList
644
+ */
645
+ page: number;
646
+ /**
647
+ * Size of each page. If not set or equal to 0, it means no pagination.
648
+ * @type {number}
649
+ * @memberof PluginList
650
+ */
651
+ size: number;
652
+ /**
653
+ * Total elements.
654
+ * @type {number}
655
+ * @memberof PluginList
656
+ */
657
+ total: number;
658
+ /**
659
+ * A chunk of items.
660
+ * @type {Array<Plugin>}
661
+ * @memberof PluginList
662
+ */
663
+ items: Array<Plugin>;
664
+ /**
665
+ * Indicates whether current page is the first page.
666
+ * @type {boolean}
667
+ * @memberof PluginList
668
+ */
669
+ first: boolean;
670
+ /**
671
+ * Indicates whether current page is the last page.
672
+ * @type {boolean}
673
+ * @memberof PluginList
674
+ */
675
+ last: boolean;
676
+ /**
677
+ * Indicates whether current page has previous page.
678
+ * @type {boolean}
679
+ * @memberof PluginList
680
+ */
681
+ hasNext: boolean;
682
+ /**
683
+ * Indicates whether current page has previous page.
684
+ * @type {boolean}
685
+ * @memberof PluginList
686
+ */
687
+ hasPrevious: boolean;
688
+ }
511
689
  /**
512
690
  *
513
691
  * @export
@@ -783,6 +961,61 @@ interface ReverseProxy {
783
961
  */
784
962
  metadata: Metadata;
785
963
  }
964
+ /**
965
+ *
966
+ * @export
967
+ * @interface ReverseProxyList
968
+ */
969
+ interface ReverseProxyList {
970
+ /**
971
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
972
+ * @type {number}
973
+ * @memberof ReverseProxyList
974
+ */
975
+ page: number;
976
+ /**
977
+ * Size of each page. If not set or equal to 0, it means no pagination.
978
+ * @type {number}
979
+ * @memberof ReverseProxyList
980
+ */
981
+ size: number;
982
+ /**
983
+ * Total elements.
984
+ * @type {number}
985
+ * @memberof ReverseProxyList
986
+ */
987
+ total: number;
988
+ /**
989
+ * A chunk of items.
990
+ * @type {Array<ReverseProxy>}
991
+ * @memberof ReverseProxyList
992
+ */
993
+ items: Array<ReverseProxy>;
994
+ /**
995
+ * Indicates whether current page is the first page.
996
+ * @type {boolean}
997
+ * @memberof ReverseProxyList
998
+ */
999
+ first: boolean;
1000
+ /**
1001
+ * Indicates whether current page is the last page.
1002
+ * @type {boolean}
1003
+ * @memberof ReverseProxyList
1004
+ */
1005
+ last: boolean;
1006
+ /**
1007
+ * Indicates whether current page has previous page.
1008
+ * @type {boolean}
1009
+ * @memberof ReverseProxyList
1010
+ */
1011
+ hasNext: boolean;
1012
+ /**
1013
+ * Indicates whether current page has previous page.
1014
+ * @type {boolean}
1015
+ * @memberof ReverseProxyList
1016
+ */
1017
+ hasPrevious: boolean;
1018
+ }
786
1019
  /**
787
1020
  *
788
1021
  * @export
@@ -870,6 +1103,116 @@ interface RoleBinding {
870
1103
  */
871
1104
  metadata: Metadata;
872
1105
  }
1106
+ /**
1107
+ *
1108
+ * @export
1109
+ * @interface RoleBindingList
1110
+ */
1111
+ interface RoleBindingList {
1112
+ /**
1113
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
1114
+ * @type {number}
1115
+ * @memberof RoleBindingList
1116
+ */
1117
+ page: number;
1118
+ /**
1119
+ * Size of each page. If not set or equal to 0, it means no pagination.
1120
+ * @type {number}
1121
+ * @memberof RoleBindingList
1122
+ */
1123
+ size: number;
1124
+ /**
1125
+ * Total elements.
1126
+ * @type {number}
1127
+ * @memberof RoleBindingList
1128
+ */
1129
+ total: number;
1130
+ /**
1131
+ * A chunk of items.
1132
+ * @type {Array<RoleBinding>}
1133
+ * @memberof RoleBindingList
1134
+ */
1135
+ items: Array<RoleBinding>;
1136
+ /**
1137
+ * Indicates whether current page is the first page.
1138
+ * @type {boolean}
1139
+ * @memberof RoleBindingList
1140
+ */
1141
+ first: boolean;
1142
+ /**
1143
+ * Indicates whether current page is the last page.
1144
+ * @type {boolean}
1145
+ * @memberof RoleBindingList
1146
+ */
1147
+ last: boolean;
1148
+ /**
1149
+ * Indicates whether current page has previous page.
1150
+ * @type {boolean}
1151
+ * @memberof RoleBindingList
1152
+ */
1153
+ hasNext: boolean;
1154
+ /**
1155
+ * Indicates whether current page has previous page.
1156
+ * @type {boolean}
1157
+ * @memberof RoleBindingList
1158
+ */
1159
+ hasPrevious: boolean;
1160
+ }
1161
+ /**
1162
+ *
1163
+ * @export
1164
+ * @interface RoleList
1165
+ */
1166
+ interface RoleList {
1167
+ /**
1168
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
1169
+ * @type {number}
1170
+ * @memberof RoleList
1171
+ */
1172
+ page: number;
1173
+ /**
1174
+ * Size of each page. If not set or equal to 0, it means no pagination.
1175
+ * @type {number}
1176
+ * @memberof RoleList
1177
+ */
1178
+ size: number;
1179
+ /**
1180
+ * Total elements.
1181
+ * @type {number}
1182
+ * @memberof RoleList
1183
+ */
1184
+ total: number;
1185
+ /**
1186
+ * A chunk of items.
1187
+ * @type {Array<Role>}
1188
+ * @memberof RoleList
1189
+ */
1190
+ items: Array<Role>;
1191
+ /**
1192
+ * Indicates whether current page is the first page.
1193
+ * @type {boolean}
1194
+ * @memberof RoleList
1195
+ */
1196
+ first: boolean;
1197
+ /**
1198
+ * Indicates whether current page is the last page.
1199
+ * @type {boolean}
1200
+ * @memberof RoleList
1201
+ */
1202
+ last: boolean;
1203
+ /**
1204
+ * Indicates whether current page has previous page.
1205
+ * @type {boolean}
1206
+ * @memberof RoleList
1207
+ */
1208
+ hasNext: boolean;
1209
+ /**
1210
+ * Indicates whether current page has previous page.
1211
+ * @type {boolean}
1212
+ * @memberof RoleList
1213
+ */
1214
+ hasPrevious: boolean;
1215
+ }
873
1216
  /**
874
1217
  *
875
1218
  * @export
@@ -926,6 +1269,61 @@ interface Setting {
926
1269
  */
927
1270
  metadata: Metadata;
928
1271
  }
1272
+ /**
1273
+ *
1274
+ * @export
1275
+ * @interface SettingList
1276
+ */
1277
+ interface SettingList {
1278
+ /**
1279
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
1280
+ * @type {number}
1281
+ * @memberof SettingList
1282
+ */
1283
+ page: number;
1284
+ /**
1285
+ * Size of each page. If not set or equal to 0, it means no pagination.
1286
+ * @type {number}
1287
+ * @memberof SettingList
1288
+ */
1289
+ size: number;
1290
+ /**
1291
+ * Total elements.
1292
+ * @type {number}
1293
+ * @memberof SettingList
1294
+ */
1295
+ total: number;
1296
+ /**
1297
+ * A chunk of items.
1298
+ * @type {Array<Setting>}
1299
+ * @memberof SettingList
1300
+ */
1301
+ items: Array<Setting>;
1302
+ /**
1303
+ * Indicates whether current page is the first page.
1304
+ * @type {boolean}
1305
+ * @memberof SettingList
1306
+ */
1307
+ first: boolean;
1308
+ /**
1309
+ * Indicates whether current page is the last page.
1310
+ * @type {boolean}
1311
+ * @memberof SettingList
1312
+ */
1313
+ last: boolean;
1314
+ /**
1315
+ * Indicates whether current page has previous page.
1316
+ * @type {boolean}
1317
+ * @memberof SettingList
1318
+ */
1319
+ hasNext: boolean;
1320
+ /**
1321
+ * Indicates whether current page has previous page.
1322
+ * @type {boolean}
1323
+ * @memberof SettingList
1324
+ */
1325
+ hasPrevious: boolean;
1326
+ }
929
1327
  /**
930
1328
  *
931
1329
  * @export
@@ -1013,6 +1411,61 @@ interface User {
1013
1411
  */
1014
1412
  metadata: Metadata;
1015
1413
  }
1414
+ /**
1415
+ *
1416
+ * @export
1417
+ * @interface UserList
1418
+ */
1419
+ interface UserList {
1420
+ /**
1421
+ * Page number, starts from 1. If not set or equal to 0, it means no pagination.
1422
+ * @type {number}
1423
+ * @memberof UserList
1424
+ */
1425
+ page: number;
1426
+ /**
1427
+ * Size of each page. If not set or equal to 0, it means no pagination.
1428
+ * @type {number}
1429
+ * @memberof UserList
1430
+ */
1431
+ size: number;
1432
+ /**
1433
+ * Total elements.
1434
+ * @type {number}
1435
+ * @memberof UserList
1436
+ */
1437
+ total: number;
1438
+ /**
1439
+ * A chunk of items.
1440
+ * @type {Array<User>}
1441
+ * @memberof UserList
1442
+ */
1443
+ items: Array<User>;
1444
+ /**
1445
+ * Indicates whether current page is the first page.
1446
+ * @type {boolean}
1447
+ * @memberof UserList
1448
+ */
1449
+ first: boolean;
1450
+ /**
1451
+ * Indicates whether current page is the last page.
1452
+ * @type {boolean}
1453
+ * @memberof UserList
1454
+ */
1455
+ last: boolean;
1456
+ /**
1457
+ * Indicates whether current page has previous page.
1458
+ * @type {boolean}
1459
+ * @memberof UserList
1460
+ */
1461
+ hasNext: boolean;
1462
+ /**
1463
+ * Indicates whether current page has previous page.
1464
+ * @type {boolean}
1465
+ * @memberof UserList
1466
+ */
1467
+ hasPrevious: boolean;
1468
+ }
1016
1469
  /**
1017
1470
  *
1018
1471
  * @export
@@ -1110,6 +1563,21 @@ declare const ApiHaloRunV1alpha1UserApiAxiosParamCreator: (configuration?: Confi
1110
1563
  * @throws {RequiredError}
1111
1564
  */
1112
1565
  getCurrentUserDetail: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
1566
+ /**
1567
+ * Get permissions of user
1568
+ * @param {string} name User name
1569
+ * @param {*} [options] Override http request option.
1570
+ * @throws {RequiredError}
1571
+ */
1572
+ getPermissions: (name: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1573
+ /**
1574
+ * Grant permissions to user
1575
+ * @param {string} name User name
1576
+ * @param {GrantRequest} grantRequest
1577
+ * @param {*} [options] Override http request option.
1578
+ * @throws {RequiredError}
1579
+ */
1580
+ grantPermission: (name: string, grantRequest: GrantRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1113
1581
  };
1114
1582
  /**
1115
1583
  * ApiHaloRunV1alpha1UserApi - functional programming interface
@@ -1122,6 +1590,21 @@ declare const ApiHaloRunV1alpha1UserApiFp: (configuration?: Configuration) => {
1122
1590
  * @throws {RequiredError}
1123
1591
  */
1124
1592
  getCurrentUserDetail(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
1593
+ /**
1594
+ * Get permissions of user
1595
+ * @param {string} name User name
1596
+ * @param {*} [options] Override http request option.
1597
+ * @throws {RequiredError}
1598
+ */
1599
+ getPermissions(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1600
+ /**
1601
+ * Grant permissions to user
1602
+ * @param {string} name User name
1603
+ * @param {GrantRequest} grantRequest
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ */
1607
+ grantPermission(name: string, grantRequest: GrantRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
1125
1608
  };
1126
1609
  /**
1127
1610
  * ApiHaloRunV1alpha1UserApi - factory interface
@@ -1134,6 +1617,21 @@ declare const ApiHaloRunV1alpha1UserApiFactory: (configuration?: Configuration,
1134
1617
  * @throws {RequiredError}
1135
1618
  */
1136
1619
  getCurrentUserDetail(options?: any): AxiosPromise<User>;
1620
+ /**
1621
+ * Get permissions of user
1622
+ * @param {string} name User name
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ */
1626
+ getPermissions(name: string, options?: any): AxiosPromise<string>;
1627
+ /**
1628
+ * Grant permissions to user
1629
+ * @param {string} name User name
1630
+ * @param {GrantRequest} grantRequest
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ */
1634
+ grantPermission(name: string, grantRequest: GrantRequest, options?: any): AxiosPromise<User>;
1137
1635
  };
1138
1636
  /**
1139
1637
  * ApiHaloRunV1alpha1UserApi - object-oriented interface
@@ -1149,6 +1647,23 @@ declare class ApiHaloRunV1alpha1UserApi extends BaseAPI {
1149
1647
  * @memberof ApiHaloRunV1alpha1UserApi
1150
1648
  */
1151
1649
  getCurrentUserDetail(options?: AxiosRequestConfig): Promise<axios.AxiosResponse<User, any>>;
1650
+ /**
1651
+ * Get permissions of user
1652
+ * @param {string} name User name
1653
+ * @param {*} [options] Override http request option.
1654
+ * @throws {RequiredError}
1655
+ * @memberof ApiHaloRunV1alpha1UserApi
1656
+ */
1657
+ getPermissions(name: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<string, any>>;
1658
+ /**
1659
+ * Grant permissions to user
1660
+ * @param {string} name User name
1661
+ * @param {GrantRequest} grantRequest
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ * @memberof ApiHaloRunV1alpha1UserApi
1665
+ */
1666
+ grantPermission(name: string, grantRequest: GrantRequest, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<User, any>>;
1152
1667
  }
1153
1668
  /**
1154
1669
  * CoreHaloRunV1alpha1LinkApi - axios parameter creator
@@ -1228,7 +1743,7 @@ declare const CoreHaloRunV1alpha1LinkApiFp: (configuration?: Configuration) => {
1228
1743
  * @param {*} [options] Override http request option.
1229
1744
  * @throws {RequiredError}
1230
1745
  */
1231
- listcoreHaloRunV1alpha1Link(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Link>>>;
1746
+ listcoreHaloRunV1alpha1Link(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1232
1747
  /**
1233
1748
  * Update core.halo.run/v1alpha1/Link
1234
1749
  * @param {string} name Name of link
@@ -1272,7 +1787,7 @@ declare const CoreHaloRunV1alpha1LinkApiFactory: (configuration?: Configuration,
1272
1787
  * @param {*} [options] Override http request option.
1273
1788
  * @throws {RequiredError}
1274
1789
  */
1275
- listcoreHaloRunV1alpha1Link(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<Link>>;
1790
+ listcoreHaloRunV1alpha1Link(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<string>;
1276
1791
  /**
1277
1792
  * Update core.halo.run/v1alpha1/Link
1278
1793
  * @param {string} name Name of link
@@ -1322,7 +1837,7 @@ declare class CoreHaloRunV1alpha1LinkApi extends BaseAPI {
1322
1837
  * @throws {RequiredError}
1323
1838
  * @memberof CoreHaloRunV1alpha1LinkApi
1324
1839
  */
1325
- listcoreHaloRunV1alpha1Link(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<Link[], any>>;
1840
+ listcoreHaloRunV1alpha1Link(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<string, any>>;
1326
1841
  /**
1327
1842
  * Update core.halo.run/v1alpha1/Link
1328
1843
  * @param {string} name Name of link
@@ -1411,7 +1926,7 @@ declare const CoreHaloRunV1alpha1LinkGroupApiFp: (configuration?: Configuration)
1411
1926
  * @param {*} [options] Override http request option.
1412
1927
  * @throws {RequiredError}
1413
1928
  */
1414
- listcoreHaloRunV1alpha1LinkGroup(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LinkGroup>>>;
1929
+ listcoreHaloRunV1alpha1LinkGroup(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1415
1930
  /**
1416
1931
  * Update core.halo.run/v1alpha1/LinkGroup
1417
1932
  * @param {string} name Name of linkgroup
@@ -1455,7 +1970,7 @@ declare const CoreHaloRunV1alpha1LinkGroupApiFactory: (configuration?: Configura
1455
1970
  * @param {*} [options] Override http request option.
1456
1971
  * @throws {RequiredError}
1457
1972
  */
1458
- listcoreHaloRunV1alpha1LinkGroup(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<LinkGroup>>;
1973
+ listcoreHaloRunV1alpha1LinkGroup(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<string>;
1459
1974
  /**
1460
1975
  * Update core.halo.run/v1alpha1/LinkGroup
1461
1976
  * @param {string} name Name of linkgroup
@@ -1505,7 +2020,7 @@ declare class CoreHaloRunV1alpha1LinkGroupApi extends BaseAPI {
1505
2020
  * @throws {RequiredError}
1506
2021
  * @memberof CoreHaloRunV1alpha1LinkGroupApi
1507
2022
  */
1508
- listcoreHaloRunV1alpha1LinkGroup(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<LinkGroup[], any>>;
2023
+ listcoreHaloRunV1alpha1LinkGroup(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<string, any>>;
1509
2024
  /**
1510
2025
  * Update core.halo.run/v1alpha1/LinkGroup
1511
2026
  * @param {string} name Name of linkgroup
@@ -1594,7 +2109,7 @@ declare const CoreHaloRunV1alpha1PostApiFp: (configuration?: Configuration) => {
1594
2109
  * @param {*} [options] Override http request option.
1595
2110
  * @throws {RequiredError}
1596
2111
  */
1597
- listcoreHaloRunV1alpha1Post(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Post>>>;
2112
+ listcoreHaloRunV1alpha1Post(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1598
2113
  /**
1599
2114
  * Update core.halo.run/v1alpha1/Post
1600
2115
  * @param {string} name Name of post
@@ -1638,7 +2153,7 @@ declare const CoreHaloRunV1alpha1PostApiFactory: (configuration?: Configuration,
1638
2153
  * @param {*} [options] Override http request option.
1639
2154
  * @throws {RequiredError}
1640
2155
  */
1641
- listcoreHaloRunV1alpha1Post(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<Post>>;
2156
+ listcoreHaloRunV1alpha1Post(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<string>;
1642
2157
  /**
1643
2158
  * Update core.halo.run/v1alpha1/Post
1644
2159
  * @param {string} name Name of post
@@ -1688,7 +2203,7 @@ declare class CoreHaloRunV1alpha1PostApi extends BaseAPI {
1688
2203
  * @throws {RequiredError}
1689
2204
  * @memberof CoreHaloRunV1alpha1PostApi
1690
2205
  */
1691
- listcoreHaloRunV1alpha1Post(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<Post[], any>>;
2206
+ listcoreHaloRunV1alpha1Post(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<string, any>>;
1692
2207
  /**
1693
2208
  * Update core.halo.run/v1alpha1/Post
1694
2209
  * @param {string} name Name of post
@@ -1777,7 +2292,7 @@ declare const PluginHaloRunV1alpha1PluginApiFp: (configuration?: Configuration)
1777
2292
  * @param {*} [options] Override http request option.
1778
2293
  * @throws {RequiredError}
1779
2294
  */
1780
- listpluginHaloRunV1alpha1Plugin(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Plugin>>>;
2295
+ listpluginHaloRunV1alpha1Plugin(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginList>>;
1781
2296
  /**
1782
2297
  * Update plugin.halo.run/v1alpha1/Plugin
1783
2298
  * @param {string} name Name of plugin
@@ -1821,7 +2336,7 @@ declare const PluginHaloRunV1alpha1PluginApiFactory: (configuration?: Configurat
1821
2336
  * @param {*} [options] Override http request option.
1822
2337
  * @throws {RequiredError}
1823
2338
  */
1824
- listpluginHaloRunV1alpha1Plugin(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<Plugin>>;
2339
+ listpluginHaloRunV1alpha1Plugin(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<PluginList>;
1825
2340
  /**
1826
2341
  * Update plugin.halo.run/v1alpha1/Plugin
1827
2342
  * @param {string} name Name of plugin
@@ -1871,7 +2386,7 @@ declare class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
1871
2386
  * @throws {RequiredError}
1872
2387
  * @memberof PluginHaloRunV1alpha1PluginApi
1873
2388
  */
1874
- listpluginHaloRunV1alpha1Plugin(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<Plugin[], any>>;
2389
+ listpluginHaloRunV1alpha1Plugin(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<PluginList, any>>;
1875
2390
  /**
1876
2391
  * Update plugin.halo.run/v1alpha1/Plugin
1877
2392
  * @param {string} name Name of plugin
@@ -1960,7 +2475,7 @@ declare const PluginHaloRunV1alpha1ReverseProxyApiFp: (configuration?: Configura
1960
2475
  * @param {*} [options] Override http request option.
1961
2476
  * @throws {RequiredError}
1962
2477
  */
1963
- listpluginHaloRunV1alpha1ReverseProxy(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReverseProxy>>>;
2478
+ listpluginHaloRunV1alpha1ReverseProxy(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxyList>>;
1964
2479
  /**
1965
2480
  * Update plugin.halo.run/v1alpha1/ReverseProxy
1966
2481
  * @param {string} name Name of reverseproxy
@@ -2004,7 +2519,7 @@ declare const PluginHaloRunV1alpha1ReverseProxyApiFactory: (configuration?: Conf
2004
2519
  * @param {*} [options] Override http request option.
2005
2520
  * @throws {RequiredError}
2006
2521
  */
2007
- listpluginHaloRunV1alpha1ReverseProxy(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<ReverseProxy>>;
2522
+ listpluginHaloRunV1alpha1ReverseProxy(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<ReverseProxyList>;
2008
2523
  /**
2009
2524
  * Update plugin.halo.run/v1alpha1/ReverseProxy
2010
2525
  * @param {string} name Name of reverseproxy
@@ -2054,7 +2569,7 @@ declare class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
2054
2569
  * @throws {RequiredError}
2055
2570
  * @memberof PluginHaloRunV1alpha1ReverseProxyApi
2056
2571
  */
2057
- listpluginHaloRunV1alpha1ReverseProxy(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<ReverseProxy[], any>>;
2572
+ listpluginHaloRunV1alpha1ReverseProxy(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<ReverseProxyList, any>>;
2058
2573
  /**
2059
2574
  * Update plugin.halo.run/v1alpha1/ReverseProxy
2060
2575
  * @param {string} name Name of reverseproxy
@@ -2143,7 +2658,7 @@ declare const V1alpha1ConfigMapApiFp: (configuration?: Configuration) => {
2143
2658
  * @param {*} [options] Override http request option.
2144
2659
  * @throws {RequiredError}
2145
2660
  */
2146
- listv1alpha1ConfigMap(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConfigMap>>>;
2661
+ listv1alpha1ConfigMap(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMapList>>;
2147
2662
  /**
2148
2663
  * Update v1alpha1/ConfigMap
2149
2664
  * @param {string} name Name of configmap
@@ -2187,7 +2702,7 @@ declare const V1alpha1ConfigMapApiFactory: (configuration?: Configuration, baseP
2187
2702
  * @param {*} [options] Override http request option.
2188
2703
  * @throws {RequiredError}
2189
2704
  */
2190
- listv1alpha1ConfigMap(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<ConfigMap>>;
2705
+ listv1alpha1ConfigMap(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<ConfigMapList>;
2191
2706
  /**
2192
2707
  * Update v1alpha1/ConfigMap
2193
2708
  * @param {string} name Name of configmap
@@ -2237,7 +2752,7 @@ declare class V1alpha1ConfigMapApi extends BaseAPI {
2237
2752
  * @throws {RequiredError}
2238
2753
  * @memberof V1alpha1ConfigMapApi
2239
2754
  */
2240
- listv1alpha1ConfigMap(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<ConfigMap[], any>>;
2755
+ listv1alpha1ConfigMap(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<ConfigMapList, any>>;
2241
2756
  /**
2242
2757
  * Update v1alpha1/ConfigMap
2243
2758
  * @param {string} name Name of configmap
@@ -2326,7 +2841,7 @@ declare const V1alpha1PersonalAccessTokenApiFp: (configuration?: Configuration)
2326
2841
  * @param {*} [options] Override http request option.
2327
2842
  * @throws {RequiredError}
2328
2843
  */
2329
- listv1alpha1PersonalAccessToken(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonalAccessToken>>>;
2844
+ listv1alpha1PersonalAccessToken(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalAccessTokenList>>;
2330
2845
  /**
2331
2846
  * Update v1alpha1/PersonalAccessToken
2332
2847
  * @param {string} name Name of personalaccesstoken
@@ -2370,7 +2885,7 @@ declare const V1alpha1PersonalAccessTokenApiFactory: (configuration?: Configurat
2370
2885
  * @param {*} [options] Override http request option.
2371
2886
  * @throws {RequiredError}
2372
2887
  */
2373
- listv1alpha1PersonalAccessToken(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<PersonalAccessToken>>;
2888
+ listv1alpha1PersonalAccessToken(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<PersonalAccessTokenList>;
2374
2889
  /**
2375
2890
  * Update v1alpha1/PersonalAccessToken
2376
2891
  * @param {string} name Name of personalaccesstoken
@@ -2420,7 +2935,7 @@ declare class V1alpha1PersonalAccessTokenApi extends BaseAPI {
2420
2935
  * @throws {RequiredError}
2421
2936
  * @memberof V1alpha1PersonalAccessTokenApi
2422
2937
  */
2423
- listv1alpha1PersonalAccessToken(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<PersonalAccessToken[], any>>;
2938
+ listv1alpha1PersonalAccessToken(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<PersonalAccessTokenList, any>>;
2424
2939
  /**
2425
2940
  * Update v1alpha1/PersonalAccessToken
2426
2941
  * @param {string} name Name of personalaccesstoken
@@ -2509,7 +3024,7 @@ declare const V1alpha1RoleApiFp: (configuration?: Configuration) => {
2509
3024
  * @param {*} [options] Override http request option.
2510
3025
  * @throws {RequiredError}
2511
3026
  */
2512
- listv1alpha1Role(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Role>>>;
3027
+ listv1alpha1Role(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleList>>;
2513
3028
  /**
2514
3029
  * Update v1alpha1/Role
2515
3030
  * @param {string} name Name of role
@@ -2553,7 +3068,7 @@ declare const V1alpha1RoleApiFactory: (configuration?: Configuration, basePath?:
2553
3068
  * @param {*} [options] Override http request option.
2554
3069
  * @throws {RequiredError}
2555
3070
  */
2556
- listv1alpha1Role(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<Role>>;
3071
+ listv1alpha1Role(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<RoleList>;
2557
3072
  /**
2558
3073
  * Update v1alpha1/Role
2559
3074
  * @param {string} name Name of role
@@ -2603,7 +3118,7 @@ declare class V1alpha1RoleApi extends BaseAPI {
2603
3118
  * @throws {RequiredError}
2604
3119
  * @memberof V1alpha1RoleApi
2605
3120
  */
2606
- listv1alpha1Role(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<Role[], any>>;
3121
+ listv1alpha1Role(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<RoleList, any>>;
2607
3122
  /**
2608
3123
  * Update v1alpha1/Role
2609
3124
  * @param {string} name Name of role
@@ -2692,7 +3207,7 @@ declare const V1alpha1RoleBindingApiFp: (configuration?: Configuration) => {
2692
3207
  * @param {*} [options] Override http request option.
2693
3208
  * @throws {RequiredError}
2694
3209
  */
2695
- listv1alpha1RoleBinding(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RoleBinding>>>;
3210
+ listv1alpha1RoleBinding(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBindingList>>;
2696
3211
  /**
2697
3212
  * Update v1alpha1/RoleBinding
2698
3213
  * @param {string} name Name of rolebinding
@@ -2736,7 +3251,7 @@ declare const V1alpha1RoleBindingApiFactory: (configuration?: Configuration, bas
2736
3251
  * @param {*} [options] Override http request option.
2737
3252
  * @throws {RequiredError}
2738
3253
  */
2739
- listv1alpha1RoleBinding(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<RoleBinding>>;
3254
+ listv1alpha1RoleBinding(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<RoleBindingList>;
2740
3255
  /**
2741
3256
  * Update v1alpha1/RoleBinding
2742
3257
  * @param {string} name Name of rolebinding
@@ -2786,7 +3301,7 @@ declare class V1alpha1RoleBindingApi extends BaseAPI {
2786
3301
  * @throws {RequiredError}
2787
3302
  * @memberof V1alpha1RoleBindingApi
2788
3303
  */
2789
- listv1alpha1RoleBinding(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<RoleBinding[], any>>;
3304
+ listv1alpha1RoleBinding(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<RoleBindingList, any>>;
2790
3305
  /**
2791
3306
  * Update v1alpha1/RoleBinding
2792
3307
  * @param {string} name Name of rolebinding
@@ -2875,7 +3390,7 @@ declare const V1alpha1SettingApiFp: (configuration?: Configuration) => {
2875
3390
  * @param {*} [options] Override http request option.
2876
3391
  * @throws {RequiredError}
2877
3392
  */
2878
- listv1alpha1Setting(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Setting>>>;
3393
+ listv1alpha1Setting(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SettingList>>;
2879
3394
  /**
2880
3395
  * Update v1alpha1/Setting
2881
3396
  * @param {string} name Name of setting
@@ -2919,7 +3434,7 @@ declare const V1alpha1SettingApiFactory: (configuration?: Configuration, basePat
2919
3434
  * @param {*} [options] Override http request option.
2920
3435
  * @throws {RequiredError}
2921
3436
  */
2922
- listv1alpha1Setting(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<Setting>>;
3437
+ listv1alpha1Setting(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<SettingList>;
2923
3438
  /**
2924
3439
  * Update v1alpha1/Setting
2925
3440
  * @param {string} name Name of setting
@@ -2969,7 +3484,7 @@ declare class V1alpha1SettingApi extends BaseAPI {
2969
3484
  * @throws {RequiredError}
2970
3485
  * @memberof V1alpha1SettingApi
2971
3486
  */
2972
- listv1alpha1Setting(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<Setting[], any>>;
3487
+ listv1alpha1Setting(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<SettingList, any>>;
2973
3488
  /**
2974
3489
  * Update v1alpha1/Setting
2975
3490
  * @param {string} name Name of setting
@@ -3058,7 +3573,7 @@ declare const V1alpha1UserApiFp: (configuration?: Configuration) => {
3058
3573
  * @param {*} [options] Override http request option.
3059
3574
  * @throws {RequiredError}
3060
3575
  */
3061
- listv1alpha1User(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>>;
3576
+ listv1alpha1User(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>>;
3062
3577
  /**
3063
3578
  * Update v1alpha1/User
3064
3579
  * @param {string} name Name of user
@@ -3102,7 +3617,7 @@ declare const V1alpha1UserApiFactory: (configuration?: Configuration, basePath?:
3102
3617
  * @param {*} [options] Override http request option.
3103
3618
  * @throws {RequiredError}
3104
3619
  */
3105
- listv1alpha1User(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<Array<User>>;
3620
+ listv1alpha1User(page?: number, size?: number, sort?: string, options?: any): AxiosPromise<UserList>;
3106
3621
  /**
3107
3622
  * Update v1alpha1/User
3108
3623
  * @param {string} name Name of user
@@ -3152,7 +3667,7 @@ declare class V1alpha1UserApi extends BaseAPI {
3152
3667
  * @throws {RequiredError}
3153
3668
  * @memberof V1alpha1UserApi
3154
3669
  */
3155
- listv1alpha1User(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<User[], any>>;
3670
+ listv1alpha1User(page?: number, size?: number, sort?: string, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<UserList, any>>;
3156
3671
  /**
3157
3672
  * Update v1alpha1/User
3158
3673
  * @param {string} name Name of user
@@ -3164,4 +3679,4 @@ declare class V1alpha1UserApi extends BaseAPI {
3164
3679
  updatev1alpha1User(name: string, user?: User, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<User, any>>;
3165
3680
  }
3166
3681
 
3167
- export { ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ConfigMap, Configuration, ConfigurationParameters, CoreHaloRunV1alpha1LinkApi, CoreHaloRunV1alpha1LinkApiAxiosParamCreator, CoreHaloRunV1alpha1LinkApiFactory, CoreHaloRunV1alpha1LinkApiFp, CoreHaloRunV1alpha1LinkGroupApi, CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator, CoreHaloRunV1alpha1LinkGroupApiFactory, CoreHaloRunV1alpha1LinkGroupApiFp, CoreHaloRunV1alpha1PostApi, CoreHaloRunV1alpha1PostApiAxiosParamCreator, CoreHaloRunV1alpha1PostApiFactory, CoreHaloRunV1alpha1PostApiFp, FileReverseProxyProvider, License, Link, LinkGroup, LinkGroupSpec, LinkSpec, LoginHistory, Metadata, PersonalAccessToken, PersonalAccessTokenSpec, Plugin, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginSpec, PluginStatus, PluginStatusPhaseEnum, PolicyRule, Post, PostSpec, ReverseProxy, ReverseProxyRule, Role, RoleBinding, RoleRef, Setting, SettingSpec, Subject, User, UserSpec, UserStatus, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
3682
+ export { ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ConfigMap, ConfigMapList, Configuration, ConfigurationParameters, CoreHaloRunV1alpha1LinkApi, CoreHaloRunV1alpha1LinkApiAxiosParamCreator, CoreHaloRunV1alpha1LinkApiFactory, CoreHaloRunV1alpha1LinkApiFp, CoreHaloRunV1alpha1LinkGroupApi, CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator, CoreHaloRunV1alpha1LinkGroupApiFactory, CoreHaloRunV1alpha1LinkGroupApiFp, CoreHaloRunV1alpha1PostApi, CoreHaloRunV1alpha1PostApiAxiosParamCreator, CoreHaloRunV1alpha1PostApiFactory, CoreHaloRunV1alpha1PostApiFp, FileReverseProxyProvider, GrantRequest, License, Link, LinkGroup, LinkGroupSpec, LinkSpec, LoginHistory, Metadata, PersonalAccessToken, PersonalAccessTokenList, PersonalAccessTokenSpec, Plugin, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginList, PluginSpec, PluginStatus, PluginStatusPhaseEnum, PolicyRule, Post, PostSpec, ReverseProxy, ReverseProxyList, ReverseProxyRule, Role, RoleBinding, RoleBindingList, RoleList, RoleRef, Setting, SettingList, SettingSpec, Subject, User, UserList, UserSpec, UserStatus, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
package/dist/index.mjs CHANGED
@@ -83,6 +83,47 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
83
83
  url: toPathString(localVarUrlObj),
84
84
  options: localVarRequestOptions
85
85
  };
86
+ },
87
+ getPermissions: async (name, options = {}) => {
88
+ assertParamExists("getPermissions", "name", name);
89
+ const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ }
95
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
96
+ const localVarHeaderParameter = {};
97
+ const localVarQueryParameter = {};
98
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
99
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
101
+ return {
102
+ url: toPathString(localVarUrlObj),
103
+ options: localVarRequestOptions
104
+ };
105
+ },
106
+ grantPermission: async (name, grantRequest, options = {}) => {
107
+ assertParamExists("grantPermission", "name", name);
108
+ assertParamExists("grantPermission", "grantRequest", grantRequest);
109
+ const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
111
+ let baseOptions;
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ }
115
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
116
+ const localVarHeaderParameter = {};
117
+ const localVarQueryParameter = {};
118
+ localVarHeaderParameter["Content-Type"] = "application/json";
119
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
122
+ localVarRequestOptions.data = serializeDataIfNeeded(grantRequest, localVarRequestOptions, configuration);
123
+ return {
124
+ url: toPathString(localVarUrlObj),
125
+ options: localVarRequestOptions
126
+ };
86
127
  }
87
128
  };
88
129
  };
@@ -92,6 +133,14 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
92
133
  async getCurrentUserDetail(options) {
93
134
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUserDetail(options);
94
135
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
136
+ },
137
+ async getPermissions(name, options) {
138
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissions(name, options);
139
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
140
+ },
141
+ async grantPermission(name, grantRequest, options) {
142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.grantPermission(name, grantRequest, options);
143
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
95
144
  }
96
145
  };
97
146
  };
@@ -100,6 +149,12 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
100
149
  return {
101
150
  getCurrentUserDetail(options) {
102
151
  return localVarFp.getCurrentUserDetail(options).then((request) => request(axios, basePath));
152
+ },
153
+ getPermissions(name, options) {
154
+ return localVarFp.getPermissions(name, options).then((request) => request(axios, basePath));
155
+ },
156
+ grantPermission(name, grantRequest, options) {
157
+ return localVarFp.grantPermission(name, grantRequest, options).then((request) => request(axios, basePath));
103
158
  }
104
159
  };
105
160
  };
@@ -107,6 +162,12 @@ class ApiHaloRunV1alpha1UserApi extends BaseAPI {
107
162
  getCurrentUserDetail(options) {
108
163
  return ApiHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
109
164
  }
165
+ getPermissions(name, options) {
166
+ return ApiHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(name, options).then((request) => request(this.axios, this.basePath));
167
+ }
168
+ grantPermission(name, grantRequest, options) {
169
+ return ApiHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(name, grantRequest, options).then((request) => request(this.axios, this.basePath));
170
+ }
110
171
  }
111
172
  const CoreHaloRunV1alpha1LinkApiAxiosParamCreator = function(configuration) {
112
173
  return {
package/package.json CHANGED
@@ -1,16 +1,7 @@
1
1
  {
2
2
  "name": "@halo-dev/api-client",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "",
5
- "scripts": {
6
- "build": "unbuild",
7
- "dev": "unbuild --stub",
8
- "lint": "eslint . --fix",
9
- "prettier": "prettier --write './src/**/*.{js,jsx,ts,tsx,json,yml,yaml}'",
10
- "typecheck": "tsc --noEmit",
11
- "release": "bumpp",
12
- "gen": "openapi-generator-cli generate -i ./springdocDefault.json -g typescript-axios -o ./src && pnpm lint && pnpm prettier"
13
- },
14
5
  "keywords": [],
15
6
  "author": "@halo-dev",
16
7
  "license": "MIT",
@@ -49,5 +40,14 @@
49
40
  "typescript": "^4.7.4",
50
41
  "unbuild": "^0.7.4",
51
42
  "vitest": "^0.18.0"
43
+ },
44
+ "scripts": {
45
+ "build": "unbuild",
46
+ "dev": "unbuild --stub",
47
+ "lint": "eslint . --fix",
48
+ "prettier": "prettier --write './src/**/*.{js,jsx,ts,tsx,json,yml,yaml}'",
49
+ "typecheck": "tsc --noEmit",
50
+ "release": "bumpp",
51
+ "gen": "openapi-generator-cli generate -i ./springdocDefault.json -g typescript-axios -o ./src && pnpm lint && pnpm prettier"
52
52
  }
53
- }
53
+ }