@halo-dev/api-client 0.0.47 → 0.0.50

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.mjs CHANGED
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
69
69
 
70
70
  const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
71
71
  return {
72
- searchAttachments: async (policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
72
+ searchAttachments: async (policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
73
73
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
74
74
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
75
  let baseOptions;
@@ -90,24 +90,24 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
90
90
  if (displayName !== void 0) {
91
91
  localVarQueryParameter["displayName"] = displayName;
92
92
  }
93
- if (group !== void 0) {
94
- localVarQueryParameter["group"] = group;
95
- }
96
93
  if (uploadedBy !== void 0) {
97
94
  localVarQueryParameter["uploadedBy"] = uploadedBy;
98
95
  }
96
+ if (group !== void 0) {
97
+ localVarQueryParameter["group"] = group;
98
+ }
99
99
  if (size !== void 0) {
100
100
  localVarQueryParameter["size"] = size;
101
101
  }
102
- if (page !== void 0) {
103
- localVarQueryParameter["page"] = page;
104
- }
105
102
  if (labelSelector) {
106
103
  localVarQueryParameter["labelSelector"] = labelSelector;
107
104
  }
108
105
  if (fieldSelector) {
109
106
  localVarQueryParameter["fieldSelector"] = fieldSelector;
110
107
  }
108
+ if (page !== void 0) {
109
+ localVarQueryParameter["page"] = page;
110
+ }
111
111
  setSearchParams(localVarUrlObj, localVarQueryParameter);
112
112
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
113
113
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -155,8 +155,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
155
155
  const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
156
156
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
157
157
  return {
158
- async searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
159
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
158
+ async searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
160
160
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
161
161
  },
162
162
  async uploadAttachment(file, policyName, groupName, options) {
@@ -168,8 +168,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
168
168
  const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
169
169
  const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
170
170
  return {
171
- searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
172
- return localVarFp.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
171
+ searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
172
+ return localVarFp.searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
173
173
  },
174
174
  uploadAttachment(file, policyName, groupName, options) {
175
175
  return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
@@ -178,7 +178,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
178
178
  };
179
179
  class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
180
180
  searchAttachments(requestParameters = {}, options) {
181
- return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
181
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
182
182
  }
183
183
  uploadAttachment(requestParameters, options) {
184
184
  return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
@@ -234,7 +234,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
234
234
  options: localVarRequestOptions
235
235
  };
236
236
  },
237
- listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
237
+ listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
238
238
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
239
239
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
240
240
  let baseOptions;
@@ -249,15 +249,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
249
249
  if (sort !== void 0) {
250
250
  localVarQueryParameter["sort"] = sort;
251
251
  }
252
- if (keyword !== void 0) {
253
- localVarQueryParameter["keyword"] = keyword;
254
- }
255
- if (hidden !== void 0) {
256
- localVarQueryParameter["hidden"] = hidden;
257
- }
258
- if (top !== void 0) {
259
- localVarQueryParameter["top"] = top;
260
- }
261
252
  if (sortOrder !== void 0) {
262
253
  localVarQueryParameter["sortOrder"] = sortOrder;
263
254
  }
@@ -279,18 +270,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
279
270
  if (subjectName !== void 0) {
280
271
  localVarQueryParameter["subjectName"] = subjectName;
281
272
  }
273
+ if (keyword !== void 0) {
274
+ localVarQueryParameter["keyword"] = keyword;
275
+ }
276
+ if (hidden !== void 0) {
277
+ localVarQueryParameter["hidden"] = hidden;
278
+ }
279
+ if (top !== void 0) {
280
+ localVarQueryParameter["top"] = top;
281
+ }
282
282
  if (size !== void 0) {
283
283
  localVarQueryParameter["size"] = size;
284
284
  }
285
- if (page !== void 0) {
286
- localVarQueryParameter["page"] = page;
287
- }
288
285
  if (labelSelector) {
289
286
  localVarQueryParameter["labelSelector"] = labelSelector;
290
287
  }
291
288
  if (fieldSelector) {
292
289
  localVarQueryParameter["fieldSelector"] = fieldSelector;
293
290
  }
291
+ if (page !== void 0) {
292
+ localVarQueryParameter["page"] = page;
293
+ }
294
294
  setSearchParams(localVarUrlObj, localVarQueryParameter);
295
295
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
296
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -312,8 +312,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
312
312
  const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
313
313
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
314
314
  },
315
- async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
316
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
315
+ async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
317
317
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
318
318
  }
319
319
  };
@@ -327,8 +327,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
327
327
  createReply(name, replyRequest, options) {
328
328
  return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
329
329
  },
