@halo-dev/api-client 2.16.0 → 2.18.0

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.
Files changed (340) hide show
  1. package/README.md +56 -11
  2. package/dist/entry/api-client.d.ts +348 -0
  3. package/dist/entry/index.d.ts +2 -0
  4. package/dist/halo-api-client.es.js +20971 -0
  5. package/dist/halo-api-client.es.js.map +1 -0
  6. package/dist/halo-api-client.iife.js +2 -0
  7. package/dist/halo-api-client.iife.js.map +1 -0
  8. package/dist/src/api/annotation-setting-v1alpha1-api.d.ts +331 -0
  9. package/dist/src/api/api-notification-halo-run-v1alpha1-subscription-api.d.ts +80 -0
  10. package/dist/src/api/attachment-v1alpha1-api.d.ts +331 -0
  11. package/dist/src/api/attachment-v1alpha1-console-api.d.ts +187 -0
  12. package/dist/src/api/attachment-v1alpha1-uc-api.d.ts +97 -0
  13. package/dist/src/api/auth-provider-v1alpha1-api.d.ts +331 -0
  14. package/dist/src/api/auth-provider-v1alpha1-console-api.d.ts +140 -0
  15. package/dist/src/api/backup-v1alpha1-api.d.ts +331 -0
  16. package/dist/src/api/category-v1alpha1-api.d.ts +331 -0
  17. package/dist/src/api/category-v1alpha1-public-api.d.ts +229 -0
  18. package/dist/src/api/comment-v1alpha1-api.d.ts +331 -0
  19. package/dist/src/api/comment-v1alpha1-console-api.d.ts +221 -0
  20. package/dist/src/api/comment-v1alpha1-public-api.d.ts +329 -0
  21. package/dist/src/api/config-map-v1alpha1-api.d.ts +331 -0
  22. package/dist/src/api/counter-v1alpha1-api.d.ts +331 -0
  23. package/dist/src/api/device-v1alpha1-api.d.ts +331 -0
  24. package/dist/src/api/device-v1alpha1-uc-api.d.ts +98 -0
  25. package/dist/src/api/extension-definition-v1alpha1-api.d.ts +331 -0
  26. package/dist/src/api/extension-point-definition-v1alpha1-api.d.ts +331 -0
  27. package/dist/src/api/group-v1alpha1-api.d.ts +331 -0
  28. package/dist/src/api/index-v1alpha1-public-api.d.ts +143 -0
  29. package/dist/src/api/indices-v1alpha1-console-api.d.ts +84 -0
  30. package/dist/src/api/login-api.d.ts +56 -0
  31. package/dist/src/api/menu-item-v1alpha1-api.d.ts +331 -0
  32. package/dist/src/api/menu-v1alpha1-api.d.ts +331 -0
  33. package/dist/src/api/menu-v1alpha1-public-api.d.ts +98 -0
  34. package/dist/src/api/metrics-v1alpha1-public-api.d.ts +157 -0
  35. package/dist/src/api/migration-v1alpha1-console-api.d.ts +138 -0
  36. package/dist/src/api/notification-template-v1alpha1-api.d.ts +331 -0
  37. package/dist/src/api/notification-v1alpha1-api.d.ts +331 -0
  38. package/dist/src/api/notification-v1alpha1-uc-api.d.ts +363 -0
  39. package/dist/src/api/notifier-descriptor-v1alpha1-api.d.ts +331 -0
  40. package/dist/src/api/notifier-v1alpha1-console-api.d.ts +165 -0
  41. package/dist/src/api/notifier-v1alpha1-uc-api.d.ts +122 -0
  42. package/dist/src/api/personal-access-token-v1alpha1-api.d.ts +331 -0
  43. package/dist/src/api/personal-access-token-v1alpha1-uc-api.d.ts +266 -0
  44. package/dist/src/api/plugin-v1alpha1-api.d.ts +331 -0
  45. package/dist/src/api/plugin-v1alpha1-console-api.d.ts +698 -0
  46. package/dist/src/api/plugin-v1alpha1-public-api.d.ts +72 -0
  47. package/dist/src/api/policy-template-v1alpha1-api.d.ts +331 -0
  48. package/dist/src/api/policy-v1alpha1-api.d.ts +331 -0
  49. package/dist/src/api/post-v1alpha1-api.d.ts +331 -0
  50. package/dist/src/api/post-v1alpha1-console-api.d.ts +699 -0
  51. package/dist/src/api/post-v1alpha1-public-api.d.ts +189 -0
  52. package/dist/src/api/post-v1alpha1-uc-api.d.ts +457 -0
  53. package/dist/src/api/reason-type-v1alpha1-api.d.ts +331 -0
  54. package/dist/src/api/reason-v1alpha1-api.d.ts +331 -0
  55. package/dist/src/api/remember-me-token-v1alpha1-api.d.ts +331 -0
  56. package/dist/src/api/reply-v1alpha1-api.d.ts +331 -0
  57. package/dist/src/api/reply-v1alpha1-console-api.d.ts +113 -0
  58. package/dist/src/api/reverse-proxy-v1alpha1-api.d.ts +331 -0
  59. package/dist/src/api/role-binding-v1alpha1-api.d.ts +331 -0
  60. package/dist/src/api/role-v1alpha1-api.d.ts +331 -0
  61. package/dist/src/api/search-engine-v1alpha1-api.d.ts +331 -0
  62. package/dist/src/api/secret-v1alpha1-api.d.ts +331 -0
  63. package/dist/src/api/setting-v1alpha1-api.d.ts +331 -0
  64. package/dist/src/api/single-page-v1alpha1-api.d.ts +331 -0
  65. package/dist/src/api/single-page-v1alpha1-console-api.d.ts +616 -0
  66. package/dist/src/api/single-page-v1alpha1-public-api.d.ts +147 -0
  67. package/dist/src/api/snapshot-v1alpha1-api.d.ts +331 -0
  68. package/dist/src/api/snapshot-v1alpha1-uc-api.d.ts +89 -0
  69. package/dist/src/api/subscription-v1alpha1-api.d.ts +331 -0
  70. package/dist/src/api/system-v1alpha1-console-api.d.ts +98 -0
  71. package/dist/src/api/system-v1alpha1-public-api.d.ts +56 -0
  72. package/dist/src/api/tag-v1alpha1-api.d.ts +331 -0
  73. package/dist/src/api/tag-v1alpha1-console-api.d.ts +113 -0
  74. package/dist/src/api/tag-v1alpha1-public-api.d.ts +229 -0
  75. package/dist/src/api/theme-v1alpha1-api.d.ts +331 -0
  76. package/dist/src/api/theme-v1alpha1-console-api.d.ts +599 -0
  77. package/dist/src/api/two-factor-auth-v1alpha1-uc-api.d.ts +249 -0
  78. package/dist/src/api/user-connection-v1alpha1-api.d.ts +331 -0
  79. package/dist/src/api/user-v1alpha1-api.d.ts +331 -0
  80. package/dist/src/api/user-v1alpha1-console-api.d.ts +632 -0
  81. package/dist/src/api/user-v1alpha1-public-api.d.ts +207 -0
  82. package/dist/src/api.d.ts +85 -0
  83. package/dist/src/base.d.ts +56 -0
  84. package/dist/src/common.d.ts +55 -0
  85. package/dist/src/configuration.d.ts +91 -0
  86. package/dist/src/index.d.ts +14 -0
  87. package/dist/src/models/add-operation.d.ts +40 -0
  88. package/dist/src/models/annotation-setting-list.d.ts +63 -0
  89. package/dist/src/models/annotation-setting-spec.d.ts +21 -0
  90. package/dist/src/models/annotation-setting.d.ts +34 -0
  91. package/dist/src/models/attachment-list.d.ts +63 -0
  92. package/dist/src/models/attachment-spec.d.ts +60 -0
  93. package/dist/src/models/attachment-status.d.ts +24 -0
  94. package/dist/src/models/attachment.d.ts +41 -0
  95. package/dist/src/models/auth-provider-list.d.ts +63 -0
  96. package/dist/src/models/auth-provider-spec.d.ts +76 -0
  97. package/dist/src/models/auth-provider.d.ts +34 -0
  98. package/dist/src/models/author.d.ts +30 -0
  99. package/dist/src/models/backup-list.d.ts +63 -0
  100. package/dist/src/models/backup-spec.d.ts +30 -0
  101. package/dist/src/models/backup-status.d.ts +67 -0
  102. package/dist/src/models/backup.d.ts +41 -0
  103. package/dist/src/models/category-list.d.ts +63 -0
  104. package/dist/src/models/category-spec.d.ts +78 -0
  105. package/dist/src/models/category-status.d.ts +36 -0
  106. package/dist/src/models/category-vo-list.d.ts +63 -0
  107. package/dist/src/models/category-vo.d.ts +35 -0
  108. package/dist/src/models/category.d.ts +41 -0
  109. package/dist/src/models/change-own-password-request.d.ts +30 -0
  110. package/dist/src/models/change-password-request.d.ts +24 -0
  111. package/dist/src/models/comment-email-owner.d.ts +42 -0
  112. package/dist/src/models/comment-list.d.ts +63 -0
  113. package/dist/src/models/comment-owner.d.ts +44 -0
  114. package/dist/src/models/comment-request.d.ts +40 -0
  115. package/dist/src/models/comment-spec.d.ts +94 -0
  116. package/dist/src/models/comment-stats-vo.d.ts +24 -0
  117. package/dist/src/models/comment-stats.d.ts +24 -0
  118. package/dist/src/models/comment-status.d.ts +54 -0
  119. package/dist/src/models/comment-vo-list.d.ts +63 -0
  120. package/dist/src/models/comment-vo.d.ts +43 -0
  121. package/dist/src/models/comment-with-reply-vo-list.d.ts +63 -0
  122. package/dist/src/models/comment-with-reply-vo.d.ts +50 -0
  123. package/dist/src/models/comment.d.ts +41 -0
  124. package/dist/src/models/condition.d.ts +54 -0
  125. package/dist/src/models/config-map-list.d.ts +63 -0
  126. package/dist/src/models/config-map-ref.d.ts +24 -0
  127. package/dist/src/models/config-map.d.ts +35 -0
  128. package/dist/src/models/content-update-param.d.ts +42 -0
  129. package/dist/src/models/content-vo.d.ts +30 -0
  130. package/dist/src/models/content-wrapper.d.ts +42 -0
  131. package/dist/src/models/content.d.ts +36 -0
  132. package/dist/src/models/contributor-vo.d.ts +45 -0
  133. package/dist/src/models/contributor.d.ts +36 -0
  134. package/dist/src/models/copy-operation.d.ts +40 -0
  135. package/dist/src/models/counter-list.d.ts +63 -0
  136. package/dist/src/models/counter-request.d.ts +60 -0
  137. package/dist/src/models/counter.d.ts +57 -0
  138. package/dist/src/models/create-user-request.d.ts +74 -0
  139. package/dist/src/models/custom-templates.d.ts +27 -0
  140. package/dist/src/models/dashboard-stats.d.ts +54 -0
  141. package/dist/src/models/detailed-user.d.ts +22 -0
  142. package/dist/src/models/device-list.d.ts +63 -0
  143. package/dist/src/models/device-spec.d.ts +60 -0
  144. package/dist/src/models/device-status.d.ts +30 -0
  145. package/dist/src/models/device.d.ts +41 -0
  146. package/dist/src/models/email-config-validation-request.d.ts +66 -0
  147. package/dist/src/models/email-verify-request.d.ts +24 -0
  148. package/dist/src/models/excerpt.d.ts +30 -0
  149. package/dist/src/models/extension-definition-list.d.ts +63 -0
  150. package/dist/src/models/extension-definition.d.ts +34 -0
  151. package/dist/src/models/extension-point-definition-list.d.ts +63 -0
  152. package/dist/src/models/extension-point-definition.d.ts +34 -0
  153. package/dist/src/models/extension-point-spec.d.ts +53 -0
  154. package/dist/src/models/extension-spec.d.ts +48 -0
  155. package/dist/src/models/extension.d.ts +27 -0
  156. package/dist/src/models/file-reverse-proxy-provider.d.ts +30 -0
  157. package/dist/src/models/grant-request.d.ts +24 -0
  158. package/dist/src/models/group-kind.d.ts +30 -0
  159. package/dist/src/models/group-list.d.ts +63 -0
  160. package/dist/src/models/group-spec.d.ts +24 -0
  161. package/dist/src/models/group-status.d.ts +30 -0
  162. package/dist/src/models/group.d.ts +41 -0
  163. package/dist/src/models/halo-document.d.ts +116 -0
  164. package/dist/src/models/index.d.ts +249 -0
  165. package/dist/src/models/install-from-uri-request.d.ts +24 -0
  166. package/dist/src/models/interest-reason-subject.d.ts +36 -0
  167. package/dist/src/models/interest-reason.d.ts +27 -0
  168. package/dist/src/models/json-patch-inner.d.ts +12 -0
  169. package/dist/src/models/license.d.ts +30 -0
  170. package/dist/src/models/list-result-reply-vo.d.ts +63 -0
  171. package/dist/src/models/listed-auth-provider.d.ts +96 -0
  172. package/dist/src/models/listed-comment-list.d.ts +63 -0
  173. package/dist/src/models/listed-comment.d.ts +36 -0
  174. package/dist/src/models/listed-post-list.d.ts +63 -0
  175. package/dist/src/models/listed-post-vo-list.d.ts +63 -0
  176. package/dist/src/models/listed-post-vo.d.ts +63 -0
  177. package/dist/src/models/listed-post.d.ts +49 -0
  178. package/dist/src/models/listed-reply-list.d.ts +63 -0
  179. package/dist/src/models/listed-reply.d.ts +29 -0
  180. package/dist/src/models/listed-single-page-list.d.ts +63 -0
  181. package/dist/src/models/listed-single-page-vo-list.d.ts +63 -0
  182. package/dist/src/models/listed-single-page-vo.d.ts +49 -0
  183. package/dist/src/models/listed-single-page.d.ts +35 -0
  184. package/dist/src/models/listed-snapshot-dto.d.ts +22 -0
  185. package/dist/src/models/listed-snapshot-spec.d.ts +30 -0
  186. package/dist/src/models/listed-user.d.ts +22 -0
  187. package/dist/src/models/login-history.d.ts +48 -0
  188. package/dist/src/models/mark-specified-request.d.ts +24 -0
  189. package/dist/src/models/menu-item-list.d.ts +63 -0
  190. package/dist/src/models/menu-item-spec.d.ts +52 -0
  191. package/dist/src/models/menu-item-status.d.ts +30 -0
  192. package/dist/src/models/menu-item-vo.d.ts +41 -0
  193. package/dist/src/models/menu-item.d.ts +41 -0
  194. package/dist/src/models/menu-list.d.ts +63 -0
  195. package/dist/src/models/menu-spec.d.ts +30 -0
  196. package/dist/src/models/menu-vo.d.ts +29 -0
  197. package/dist/src/models/menu.d.ts +34 -0
  198. package/dist/src/models/metadata.d.ts +70 -0
  199. package/dist/src/models/move-operation.d.ts +40 -0
  200. package/dist/src/models/navigation-post-vo.d.ts +27 -0
  201. package/dist/src/models/notification-list.d.ts +63 -0
  202. package/dist/src/models/notification-spec.d.ts +60 -0
  203. package/dist/src/models/notification-template-list.d.ts +63 -0
  204. package/dist/src/models/notification-template-spec.d.ts +22 -0
  205. package/dist/src/models/notification-template.d.ts +34 -0
  206. package/dist/src/models/notification.d.ts +34 -0
  207. package/dist/src/models/notifier-descriptor-list.d.ts +63 -0
  208. package/dist/src/models/notifier-descriptor-spec.d.ts +39 -0
  209. package/dist/src/models/notifier-descriptor.d.ts +34 -0
  210. package/dist/src/models/notifier-info.d.ts +36 -0
  211. package/dist/src/models/notifier-setting-ref.d.ts +30 -0
  212. package/dist/src/models/owner-info.d.ts +48 -0
  213. package/dist/src/models/password-request.d.ts +24 -0
  214. package/dist/src/models/password-reset-email-request.d.ts +30 -0
  215. package/dist/src/models/pat-spec.d.ts +78 -0
  216. package/dist/src/models/personal-access-token-list.d.ts +63 -0
  217. package/dist/src/models/personal-access-token.d.ts +34 -0
  218. package/dist/src/models/plugin-author.d.ts +30 -0
  219. package/dist/src/models/plugin-list.d.ts +63 -0
  220. package/dist/src/models/plugin-running-state-request.d.ts +30 -0
  221. package/dist/src/models/plugin-spec.d.ts +103 -0
  222. package/dist/src/models/plugin-status.d.ts +80 -0
  223. package/dist/src/models/plugin.d.ts +41 -0
  224. package/dist/src/models/policy-list.d.ts +63 -0
  225. package/dist/src/models/policy-rule.d.ts +48 -0
  226. package/dist/src/models/policy-spec.d.ts +36 -0
  227. package/dist/src/models/policy-template-list.d.ts +63 -0
  228. package/dist/src/models/policy-template-spec.d.ts +30 -0
  229. package/dist/src/models/policy-template.d.ts +34 -0
  230. package/dist/src/models/policy.d.ts +34 -0
  231. package/dist/src/models/post-list.d.ts +63 -0
  232. package/dist/src/models/post-request.d.ts +22 -0
  233. package/dist/src/models/post-spec.d.ts +131 -0
  234. package/dist/src/models/post-status.d.ts +69 -0
  235. package/dist/src/models/post-vo.d.ts +70 -0
  236. package/dist/src/models/post.d.ts +41 -0
  237. package/dist/src/models/public-key-response.d.ts +24 -0
  238. package/dist/src/models/reason-attributes.d.ts +24 -0
  239. package/dist/src/models/reason-list.d.ts +63 -0
  240. package/dist/src/models/reason-property.d.ts +42 -0
  241. package/dist/src/models/reason-selector.d.ts +30 -0
  242. package/dist/src/models/reason-spec.d.ts +34 -0
  243. package/dist/src/models/reason-subject.d.ts +48 -0
  244. package/dist/src/models/reason-type-info.d.ts +42 -0
  245. package/dist/src/models/reason-type-list.d.ts +63 -0
  246. package/dist/src/models/reason-type-notifier-collection-request.d.ts +15 -0
  247. package/dist/src/models/reason-type-notifier-matrix.d.ts +28 -0
  248. package/dist/src/models/reason-type-notifier-request.d.ts +30 -0
  249. package/dist/src/models/reason-type-spec.d.ts +27 -0
  250. package/dist/src/models/reason-type.d.ts +34 -0
  251. package/dist/src/models/reason.d.ts +34 -0
  252. package/dist/src/models/ref.d.ts +42 -0
  253. package/dist/src/models/register-verify-email-request.d.ts +24 -0
  254. package/dist/src/models/remember-me-token-list.d.ts +63 -0
  255. package/dist/src/models/remember-me-token-spec.d.ts +42 -0
  256. package/dist/src/models/remember-me-token.d.ts +34 -0
  257. package/dist/src/models/remove-operation.d.ts +34 -0
  258. package/dist/src/models/replace-operation.d.ts +40 -0
  259. package/dist/src/models/reply-list.d.ts +63 -0
  260. package/dist/src/models/reply-request.d.ts +39 -0
  261. package/dist/src/models/reply-spec.d.ts +93 -0
  262. package/dist/src/models/reply-status.d.ts +24 -0
  263. package/dist/src/models/reply-vo-list.d.ts +63 -0
  264. package/dist/src/models/reply-vo.d.ts +36 -0
  265. package/dist/src/models/reply.d.ts +41 -0
  266. package/dist/src/models/reset-password-request.d.ts +30 -0
  267. package/dist/src/models/reverse-proxy-list.d.ts +63 -0
  268. package/dist/src/models/reverse-proxy-rule.d.ts +21 -0
  269. package/dist/src/models/reverse-proxy.d.ts +34 -0
  270. package/dist/src/models/revert-snapshot-for-post-param.d.ts +24 -0
  271. package/dist/src/models/revert-snapshot-for-single-param.d.ts +24 -0
  272. package/dist/src/models/role-binding-list.d.ts +63 -0
  273. package/dist/src/models/role-binding.d.ts +41 -0
  274. package/dist/src/models/role-list.d.ts +63 -0
  275. package/dist/src/models/role-ref.d.ts +36 -0
  276. package/dist/src/models/role.d.ts +34 -0
  277. package/dist/src/models/search-engine-list.d.ts +63 -0
  278. package/dist/src/models/search-engine-spec.d.ts +45 -0
  279. package/dist/src/models/search-engine.d.ts +34 -0
  280. package/dist/src/models/search-option.d.ts +92 -0
  281. package/dist/src/models/search-result.d.ts +39 -0
  282. package/dist/src/models/secret-list.d.ts +63 -0
  283. package/dist/src/models/secret.d.ts +49 -0
  284. package/dist/src/models/setting-form.d.ts +36 -0
  285. package/dist/src/models/setting-list.d.ts +63 -0
  286. package/dist/src/models/setting-ref.d.ts +30 -0
  287. package/dist/src/models/setting-spec.d.ts +15 -0
  288. package/dist/src/models/setting.d.ts +34 -0
  289. package/dist/src/models/sign-up-request.d.ts +27 -0
  290. package/dist/src/models/single-page-list.d.ts +63 -0
  291. package/dist/src/models/single-page-request.d.ts +22 -0
  292. package/dist/src/models/single-page-spec.d.ts +119 -0
  293. package/dist/src/models/single-page-status.d.ts +69 -0
  294. package/dist/src/models/single-page-vo.d.ts +56 -0
  295. package/dist/src/models/single-page.d.ts +41 -0
  296. package/dist/src/models/site-stats-vo.d.ts +48 -0
  297. package/dist/src/models/snap-shot-spec.d.ts +57 -0
  298. package/dist/src/models/snapshot-list.d.ts +63 -0
  299. package/dist/src/models/snapshot.d.ts +34 -0
  300. package/dist/src/models/stats-vo.d.ts +36 -0
  301. package/dist/src/models/stats.d.ts +42 -0
  302. package/dist/src/models/subject.d.ts +36 -0
  303. package/dist/src/models/subscription-list.d.ts +63 -0
  304. package/dist/src/models/subscription-spec.d.ts +34 -0
  305. package/dist/src/models/subscription-subscriber.d.ts +24 -0
  306. package/dist/src/models/subscription.d.ts +34 -0
  307. package/dist/src/models/system-initialization-request.d.ts +42 -0
  308. package/dist/src/models/tag-list.d.ts +63 -0
  309. package/dist/src/models/tag-spec.d.ts +42 -0
  310. package/dist/src/models/tag-status.d.ts +42 -0
  311. package/dist/src/models/tag-vo-list.d.ts +63 -0
  312. package/dist/src/models/tag-vo.d.ts +35 -0
  313. package/dist/src/models/tag.d.ts +41 -0
  314. package/dist/src/models/template-content.d.ts +36 -0
  315. package/dist/src/models/template-descriptor.d.ts +42 -0
  316. package/dist/src/models/test-operation.d.ts +40 -0
  317. package/dist/src/models/theme-list.d.ts +63 -0
  318. package/dist/src/models/theme-spec.d.ts +103 -0
  319. package/dist/src/models/theme-status.d.ts +33 -0
  320. package/dist/src/models/theme.d.ts +41 -0
  321. package/dist/src/models/totp-auth-link-response.d.ts +30 -0
  322. package/dist/src/models/totp-request.d.ts +36 -0
  323. package/dist/src/models/two-factor-auth-settings.d.ts +42 -0
  324. package/dist/src/models/upgrade-from-uri-request.d.ts +24 -0
  325. package/dist/src/models/user-connection-list.d.ts +63 -0
  326. package/dist/src/models/user-connection-spec.d.ts +78 -0
  327. package/dist/src/models/user-connection.d.ts +34 -0
  328. package/dist/src/models/user-device.d.ts +27 -0
  329. package/dist/src/models/user-endpoint-listed-user-list.d.ts +63 -0
  330. package/dist/src/models/user-list.d.ts +63 -0
  331. package/dist/src/models/user-permission.d.ts +27 -0
  332. package/dist/src/models/user-spec.d.ts +90 -0
  333. package/dist/src/models/user-status.d.ts +27 -0
  334. package/dist/src/models/user.d.ts +41 -0
  335. package/dist/src/models/verify-code-request.d.ts +30 -0
  336. package/dist/src/models/vote-request.d.ts +36 -0
  337. package/package.json +28 -30
  338. package/dist/index.cjs +0 -13783
  339. package/dist/index.d.ts +0 -30557
  340. package/dist/index.mjs +0 -13464
