@halo-dev/api-client 0.0.54 → 0.0.56

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, ungrouped, uploadedBy, size, labelSelector, fieldSelector, page, options = {}) => {
72
+ searchAttachments: async (ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, 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;
@@ -81,26 +81,26 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
81
81
  const localVarQueryParameter = {};
82
82
  setBasicAuthToObject(localVarRequestOptions, configuration);
83
83
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
84
+ if (ungrouped !== void 0) {
85
+ localVarQueryParameter["ungrouped"] = ungrouped;
86
+ }
87
+ if (uploadedBy !== void 0) {
88
+ localVarQueryParameter["uploadedBy"] = uploadedBy;
89
+ }
84
90
  if (policy !== void 0) {
85
91
  localVarQueryParameter["policy"] = policy;
86
92
  }
93
+ if (group !== void 0) {
94
+ localVarQueryParameter["group"] = group;
95
+ }
87
96
  if (sort) {
88
97
  localVarQueryParameter["sort"] = Array.from(sort);
89
98
  }
90
99
  if (displayName !== void 0) {
91
100
  localVarQueryParameter["displayName"] = displayName;
92
101
  }
93
- if (group !== void 0) {
94
- localVarQueryParameter["group"] = group;
95
- }
96
- if (ungrouped !== void 0) {
97
- localVarQueryParameter["ungrouped"] = ungrouped;
98
- }
99
- if (uploadedBy !== void 0) {
100
- localVarQueryParameter["uploadedBy"] = uploadedBy;
101
- }
102
- if (size !== void 0) {
103
- localVarQueryParameter["size"] = size;
102
+ if (page !== void 0) {
103
+ localVarQueryParameter["page"] = page;
104
104
  }
105
105
  if (labelSelector) {
106
106
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -108,8 +108,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
108
108
  if (fieldSelector) {
109
109
  localVarQueryParameter["fieldSelector"] = fieldSelector;
110
110
  }
111
- if (page !== void 0) {
112
- localVarQueryParameter["page"] = page;
111
+ if (size !== void 0) {
112
+ localVarQueryParameter["size"] = size;
113
113
  }
114
114
  setSearchParams(localVarUrlObj, localVarQueryParameter);
115
115
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -119,9 +119,9 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
119
119
  options: localVarRequestOptions
120
120
  };
121
121
  },
122
- uploadAttachment: async (file, policyName, groupName, options = {}) => {
123
- assertParamExists("uploadAttachment", "file", file);
122
+ uploadAttachment: async (policyName, file, groupName, options = {}) => {
124
123
  assertParamExists("uploadAttachment", "policyName", policyName);
124
+ assertParamExists("uploadAttachment", "file", file);
125
125
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
126
126
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
127
127
  let baseOptions;
@@ -134,15 +134,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
134
134
  const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
135
135
  setBasicAuthToObject(localVarRequestOptions, configuration);
136
136
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
137
- if (file !== void 0) {
138
- localVarFormParams.append("file", file);
139
- }
140
137
  if (policyName !== void 0) {
141
138
  localVarFormParams.append("policyName", policyName);
142
139
  }
143
140
  if (groupName !== void 0) {
144
141
  localVarFormParams.append("groupName", groupName);
145
142
  }
143
+ if (file !== void 0) {
144
+ localVarFormParams.append("file", file);
145
+ }
146
146
  localVarHeaderParameter["Content-Type"] = "multipart/form-data";
147
147
  setSearchParams(localVarUrlObj, localVarQueryParameter);
148
148
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -158,12 +158,12 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
158
158
  const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
159
159
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
160
160
  return {
161
- async searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, labelSelector, fieldSelector, page, options) {
162
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, labelSelector, fieldSelector, page, options);
161
+ async searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options) {
162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options);
163
163
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
164
164
  },
165
- async uploadAttachment(file, policyName, groupName, options) {
166
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
165
+ async uploadAttachment(policyName, file, groupName, options) {
166
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(policyName, file, groupName, options);
167
167
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
168
168
  }
169
169
  };
@@ -171,20 +171,20 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
171
171
  const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
172
172
  const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
173
173
  return {
174
- searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, labelSelector, fieldSelector, page, options) {
175
- return localVarFp.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
174
+ searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options) {
175
+ return localVarFp.searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
176
176
  },
177
- uploadAttachment(file, policyName, groupName, options) {
178
- return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
177
+ uploadAttachment(policyName, file, groupName, options) {
178
+ return localVarFp.uploadAttachment(policyName, file, groupName, options).then((request) => request(axios, basePath));
179
179
  }
180
180
  };
181
181
  };
182
182
  class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
183
183
  searchAttachments(requestParameters = {}, options) {
184
- return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
184
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.policy, requestParameters.group, requestParameters.sort, requestParameters.displayName, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
185
185
  }
186
186
  uploadAttachment(requestParameters, options) {
187
- return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
187
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.policyName, requestParameters.file, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
188
188
  }
189
189
  }
190
190
 
@@ -237,7 +237,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
237
237
  options: localVarRequestOptions
238
238
  };
