@halo-dev/api-client 0.0.35 → 0.0.37

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
@@ -75,6 +75,121 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
75
75
  };
76
76
  };
77
77
 
78
+ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
79
+ return {
80
+ searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
81
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
82
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ setBasicAuthToObject(localVarRequestOptions, configuration);
91
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
92
+ if (policy !== void 0) {
93
+ localVarQueryParameter["policy"] = policy;
94
+ }
95
+ if (displayName !== void 0) {
96
+ localVarQueryParameter["displayName"] = displayName;
97
+ }
98
+ if (group !== void 0) {
99
+ localVarQueryParameter["group"] = group;
100
+ }
101
+ if (uploadedBy !== void 0) {
102
+ localVarQueryParameter["uploadedBy"] = uploadedBy;
103
+ }
104
+ if (size !== void 0) {
105
+ localVarQueryParameter["size"] = size;
106
+ }
107
+ if (page !== void 0) {
108
+ localVarQueryParameter["page"] = page;
109
+ }
110
+ if (labelSelector) {
111
+ localVarQueryParameter["labelSelector"] = labelSelector;
112
+ }
113
+ if (fieldSelector) {
114
+ localVarQueryParameter["fieldSelector"] = fieldSelector;
115
+ }
116
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
119
+ return {
120
+ url: toPathString(localVarUrlObj),
121
+ options: localVarRequestOptions
122
+ };
123
+ },
124
+ uploadAttachment: async (file, policyName, groupName, options = {}) => {
125
+ assertParamExists("uploadAttachment", "file", file);
126
+ assertParamExists("uploadAttachment", "policyName", policyName);
127
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
128
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
129
+ let baseOptions;
130
+ if (configuration) {
131
+ baseOptions = configuration.baseOptions;
132
+ }
133
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
134
+ const localVarHeaderParameter = {};
135
+ const localVarQueryParameter = {};
136
+ const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
137
+ setBasicAuthToObject(localVarRequestOptions, configuration);
138
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
139
+ if (file !== void 0) {
140
+ localVarFormParams.append("file", file);
141
+ }
142
+ if (policyName !== void 0) {
143
+ localVarFormParams.append("policyName", policyName);
144
+ }
145
+ if (groupName !== void 0) {
146
+ localVarFormParams.append("groupName", groupName);
147
+ }
148
+ localVarHeaderParameter["Content-Type"] = "multipart/form-data";
149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
152
+ localVarRequestOptions.data = localVarFormParams;
153
+ return {
154
+ url: toPathString(localVarUrlObj),
155
+ options: localVarRequestOptions
156
+ };
157
+ }
158
+ };
159
+ };
160
+ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
161
+ const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
162
+ return {
163
+ async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
164
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
165
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
166
+ },
167
+ async uploadAttachment(file, policyName, groupName, options) {
168
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
169
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
170
+ }
171
+ };
172
+ };
173
+ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
174
+ const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
175
+ return {
176
+ searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
177
+ return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
178
+ },
179
+ uploadAttachment(file, policyName, groupName, options) {
180
+ return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
181
+ }
182
+ };
183
+ };
184
+ class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
185
+ searchAttachments(requestParameters = {}, options) {
186
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
187
+ }
188
+ uploadAttachment(requestParameters, options) {
189
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
190
+ }
191
+ }
192
+
78
193
  const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
79
194
  return {
80
195
  createComment: async (commentRequest, options = {}) => {
@@ -124,7 +239,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
124
239
  options: localVarRequestOptions
125
240
  };
126
241
  },
127
- listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
242
+ listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
128
243
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
129
244
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
130
245
  let baseOptions;
@@ -139,6 +254,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
139
254
  if (sort !== void 0) {
140
255
  localVarQueryParameter["sort"] = sort;
141
256
  }
257
+ if (keyword !== void 0) {
258
+ localVarQueryParameter["keyword"] = keyword;
259
+ }
260
+ if (hidden !== void 0) {
261
+ localVarQueryParameter["hidden"] = hidden;
262
+ }
263
+ if (top !== void 0) {
264
+ localVarQueryParameter["top"] = top;
265
+ }
142
266
  if (sortOrder !== void 0) {
143
267
  localVarQueryParameter["sortOrder"] = sortOrder;
144
268
  }