330
- listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
331
- return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
330
+ listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
331
+ return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
332
332
  }
333
333
  };
334
334
  };
@@ -340,7 +340,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
340
340
  return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
341
341
  }
342
342
  listComments(requestParameters = {}, options) {
343
- 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));
343
+ 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));
344
344
  }
345
345
  }
346
346
 
@@ -535,7 +535,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
535
535
  options: localVarRequestOptions
536
536
  };
537
537
  },
538
- listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
538
+ listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
539
539
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
540
540
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
541
541
  let baseOptions;
@@ -550,24 +550,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
550
550
  if (sort) {
551
551
  localVarQueryParameter["sort"] = Array.from(sort);
552
552
  }
553
- if (enabled !== void 0) {
554
- localVarQueryParameter["enabled"] = enabled;
555
- }
556
553
  if (keyword !== void 0) {
557
554
  localVarQueryParameter["keyword"] = keyword;
558
555
  }
556
+ if (enabled !== void 0) {
557
+ localVarQueryParameter["enabled"] = enabled;
558
+ }
559
559
  if (size !== void 0) {
560
560
  localVarQueryParameter["size"] = size;
561
561
  }
562
- if (page !== void 0) {
563
- localVarQueryParameter["page"] = page;
564
- }
565
562
  if (labelSelector) {
566
563
  localVarQueryParameter["labelSelector"] = labelSelector;
567
564
  }
568
565
  if (fieldSelector) {
569
566
  localVarQueryParameter["fieldSelector"] = fieldSelector;
570
567
  }
568
+ if (page !== void 0) {
569
+ localVarQueryParameter["page"] = page;
570
+ }
571
571
  setSearchParams(localVarUrlObj, localVarQueryParameter);
572
572
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
573
573
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -613,8 +613,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
613
613
  const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
614
614
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
615
615
  },
616
- async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
617
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
616
+ async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
617
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
618
618
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
619
619
  },
620
620
  async upgradePlugin(name, file, options) {
@@ -629,8 +629,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
629
629
  installPlugin(file, options) {
630
630
  return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
631
631
  },
632
- listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
633
- return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
632
+ listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
633
+ return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
634
634
  },
635
635
  upgradePlugin(name, file, options) {
636
636
  return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
@@ -642,7 +642,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
642
642
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
643
643
  }
644
644
  listPlugins(requestParameters = {}, options) {
645
- 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));
645
+ 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));
646
646
  }
647
647
  upgradePlugin(requestParameters, options) {
648
648
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
@@ -674,7 +674,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
674
674
  options: localVarRequestOptions
675
675
  };
676
676
  },
677
- listPosts: async (sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
677
+ listPosts: async (sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
678
678
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
679
679
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
680
680
  let baseOptions;
@@ -689,18 +689,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
689
689
  if (sort !== void 0) {
690
690
  localVarQueryParameter["sort"] = sort;
691
691
  }
692
- if (tag) {
693
- localVarQueryParameter["tag"] = Array.from(tag);
694
- }
695
- if (keyword !== void 0) {
696
- localVarQueryParameter["keyword"] = keyword;
697
- }
698
- if (visible !== void 0) {
699
- localVarQueryParameter["visible"] = visible;
700
- }
701
- if (contributor) {
702
- localVarQueryParameter["contributor"] = Array.from(contributor);
703
- }
704
692
  if (publishPhase !== void 0) {
705
693
  localVarQueryParameter["publishPhase"] = publishPhase;
706
694
  }
@@ -710,18 +698,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
710
698
  if (sortOrder !== void 0) {
711
699
  localVarQueryParameter["sortOrder"] = sortOrder;
712
700
  }
701
+ if (contributor) {
702
+ localVarQueryParameter["contributor"] = Array.from(contributor);
703
+ }
704
+ if (keyword !== void 0) {
705
+ localVarQueryParameter["keyword"] = keyword;
706
+ }
707
+ if (visible !== void 0) {
708
+ localVarQueryParameter["visible"] = visible;
709
+ }
710
+ if (tag) {
711
+ localVarQueryParameter["tag"] = Array.from(tag);
712
+ }
713
713
  if (size !== void 0) {
714
714
  localVarQueryParameter["size"] = size;
715
715
  }
716
- if (page !== void 0) {
717
- localVarQueryParameter["page"] = page;
718
- }
719
716
  if (labelSelector) {
720
717
  localVarQueryParameter["labelSelector"] = labelSelector;
721
718
  }
722
719
  if (fieldSelector) {
723
720
  localVarQueryParameter["fieldSelector"] = fieldSelector;
724
721
  }
722
+ if (page !== void 0) {
723
+ localVarQueryParameter["page"] = page;
724
+ }
725
725
  setSearchParams(localVarUrlObj, localVarQueryParameter);
726
726
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
727
727
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -819,6 +819,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
819
819
  url: toPathString(localVarUrlObj),
820
820
  options: localVarRequestOptions
821
821
  };
822
+ },
823
+ updatePostContent: async (name, content, options = {}) => {
824
+ assertParamExists("updatePostContent", "name", name);
825
+ assertParamExists("updatePostContent", "content", content);
826
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
827
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
828
+ let baseOptions;
829
+ if (configuration) {
830
+ baseOptions = configuration.baseOptions;
831
+ }
832
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
833
+ const localVarHeaderParameter = {};
834
+ const localVarQueryParameter = {};
835
+ setBasicAuthToObject(localVarRequestOptions, configuration);
836
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
837
+ localVarHeaderParameter["Content-Type"] = "application/json";
838
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
839
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
840
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
841
+ localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
842
+ return {
843
+ url: toPathString(localVarUrlObj),
844
+ options: localVarRequestOptions
845
+ };
822
846
  }