239
239
  },
240
- listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
240
+ listComments: async (sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options = {}) => {
241
241
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
242
242
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
243
  let baseOptions;
@@ -249,15 +249,21 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
249
249
  const localVarQueryParameter = {};
250
250
  setBasicAuthToObject(localVarRequestOptions, configuration);
251
251
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
252
- if (sort !== void 0) {
253
- localVarQueryParameter["sort"] = sort;
254
- }
255
252
  if (sortOrder !== void 0) {
256
253
  localVarQueryParameter["sortOrder"] = sortOrder;
257
254
  }
255
+ if (keyword !== void 0) {
256
+ localVarQueryParameter["keyword"] = keyword;
257
+ }
258
258
  if (approved !== void 0) {
259
259
  localVarQueryParameter["approved"] = approved;
260
260
  }
261
+ if (hidden !== void 0) {
262
+ localVarQueryParameter["hidden"] = hidden;
263
+ }
264
+ if (top !== void 0) {
265
+ localVarQueryParameter["top"] = top;
266
+ }
261
267
  if (allowNotification !== void 0) {
262
268
  localVarQueryParameter["allowNotification"] = allowNotification;
263
269
  }
@@ -273,17 +279,11 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
273
279
  if (subjectName !== void 0) {
274
280
  localVarQueryParameter["subjectName"] = subjectName;
275
281
  }
276
- if (keyword !== void 0) {
277
- localVarQueryParameter["keyword"] = keyword;
278
- }
279
- if (hidden !== void 0) {
280
- localVarQueryParameter["hidden"] = hidden;
281
- }
282
- if (top !== void 0) {
283
- localVarQueryParameter["top"] = top;
282
+ if (sort !== void 0) {
283
+ localVarQueryParameter["sort"] = sort;
284
284
  }
285
- if (size !== void 0) {
286
- localVarQueryParameter["size"] = size;
285
+ if (page !== void 0) {
286
+ localVarQueryParameter["page"] = page;
287
287
  }
288
288
  if (labelSelector) {
289
289
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -291,8 +291,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
291
291
  if (fieldSelector) {
292
292
  localVarQueryParameter["fieldSelector"] = fieldSelector;
293
293
  }
294
- if (page !== void 0) {
295
- localVarQueryParameter["page"] = page;
294
+ if (size !== void 0) {
295
+ localVarQueryParameter["size"] = size;
296
296
  }
297
297
  setSearchParams(localVarUrlObj, localVarQueryParameter);
298
298
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -315,8 +315,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
315
315
  const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
316
316
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
317
317
  },
318
- async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
319
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
318
+ async listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options) {
319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options);
320
320
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
321
321
  }
322
322
  };
@@ -330,8 +330,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
330
330
  createReply(name, replyRequest, options) {
331
331
  return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
332
332
  },
333
- listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
334
- return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
333
+ listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options) {
334
+ return localVarFp.listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
335
335
  }
336
336
  };
337
337
  };
@@ -343,7 +343,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
343
343
  return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
344
344
  }
345
345
  listComments(requestParameters = {}, options) {
346
- 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));
346
+ return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sortOrder, requestParameters.keyword, requestParameters.approved, requestParameters.hidden, requestParameters.top, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
347
347
  }
348
348
  }
349
349
 
@@ -538,7 +538,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
538
538
  options: localVarRequestOptions
539
539
  };
540
540
  },
