@halo-dev/api-client 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -77,7 +77,54 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
77
77
 
78
78
  const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
79
79
  return {
80
- listComments: async (sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
80
+ createComment: async (commentRequest, options = {}) => {
81
+ assertParamExists("createComment", "commentRequest", commentRequest);
82
+ const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
83
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
84
+ let baseOptions;
85
+ if (configuration) {
86
+ baseOptions = configuration.baseOptions;
87
+ }
88
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
89
+ const localVarHeaderParameter = {};
90
+ const localVarQueryParameter = {};
91
+ setBasicAuthToObject(localVarRequestOptions, configuration);
92
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
93
+ localVarHeaderParameter["Content-Type"] = "application/json";
94
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
95
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
97
+ localVarRequestOptions.data = serializeDataIfNeeded(commentRequest, localVarRequestOptions, configuration);
98
+ return {
99
+ url: toPathString(localVarUrlObj),
100
+ options: localVarRequestOptions
101
+ };
102
+ },
103
+ createReply: async (name, replyRequest, options = {}) => {
104
+ assertParamExists("createReply", "name", name);
105
+ assertParamExists("createReply", "replyRequest", replyRequest);
106
+ const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
108
+ let baseOptions;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ }
112
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
113
+ const localVarHeaderParameter = {};
114
+ const localVarQueryParameter = {};
115
+ setBasicAuthToObject(localVarRequestOptions, configuration);
116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
117
+ localVarHeaderParameter["Content-Type"] = "application/json";
118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
121
+ localVarRequestOptions.data = serializeDataIfNeeded(replyRequest, localVarRequestOptions, configuration);
122
+ return {
123
+ url: toPathString(localVarUrlObj),
124
+ options: localVarRequestOptions
125
+ };
126
+ },
127
+ listComments: async (sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
81
128
  const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
82
129
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
83
130
  let baseOptions;
@@ -92,15 +139,15 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
92
139
  if (sort !== void 0) {
93
140
  localVarQueryParameter["sort"] = sort;
94
141
  }
142
+ if (keyword !== void 0) {
143
+ localVarQueryParameter["keyword"] = keyword;
144
+ }
95
145
  if (hidden !== void 0) {
96
146
  localVarQueryParameter["hidden"] = hidden;
97
147
  }
98
148
  if (top !== void 0) {
99
149
  localVarQueryParameter["top"] = top;
100
150
  }
101
- if (sortOrder !== void 0) {
102
- localVarQueryParameter["sortOrder"] = sortOrder;
103
- }
104
151
  if (approved !== void 0) {
105
152
  localVarQueryParameter["approved"] = approved;
106
153
  }
@@ -119,6 +166,9 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
119
166
  if (subjectName !== void 0) {
120
167
  localVarQueryParameter["subjectName"] = subjectName;
121
168
  }
169
+ if (sortOrder !== void 0) {
170
+ localVarQueryParameter["sortOrder"] = sortOrder;
171
+ }
122
172
  if (size !== void 0) {
123
173
  localVarQueryParameter["size"] = size;
124
174
  }
@@ -144,8 +194,16 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
144
194
  const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
145
195
  const localVarAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
146
196
  return {
147
- async listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
148
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
197
+ async createComment(commentRequest, options) {
198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createComment(commentRequest, options);
199
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
200
+ },
201
+ async createReply(name, replyRequest, options) {
202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
203
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
204
+ },
205
+ async listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options) {
206
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options);
149
207
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
150
208
  }
151
209
  };
@@ -153,14 +211,26 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
153
211
  const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
154
212
  const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
155
213
  return {
156
- listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
157
- return localVarFp.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
214
+ createComment(commentRequest, options) {
215
+ return localVarFp.createComment(commentRequest, options).then((request) => request(axios, basePath));
216
+ },
217
+ createReply(name, replyRequest, options) {
218
+ return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
219
+ },
220
+ listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options) {
221
+ return localVarFp.listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
158
222
  }
159
223
  };
160
224
  };
161
225
  class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
226
+ createComment(requestParameters, options) {
227
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createComment(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath));
228
+ }
229
+ createReply(requestParameters, options) {
230
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
231
+ }
162
232
  listComments(requestParameters = {}, options) {
163
- return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, 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));
233
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
164
234
  }
165
235
  }
166
236
 
package/dist/index.d.ts CHANGED
@@ -927,6 +927,49 @@ interface Comment {
927
927
  metadata: Metadata;
928
928
  }
929
929
 