823
847
  };
824
848
  };
@@ -829,8 +853,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
829
853
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
830
854
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
831
855
  },
832
- async listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
833
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options);
856
+ async listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
834
858
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
835
859
  },
836
860
  async publishPost(name, headSnapshot, options) {
@@ -848,6 +872,10 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
848
872
  async updateDraftPost(name, postRequest, options) {
849
873
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
850
874
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
875
+ },
876
+ async updatePostContent(name, content, options) {
877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePostContent(name, content, options);
878
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
851
879
  }
852
880
  };
853
881
  };
@@ -857,8 +885,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
857
885
  draftPost(postRequest, options) {
858
886
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
859
887
  },
860
- listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
861
- return localVarFp.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
888
+ listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
889
+ return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
862
890
  },
863
891
  publishPost(name, headSnapshot, options) {
864
892
  return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
@@ -871,6 +899,9 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
871
899
  },
872
900
  updateDraftPost(name, postRequest, options) {
873
901
  return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
902
+ },
903
+ updatePostContent(name, content, options) {
904
+ return localVarFp.updatePostContent(name, content, options).then((request) => request(axios, basePath));
874
905
  }
875
906
  };
876
907
  };
@@ -879,7 +910,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
879
910
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
880
911
  }
881
912
  listPosts(requestParameters = {}, options) {
882
- return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
913
+ return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
883
914
  }
884
915
  publishPost(requestParameters, options) {
885
916
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
@@ -893,11 +924,14 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
893
924
  updateDraftPost(requestParameters, options) {
894
925
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
895
926
  }
927
+ updatePostContent(requestParameters, options) {
928
+ return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
929
+ }
896
930
  }
897
931
 
898
932
  const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
899
933
  return {
900
- listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
934
+ listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
901
935
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
902
936
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
903
937
  let baseOptions;
@@ -915,15 +949,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
915
949
  if (size !== void 0) {
916
950
  localVarQueryParameter["size"] = size;
917
951
  }
918
- if (page !== void 0) {
919
- localVarQueryParameter["page"] = page;
920
- }
921
952
  if (labelSelector) {
922
953
  localVarQueryParameter["labelSelector"] = labelSelector;
923
954
  }
924
955
  if (fieldSelector) {
925
956
  localVarQueryParameter["fieldSelector"] = fieldSelector;
926
957
  }
958
+ if (page !== void 0) {
959
+ localVarQueryParameter["page"] = page;
960
+ }
927
961
  setSearchParams(localVarUrlObj, localVarQueryParameter);
928
962
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
929
963
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -937,8 +971,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
937
971
  const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
938
972
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
939
973
  return {
940
- async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
941
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
974
+ async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
975
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
942
976
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
943
977
  }
944
978
  };
@@ -946,14 +980,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
946
980
  const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
947
981
  const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
948
982
  return {
949
- listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
950
- return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
983
+ listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
984
+ return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
951
985
  }
952
986
  };
953
987
  };
954
988
  class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
955
989
  listReplies(requestParameters = {}, options) {
956
- return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
990
+ return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
957
991
  }
958
992
  }
959
993
 
@@ -982,7 +1016,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
982
1016
  options: localVarRequestOptions
983
1017
  };
984
1018
  },