@@ -160,27 +284,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
160
284
  if (subjectName !== void 0) {
161
285
  localVarQueryParameter["subjectName"] = subjectName;
162
286
  }
163
- if (keyword !== void 0) {
164
- localVarQueryParameter["keyword"] = keyword;
165
- }
166
- if (hidden !== void 0) {
167
- localVarQueryParameter["hidden"] = hidden;
168
- }
169
- if (top !== void 0) {
170
- localVarQueryParameter["top"] = top;
171
- }
172
287
  if (size !== void 0) {
173
288
  localVarQueryParameter["size"] = size;
174
289
  }
290
+ if (page !== void 0) {
291
+ localVarQueryParameter["page"] = page;
292
+ }
175
293
  if (labelSelector) {
176
294
  localVarQueryParameter["labelSelector"] = labelSelector;
177
295
  }
178
296
  if (fieldSelector) {
179
297
  localVarQueryParameter["fieldSelector"] = fieldSelector;
180
298
  }
181
- if (page !== void 0) {
182
- localVarQueryParameter["page"] = page;
183
- }
184
299
  setSearchParams(localVarUrlObj, localVarQueryParameter);
185
300
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
301
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -202,8 +317,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
202
317
  const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
203
318
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
204
319
  },
205
- async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
206
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
320
+ async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
321
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
207
322
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
208
323
  }
209
324
  };
@@ -217,8 +332,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
217
332
  createReply(name, replyRequest, options) {
218
333
  return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
219
334
  },
220
- listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
221
- return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
335
+ listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
336
+ return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
222
337
  }
223
338
  };
224
339
  };
@@ -230,7 +345,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
230
345
  return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
231
346
  }
232
347
  listComments(requestParameters = {}, options) {
233
- return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
348
+ return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
234
349
  }
235
350
  }
236
351
 
@@ -412,7 +527,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
412
527
  options: localVarRequestOptions
413
528
  };
414
529
  },
415
- listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
530
+ listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
416
531
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
417
532
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
418
533
  let baseOptions;
@@ -427,24 +542,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
427
542
  if (sort) {
428
543
  localVarQueryParameter["sort"] = Array.from(sort);
429
544
  }
430
- if (keyword !== void 0) {
431
- localVarQueryParameter["keyword"] = keyword;
432
- }
433
545
  if (enabled !== void 0) {
434
546
  localVarQueryParameter["enabled"] = enabled;
435
547
  }
548
+ if (keyword !== void 0) {
549
+ localVarQueryParameter["keyword"] = keyword;
550
+ }
436
551
  if (size !== void 0) {
437
552
  localVarQueryParameter["size"] = size;
438
553
  }
554
+ if (page !== void 0) {
555
+ localVarQueryParameter["page"] = page;
556
+ }
439
557
  if (labelSelector) {
440
558
  localVarQueryParameter["labelSelector"] = labelSelector;
441
559
  }
442
560
  if (fieldSelector) {
443
561
  localVarQueryParameter["fieldSelector"] = fieldSelector;
444
562
  }
445
- if (page !== void 0) {
446
- localVarQueryParameter["page"] = page;
447
- }
448
563
  setSearchParams(localVarUrlObj, localVarQueryParameter);
449
564
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
565
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -462,8 +577,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
462
577
  const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
463
578
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
464
579
  },
465
- async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
466
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
580
+ async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
581
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
467
582
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
468
583
  }
469
584
  };
@@ -474,8 +589,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
474
589
  installPlugin(file, options) {
475
590
  return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
476
591
  },
477
- listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
478
- return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
592
+ listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
593
+ return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
479
594
  }
480
595
  };
481
596
  };
@@ -484,7 +599,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
484
599
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
485
600
  }
486
601
  listPlugins(requestParameters = {}, options) {
487
- return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
602
+ return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
488
603
  }
489
604
  }
490
605
 
@@ -513,7 +628,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
513
628
  options: localVarRequestOptions
514
629
  };
515
630
  },