930
+ /**
931
+ * Halo Next API
932
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
933
+ *
934
+ * The version of the OpenAPI document: 2.0.0
935
+ *
936
+ *
937
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
938
+ * https://openapi-generator.tech
939
+ * Do not edit the class manually.
940
+ */
941
+ /**
942
+ *
943
+ * @export
944
+ * @interface CommentEmailOwner
945
+ */
946
+ interface CommentEmailOwner {
947
+ /**
948
+ *
949
+ * @type {string}
950
+ * @memberof CommentEmailOwner
951
+ */
952
+ email?: string;
953
+ /**
954
+ *
955
+ * @type {string}
956
+ * @memberof CommentEmailOwner
957
+ */
958
+ avatar?: string;
959
+ /**
960
+ *
961
+ * @type {string}
962
+ * @memberof CommentEmailOwner
963
+ */
964
+ displayName?: string;
965
+ /**
966
+ *
967
+ * @type {string}
968
+ * @memberof CommentEmailOwner
969
+ */
970
+ website?: string;
971
+ }
972
+
930
973
  /**
931
974
  * Halo Next API
932
975
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -995,6 +1038,56 @@ interface CommentList {
995
1038
  hasPrevious: boolean;
996
1039
  }
997
1040
 
1041
+ /**
1042
+ * Halo Next API
1043
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1044
+ *
1045
+ * The version of the OpenAPI document: 2.0.0
1046
+ *
1047
+ *
1048
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1049
+ * https://openapi-generator.tech
1050
+ * Do not edit the class manually.
1051
+ */
1052
+
1053
+ /**
1054
+ *
1055
+ * @export
1056
+ * @interface CommentRequest
1057
+ */
1058
+ interface CommentRequest {
1059
+ /**
1060
+ *
1061
+ * @type {Ref}
1062
+ * @memberof CommentRequest
1063
+ */
1064
+ subjectRef: Ref;
1065
+ /**
1066
+ *
1067
+ * @type {CommentEmailOwner}
1068
+ * @memberof CommentRequest
1069
+ */
1070
+ owner?: CommentEmailOwner;
1071
+ /**
1072
+ *
1073
+ * @type {string}
1074
+ * @memberof CommentRequest
1075
+ */
1076
+ raw: string;
1077
+ /**
1078
+ *
1079
+ * @type {string}
1080
+ * @memberof CommentRequest
1081
+ */
1082
+ content: string;
1083
+ /**
1084
+ *
1085
+ * @type {boolean}
1086
+ * @memberof CommentRequest
1087
+ */
1088
+ allowNotification?: boolean;
1089
+ }
1090
+
998
1091
  /**
999
1092
  * Halo Next API
1000
1093
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -1419,16 +1512,16 @@ interface Extension {
1419
1512
  kind: string;
1420
1513
  /**
1421
1514
  *
1422
- * @type {string}
1515
+ * @type {Metadata}
1423
1516
  * @memberof Extension
1424
1517
  */
1425
- apiVersion: string;
1518
+ metadata: Metadata;
1426
1519
  /**
1427
1520
  *
1428
- * @type {Metadata}
1521
+ * @type {string}
1429
1522
  * @memberof Extension
1430
1523
  */
1431
- metadata: Metadata;
1524
+ apiVersion: string;
1432
1525
  }
1433
1526
 
1434
1527
  /**
@@ -4191,6 +4284,56 @@ interface ReplyList {
4191
4284
  hasPrevious: boolean;
4192
4285
  }
4193
4286
 
4287
+ /**
4288
+ * Halo Next API
4289
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4290
+ *
4291
+ * The version of the OpenAPI document: 2.0.0
4292
+ *
4293
+ *
4294
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4295
+ * https://openapi-generator.tech
4296
+ * Do not edit the class manually.
4297
+ */
4298
+
4299
+ /**
4300
+ *
4301
+ * @export
4302
+ * @interface ReplyRequest
4303
+ */
4304
+ interface ReplyRequest {
4305
+ /**
4306
+ *
4307
+ * @type {string}
4308
+ * @memberof ReplyRequest
4309
+ */
4310
+ raw: string;
4311
+ /**
4312
+ *
4313
+ * @type {string}
4314
+ * @memberof ReplyRequest
4315
+ */
4316
+ content: string;
4317
+ /**
4318
+ *
4319
+ * @type {boolean}
4320
+ * @memberof ReplyRequest
4321
+ */
4322
+ allowNotification?: boolean;
4323
+ /**
4324
+ *
4325
+ * @type {CommentEmailOwner}
4326
+ * @memberof ReplyRequest
4327
+ */
4328
+ owner?: CommentEmailOwner;
4329
+ /**
4330
+ *
4331
+ * @type {string}
4332
+ * @memberof ReplyRequest
4333
+ */
4334
+ quoteReply?: string;
4335
+ }
4336
+
4194
4337
  /**
4195
4338
  * Halo Next API
4196
4339
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -5600,18 +5743,34 @@ interface UserPermission {
5600
5743
  * @export
5601
5744
  */