@@ -0,0 +1,189 @@
1
+ import { Configuration } from '../configuration';
2
+ import { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
3
+ import { RequestArgs, BaseAPI } from '../base';
4
+ import { ListedPostVoList, NavigationPostVo, PostVo } from '../models';
5
+
6
+ /**
7
+ * PostV1alpha1PublicApi - axios parameter creator
8
+ * @export
9
+ */
10
+ export declare const PostV1alpha1PublicApiAxiosParamCreator: (configuration?: Configuration) => {
11
+ /**
12
+ * Gets a post by name.
13
+ * @param {string} name Post name
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ queryPostByName: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18
+ /**
19
+ * Gets a post navigation by name.
20
+ * @param {string} name Post name
21
+ * @param {*} [options] Override http request option.
22
+ * @throws {RequiredError}
23
+ */
24
+ queryPostNavigationByName: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25
+ /**
26
+ * Lists posts.
27
+ * @param {number} [page] Page number. Default is 0.
28
+ * @param {number} [size] Size number. Default is 0.
29
+ * @param {Array<string>} [labelSelector] Label selector. e.g.: hidden!&#x3D;true
30
+ * @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
31
+ * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ queryPosts: (page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
+ };
37
+ /**
38
+ * PostV1alpha1PublicApi - functional programming interface
39
+ * @export
40
+ */
41
+ export declare const PostV1alpha1PublicApiFp: (configuration?: Configuration) => {
42
+ /**
43
+ * Gets a post by name.
44
+ * @param {string} name Post name
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ queryPostByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostVo>>;
49
+ /**
50
+ * Gets a post navigation by name.
51
+ * @param {string} name Post name
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ queryPostNavigationByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NavigationPostVo>>;
56
+ /**
57
+ * Lists posts.
58
+ * @param {number} [page] Page number. Default is 0.
59
+ * @param {number} [size] Size number. Default is 0.
60
+ * @param {Array<string>} [labelSelector] Label selector. e.g.: hidden!&#x3D;true
61
+ * @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
62
+ * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ queryPosts(page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedPostVoList>>;
67
+ };
68
+ /**
69
+ * PostV1alpha1PublicApi - factory interface
70
+ * @export
71
+ */
72
+ export declare const PostV1alpha1PublicApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
73
+ /**
74
+ * Gets a post by name.
75
+ * @param {PostV1alpha1PublicApiQueryPostByNameRequest} requestParameters Request parameters.
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ queryPostByName(requestParameters: PostV1alpha1PublicApiQueryPostByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostVo>;
80
+ /**
81
+ * Gets a post navigation by name.
82
+ * @param {PostV1alpha1PublicApiQueryPostNavigationByNameRequest} requestParameters Request parameters.
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ queryPostNavigationByName(requestParameters: PostV1alpha1PublicApiQueryPostNavigationByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<NavigationPostVo>;
87
+ /**
88
+ * Lists posts.
89
+ * @param {PostV1alpha1PublicApiQueryPostsRequest} requestParameters Request parameters.
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ queryPosts(requestParameters?: PostV1alpha1PublicApiQueryPostsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListedPostVoList>;
94
+ };
95
+ /**
96
+ * Request parameters for queryPostByName operation in PostV1alpha1PublicApi.
97
+ * @export
98
+ * @interface PostV1alpha1PublicApiQueryPostByNameRequest
99
+ */
100
+ export interface PostV1alpha1PublicApiQueryPostByNameRequest {
101
+ /**
102
+ * Post name
103
+ * @type {string}
104
+ * @memberof PostV1alpha1PublicApiQueryPostByName
105
+ */
106
+ readonly name: string;
107
+ }
108
+ /**
109
+ * Request parameters for queryPostNavigationByName operation in PostV1alpha1PublicApi.
110
+ * @export
111
+ * @interface PostV1alpha1PublicApiQueryPostNavigationByNameRequest
112
+ */
113
+ export interface PostV1alpha1PublicApiQueryPostNavigationByNameRequest {
114
+ /**
115
+ * Post name
116
+ * @type {string}
117
+ * @memberof PostV1alpha1PublicApiQueryPostNavigationByName
118
+ */
119
+ readonly name: string;
120
+ }
121
+ /**
122
+ * Request parameters for queryPosts operation in PostV1alpha1PublicApi.
123
+ * @export
124
+ * @interface PostV1alpha1PublicApiQueryPostsRequest
125
+ */
126
+ export interface PostV1alpha1PublicApiQueryPostsRequest {
127
+ /**
128
+ * Page number. Default is 0.
129
+ * @type {number}
130
+ * @memberof PostV1alpha1PublicApiQueryPosts
131
+ */
132
+ readonly page?: number;
133
+ /**
134
+ * Size number. Default is 0.
135
+ * @type {number}
136
+ * @memberof PostV1alpha1PublicApiQueryPosts
137
+ */
138
+ readonly size?: number;
139
+ /**
140
+ * Label selector. e.g.: hidden!&#x3D;true
141
+ * @type {Array<string>}
142
+ * @memberof PostV1alpha1PublicApiQueryPosts
143
+ */
144
+ readonly labelSelector?: Array<string>;
145
+ /**
146
+ * Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
147
+ * @type {Array<string>}
148
+ * @memberof PostV1alpha1PublicApiQueryPosts
149
+ */
150
+ readonly fieldSelector?: Array<string>;
151
+ /**
152
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
153
+ * @type {Array<string>}
154
+ * @memberof PostV1alpha1PublicApiQueryPosts
155
+ */
156
+ readonly sort?: Array<string>;
157
+ }
158
+ /**
159
+ * PostV1alpha1PublicApi - object-oriented interface
160
+ * @export
161
+ * @class PostV1alpha1PublicApi
162
+ * @extends {BaseAPI}
163
+ */
164
+ export declare class PostV1alpha1PublicApi extends BaseAPI {
165
+ /**
166
+ * Gets a post by name.
167
+ * @param {PostV1alpha1PublicApiQueryPostByNameRequest} requestParameters Request parameters.
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ * @memberof PostV1alpha1PublicApi
171
+ */
172
+ queryPostByName(requestParameters: PostV1alpha1PublicApiQueryPostByNameRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<PostVo, any>>;
173
+ /**
174
+ * Gets a post navigation by name.
175
+ * @param {PostV1alpha1PublicApiQueryPostNavigationByNameRequest} requestParameters Request parameters.
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ * @memberof PostV1alpha1PublicApi
179
+ */
180
+ queryPostNavigationByName(requestParameters: PostV1alpha1PublicApiQueryPostNavigationByNameRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<NavigationPostVo, any>>;
181
+ /**
182
+ * Lists posts.
183
+ * @param {PostV1alpha1PublicApiQueryPostsRequest} requestParameters Request parameters.
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ * @memberof PostV1alpha1PublicApi
187
+ */
188
+ queryPosts(requestParameters?: PostV1alpha1PublicApiQueryPostsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ListedPostVoList, any>>;
189
+ }
@@ -0,0 +1,457 @@
1
+ import { Configuration } from '../configuration';
2
+ import { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
3
+ import { RequestArgs, BaseAPI } from '../base';
4
+ import { ListedPostList, Post, Snapshot } from '../models';
5
+
6
+ /**
7
+ * PostV1alpha1UcApi - axios parameter creator
8
+ * @export
9
+ */
10
+ export declare const PostV1alpha1UcApiAxiosParamCreator: (configuration?: Configuration) => {
11
+ /**
12
+ * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
13
+ * @param {Post} [post]
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ createMyPost: (post?: Post, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18
+ /**
19
+ * Get post that belongs to the current user.
20
+ * @param {string} name Post name
21
+ * @param {*} [options] Override http request option.
22
+ * @throws {RequiredError}
23
+ */
24
+ getMyPost: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25
+ /**
26
+ * Get my post draft.
27
+ * @param {string} name Post name
28
+ * @param {boolean} [patched] Should include patched content and raw or not.
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ getMyPostDraft: (name: string, patched?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ * List posts owned by the current user.
35
+ * @param {number} [page] Page number. Default is 0.
36
+ * @param {number} [size] Size number. Default is 0.
37
+ * @param {Array<string>} [labelSelector] Label selector. e.g.: hidden!&#x3D;true
38
+ * @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
39
+ * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
40
+ * @param {ListMyPostsPublishPhaseEnum} [publishPhase] Posts filtered by publish phase.
41
+ * @param {string} [keyword] Posts filtered by keyword.
42
+ * @param {string} [categoryWithChildren] Posts filtered by category including sub-categories.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listMyPosts: (page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, publishPhase?: ListMyPostsPublishPhaseEnum, keyword?: string, categoryWithChildren?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
+ /**
48
+ * Publish my post.
49
+ * @param {string} name Post name
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ publishMyPost: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
54
+ /**
55
+ * Unpublish my post.
56
+ * @param {string} name Post name
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ unpublishMyPost: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
61
+ /**
62
+ * Update my post.
63
+ * @param {string} name Post name
64
+ * @param {Post} [post]
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ updateMyPost: (name: string, post?: Post, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
71
+ * @param {string} name Post name
72
+ * @param {Snapshot} [snapshot]
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ updateMyPostDraft: (name: string, snapshot?: Snapshot, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77
+ };
78
+ /**
79
+ * PostV1alpha1UcApi - functional programming interface
80
+ * @export
81
+ */
82
+ export declare const PostV1alpha1UcApiFp: (configuration?: Configuration) => {
83
+ /**
84
+ * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
85
+ * @param {Post} [post]
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ createMyPost(post?: Post, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
90
+ /**
91
+ * Get post that belongs to the current user.
92
+ * @param {string} name Post name
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ getMyPost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
97
+ /**
98
+ * Get my post draft.
99
+ * @param {string} name Post name
100
+ * @param {boolean} [patched] Should include patched content and raw or not.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ getMyPostDraft(name: string, patched?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>>;
105
+ /**
106
+ * List posts owned by the current user.
107
+ * @param {number} [page] Page number. Default is 0.
108
+ * @param {number} [size] Size number. Default is 0.
109
+ * @param {Array<string>} [labelSelector] Label selector. e.g.: hidden!&#x3D;true
110
+ * @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
111
+ * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
112
+ * @param {ListMyPostsPublishPhaseEnum} [publishPhase] Posts filtered by publish phase.
113
+ * @param {string} [keyword] Posts filtered by keyword.
114
+ * @param {string} [categoryWithChildren] Posts filtered by category including sub-categories.
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ listMyPosts(page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, publishPhase?: ListMyPostsPublishPhaseEnum, keyword?: string, categoryWithChildren?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedPostList>>;
119
+ /**
120
+ * Publish my post.
121
+ * @param {string} name Post name
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ publishMyPost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
126
+ /**
127
+ * Unpublish my post.
128
+ * @param {string} name Post name
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ unpublishMyPost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
133
+ /**
134
+ * Update my post.
135
+ * @param {string} name Post name
136
+ * @param {Post} [post]
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ updateMyPost(name: string, post?: Post, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
141
+ /**
142
+ * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
143
+ * @param {string} name Post name
144
+ * @param {Snapshot} [snapshot]
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ updateMyPostDraft(name: string, snapshot?: Snapshot, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>>;
149
+ };
150
+ /**
151
+ * PostV1alpha1UcApi - factory interface
152
+ * @export
153
+ */
154
+ export declare const PostV1alpha1UcApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
155
+ /**
156
+ * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
157
+ * @param {PostV1alpha1UcApiCreateMyPostRequest} requestParameters Request parameters.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ createMyPost(requestParameters?: PostV1alpha1UcApiCreateMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<Post>;
162
+ /**
163
+ * Get post that belongs to the current user.
164
+ * @param {PostV1alpha1UcApiGetMyPostRequest} requestParameters Request parameters.
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ getMyPost(requestParameters: PostV1alpha1UcApiGetMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<Post>;
169
+ /**
170
+ * Get my post draft.
171
+ * @param {PostV1alpha1UcApiGetMyPostDraftRequest} requestParameters Request parameters.
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ getMyPostDraft(requestParameters: PostV1alpha1UcApiGetMyPostDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise<Snapshot>;
176
+ /**
177
+ * List posts owned by the current user.
178
+ * @param {PostV1alpha1UcApiListMyPostsRequest} requestParameters Request parameters.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ listMyPosts(requestParameters?: PostV1alpha1UcApiListMyPostsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListedPostList>;
183
+ /**
184
+ * Publish my post.
185
+ * @param {PostV1alpha1UcApiPublishMyPostRequest} requestParameters Request parameters.
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ publishMyPost(requestParameters: PostV1alpha1UcApiPublishMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<Post>;
190
+ /**
191
+ * Unpublish my post.
192
+ * @param {PostV1alpha1UcApiUnpublishMyPostRequest} requestParameters Request parameters.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ unpublishMyPost(requestParameters: PostV1alpha1UcApiUnpublishMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<Post>;
197
+ /**
198
+ * Update my post.
199
+ * @param {PostV1alpha1UcApiUpdateMyPostRequest} requestParameters Request parameters.
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ updateMyPost(requestParameters: PostV1alpha1UcApiUpdateMyPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<Post>;
204
+ /**
205
+ * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
206
+ * @param {PostV1alpha1UcApiUpdateMyPostDraftRequest} requestParameters Request parameters.
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ updateMyPostDraft(requestParameters: PostV1alpha1UcApiUpdateMyPostDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise<Snapshot>;
211
+ };
212
+ /**
213
+ * Request parameters for createMyPost operation in PostV1alpha1UcApi.
214
+ * @export
215
+ * @interface PostV1alpha1UcApiCreateMyPostRequest
216
+ */
217
+ export interface PostV1alpha1UcApiCreateMyPostRequest {
218
+ /**
219
+ *
220
+ * @type {Post}
221
+ * @memberof PostV1alpha1UcApiCreateMyPost
222
+ */
223
+ readonly post?: Post;
224
+ }
225
+ /**
226
+ * Request parameters for getMyPost operation in PostV1alpha1UcApi.
227
+ * @export
228
+ * @interface PostV1alpha1UcApiGetMyPostRequest
229
+ */
230
+ export interface PostV1alpha1UcApiGetMyPostRequest {
231
+ /**
232
+ * Post name
233
+ * @type {string}
234
+ * @memberof PostV1alpha1UcApiGetMyPost
235
+ */
236
+ readonly name: string;
237
+ }
238
+ /**
239
+ * Request parameters for getMyPostDraft operation in PostV1alpha1UcApi.
240
+ * @export
241
+ * @interface PostV1alpha1UcApiGetMyPostDraftRequest
242
+ */
243
+ export interface PostV1alpha1UcApiGetMyPostDraftRequest {
244
+ /**
245
+ * Post name
246
+ * @type {string}
247
+ * @memberof PostV1alpha1UcApiGetMyPostDraft
248
+ */
249
+ readonly name: string;
250
+ /**
251
+ * Should include patched content and raw or not.
252
+ * @type {boolean}
253
+ * @memberof PostV1alpha1UcApiGetMyPostDraft
254
+ */
255
+ readonly patched?: boolean;
256
+ }
257
+ /**
258
+ * Request parameters for listMyPosts operation in PostV1alpha1UcApi.
259
+ * @export
260
+ * @interface PostV1alpha1UcApiListMyPostsRequest
261
+ */
262
+ export interface PostV1alpha1UcApiListMyPostsRequest {
263
+ /**
264
+ * Page number. Default is 0.
265
+ * @type {number}
266
+ * @memberof PostV1alpha1UcApiListMyPosts
267
+ */
268
+ readonly page?: number;
269
+ /**
270
+ * Size number. Default is 0.
271
+ * @type {number}
272
+ * @memberof PostV1alpha1UcApiListMyPosts
273
+ */
274
+ readonly size?: number;
275
+ /**
276
+ * Label selector. e.g.: hidden!&#x3D;true
277
+ * @type {Array<string>}
278
+ * @memberof PostV1alpha1UcApiListMyPosts
279
+ */
280
+ readonly labelSelector?: Array<string>;
281
+ /**
282
+ * Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
283
+ * @type {Array<string>}
284
+ * @memberof PostV1alpha1UcApiListMyPosts
285
+ */
286
+ readonly fieldSelector?: Array<string>;
287
+ /**
288
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
289
+ * @type {Array<string>}
290
+ * @memberof PostV1alpha1UcApiListMyPosts
291
+ */
292
+ readonly sort?: Array<string>;
293
+ /**
294
+ * Posts filtered by publish phase.
295
+ * @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'}
296
+ * @memberof PostV1alpha1UcApiListMyPosts
297
+ */
298
+ readonly publishPhase?: ListMyPostsPublishPhaseEnum;
299
+ /**
300
+ * Posts filtered by keyword.
301
+ * @type {string}
302
+ * @memberof PostV1alpha1UcApiListMyPosts
303
+ */
304
+ readonly keyword?: string;
305
+ /**
306
+ * Posts filtered by category including sub-categories.
307
+ * @type {string}
308
+ * @memberof PostV1alpha1UcApiListMyPosts
309
+ */
310
+ readonly categoryWithChildren?: string;
311
+ }
312
+ /**
313
+ * Request parameters for publishMyPost operation in PostV1alpha1UcApi.
314
+ * @export
315
+ * @interface PostV1alpha1UcApiPublishMyPostRequest
316
+ */
317
+ export interface PostV1alpha1UcApiPublishMyPostRequest {
318
+ /**
319
+ * Post name
320
+ * @type {string}
321
+ * @memberof PostV1alpha1UcApiPublishMyPost
322
+ */
323
+ readonly name: string;
324
+ }
325
+ /**
326
+ * Request parameters for unpublishMyPost operation in PostV1alpha1UcApi.
327
+ * @export
328
+ * @interface PostV1alpha1UcApiUnpublishMyPostRequest
329
+ */
330
+ export interface PostV1alpha1UcApiUnpublishMyPostRequest {
331
+ /**
332
+ * Post name
333
+ * @type {string}
334
+ * @memberof PostV1alpha1UcApiUnpublishMyPost
335
+ */
336
+ readonly name: string;
337
+ }
338
+ /**
339
+ * Request parameters for updateMyPost operation in PostV1alpha1UcApi.
340
+ * @export
341
+ * @interface PostV1alpha1UcApiUpdateMyPostRequest
342
+ */
343
+ export interface PostV1alpha1UcApiUpdateMyPostRequest {
344
+ /**
345
+ * Post name
346
+ * @type {string}
347
+ * @memberof PostV1alpha1UcApiUpdateMyPost
348
+ */
349
+ readonly name: string;
350
+ /**
351
+ *
352
+ * @type {Post}
353
+ * @memberof PostV1alpha1UcApiUpdateMyPost
354
+ */
355
+ readonly post?: Post;
356
+ }
357
+ /**
358
+ * Request parameters for updateMyPostDraft operation in PostV1alpha1UcApi.
359
+ * @export
360
+ * @interface PostV1alpha1UcApiUpdateMyPostDraftRequest
361
+ */
362
+ export interface PostV1alpha1UcApiUpdateMyPostDraftRequest {
363
+ /**
364
+ * Post name
365
+ * @type {string}
366
+ * @memberof PostV1alpha1UcApiUpdateMyPostDraft
367
+ */
368
+ readonly name: string;
369
+ /**
370
+ *
371
+ * @type {Snapshot}
372
+ * @memberof PostV1alpha1UcApiUpdateMyPostDraft
373
+ */
374
+ readonly snapshot?: Snapshot;
375
+ }
376
+ /**
377
+ * PostV1alpha1UcApi - object-oriented interface
378
+ * @export
379
+ * @class PostV1alpha1UcApi
380
+ * @extends {BaseAPI}
381
+ */
382
+ export declare class PostV1alpha1UcApi extends BaseAPI {
383
+ /**
384
+ * Create my post. If you want to create a post with content, please set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
385
+ * @param {PostV1alpha1UcApiCreateMyPostRequest} requestParameters Request parameters.
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ * @memberof PostV1alpha1UcApi
389
+ */
390
+ createMyPost(requestParameters?: PostV1alpha1UcApiCreateMyPostRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<Post, any>>;
391
+ /**
392
+ * Get post that belongs to the current user.
393
+ * @param {PostV1alpha1UcApiGetMyPostRequest} requestParameters Request parameters.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ * @memberof PostV1alpha1UcApi
397
+ */
398
+ getMyPost(requestParameters: PostV1alpha1UcApiGetMyPostRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<Post, any>>;
399
+ /**
400
+ * Get my post draft.
401
+ * @param {PostV1alpha1UcApiGetMyPostDraftRequest} requestParameters Request parameters.
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ * @memberof PostV1alpha1UcApi
405
+ */
406
+ getMyPostDraft(requestParameters: PostV1alpha1UcApiGetMyPostDraftRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<Snapshot, any>>;
407
+ /**
408
+ * List posts owned by the current user.
409
+ * @param {PostV1alpha1UcApiListMyPostsRequest} requestParameters Request parameters.
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ * @memberof PostV1alpha1UcApi
413
+ */
414
+ listMyPosts(requestParameters?: PostV1alpha1UcApiListMyPostsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ListedPostList, any>>;
415
+ /**
416
+ * Publish my post.
417
+ * @param {PostV1alpha1UcApiPublishMyPostRequest} requestParameters Request parameters.
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ * @memberof PostV1alpha1UcApi
421
+ */
422
+ publishMyPost(requestParameters: PostV1alpha1UcApiPublishMyPostRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<Post, any>>;
423
+ /**
424
+ * Unpublish my post.
425
+ * @param {PostV1alpha1UcApiUnpublishMyPostRequest} requestParameters Request parameters.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ * @memberof PostV1alpha1UcApi
429
+ */
430
+ unpublishMyPost(requestParameters: PostV1alpha1UcApiUnpublishMyPostRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<Post, any>>;
431
+ /**
432
+ * Update my post.
433
+ * @param {PostV1alpha1UcApiUpdateMyPostRequest} requestParameters Request parameters.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ * @memberof PostV1alpha1UcApi
437
+ */
438
+ updateMyPost(requestParameters: PostV1alpha1UcApiUpdateMyPostRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<Post, any>>;
439
+ /**
440
+ * Update draft of my post. Please make sure set annotation: \"content.halo.run/content-json\" into annotations and refer to Content for corresponding data type.
441
+ * @param {PostV1alpha1UcApiUpdateMyPostDraftRequest} requestParameters Request parameters.
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ * @memberof PostV1alpha1UcApi
445
+ */
446
+ updateMyPostDraft(requestParameters: PostV1alpha1UcApiUpdateMyPostDraftRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<Snapshot, any>>;
447
+ }
448
+ /**
449
+ * @export
450
+ */
451
+ export declare const ListMyPostsPublishPhaseEnum: {
452
+ readonly Draft: "DRAFT";
453
+ readonly PendingApproval: "PENDING_APPROVAL";
454
+ readonly Published: "PUBLISHED";
455
+ readonly Failed: "FAILED";
456
+ };
457
+ export type ListMyPostsPublishPhaseEnum = typeof ListMyPostsPublishPhaseEnum[keyof typeof ListMyPostsPublishPhaseEnum];