516
- listPosts: async (sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
631
+ listPosts: async (sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options = {}) => {
517
632
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
518
633
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
519
634
  let baseOptions;
@@ -528,39 +643,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
528
643
  if (sort !== void 0) {
529
644
  localVarQueryParameter["sort"] = sort;
530
645
  }
531
- if (sortOrder !== void 0) {
532
- localVarQueryParameter["sortOrder"] = sortOrder;
646
+ if (tag) {
647
+ localVarQueryParameter["tag"] = Array.from(tag);
533
648
  }
534
- if (publishPhase !== void 0) {
535
- localVarQueryParameter["publishPhase"] = publishPhase;
649
+ if (visible !== void 0) {
650
+ localVarQueryParameter["visible"] = visible;
536
651
  }
537
- if (category) {
538
- localVarQueryParameter["category"] = Array.from(category);
652
+ if (keyword !== void 0) {
653
+ localVarQueryParameter["keyword"] = keyword;
539
654
  }
540
655
  if (contributor) {
541
656
  localVarQueryParameter["contributor"] = Array.from(contributor);
542
657
  }
543
- if (keyword !== void 0) {
544
- localVarQueryParameter["keyword"] = keyword;
658
+ if (sortOrder !== void 0) {
659
+ localVarQueryParameter["sortOrder"] = sortOrder;
545
660
  }
546
- if (visible !== void 0) {
547
- localVarQueryParameter["visible"] = visible;
661
+ if (publishPhase !== void 0) {
662
+ localVarQueryParameter["publishPhase"] = publishPhase;
548
663
  }
549
- if (tag) {
550
- localVarQueryParameter["tag"] = Array.from(tag);
664
+ if (category) {
665
+ localVarQueryParameter["category"] = Array.from(category);
551
666
  }
552
667
  if (size !== void 0) {
553
668
  localVarQueryParameter["size"] = size;
554
669
  }
670
+ if (page !== void 0) {
671
+ localVarQueryParameter["page"] = page;
672
+ }
555
673
  if (labelSelector) {
556
674
  localVarQueryParameter["labelSelector"] = labelSelector;
557
675
  }
558
676
  if (fieldSelector) {
559
677
  localVarQueryParameter["fieldSelector"] = fieldSelector;
560
678
  }
561
- if (page !== void 0) {
562
- localVarQueryParameter["page"] = page;
563
- }
564
679
  setSearchParams(localVarUrlObj, localVarQueryParameter);
565
680
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
566
681
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -623,8 +738,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
623
738
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
624
739
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
625
740
  },
626
- async listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
627
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
741
+ async listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options);
628
743
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
629
744
  },
630
745
  async publishPost(name, options) {
@@ -643,8 +758,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
643
758
  draftPost(postRequest, options) {
644
759
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
645
760
  },
646
- listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
647
- return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
761
+ listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
762
+ return localVarFp.listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
648
763
  },
649
764
  publishPost(name, options) {
650
765
  return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
@@ -659,7 +774,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
659
774
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
660
775
  }
661
776
  listPosts(requestParameters = {}, options) {
662
- return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
777
+ return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.visible, requestParameters.keyword, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
663
778
  }
664
779
  publishPost(requestParameters, options) {
665
780
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -671,7 +786,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
671
786
 
672
787
  const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
673
788
  return {
674
- listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
789
+ listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
675
790
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
676
791
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
677
792
  let baseOptions;
@@ -689,15 +804,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
689
804
  if (size !== void 0) {
690
805
  localVarQueryParameter["size"] = size;
691
806
  }
807
+ if (page !== void 0) {
808
+ localVarQueryParameter["page"] = page;
809
+ }
692
810
  if (labelSelector) {
693
811
  localVarQueryParameter["labelSelector"] = labelSelector;
694
812
  }
695
813
  if (fieldSelector) {
696
814
  localVarQueryParameter["fieldSelector"] = fieldSelector;
697
815
  }
698
- if (page !== void 0) {
699
- localVarQueryParameter["page"] = page;
700
- }
701
816
  setSearchParams(localVarUrlObj, localVarQueryParameter);
702
817
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
703
818
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -711,8 +826,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
711
826
  const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
712
827
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
713
828
  return {
714
- async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
715
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
829
+ async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
830
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
716
831
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
717
832
  }
718
833
  };
@@ -720,14 +835,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
720
835
  const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
721
836
  const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
722
837
  return {
723
- listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
724
- return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
838
+ listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
839
+ return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
725
840
  }
726
841
  };
727
842
  };
728
843
  class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
729
844
  listReplies(requestParameters = {}, options) {
730
- return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
845
+ return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
731
846
  }
732
847
  }
733
848
 
@@ -756,7 +871,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
756
871
  options: localVarRequestOptions
757
872
  };
758
873
  },
759
- listSinglePages: async (sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
874
+ listSinglePages: async (sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options = {}) => {
760
875
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
761
876
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
762
877
  let baseOptions;
@@ -771,33 +886,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
771
886
  if (sort !== void 0) {
772
887
  localVarQueryParameter["sort"] = sort;
773
888
  }
774
- if (sortOrder !== void 0) {
775
- localVarQueryParameter["sortOrder"] = sortOrder;
889
+ if (visible !== void 0) {
890
+ localVarQueryParameter["visible"] = visible;
776
891
  }
777
- if (publishPhase !== void 0) {
778
- localVarQueryParameter["publishPhase"] = publishPhase;
892
+ if (keyword !== void 0) {
893
+ localVarQueryParameter["keyword"] = keyword;
779
894
  }
780
895
  if (contributor) {
781
896
  localVarQueryParameter["contributor"] = Array.from(contributor);
782
897
  }
783
- if (keyword !== void 0) {
784
- localVarQueryParameter["keyword"] = keyword;
898
+ if (sortOrder !== void 0) {
899
+ localVarQueryParameter["sortOrder"] = sortOrder;
785
900
  }
786
- if (visible !== void 0) {
787
- localVarQueryParameter["visible"] = visible;
901
+ if (publishPhase !== void 0) {
902
+ localVarQueryParameter["publishPhase"] = publishPhase;
788
903
  }
789
904
  if (size !== void 0) {
790
905
  localVarQueryParameter["size"] = size;
791
906
  }
907
+ if (page !== void 0) {
908
+ localVarQueryParameter["page"] = page;
909
+ }
792
910
  if (labelSelector) {
793
911
  localVarQueryParameter["labelSelector"] = labelSelector;
794
912
  }
795
913
  if (fieldSelector) {
796
914
  localVarQueryParameter["fieldSelector"] = fieldSelector;
797
915
  }
798
- if (page !== void 0) {
799
- localVarQueryParameter["page"] = page;
800
- }
801
916
  setSearchParams(localVarUrlObj, localVarQueryParameter);
802
917
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
803
918
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -860,8 +975,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
860
975
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
861
976
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
862
977
  },
863
- async listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
864
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
978
+ async listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
979
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options);
865
980
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
866
981
  },
867
982
  async publishSinglePage(name, options) {
@@ -880,8 +995,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
880
995
  draftSinglePage(singlePageRequest, options) {
881
996
  return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
882
997
  },
883
- listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
884
- return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
998
+ listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
999
+ return localVarFp.listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
885
1000
  },
886
1001
  publishSinglePage(name, options) {
887
1002
  return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
@@ -896,7 +1011,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
896
1011
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
897
1012
  }
898
1013
  listSinglePages(requestParameters = {}, options) {
899
- return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1014
+ return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.visible, requestParameters.keyword, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
900
1015
  }
901
1016
  publishSinglePage(requestParameters, options) {
902
1017
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -982,6 +1097,42 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
982
1097
  options: localVarRequestOptions
983
1098
  };
984
1099
  },
1100
+ listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
1101
+ assertParamExists("listThemes", "uninstalled", uninstalled);
1102
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
1103
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1104
+ let baseOptions;
1105
+ if (configuration) {
1106
+ baseOptions = configuration.baseOptions;
1107
+ }
1108
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1109
+ const localVarHeaderParameter = {};
1110
+ const localVarQueryParameter = {};
1111
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1112
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1113
+ if (uninstalled !== void 0) {
1114
+ localVarQueryParameter["uninstalled"] = uninstalled;
1115
+ }
1116
+ if (size !== void 0) {
1117
+ localVarQueryParameter["size"] = size;
1118
+ }
1119
+ if (page !== void 0) {
1120
+ localVarQueryParameter["page"] = page;
1121
+ }
1122
+ if (labelSelector) {
1123
+ localVarQueryParameter["labelSelector"] = labelSelector;
1124
+ }
1125
+ if (fieldSelector) {
1126
+ localVarQueryParameter["fieldSelector"] = fieldSelector;
1127
+ }
1128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1130
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1131
+ return {
1132
+ url: toPathString(localVarUrlObj),
1133
+ options: localVarRequestOptions
1134
+ };
1135
+ },
985
1136
  reloadThemeSetting: async (name, options = {}) => {
986
1137
  assertParamExists("reloadThemeSetting", "name", name);
987
1138
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload-setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
@@ -1002,6 +1153,34 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1002
1153
  url: toPathString(localVarUrlObj),
1003
1154
  options: localVarRequestOptions
1004
1155
  };
1156
+ },
1157
+ upgradeTheme: async (name, file, options = {}) => {
1158
+ assertParamExists("upgradeTheme", "name", name);
1159
+ assertParamExists("upgradeTheme", "file", file);
1160
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1161
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1162
+ let baseOptions;
1163
+ if (configuration) {
1164
+ baseOptions = configuration.baseOptions;
1165
+ }
1166
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1167
+ const localVarHeaderParameter = {};
1168
+ const localVarQueryParameter = {};
1169
+ const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
1170
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1171
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1172
+ if (file !== void 0) {
1173
+ localVarFormParams.append("file", file);
1174
+ }
1175
+ localVarHeaderParameter["Content-Type"] = "multipart/form-data";
1176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1178
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1179
+ localVarRequestOptions.data = localVarFormParams;
1180
+ return {
1181
+ url: toPathString(localVarUrlObj),
1182
+ options: localVarRequestOptions
1183
+ };
1005
1184
  }
1006
1185
  };