541
- listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
541
+ listPlugins: async (enabled, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
542
542
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
543
543
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
544
544
  let baseOptions;
@@ -550,17 +550,17 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
550
550
  const localVarQueryParameter = {};
551
551
  setBasicAuthToObject(localVarRequestOptions, configuration);
552
552
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
553
- if (sort) {
554
- localVarQueryParameter["sort"] = Array.from(sort);
553
+ if (enabled !== void 0) {
554
+ localVarQueryParameter["enabled"] = enabled;
555
555
  }
556
556
  if (keyword !== void 0) {
557
557
  localVarQueryParameter["keyword"] = keyword;
558
558
  }
559
- if (enabled !== void 0) {
560
- localVarQueryParameter["enabled"] = enabled;
559
+ if (sort) {
560
+ localVarQueryParameter["sort"] = Array.from(sort);
561
561
  }
562
- if (size !== void 0) {
563
- localVarQueryParameter["size"] = size;
562
+ if (page !== void 0) {
563
+ localVarQueryParameter["page"] = page;
564
564
  }
565
565
  if (labelSelector) {
566
566
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -568,8 +568,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
568
568
  if (fieldSelector) {
569
569
  localVarQueryParameter["fieldSelector"] = fieldSelector;
570
570
  }
571
- if (page !== void 0) {
572
- localVarQueryParameter["page"] = page;
571
+ if (size !== void 0) {
572
+ localVarQueryParameter["size"] = size;
573
573
  }
574
574
  setSearchParams(localVarUrlObj, localVarQueryParameter);
575
575
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -616,8 +616,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
616
616
  const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
617
617
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
618
618
  },
619
- async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
620
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
619
+ async listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options) {
620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options);
621
621
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
622
622
  },
623
623
  async upgradePlugin(name, file, options) {
@@ -632,8 +632,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
632
632
  installPlugin(file, options) {
633
633
  return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
634
634
  },
635
- listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
636
- return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
635
+ listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options) {
636
+ return localVarFp.listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
637
637
  },
638
638
  upgradePlugin(name, file, options) {
639
639
  return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
@@ -645,7 +645,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
645
645
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
646
646
  }
647
647
  listPlugins(requestParameters = {}, options) {
648
- 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));
648
+ return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.enabled, requestParameters.keyword, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
649
649
  }
650
650
  upgradePlugin(requestParameters, options) {
651
651
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
@@ -677,7 +677,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
677
677
  options: localVarRequestOptions
678
678
  };
679
679
  },