5602
5745
  declare const ApiHaloRunV1alpha1CommentApiAxiosParamCreator: (configuration?: Configuration) => {
5746
+ /**
5747
+ * Create a comment.
5748
+ * @param {CommentRequest} commentRequest
5749
+ * @param {*} [options] Override http request option.
5750
+ * @throws {RequiredError}
5751
+ */
5752
+ createComment: (commentRequest: CommentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5753
+ /**
5754
+ * Create a reply.
5755
+ * @param {string} name
5756
+ * @param {ReplyRequest} replyRequest
5757
+ * @param {*} [options] Override http request option.
5758
+ * @throws {RequiredError}
5759
+ */
5760
+ createReply: (name: string, replyRequest: ReplyRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5603
5761
  /**
5604
5762
  * List comments.
5605
5763
  * @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
5764
+ * @param {string} [keyword] Comments filtered by keyword.
5606
5765
  * @param {boolean} [hidden] The comment is hidden from the theme side.
5607
5766
  * @param {boolean} [top] Comment top display.
5608
- * @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
5609
5767
  * @param {boolean} [approved] Comments approved.
5610
5768
  * @param {boolean} [allowNotification] Send notifications when there are new replies.
5611
5769
  * @param {string} [ownerKind] Commenter kind.
5612
5770
  * @param {string} [ownerName] Commenter name.
5613
5771
  * @param {string} [subjectKind] Comment subject kind.
5614
5772
  * @param {string} [subjectName] Comment subject name.
5773
+ * @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
5615
5774
  * @param {number} [size] Size of one page. Zero indicates no limit.
5616
5775
  * @param {number} [page] The page number. Zero indicates no page.
5617
5776
  * @param {Array<string>} [labelSelector] Label selector for filtering.
@@ -5619,25 +5778,41 @@ declare const ApiHaloRunV1alpha1CommentApiAxiosParamCreator: (configuration?: Co
5619
5778
  * @param {*} [options] Override http request option.
5620
5779
  * @throws {RequiredError}
5621
5780
  */
5622
- listComments: (sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME', hidden?: boolean, top?: boolean, sortOrder?: boolean, approved?: boolean, allowNotification?: boolean, ownerKind?: string, ownerName?: string, subjectKind?: string, subjectName?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5781
+ listComments: (sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME', keyword?: string, hidden?: boolean, top?: boolean, approved?: boolean, allowNotification?: boolean, ownerKind?: string, ownerName?: string, subjectKind?: string, subjectName?: string, sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5623
5782
  };
5624
5783
  /**
5625
5784
  * ApiHaloRunV1alpha1CommentApi - functional programming interface
5626
5785
  * @export
5627
5786
  */
5628
5787
  declare const ApiHaloRunV1alpha1CommentApiFp: (configuration?: Configuration) => {
5788
+ /**
5789
+ * Create a comment.
5790
+ * @param {CommentRequest} commentRequest
5791
+ * @param {*} [options] Override http request option.
5792
+ * @throws {RequiredError}
5793
+ */
5794
+ createComment(commentRequest: CommentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>>;
5795
+ /**
5796
+ * Create a reply.
5797
+ * @param {string} name
5798
+ * @param {ReplyRequest} replyRequest
5799
+ * @param {*} [options] Override http request option.
5800
+ * @throws {RequiredError}
5801
+ */
5802
+ createReply(name: string, replyRequest: ReplyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>>;
5629
5803
  /**
5630
5804
  * List comments.
5631
5805
  * @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
5806
+ * @param {string} [keyword] Comments filtered by keyword.
5632
5807
  * @param {boolean} [hidden] The comment is hidden from the theme side.
5633
5808
  * @param {boolean} [top] Comment top display.
5634
- * @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
5635
5809
  * @param {boolean} [approved] Comments approved.
5636
5810
  * @param {boolean} [allowNotification] Send notifications when there are new replies.
5637
5811
  * @param {string} [ownerKind] Commenter kind.
5638
5812
  * @param {string} [ownerName] Commenter name.
5639
5813
  * @param {string} [subjectKind] Comment subject kind.
5640
5814
  * @param {string} [subjectName] Comment subject name.
5815
+ * @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
5641
5816
  * @param {number} [size] Size of one page. Zero indicates no limit.
5642
5817
  * @param {number} [page] The page number. Zero indicates no page.
5643
5818
  * @param {Array<string>} [labelSelector] Label selector for filtering.
@@ -5645,25 +5820,41 @@ declare const ApiHaloRunV1alpha1CommentApiFp: (configuration?: Configuration) =>
5645
5820
  * @param {*} [options] Override http request option.
5646
5821
  * @throws {RequiredError}
5647
5822
  */
5648
- listComments(sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME', hidden?: boolean, top?: boolean, sortOrder?: boolean, approved?: boolean, allowNotification?: boolean, ownerKind?: string, ownerName?: string, subjectKind?: string, subjectName?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedCommentList>>;
5823
+ listComments(sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME', keyword?: string, hidden?: boolean, top?: boolean, approved?: boolean, allowNotification?: boolean, ownerKind?: string, ownerName?: string, subjectKind?: string, subjectName?: string, sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedCommentList>>;
5649
5824
  };
5650
5825
  /**
5651
5826
  * ApiHaloRunV1alpha1CommentApi - factory interface
5652
5827
  * @export
5653
5828
  */
5654
5829
  declare const ApiHaloRunV1alpha1CommentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5830
+ /**
5831
+ * Create a comment.
5832
+ * @param {CommentRequest} commentRequest
5833
+ * @param {*} [options] Override http request option.
5834
+ * @throws {RequiredError}
5835
+ */
5836
+ createComment(commentRequest: CommentRequest, options?: any): AxiosPromise<Comment>;
5837
+ /**
5838
+ * Create a reply.
5839
+ * @param {string} name
5840
+ * @param {ReplyRequest} replyRequest
5841
+ * @param {*} [options] Override http request option.
5842
+ * @throws {RequiredError}
5843
+ */
5844
+ createReply(name: string, replyRequest: ReplyRequest, options?: any): AxiosPromise<Reply>;
5655
5845
  /**
5656
5846
  * List comments.
5657
5847
  * @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
5848
+ * @param {string} [keyword] Comments filtered by keyword.
5658
5849
  * @param {boolean} [hidden] The comment is hidden from the theme side.
5659
5850
  * @param {boolean} [top] Comment top display.
5660
- * @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
5661
5851
  * @param {boolean} [approved] Comments approved.
5662
5852
  * @param {boolean} [allowNotification] Send notifications when there are new replies.
5663
5853
  * @param {string} [ownerKind] Commenter kind.
5664
5854
  * @param {string} [ownerName] Commenter name.
5665
5855
  * @param {string} [subjectKind] Comment subject kind.
5666
5856
  * @param {string} [subjectName] Comment subject name.
5857
+ * @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
5667
5858
  * @param {number} [size] Size of one page. Zero indicates no limit.
5668
5859
  * @param {number} [page] The page number. Zero indicates no page.
5669
5860
  * @param {Array<string>} [labelSelector] Label selector for filtering.
@@ -5671,8 +5862,40 @@ declare const ApiHaloRunV1alpha1CommentApiFactory: (configuration?: Configuratio
5671
5862
  * @param {*} [options] Override http request option.
5672
5863
  * @throws {RequiredError}
5673
5864
  */
5674
- listComments(sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME', hidden?: boolean, top?: boolean, sortOrder?: boolean, approved?: boolean, allowNotification?: boolean, ownerKind?: string, ownerName?: string, subjectKind?: string, subjectName?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<ListedCommentList>;
5865
+ listComments(sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME', keyword?: string, hidden?: boolean, top?: boolean, approved?: boolean, allowNotification?: boolean, ownerKind?: string, ownerName?: string, subjectKind?: string, subjectName?: string, sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<ListedCommentList>;
5675
5866
  };
5867
+ /**
5868
+ * Request parameters for createComment operation in ApiHaloRunV1alpha1CommentApi.
5869
+ * @export
5870
+ * @interface ApiHaloRunV1alpha1CommentApiCreateCommentRequest
5871
+ */
5872
+ interface ApiHaloRunV1alpha1CommentApiCreateCommentRequest {
5873
+ /**
5874
+ *
5875
+ * @type {CommentRequest}
5876
+ * @memberof ApiHaloRunV1alpha1CommentApiCreateComment
5877
+ */
5878
+ readonly commentRequest: CommentRequest;
5879
+ }
5880
+ /**
5881
+ * Request parameters for createReply operation in ApiHaloRunV1alpha1CommentApi.
5882
+ * @export
5883
+ * @interface ApiHaloRunV1alpha1CommentApiCreateReplyRequest
5884
+ */
5885
+ interface ApiHaloRunV1alpha1CommentApiCreateReplyRequest {
5886
+ /**
5887
+ *
5888
+ * @type {string}
5889
+ * @memberof ApiHaloRunV1alpha1CommentApiCreateReply
5890
+ */
5891
+ readonly name: string;
5892
+ /**
5893
+ *
5894
+ * @type {ReplyRequest}
5895
+ * @memberof ApiHaloRunV1alpha1CommentApiCreateReply
5896
+ */
5897
+ readonly replyRequest: ReplyRequest;
5898
+ }
5676
5899
  /**
5677
5900
  * Request parameters for listComments operation in ApiHaloRunV1alpha1CommentApi.
5678
5901
  * @export
@@ -5685,6 +5908,12 @@ interface ApiHaloRunV1alpha1CommentApiListCommentsRequest {
5685
5908
  * @memberof ApiHaloRunV1alpha1CommentApiListComments
5686
5909
  */
5687
5910
  readonly sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME';
5911
+ /**
5912
+ * Comments filtered by keyword.
5913
+ * @type {string}
5914
+ * @memberof ApiHaloRunV1alpha1CommentApiListComments
5915
+ */
5916
+ readonly keyword?: string;
5688
5917
  /**
5689
5918
  * The comment is hidden from the theme side.
5690
5919
  * @type {boolean}
@@ -5697,12 +5926,6 @@ interface ApiHaloRunV1alpha1CommentApiListCommentsRequest {
5697
5926
  * @memberof ApiHaloRunV1alpha1CommentApiListComments
5698
5927
  */
5699
5928
  readonly top?: boolean;
5700
- /**
5701
- * ascending order If it is true; otherwise, it is in descending order.
5702
- * @type {boolean}
5703
- * @memberof ApiHaloRunV1alpha1CommentApiListComments
5704
- */
5705
- readonly sortOrder?: boolean;
5706
5929
  /**
5707
5930
  * Comments approved.
5708
5931
  * @type {boolean}
@@ -5739,6 +5962,12 @@ interface ApiHaloRunV1alpha1CommentApiListCommentsRequest {
5739
5962
  * @memberof ApiHaloRunV1alpha1CommentApiListComments
5740
5963
  */
5741
5964
  readonly subjectName?: string;
5965
+ /**
5966
+ * ascending order If it is true; otherwise, it is in descending order.
5967
+ * @type {boolean}
5968
+ * @memberof ApiHaloRunV1alpha1CommentApiListComments
5969
+ */
5970
+ readonly sortOrder?: boolean;
5742
5971
  /**
5743
5972
  * Size of one page. Zero indicates no limit.
5744
5973
  * @type {number}
@@ -5771,6 +6000,22 @@ interface ApiHaloRunV1alpha1CommentApiListCommentsRequest {
5771
6000
  * @extends {BaseAPI}
5772
6001
  */
5773
6002
  declare class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
6003
+ /**
6004
+ * Create a comment.
6005
+ * @param {ApiHaloRunV1alpha1CommentApiCreateCommentRequest} requestParameters Request parameters.
6006
+ * @param {*} [options] Override http request option.
6007
+ * @throws {RequiredError}
6008
+ * @memberof ApiHaloRunV1alpha1CommentApi
6009
+ */
6010
+ createComment(requestParameters: ApiHaloRunV1alpha1CommentApiCreateCommentRequest, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<Comment, any>>;
6011
+ /**
6012
+ * Create a reply.
6013
+ * @param {ApiHaloRunV1alpha1CommentApiCreateReplyRequest} requestParameters Request parameters.
6014
+ * @param {*} [options] Override http request option.
6015
+ * @throws {RequiredError}
6016
+ * @memberof ApiHaloRunV1alpha1CommentApi
6017
+ */
6018
+ createReply(requestParameters: ApiHaloRunV1alpha1CommentApiCreateReplyRequest, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<Reply, any>>;
5774
6019
  /**
5775
6020
  * List comments.
5776
6021
  * @param {ApiHaloRunV1alpha1CommentApiListCommentsRequest} requestParameters Request parameters.
@@ -12997,4 +13242,4 @@ declare class V1alpha1UserApi extends BaseAPI {
12997
13242
  updatev1alpha1User(requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest, options?: AxiosRequestConfig): Promise<axios.AxiosResponse<User, any>>;
12998
13243
  }
12999
13244
 
13000
- export { ApiHaloRunV1alpha1CommentApi, ApiHaloRunV1alpha1CommentApiAxiosParamCreator, ApiHaloRunV1alpha1CommentApiFactory, ApiHaloRunV1alpha1CommentApiFp, ApiHaloRunV1alpha1CommentApiListCommentsRequest, ApiHaloRunV1alpha1ContentApi, ApiHaloRunV1alpha1ContentApiAxiosParamCreator, ApiHaloRunV1alpha1ContentApiDraftSnapshotContentRequest, ApiHaloRunV1alpha1ContentApiFactory, ApiHaloRunV1alpha1ContentApiFp, ApiHaloRunV1alpha1ContentApiObtainSnapshotContentRequest, ApiHaloRunV1alpha1ContentApiPublishSnapshotContentRequest, ApiHaloRunV1alpha1ContentApiUpdateSnapshotContentRequest, ApiHaloRunV1alpha1PluginApi, ApiHaloRunV1alpha1PluginApiAxiosParamCreator, ApiHaloRunV1alpha1PluginApiFactory, ApiHaloRunV1alpha1PluginApiFp, ApiHaloRunV1alpha1PluginApiInstallPluginRequest, ApiHaloRunV1alpha1PostApi, ApiHaloRunV1alpha1PostApiAxiosParamCreator, ApiHaloRunV1alpha1PostApiDraftPostRequest, ApiHaloRunV1alpha1PostApiFactory, ApiHaloRunV1alpha1PostApiFp, ApiHaloRunV1alpha1PostApiListPostsRequest, ApiHaloRunV1alpha1PostApiPublishPostRequest, ApiHaloRunV1alpha1PostApiUpdateDraftPostRequest, ApiHaloRunV1alpha1SinglePageApi, ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator, ApiHaloRunV1alpha1SinglePageApiDraftSinglePageRequest, ApiHaloRunV1alpha1SinglePageApiFactory, ApiHaloRunV1alpha1SinglePageApiFp, ApiHaloRunV1alpha1SinglePageApiListSinglePagesRequest, ApiHaloRunV1alpha1SinglePageApiPublishSinglePageRequest, ApiHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest, ApiHaloRunV1alpha1ThemeApi, ApiHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiHaloRunV1alpha1ThemeApiFactory, ApiHaloRunV1alpha1ThemeApiFp, ApiHaloRunV1alpha1ThemeApiInstallThemeRequest, ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiChangePasswordRequest, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ApiHaloRunV1alpha1UserApiGetPermissionsRequest, ApiHaloRunV1alpha1UserApiGrantPermissionRequest, Attachment, AttachmentList, AttachmentSpec, AttachmentStatus, Author, Category, CategoryList, CategorySpec, CategoryStatus, ChangePasswordRequest, Comment, CommentList, CommentOwner, CommentSpec, CommentStatus, Condition, ConditionStatusEnum, ConfigMap, ConfigMapList, Configuration, ConfigurationParameters, Content, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest, ContentRequest, ContentWrapper, Contributor, Excerpt, Extension, FileReverseProxyProvider, GrantRequest, Group, GroupList, GroupSpec, GroupStatus, License, ListedComment, ListedCommentList, ListedPost, ListedPostList, ListedSinglePage, ListedSinglePageList, LoginHistory, Menu, MenuItem, MenuItemList, MenuItemSpec, MenuItemStatus, MenuList, MenuSpec, Metadata, OwnerInfo, PersonalAccessToken, PersonalAccessTokenList, PersonalAccessTokenSpec, Plugin, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest, PluginList, PluginSpec, PluginStatus, PluginStatusPhaseEnum, Policy, PolicyList, PolicyRule, PolicySpec, PolicyTemplate, PolicyTemplateList, PolicyTemplateSpec, Post, PostList, PostRequest, PostSpec, PostSpecVisibleEnum, PostStatus, Ref, Reply, ReplyList, ReplySpec, ReverseProxy, ReverseProxyList, ReverseProxyRule, Role, RoleBinding, RoleBindingList, RoleList, RoleRef, Setting, SettingList, SettingSpec, SinglePage, SinglePageList, SinglePageRequest, SinglePageSpec, SinglePageSpecVisibleEnum, SinglePageStatus, SnapShotSpec, Snapshot, SnapshotList, StorageHaloRunV1alpha1AttachmentApi, StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator, StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiFactory, StorageHaloRunV1alpha1AttachmentApiFp, StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest, StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiUploadAttachmentRequest, StorageHaloRunV1alpha1GroupApi, StorageHaloRunV1alpha1GroupApiAxiosParamCreator, StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiFactory, StorageHaloRunV1alpha1GroupApiFp, StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1PolicyApi, StorageHaloRunV1alpha1PolicyApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiFactory, StorageHaloRunV1alpha1PolicyApiFp, StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyTemplateApi, StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiFactory, StorageHaloRunV1alpha1PolicyTemplateApiFp, StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest, Subject, SubjectRef, Tag, TagList, TagSpec, TagStatus, Theme, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest, ThemeList, ThemeSpec, User, UserList, UserPermission, UserSpec, UserStatus, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest, V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest, V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest, V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest, V1alpha1MenuApi, V1alpha1MenuApiAxiosParamCreator, V1alpha1MenuApiCreatev1alpha1MenuRequest, V1alpha1MenuApiDeletev1alpha1MenuRequest, V1alpha1MenuApiFactory, V1alpha1MenuApiFp, V1alpha1MenuApiGetv1alpha1MenuRequest, V1alpha1MenuApiListv1alpha1MenuRequest, V1alpha1MenuApiUpdatev1alpha1MenuRequest, V1alpha1MenuItemApi, V1alpha1MenuItemApiAxiosParamCreator, V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest, V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest, V1alpha1MenuItemApiFactory, V1alpha1MenuItemApiFp, V1alpha1MenuItemApiGetv1alpha1MenuItemRequest, V1alpha1MenuItemApiListv1alpha1MenuItemRequest, V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiCreatev1alpha1RoleRequest, V1alpha1RoleApiDeletev1alpha1RoleRequest, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleApiGetv1alpha1RoleRequest, V1alpha1RoleApiListv1alpha1RoleRequest, V1alpha1RoleApiUpdatev1alpha1RoleRequest, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest, V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest, V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest, V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiCreatev1alpha1SettingRequest, V1alpha1SettingApiDeletev1alpha1SettingRequest, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1SettingApiGetv1alpha1SettingRequest, V1alpha1SettingApiListv1alpha1SettingRequest, V1alpha1SettingApiUpdatev1alpha1SettingRequest, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiCreatev1alpha1UserRequest, V1alpha1UserApiDeletev1alpha1UserRequest, V1alpha1UserApiFactory, V1alpha1UserApiFp, V1alpha1UserApiGetv1alpha1UserRequest, V1alpha1UserApiListv1alpha1UserRequest, V1alpha1UserApiUpdatev1alpha1UserRequest };
13245
+ export { ApiHaloRunV1alpha1CommentApi, ApiHaloRunV1alpha1CommentApiAxiosParamCreator, ApiHaloRunV1alpha1CommentApiCreateCommentRequest, ApiHaloRunV1alpha1CommentApiCreateReplyRequest, ApiHaloRunV1alpha1CommentApiFactory, ApiHaloRunV1alpha1CommentApiFp, ApiHaloRunV1alpha1CommentApiListCommentsRequest, ApiHaloRunV1alpha1ContentApi, ApiHaloRunV1alpha1ContentApiAxiosParamCreator, ApiHaloRunV1alpha1ContentApiDraftSnapshotContentRequest, ApiHaloRunV1alpha1ContentApiFactory, ApiHaloRunV1alpha1ContentApiFp, ApiHaloRunV1alpha1ContentApiObtainSnapshotContentRequest, ApiHaloRunV1alpha1ContentApiPublishSnapshotContentRequest, ApiHaloRunV1alpha1ContentApiUpdateSnapshotContentRequest, ApiHaloRunV1alpha1PluginApi, ApiHaloRunV1alpha1PluginApiAxiosParamCreator, ApiHaloRunV1alpha1PluginApiFactory, ApiHaloRunV1alpha1PluginApiFp, ApiHaloRunV1alpha1PluginApiInstallPluginRequest, ApiHaloRunV1alpha1PostApi, ApiHaloRunV1alpha1PostApiAxiosParamCreator, ApiHaloRunV1alpha1PostApiDraftPostRequest, ApiHaloRunV1alpha1PostApiFactory, ApiHaloRunV1alpha1PostApiFp, ApiHaloRunV1alpha1PostApiListPostsRequest, ApiHaloRunV1alpha1PostApiPublishPostRequest, ApiHaloRunV1alpha1PostApiUpdateDraftPostRequest, ApiHaloRunV1alpha1SinglePageApi, ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator, ApiHaloRunV1alpha1SinglePageApiDraftSinglePageRequest, ApiHaloRunV1alpha1SinglePageApiFactory, ApiHaloRunV1alpha1SinglePageApiFp, ApiHaloRunV1alpha1SinglePageApiListSinglePagesRequest, ApiHaloRunV1alpha1SinglePageApiPublishSinglePageRequest, ApiHaloRunV1alpha1SinglePageApiUpdateDraftSinglePageRequest, ApiHaloRunV1alpha1ThemeApi, ApiHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiHaloRunV1alpha1ThemeApiFactory, ApiHaloRunV1alpha1ThemeApiFp, ApiHaloRunV1alpha1ThemeApiInstallThemeRequest, ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiChangePasswordRequest, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ApiHaloRunV1alpha1UserApiGetPermissionsRequest, ApiHaloRunV1alpha1UserApiGrantPermissionRequest, Attachment, AttachmentList, AttachmentSpec, AttachmentStatus, Author, Category, CategoryList, CategorySpec, CategoryStatus, ChangePasswordRequest, Comment, CommentEmailOwner, CommentList, CommentOwner, CommentRequest, CommentSpec, CommentStatus, Condition, ConditionStatusEnum, ConfigMap, ConfigMapList, Configuration, ConfigurationParameters, Content, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest, ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest, ContentRequest, ContentWrapper, Contributor, Excerpt, Extension, FileReverseProxyProvider, GrantRequest, Group, GroupList, GroupSpec, GroupStatus, License, ListedComment, ListedCommentList, ListedPost, ListedPostList, ListedSinglePage, ListedSinglePageList, LoginHistory, Menu, MenuItem, MenuItemList, MenuItemSpec, MenuItemStatus, MenuList, MenuSpec, Metadata, OwnerInfo, PersonalAccessToken, PersonalAccessTokenList, PersonalAccessTokenSpec, Plugin, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest, PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest, PluginList, PluginSpec, PluginStatus, PluginStatusPhaseEnum, Policy, PolicyList, PolicyRule, PolicySpec, PolicyTemplate, PolicyTemplateList, PolicyTemplateSpec, Post, PostList, PostRequest, PostSpec, PostSpecVisibleEnum, PostStatus, Ref, Reply, ReplyList, ReplyRequest, ReplySpec, ReverseProxy, ReverseProxyList, ReverseProxyRule, Role, RoleBinding, RoleBindingList, RoleList, RoleRef, Setting, SettingList, SettingSpec, SinglePage, SinglePageList, SinglePageRequest, SinglePageSpec, SinglePageSpecVisibleEnum, SinglePageStatus, SnapShotSpec, Snapshot, SnapshotList, StorageHaloRunV1alpha1AttachmentApi, StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator, StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiFactory, StorageHaloRunV1alpha1AttachmentApiFp, StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest, StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest, StorageHaloRunV1alpha1AttachmentApiUploadAttachmentRequest, StorageHaloRunV1alpha1GroupApi, StorageHaloRunV1alpha1GroupApiAxiosParamCreator, StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiFactory, StorageHaloRunV1alpha1GroupApiFp, StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest, StorageHaloRunV1alpha1PolicyApi, StorageHaloRunV1alpha1PolicyApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiFactory, StorageHaloRunV1alpha1PolicyApiFp, StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest, StorageHaloRunV1alpha1PolicyTemplateApi, StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiFactory, StorageHaloRunV1alpha1PolicyTemplateApiFp, StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest, StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest, Subject, SubjectRef, Tag, TagList, TagSpec, TagStatus, Theme, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest, ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest, ThemeList, ThemeSpec, User, UserList, UserPermission, UserSpec, UserStatus, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest, V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest, V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest, V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest, V1alpha1MenuApi, V1alpha1MenuApiAxiosParamCreator, V1alpha1MenuApiCreatev1alpha1MenuRequest, V1alpha1MenuApiDeletev1alpha1MenuRequest, V1alpha1MenuApiFactory, V1alpha1MenuApiFp, V1alpha1MenuApiGetv1alpha1MenuRequest, V1alpha1MenuApiListv1alpha1MenuRequest, V1alpha1MenuApiUpdatev1alpha1MenuRequest, V1alpha1MenuItemApi, V1alpha1MenuItemApiAxiosParamCreator, V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest, V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest, V1alpha1MenuItemApiFactory, V1alpha1MenuItemApiFp, V1alpha1MenuItemApiGetv1alpha1MenuItemRequest, V1alpha1MenuItemApiListv1alpha1MenuItemRequest, V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest, V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiCreatev1alpha1RoleRequest, V1alpha1RoleApiDeletev1alpha1RoleRequest, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleApiGetv1alpha1RoleRequest, V1alpha1RoleApiListv1alpha1RoleRequest, V1alpha1RoleApiUpdatev1alpha1RoleRequest, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest, V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest, V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest, V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiCreatev1alpha1SettingRequest, V1alpha1SettingApiDeletev1alpha1SettingRequest, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1SettingApiGetv1alpha1SettingRequest, V1alpha1SettingApiListv1alpha1SettingRequest, V1alpha1SettingApiUpdatev1alpha1SettingRequest, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiCreatev1alpha1UserRequest, V1alpha1UserApiDeletev1alpha1UserRequest, V1alpha1UserApiFactory, V1alpha1UserApiFp, V1alpha1UserApiGetv1alpha1UserRequest, V1alpha1UserApiListv1alpha1UserRequest, V1alpha1UserApiUpdatev1alpha1UserRequest };
package/dist/index.mjs CHANGED
@@ -69,7 +69,54 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
69
69
 
70
70
  const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
71
71
  return {
72
- listComments: async (sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
72
+ createComment: async (commentRequest, options = {}) => {
73
+ assertParamExists("createComment", "commentRequest", commentRequest);
74
+ const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
75
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
76
+ let baseOptions;
77
+ if (configuration) {
78
+ baseOptions = configuration.baseOptions;
79
+ }
80
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
81
+ const localVarHeaderParameter = {};
82
+ const localVarQueryParameter = {};
83
+ setBasicAuthToObject(localVarRequestOptions, configuration);
84
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
85
+ localVarHeaderParameter["Content-Type"] = "application/json";
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
89
+ localVarRequestOptions.data = serializeDataIfNeeded(commentRequest, localVarRequestOptions, configuration);
90
+ return {
91
+ url: toPathString(localVarUrlObj),
92
+ options: localVarRequestOptions
93
+ };
94
+ },
95
+ createReply: async (name, replyRequest, options = {}) => {
96
+ assertParamExists("createReply", "name", name);
97
+ assertParamExists("createReply", "replyRequest", replyRequest);
98
+ const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
99
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
100
+ let baseOptions;
101
+ if (configuration) {
102
+ baseOptions = configuration.baseOptions;
103
+ }
104
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
105
+ const localVarHeaderParameter = {};
106
+ const localVarQueryParameter = {};
107
+ setBasicAuthToObject(localVarRequestOptions, configuration);
108
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
109
+ localVarHeaderParameter["Content-Type"] = "application/json";
110
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
113
+ localVarRequestOptions.data = serializeDataIfNeeded(replyRequest, localVarRequestOptions, configuration);
114
+ return {
115
+ url: toPathString(localVarUrlObj),
116
+ options: localVarRequestOptions
117
+ };
118
+ },
119
+ listComments: async (sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
73
120
  const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
74
121
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
122
  let baseOptions;
@@ -84,15 +131,15 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
84
131
  if (sort !== void 0) {
85
132
  localVarQueryParameter["sort"] = sort;
86
133
  }
134
+ if (keyword !== void 0) {
135
+ localVarQueryParameter["keyword"] = keyword;
136
+ }
87
137
  if (hidden !== void 0) {
88
138
  localVarQueryParameter["hidden"] = hidden;
89
139
  }
90
140
  if (top !== void 0) {
91
141
  localVarQueryParameter["top"] = top;
92
142
  }
93
- if (sortOrder !== void 0) {
94
- localVarQueryParameter["sortOrder"] = sortOrder;
95
- }
96
143
  if (approved !== void 0) {
97
144
  localVarQueryParameter["approved"] = approved;
98
145
  }
@@ -111,6 +158,9 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
111
158
  if (subjectName !== void 0) {
112
159
  localVarQueryParameter["subjectName"] = subjectName;
113
160
  }
161
+ if (sortOrder !== void 0) {
162
+ localVarQueryParameter["sortOrder"] = sortOrder;
163
+ }
114
164
  if (size !== void 0) {
115
165
  localVarQueryParameter["size"] = size;
116
166
  }
@@ -136,8 +186,16 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
136
186
  const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
137
187
  const localVarAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
138
188
  return {
139
- async listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
140
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
189
+ async createComment(commentRequest, options) {
190
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createComment(commentRequest, options);
191
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
192
+ },
193
+ async createReply(name, replyRequest, options) {
194
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
195
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
196
+ },
197
+ async listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options) {
198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options);
141
199
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
142
200
  }
143
201
  };
@@ -145,14 +203,26 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
145
203
  const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
146
204
  const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
147
205
  return {
148
- listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
149
- return localVarFp.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
206
+ createComment(commentRequest, options) {
207
+ return localVarFp.createComment(commentRequest, options).then((request) => request(axios, basePath));
208
+ },
209
+ createReply(name, replyRequest, options) {
210
+ return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
211
+ },
212
+ listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options) {
213
+ return localVarFp.listComments(sort, keyword, hidden, top, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
150
214
  }
151
215
  };
152
216
  };
153
217
  class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
218
+ createComment(requestParameters, options) {
219
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createComment(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath));
220
+ }
221
+ createReply(requestParameters, options) {
222
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
223
+ }
154
224
  listComments(requestParameters = {}, options) {
155
- return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, 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));
225
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
156
226
  }
157
227
  }
158
228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halo-dev/api-client",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "@halo-dev",