1007
1186
  };
@@ -1012,9 +1191,17 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
1012
1191
  const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
1013
1192
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1014
1193
  },
1194
+ async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
1196
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1197
+ },
1015
1198
  async reloadThemeSetting(name, options) {
1016
1199
  const localVarAxiosArgs = await localVarAxiosParamCreator.reloadThemeSetting(name, options);
1017
1200
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1201
+ },
1202
+ async upgradeTheme(name, file, options) {
1203
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options);
1204
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1018
1205
  }
1019
1206
  };
1020
1207
  };
@@ -1024,8 +1211,14 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
1024
1211
  installTheme(file, options) {
1025
1212
  return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
1026
1213
  },
1214
+ listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1215
+ return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1216
+ },
1027
1217
  reloadThemeSetting(name, options) {
1028
1218
  return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
1219
+ },
1220
+ upgradeTheme(name, file, options) {
1221
+ return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
1029
1222
  }
1030
1223
  };
1031
1224
  };
@@ -1033,9 +1226,15 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
1033
1226
  installTheme(requestParameters, options) {
1034
1227
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1035
1228
  }
1229
+ listThemes(requestParameters, options) {
1230
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1231
+ }
1036
1232
  reloadThemeSetting(requestParameters, options) {
1037
1233
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
1038
1234
  }