985
- listSinglePages: async (sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
1019
+ listSinglePages: async (sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
986
1020
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
987
1021
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
988
1022
  let baseOptions;
@@ -997,33 +1031,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
997
1031
  if (sort !== void 0) {
998
1032
  localVarQueryParameter["sort"] = sort;
999
1033
  }
1000
- if (keyword !== void 0) {
1001
- localVarQueryParameter["keyword"] = keyword;
1034
+ if (publishPhase !== void 0) {
1035
+ localVarQueryParameter["publishPhase"] = publishPhase;
1002
1036
  }
1003
- if (visible !== void 0) {
1004
- localVarQueryParameter["visible"] = visible;
1037
+ if (sortOrder !== void 0) {
1038
+ localVarQueryParameter["sortOrder"] = sortOrder;
1005
1039
  }
1006
1040
  if (contributor) {
1007
1041
  localVarQueryParameter["contributor"] = Array.from(contributor);
1008
1042
  }
1009
- if (publishPhase !== void 0) {
1010
- localVarQueryParameter["publishPhase"] = publishPhase;
1043
+ if (keyword !== void 0) {
1044
+ localVarQueryParameter["keyword"] = keyword;
1011
1045
  }
1012
- if (sortOrder !== void 0) {
1013
- localVarQueryParameter["sortOrder"] = sortOrder;
1046
+ if (visible !== void 0) {
1047
+ localVarQueryParameter["visible"] = visible;
1014
1048
  }
1015
1049
  if (size !== void 0) {
1016
1050
  localVarQueryParameter["size"] = size;
1017
1051
  }
1018
- if (page !== void 0) {
1019
- localVarQueryParameter["page"] = page;
1020
- }
1021
1052
  if (labelSelector) {
1022
1053
  localVarQueryParameter["labelSelector"] = labelSelector;
1023
1054
  }
1024
1055
  if (fieldSelector) {
1025
1056
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1026
1057
  }
1058
+ if (page !== void 0) {
1059
+ localVarQueryParameter["page"] = page;
1060
+ }
1027
1061
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1028
1062
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1029
1063
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1076,6 +1110,30 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
1076
1110
  url: toPathString(localVarUrlObj),
1077
1111
  options: localVarRequestOptions
1078
1112
  };
1113
+ },
1114
+ updateSinglePageContent: async (name, content, options = {}) => {
1115
+ assertParamExists("updateSinglePageContent", "name", name);
1116
+ assertParamExists("updateSinglePageContent", "content", content);
1117
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1119
+ let baseOptions;
1120
+ if (configuration) {
1121
+ baseOptions = configuration.baseOptions;
1122
+ }
1123
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1124
+ const localVarHeaderParameter = {};
1125
+ const localVarQueryParameter = {};
1126
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1127
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1128
+ localVarHeaderParameter["Content-Type"] = "application/json";
1129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1131
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1132
+ localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
1133
+ return {
1134
+ url: toPathString(localVarUrlObj),
1135
+ options: localVarRequestOptions
1136
+ };
1079
1137
  }
1080
1138
  };
1081
1139
  };
@@ -1086,8 +1144,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
1086
1144
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
1087
1145
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1088
1146
  },
1089
- async listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
1090
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options);
1147
+ async listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
1148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
1091
1149
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1092
1150
  },
1093
1151
  async publishSinglePage(name, options) {
@@ -1097,6 +1155,10 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
1097
1155
  async updateDraftSinglePage(name, singlePageRequest, options) {
1098
1156
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
1099
1157
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1158
+ },
1159
+ async updateSinglePageContent(name, content, options) {
1160
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSinglePageContent(name, content, options);
1161
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1100
1162
  }
1101
1163
  };
1102
1164
  };
@@ -1106,14 +1168,17 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
1106
1168
  draftSinglePage(singlePageRequest, options) {
1107
1169
  return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
1108
1170
  },
1109
- listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
1110
- return localVarFp.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1171
+ listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
1172
+ return localVarFp.listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1111
1173
  },
1112
1174
  publishSinglePage(name, options) {
1113
1175
  return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
1114
1176
  },
1115
1177
  updateDraftSinglePage(name, singlePageRequest, options) {
1116
1178
  return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
1179
+ },
1180
+ updateSinglePageContent(name, content, options) {
1181
+ return localVarFp.updateSinglePageContent(name, content, options).then((request) => request(axios, basePath));
1117
1182
  }
1118
1183
  };
1119
1184
  };
@@ -1122,7 +1187,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
1122
1187
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
1123
1188
  }
1124
1189
  listSinglePages(requestParameters = {}, options) {
1125
- return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1190
+ return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1126
1191
  }
1127
1192
  publishSinglePage(requestParameters, options) {
1128
1193
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1130,6 +1195,9 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
1130
1195
  updateDraftSinglePage(requestParameters, options) {
1131
1196
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
1132
1197
  }
1198
+ updateSinglePageContent(requestParameters, options) {
1199
+ return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
1200
+ }
1133
1201
  }