680
- listPosts: async (sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
680
+ listPosts: async (tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
681
681
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
682
682
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
683
683
  let baseOptions;
@@ -689,32 +689,32 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
689
689
  const localVarQueryParameter = {};
690
690
  setBasicAuthToObject(localVarRequestOptions, configuration);
691
691
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
692
- if (sort !== void 0) {
693
- localVarQueryParameter["sort"] = sort;
692
+ if (tag) {
693
+ localVarQueryParameter["tag"] = Array.from(tag);
694
+ }
695
+ if (contributor) {
696
+ localVarQueryParameter["contributor"] = Array.from(contributor);
694
697
  }
695
698
  if (publishPhase !== void 0) {
696
699
  localVarQueryParameter["publishPhase"] = publishPhase;
697
700
  }
701
+ if (visible !== void 0) {
702
+ localVarQueryParameter["visible"] = visible;
703
+ }
698
704
  if (category) {
699
705
  localVarQueryParameter["category"] = Array.from(category);
700
706
  }
701
707
  if (sortOrder !== void 0) {
702
708
  localVarQueryParameter["sortOrder"] = sortOrder;
703
709
  }
704
- if (contributor) {
705
- localVarQueryParameter["contributor"] = Array.from(contributor);
706
- }
707
710
  if (keyword !== void 0) {
708
711
  localVarQueryParameter["keyword"] = keyword;
709
712
  }
710
- if (visible !== void 0) {
711
- localVarQueryParameter["visible"] = visible;
712
- }
713
- if (tag) {
714
- localVarQueryParameter["tag"] = Array.from(tag);
713
+ if (sort !== void 0) {
714
+ localVarQueryParameter["sort"] = sort;
715
715
  }
716
- if (size !== void 0) {
717
- localVarQueryParameter["size"] = size;
716
+ if (page !== void 0) {
717
+ localVarQueryParameter["page"] = page;
718
718
  }
719
719
  if (labelSelector) {
720
720
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -722,8 +722,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
722
722
  if (fieldSelector) {
723
723
  localVarQueryParameter["fieldSelector"] = fieldSelector;
724
724
  }
725
- if (page !== void 0) {
726
- localVarQueryParameter["page"] = page;
725
+ if (size !== void 0) {
726
+ localVarQueryParameter["size"] = size;
727
727
  }
728
728
  setSearchParams(localVarUrlObj, localVarQueryParameter);
729
729
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -856,8 +856,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
856
856
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
857
857
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
858
858
  },
859
- async listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
860
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
859
+ async listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
860
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options);
861
861
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
862
862
  },
863
863
  async publishPost(name, headSnapshot, options) {
@@ -888,8 +888,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
888
888
  draftPost(postRequest, options) {
889
889
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
890
890
  },
891
- listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
892
- return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
891
+ listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
892
+ return localVarFp.listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
893
893
  },
894
894
  publishPost(name, headSnapshot, options) {
895
895
  return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
@@ -913,7 +913,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
913
913
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
914
914
  }
915
915
  listPosts(requestParameters = {}, options) {
916
- 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));
916
+ return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.tag, requestParameters.contributor, requestParameters.publishPhase, requestParameters.visible, requestParameters.category, requestParameters.sortOrder, requestParameters.keyword, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
917
917
  }
918
918
  publishPost(requestParameters, options) {
919
919
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
@@ -934,7 +934,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
934
934
 
935
935
  const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
936
936
  return {
937
- listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
937
+ listReplies: async (commentName, page, labelSelector, fieldSelector, size, options = {}) => {
938
938
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
939
939
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
940
940
  let baseOptions;
@@ -949,8 +949,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
949
949
  if (commentName !== void 0) {
950
950
  localVarQueryParameter["commentName"] = commentName;
951
951
  }
952
- if (size !== void 0) {
953
- localVarQueryParameter["size"] = size;
952
+ if (page !== void 0) {
953
+ localVarQueryParameter["page"] = page;
954
954
  }
955
955
  if (labelSelector) {
956
956
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -958,8 +958,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
958
958
  if (fieldSelector) {
959
959
  localVarQueryParameter["fieldSelector"] = fieldSelector;
960
960
  }
961
- if (page !== void 0) {
962
- localVarQueryParameter["page"] = page;
961
+ if (size !== void 0) {
962
+ localVarQueryParameter["size"] = size;
963
963
  }
964
964
  setSearchParams(localVarUrlObj, localVarQueryParameter);
965
965
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -974,8 +974,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
974
974
  const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
975
975
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
976
976
  return {
977
- async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
978
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
977
+ async listReplies(commentName, page, labelSelector, fieldSelector, size, options) {
978
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, page, labelSelector, fieldSelector, size, options);
979
979
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
980
980
  }
981
981
  };
@@ -983,14 +983,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
983
983
  const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
984
984
  const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
985
985
  return {
986
- listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
987
- return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
986
+ listReplies(commentName, page, labelSelector, fieldSelector, size, options) {
987
+ return localVarFp.listReplies(commentName, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
988
988
  }
989
989
  };
990
990
  };
991
991
  class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
992
992
  listReplies(requestParameters = {}, options) {
993
- return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
993
+ return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
994
994
  }
995
995
  }
996
996
 
@@ -1019,7 +1019,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
1019
1019
  options: localVarRequestOptions
1020
1020
  };
1021
1021
  },
1022
- listSinglePages: async (sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
1022
+ listSinglePages: async (contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
1023
1023
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
1024
1024
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1025
1025
  let baseOptions;
@@ -1031,26 +1031,26 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
1031
1031
  const localVarQueryParameter = {};
1032
1032
  setBasicAuthToObject(localVarRequestOptions, configuration);
1033
1033
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
1034
- if (sort !== void 0) {
1035
- localVarQueryParameter["sort"] = sort;
1034
+ if (contributor) {
1035
+ localVarQueryParameter["contributor"] = Array.from(contributor);
1036
1036
  }
1037
1037
  if (publishPhase !== void 0) {
1038
1038
  localVarQueryParameter["publishPhase"] = publishPhase;
1039
1039
  }
1040
+ if (visible !== void 0) {
1041
+ localVarQueryParameter["visible"] = visible;
1042
+ }
1040
1043
  if (sortOrder !== void 0) {
1041
1044
  localVarQueryParameter["sortOrder"] = sortOrder;
1042
1045
  }
1043
- if (contributor) {
1044
- localVarQueryParameter["contributor"] = Array.from(contributor);
1045
- }
1046
1046
  if (keyword !== void 0) {
1047
1047
  localVarQueryParameter["keyword"] = keyword;
1048
1048
  }
1049
- if (visible !== void 0) {
1050
- localVarQueryParameter["visible"] = visible;
1049
+ if (sort !== void 0) {
1050
+ localVarQueryParameter["sort"] = sort;
1051
1051
  }
1052
- if (size !== void 0) {
1053
- localVarQueryParameter["size"] = size;
1052
+ if (page !== void 0) {
1053
+ localVarQueryParameter["page"] = page;
1054
1054
  }
1055
1055
  if (labelSelector) {
1056
1056
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -1058,8 +1058,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
1058
1058
  if (fieldSelector) {
1059
1059
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1060
1060
  }
1061
- if (page !== void 0) {
1062
- localVarQueryParameter["page"] = page;
1061
+ if (size !== void 0) {
1062
+ localVarQueryParameter["size"] = size;
1063
1063
  }
1064
1064
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1065
1065
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1147,8 +1147,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
1147
1147
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
1148
1148
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1149
1149
  },
1150
- async listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
1151
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
1150
+ async listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
1151
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options);
1152
1152
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1153
1153
  },
1154
1154
  async publishSinglePage(name, options) {
@@ -1171,8 +1171,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
1171
1171
  draftSinglePage(singlePageRequest, options) {
1172
1172
  return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
1173
1173
  },
1174
- listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
1175
- return localVarFp.listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1174
+ listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
1175
+ return localVarFp.listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
1176
1176
  },
1177
1177
  publishSinglePage(name, options) {
1178
1178
  return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
@@ -1190,7 +1190,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
1190
1190
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
1191
1191
  }
1192
1192
  listSinglePages(requestParameters = {}, options) {
1193
- 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));
1193
+ return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributor, requestParameters.publishPhase, requestParameters.visible, requestParameters.sortOrder, requestParameters.keyword, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
1194
1194
  }
1195
1195
  publishSinglePage(requestParameters, options) {
1196
1196
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1279,7 +1279,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1279
1279
  options: localVarRequestOptions
1280
1280
  };
1281
1281
  },
1282
- listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
1282
+ listThemes: async (uninstalled, page, labelSelector, fieldSelector, size, options = {}) => {
1283
1283
  assertParamExists("listThemes", "uninstalled", uninstalled);
1284
1284
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
1285
1285
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1295,8 +1295,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1295
1295
  if (uninstalled !== void 0) {
1296
1296
  localVarQueryParameter["uninstalled"] = uninstalled;
1297
1297
  }
1298
- if (size !== void 0) {
1299
- localVarQueryParameter["size"] = size;
1298
+ if (page !== void 0) {
1299
+ localVarQueryParameter["page"] = page;
1300
1300
  }
1301
1301
  if (labelSelector) {
1302
1302
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -1304,8 +1304,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1304
1304
  if (fieldSelector) {
1305
1305
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1306
1306
  }
1307
- if (page !== void 0) {
1308
- localVarQueryParameter["page"] = page;
1307
+ if (size !== void 0) {
1308
+ localVarQueryParameter["size"] = size;
1309
1309
  }
1310
1310
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1311
1311
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1315,9 +1315,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1315
1315
  options: localVarRequestOptions
1316
1316
  };
1317
1317
  },
1318
- reloadThemeSetting: async (name, options = {}) => {
1319
- assertParamExists("reloadThemeSetting", "name", name);
1320
- const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload-setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1318
+ reload: async (name, options = {}) => {
1319
+ assertParamExists("reload", "name", name);
1320
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1321
1321
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1322
1322
  let baseOptions;
1323
1323
  if (configuration) {
@@ -1373,12 +1373,12 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
1373
1373
  const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
1374
1374
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1375
1375
  },
1376
- async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1377
- const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
1376
+ async listThemes(uninstalled, page, labelSelector, fieldSelector, size, options) {
1377
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, page, labelSelector, fieldSelector, size, options);
1378
1378
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1379
1379
  },
1380
- async reloadThemeSetting(name, options) {
1381
- const localVarAxiosArgs = await localVarAxiosParamCreator.reloadThemeSetting(name, options);
1380
+ async reload(name, options) {
1381
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reload(name, options);
1382
1382
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1383
1383
  },
1384
1384
  async upgradeTheme(name, file, options) {
@@ -1393,11 +1393,11 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
1393
1393
  installTheme(file, options) {
1394
1394
  return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
1395
1395
  },
1396
- listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1397
- return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1396
+ listThemes(uninstalled, page, labelSelector, fieldSelector, size, options) {
1397
+ return localVarFp.listThemes(uninstalled, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
1398
1398
  },
1399
- reloadThemeSetting(name, options) {
1400
- return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
1399
+ reload(name, options) {
1400
+ return localVarFp.reload(name, options).then((request) => request(axios, basePath));
1401
1401
  },
1402
1402
  upgradeTheme(name, file, options) {
1403
1403
  return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
@@ -1409,10 +1409,10 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
1409
1409
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1410
1410
  }
1411
1411
  listThemes(requestParameters, options) {
1412
- return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1412
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
1413
1413
  }
1414
- reloadThemeSetting(requestParameters, options) {
1415
- return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
1414
+ reload(requestParameters, options) {
1415
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
1416
1416
  }
1417
1417
  upgradeTheme(requestParameters, options) {
1418
1418
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
@@ -1635,7 +1635,7 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1635
1635
  options: localVarRequestOptions
1636
1636
  };
1637
1637
  },
1638
- listCommentReplies: async (name, size, page, options = {}) => {
1638
+ listCommentReplies: async (name, page, size, options = {}) => {
1639
1639
  assertParamExists("listCommentReplies", "name", name);
1640
1640
  const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1641
1641
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1648,12 +1648,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1648
1648
  const localVarQueryParameter = {};
1649
1649
  setBasicAuthToObject(localVarRequestOptions, configuration);
1650
1650
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
1651
- if (size !== void 0) {
1652
- localVarQueryParameter["size"] = size;
1653
- }
1654
1651
  if (page !== void 0) {
1655
1652
  localVarQueryParameter["page"] = page;
1656
1653
  }
1654
+ if (size !== void 0) {
1655
+ localVarQueryParameter["size"] = size;
1656
+ }
1657
1657
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1658
1658
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1659
1659
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1662,10 +1662,10 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1662
1662
  options: localVarRequestOptions
1663
1663
  };
1664
1664
  },
1665
- listComments1: async (name, version, kind, group, size, page, options = {}) => {
1665
+ listComments1: async (kind, name, version, group, page, size, options = {}) => {
1666
+ assertParamExists("listComments1", "kind", kind);
1666
1667
  assertParamExists("listComments1", "name", name);
1667
1668
  assertParamExists("listComments1", "version", version);
1668
- assertParamExists("listComments1", "kind", kind);
1669
1669
  const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
1670
1670
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1671
1671
  let baseOptions;
@@ -1677,24 +1677,24 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1677
1677
  const localVarQueryParameter = {};
1678
1678
  setBasicAuthToObject(localVarRequestOptions, configuration);
1679
1679
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
1680
+ if (kind !== void 0) {
1681
+ localVarQueryParameter["kind"] = kind;
1682
+ }
1683
+ if (group !== void 0) {
1684
+ localVarQueryParameter["group"] = group;
1685
+ }
1680
1686
  if (name !== void 0) {
1681
1687
  localVarQueryParameter["name"] = name;
1682
1688
  }
1683
1689
  if (version !== void 0) {
1684
1690
  localVarQueryParameter["version"] = version;
1685
1691
  }
1686
- if (group !== void 0) {
1687
- localVarQueryParameter["group"] = group;
1688
- }
1689
- if (kind !== void 0) {
1690
- localVarQueryParameter["kind"] = kind;
1692
+ if (page !== void 0) {
1693
+ localVarQueryParameter["page"] = page;
1691
1694
  }
1692
1695
  if (size !== void 0) {
1693
1696
  localVarQueryParameter["size"] = size;
1694
1697
  }
1695
- if (page !== void 0) {
1696
- localVarQueryParameter["page"] = page;
1697
- }
1698
1698
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1699
1699
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1700
1700
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1720,12 +1720,12 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
1720
1720
  const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(name, options);
1721
1721
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1722
1722
  },
1723
- async listCommentReplies(name, size, page, options) {
1724
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, size, page, options);
1723
+ async listCommentReplies(name, page, size, options) {
1724
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, page, size, options);
1725
1725
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1726
1726
  },
1727
- async listComments1(name, version, kind, group, size, page, options) {
1728
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version, kind, group, size, page, options);
1727
+ async listComments1(kind, name, version, group, page, size, options) {
1728
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(kind, name, version, group, page, size, options);
1729
1729
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1730
1730
  }
1731
1731
  };
@@ -1742,11 +1742,11 @@ const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, ax
1742
1742
  getComment(name, options) {
1743
1743
  return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
1744
1744
  },
1745
- listCommentReplies(name, size, page, options) {
1746
- return localVarFp.listCommentReplies(name, size, page, options).then((request) => request(axios, basePath));
1745
+ listCommentReplies(name, page, size, options) {
1746
+ return localVarFp.listCommentReplies(name, page, size, options).then((request) => request(axios, basePath));
1747
1747
  },
1748
- listComments1(name, version, kind, group, size, page, options) {
1749
- return localVarFp.listComments1(name, version, kind, group, size, page, options).then((request) => request(axios, basePath));
1748
+ listComments1(kind, name, version, group, page, size, options) {
1749
+ return localVarFp.listComments1(kind, name, version, group, page, size, options).then((request) => request(axios, basePath));
1750
1750
  }
1751
1751
  };
1752
1752
  };
@@ -1761,16 +1761,16 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
1761
1761
  return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
1762
1762
  }
1763
1763
  listCommentReplies(requestParameters, options) {
1764
- return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1764
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
1765
1765
  }
1766
1766
  listComments1(requestParameters, options) {
1767
- return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.name, requestParameters.version, requestParameters.kind, requestParameters.group, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1767
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.kind, requestParameters.name, requestParameters.version, requestParameters.group, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
1768
1768
  }
1769
1769
  }
1770
1770
 
1771
1771
  const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1772
1772
  return {
1773
- searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
1773
+ searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
1774
1774
  assertParamExists("searchPost", "keyword", keyword);
1775
1775
  const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
1776
1776
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1783,6 +1783,9 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1783
1783
  const localVarQueryParameter = {};
1784
1784
  setBasicAuthToObject(localVarRequestOptions, configuration);
1785
1785
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
1786
+ if (limit !== void 0) {
1787
+ localVarQueryParameter["limit"] = limit;
1788
+ }
1786
1789
  if (highlightPreTag !== void 0) {
1787
1790
  localVarQueryParameter["highlightPreTag"] = highlightPreTag;
1788
1791
  }
@@ -1792,9 +1795,6 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1792
1795
  if (keyword !== void 0) {
1793
1796
  localVarQueryParameter["keyword"] = keyword;
1794
1797
  }
1795
- if (limit !== void 0) {
1796
- localVarQueryParameter["limit"] = limit;
1797
- }
1798
1798
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1799
1799
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1800
1800
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1808,8 +1808,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1808
1808
  const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
1809
1809
  const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
1810
1810
  return {
1811
- async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
1812
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
1811
+ async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
1812
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
1813
1813
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1814
1814
  }
1815
1815
  };
@@ -1817,14 +1817,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
1817
1817
  const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
1818
1818
  const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
1819
1819
  return {
1820
- searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
1821
- return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
1820
+ searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
1821
+ return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
1822
1822
  }
1823
1823
  };
1824
1824
  };
1825
1825
  class ApiHaloRunV1alpha1PostApi extends BaseAPI {
1826
1826
  searchPost(requestParameters, options) {
1827
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
1827
+ return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
1828
1828
  }
1829
1829
  }
1830
1830