1235
+ upgradeTheme(requestParameters, options) {
1236
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1237
+ }
1039
1238
  }
1040
1239
 
1041
1240
  const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
@@ -1302,12 +1501,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1302
1501
  if (version !== void 0) {
1303
1502
  localVarQueryParameter["version"] = version;
1304
1503
  }
1305
- if (group !== void 0) {
1306
- localVarQueryParameter["group"] = group;
1307
- }
1308
1504
  if (kind !== void 0) {
1309
1505
  localVarQueryParameter["kind"] = kind;
1310
1506
  }
1507
+ if (group !== void 0) {
1508
+ localVarQueryParameter["group"] = group;
1509
+ }
1311
1510
  if (size !== void 0) {
1312
1511
  localVarQueryParameter["size"] = size;
1313
1512
  }
@@ -1411,6 +1610,52 @@ const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function(configuration) {
1411
1610
  url: toPathString(localVarUrlObj),
1412
1611
  options: localVarRequestOptions
1413
1612
  };
1613
+ },
1614
+ downvote: async (voteRequest, options = {}) => {
1615
+ assertParamExists("downvote", "voteRequest", voteRequest);
1616
+ const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/downvote`;
1617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1618
+ let baseOptions;
1619
+ if (configuration) {
1620
+ baseOptions = configuration.baseOptions;
1621
+ }
1622
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1623
+ const localVarHeaderParameter = {};
1624
+ const localVarQueryParameter = {};
1625
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1626
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1627
+ localVarHeaderParameter["Content-Type"] = "application/json";
1628
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1629
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1630
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1631
+ localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration);
1632
+ return {
1633
+ url: toPathString(localVarUrlObj),
1634
+ options: localVarRequestOptions
1635
+ };
1636
+ },
1637
+ upvote: async (voteRequest, options = {}) => {
1638
+ assertParamExists("upvote", "voteRequest", voteRequest);
1639
+ const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/upvote`;
1640
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1641
+ let baseOptions;
1642
+ if (configuration) {
1643
+ baseOptions = configuration.baseOptions;
1644
+ }
1645
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1646
+ const localVarHeaderParameter = {};
1647
+ const localVarQueryParameter = {};
1648
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1649
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1650
+ localVarHeaderParameter["Content-Type"] = "application/json";
1651
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1653
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1654
+ localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration);
1655
+ return {
1656
+ url: toPathString(localVarUrlObj),
1657
+ options: localVarRequestOptions
1658
+ };
1414
1659
  }