1134
1202
 
1135
1203
  const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
@@ -1208,7 +1276,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1208
1276
  options: localVarRequestOptions
1209
1277
  };
1210
1278
  },
1211
- listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
1279
+ listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
1212
1280
  assertParamExists("listThemes", "uninstalled", uninstalled);
1213
1281
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
1214
1282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1227,15 +1295,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1227
1295
  if (size !== void 0) {
1228
1296
  localVarQueryParameter["size"] = size;
1229
1297
  }
1230
- if (page !== void 0) {
1231
- localVarQueryParameter["page"] = page;
1232
- }
1233
1298
  if (labelSelector) {
1234
1299
  localVarQueryParameter["labelSelector"] = labelSelector;
1235
1300
  }
1236
1301
  if (fieldSelector) {
1237
1302
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1238
1303
  }
1304
+ if (page !== void 0) {
1305
+ localVarQueryParameter["page"] = page;
1306
+ }
1239
1307
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1240
1308
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1241
1309
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1302,8 +1370,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
1302
1370
  const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
1303
1371
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1304
1372
  },
1305
- async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1306
- const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
1373
+ async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1374
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
1307
1375
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1308
1376
  },
1309
1377
  async reloadThemeSetting(name, options) {
@@ -1322,8 +1390,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
1322
1390
  installTheme(file, options) {
1323
1391
  return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
1324
1392
  },
1325
- listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1326
- return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1393
+ listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1394
+ return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1327
1395
  },
1328
1396
  reloadThemeSetting(name, options) {
1329
1397
  return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
@@ -1338,7 +1406,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
1338
1406
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1339
1407
  }
1340
1408
  listThemes(requestParameters, options) {
1341
- return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1409
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1342
1410
  }
1343
1411
  reloadThemeSetting(requestParameters, options) {
1344
1412
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1612,12 +1680,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1612
1680
  if (version !== void 0) {
1613
1681
  localVarQueryParameter["version"] = version;
1614
1682
  }
1615
- if (kind !== void 0) {
1616
- localVarQueryParameter["kind"] = kind;
1617
- }
1618
1683
  if (group !== void 0) {
1619
1684
  localVarQueryParameter["group"] = group;
1620
1685
  }
1686
+ if (kind !== void 0) {
1687
+ localVarQueryParameter["kind"] = kind;
1688
+ }
1621
1689
  if (size !== void 0) {
1622
1690
  localVarQueryParameter["size"] = size;
1623
1691
  }
@@ -1699,7 +1767,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
1699
1767
 
1700
1768
  const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1701
1769
  return {
1702
- searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
1770
+ searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
1703
1771
  assertParamExists("searchPost", "keyword", keyword);
1704
1772
  const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
1705
1773
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1712,18 +1780,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1712
1780
  const localVarQueryParameter = {};
1713
1781
  setBasicAuthToObject(localVarRequestOptions, configuration);
1714
1782
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
1715
- if (limit !== void 0) {
1716
- localVarQueryParameter["limit"] = limit;
1717
- }
1718
- if (keyword !== void 0) {
1719
- localVarQueryParameter["keyword"] = keyword;
1720
- }
1721
1783
  if (highlightPreTag !== void 0) {
1722
1784
  localVarQueryParameter["highlightPreTag"] = highlightPreTag;
1723
1785
  }
1724
1786
  if (highlightPostTag !== void 0) {
1725
1787
  localVarQueryParameter["highlightPostTag"] = highlightPostTag;
1726
1788
  }
1789
+ if (keyword !== void 0) {
1790
+ localVarQueryParameter["keyword"] = keyword;
1791
+ }
1792
+ if (limit !== void 0) {
1793
+ localVarQueryParameter["limit"] = limit;
1794
+ }
1727
1795
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1728
1796
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1729
1797
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1737,8 +1805,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1737
1805
  const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
1738
1806
  const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
1739
1807
  return {
1740
- async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
1741
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
1808
+ async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
1809
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
1742
1810
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1743
1811
  }
1744
1812
  };
@@ -1746,14 +1814,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
1746
1814
  const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
1747
1815
  const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
1748
1816
  return {
1749
- searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
1750
- return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
1817
+ searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
1818
+ return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
1751
1819
  }
1752
1820
  };
1753
1821
  };
1754
1822
  class ApiHaloRunV1alpha1PostApi extends BaseAPI {
1755
1823
  searchPost(requestParameters, options) {
1756
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
1824
+ return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
1757
1825
  }
1758
1826
  }
1759
1827