1415
1660
  };
1416
1661
  };
@@ -1420,6 +1665,14 @@ const ApiHaloRunV1alpha1TrackerApiFp = function(configuration) {
1420
1665
  async count(counterRequest, options) {
1421
1666
  const localVarAxiosArgs = await localVarAxiosParamCreator.count(counterRequest, options);
1422
1667
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1668
+ },
1669
+ async downvote(voteRequest, options) {
1670
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downvote(voteRequest, options);
1671
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1672
+ },
1673
+ async upvote(voteRequest, options) {
1674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upvote(voteRequest, options);
1675
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1423
1676
  }
1424
1677
  };
1425
1678
  };
@@ -1428,6 +1681,12 @@ const ApiHaloRunV1alpha1TrackerApiFactory = function(configuration, basePath, ax
1428
1681
  return {
1429
1682
  count(counterRequest, options) {
1430
1683
  return localVarFp.count(counterRequest, options).then((request) => request(axios, basePath));
1684
+ },
1685
+ downvote(voteRequest, options) {
1686
+ return localVarFp.downvote(voteRequest, options).then((request) => request(axios, basePath));
1687
+ },
1688
+ upvote(voteRequest, options) {
1689
+ return localVarFp.upvote(voteRequest, options).then((request) => request(axios, basePath));
1431
1690
  }
1432
1691
  };
1433
1692
  };
@@ -1435,6 +1694,12 @@ class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
1435
1694
  count(requestParameters, options) {
1436
1695
  return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).count(requestParameters.counterRequest, options).then((request) => request(this.axios, this.basePath));
1437
1696
  }
1697
+ downvote(requestParameters, options) {
1698
+ return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).downvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath));
1699
+ }
1700
+ upvote(requestParameters, options) {
1701
+ return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).upvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath));
1702
+ }
1438
1703
  }
1439
1704
 
1440
1705
  const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function(configuration) {
@@ -3767,50 +4032,6 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
3767
4032
  options: localVarRequestOptions
3768
4033
  };
3769
4034
  },
3770
- searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options = {}) => {
3771
- const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
3772
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3773
- let baseOptions;
3774
- if (configuration) {
3775
- baseOptions = configuration.baseOptions;
3776
- }
3777
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3778
- const localVarHeaderParameter = {};
3779
- const localVarQueryParameter = {};
3780
- setBasicAuthToObject(localVarRequestOptions, configuration);
3781
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
3782
- if (policy !== void 0) {
3783
- localVarQueryParameter["policy"] = policy;
3784
- }
3785
- if (displayName !== void 0) {
3786
- localVarQueryParameter["displayName"] = displayName;
3787
- }
3788
- if (group !== void 0) {
3789
- localVarQueryParameter["group"] = group;
3790
- }
3791
- if (uploadedBy !== void 0) {
3792
- localVarQueryParameter["uploadedBy"] = uploadedBy;
3793
- }
3794
- if (size !== void 0) {
3795
- localVarQueryParameter["size"] = size;
3796
- }
3797
- if (labelSelector) {
3798
- localVarQueryParameter["labelSelector"] = labelSelector;
3799
- }
3800
- if (fieldSelector) {
3801
- localVarQueryParameter["fieldSelector"] = fieldSelector;
3802
- }
3803
- if (page !== void 0) {
3804
- localVarQueryParameter["page"] = page;
3805
- }
3806
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3807
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3808
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3809
- return {
3810
- url: toPathString(localVarUrlObj),
3811
- options: localVarRequestOptions
3812
- };
3813
- },
3814
4035
  updatestorageHaloRunV1alpha1Attachment: async (name, attachment, options = {}) => {
3815
4036
  assertParamExists("updatestorageHaloRunV1alpha1Attachment", "name", name);
3816
4037
  const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
@@ -3833,40 +4054,6 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
3833
4054
  url: toPathString(localVarUrlObj),
3834
4055
  options: localVarRequestOptions
3835
4056
  };
3836
- },
3837
- uploadAttachment: async (file, policyName, groupName, options = {}) => {
3838
- assertParamExists("uploadAttachment", "file", file);
3839
- assertParamExists("uploadAttachment", "policyName", policyName);
3840
- const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
3841
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3842
- let baseOptions;
3843
- if (configuration) {
3844
- baseOptions = configuration.baseOptions;
3845
- }
3846
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
3847
- const localVarHeaderParameter = {};
3848
- const localVarQueryParameter = {};
3849
- const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
3850
- setBasicAuthToObject(localVarRequestOptions, configuration);
3851
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
3852
- if (file !== void 0) {
3853
- localVarFormParams.append("file", file);
3854
- }
3855
- if (policyName !== void 0) {
3856
- localVarFormParams.append("policyName", policyName);
3857
- }
3858
- if (groupName !== void 0) {
3859
- localVarFormParams.append("groupName", groupName);
3860
- }
3861
- localVarHeaderParameter["Content-Type"] = "multipart/form-data";
3862
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3863
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3864
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3865
- localVarRequestOptions.data = localVarFormParams;
3866
- return {
3867
- url: toPathString(localVarUrlObj),
3868
- options: localVarRequestOptions
3869
- };
3870
4057
  }
3871
4058
  };
3872
4059
  };
@@ -3889,17 +4076,9 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
3889
4076
  const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
3890
4077
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3891
4078
  },
3892
- async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
3893
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
3894
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3895
- },
3896
4079
  async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
3897
4080
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment(name, attachment, options);
3898
4081
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3899
- },
3900
- async uploadAttachment(file, policyName, groupName, options) {
3901
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
3902
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3903
4082
  }
3904
4083
  };
3905
4084
  };
@@ -3918,14 +4097,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
3918
4097
  liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
3919
4098
  return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
3920
4099
  },
3921
- searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
3922
- return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
3923
- },
3924
4100
  updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
3925
4101
  return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
3926
- },
3927
- uploadAttachment(file, policyName, groupName, options) {
3928
- return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
3929
4102
  }
3930
4103
  };
3931
4104
  };
@@ -3942,15 +4115,9 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
3942
4115
  liststorageHaloRunV1alpha1Attachment(requestParameters = {}, options) {
3943
4116
  return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
3944
4117
  }
3945
- searchAttachments(requestParameters = {}, options) {
3946
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
3947
- }
3948
4118
  updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
3949
4119
  return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
3950
4120
  }
3951
- uploadAttachment(requestParameters, options) {
3952
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
3953
- }
3954
4121
  }
3955
4122
 
3956
4123
  const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function(configuration) {
@@ -6228,6 +6395,10 @@ const SinglePageSpecVisibleEnum = {
6228
6395
  Private: "PRIVATE"
6229
6396
  };
6230
6397
 
6398
+ exports.ApiConsoleHaloRunV1alpha1AttachmentApi = ApiConsoleHaloRunV1alpha1AttachmentApi;
6399
+ exports.ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator;
6400
+ exports.ApiConsoleHaloRunV1alpha1AttachmentApiFactory = ApiConsoleHaloRunV1alpha1AttachmentApiFactory;
6401
+ exports.ApiConsoleHaloRunV1alpha1AttachmentApiFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp;
6231
6402
  exports.ApiConsoleHaloRunV1alpha1CommentApi = ApiConsoleHaloRunV1alpha1CommentApi;
6232
6403
  exports.ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator;
6233
6404
  exports.ApiConsoleHaloRunV1alpha1CommentApiFactory = ApiConsoleHaloRunV1alpha1CommentApiFactory;