@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.
- package/README.md +56 -11
- package/dist/entry/api-client.d.ts +348 -0
- package/dist/entry/index.d.ts +2 -0
- package/dist/halo-api-client.es.js +20971 -0
- package/dist/halo-api-client.es.js.map +1 -0
- package/dist/halo-api-client.iife.js +2 -0
- package/dist/halo-api-client.iife.js.map +1 -0
- package/dist/src/api/annotation-setting-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/api-notification-halo-run-v1alpha1-subscription-api.d.ts +80 -0
- package/dist/src/api/attachment-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/attachment-v1alpha1-console-api.d.ts +187 -0
- package/dist/src/api/attachment-v1alpha1-uc-api.d.ts +97 -0
- package/dist/src/api/auth-provider-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/auth-provider-v1alpha1-console-api.d.ts +140 -0
- package/dist/src/api/backup-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/category-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/category-v1alpha1-public-api.d.ts +229 -0
- package/dist/src/api/comment-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/comment-v1alpha1-console-api.d.ts +221 -0
- package/dist/src/api/comment-v1alpha1-public-api.d.ts +329 -0
- package/dist/src/api/config-map-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/counter-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/device-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/device-v1alpha1-uc-api.d.ts +98 -0
- package/dist/src/api/extension-definition-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/extension-point-definition-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/group-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/index-v1alpha1-public-api.d.ts +143 -0
- package/dist/src/api/indices-v1alpha1-console-api.d.ts +84 -0
- package/dist/src/api/login-api.d.ts +56 -0
- package/dist/src/api/menu-item-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/menu-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/menu-v1alpha1-public-api.d.ts +98 -0
- package/dist/src/api/metrics-v1alpha1-public-api.d.ts +157 -0
- package/dist/src/api/migration-v1alpha1-console-api.d.ts +138 -0
- package/dist/src/api/notification-template-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/notification-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/notification-v1alpha1-uc-api.d.ts +363 -0
- package/dist/src/api/notifier-descriptor-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/notifier-v1alpha1-console-api.d.ts +165 -0
- package/dist/src/api/notifier-v1alpha1-uc-api.d.ts +122 -0
- package/dist/src/api/personal-access-token-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/personal-access-token-v1alpha1-uc-api.d.ts +266 -0
- package/dist/src/api/plugin-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/plugin-v1alpha1-console-api.d.ts +698 -0
- package/dist/src/api/plugin-v1alpha1-public-api.d.ts +72 -0
- package/dist/src/api/policy-template-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/policy-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/post-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/post-v1alpha1-console-api.d.ts +699 -0
- package/dist/src/api/post-v1alpha1-public-api.d.ts +189 -0
- package/dist/src/api/post-v1alpha1-uc-api.d.ts +457 -0
- package/dist/src/api/reason-type-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/reason-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/remember-me-token-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/reply-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/reply-v1alpha1-console-api.d.ts +113 -0
- package/dist/src/api/reverse-proxy-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/role-binding-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/role-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/search-engine-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/secret-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/setting-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/single-page-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/single-page-v1alpha1-console-api.d.ts +616 -0
- package/dist/src/api/single-page-v1alpha1-public-api.d.ts +147 -0
- package/dist/src/api/snapshot-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/snapshot-v1alpha1-uc-api.d.ts +89 -0
- package/dist/src/api/subscription-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/system-v1alpha1-console-api.d.ts +98 -0
- package/dist/src/api/system-v1alpha1-public-api.d.ts +56 -0
- package/dist/src/api/tag-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/tag-v1alpha1-console-api.d.ts +113 -0
- package/dist/src/api/tag-v1alpha1-public-api.d.ts +229 -0
- package/dist/src/api/theme-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/theme-v1alpha1-console-api.d.ts +599 -0
- package/dist/src/api/two-factor-auth-v1alpha1-uc-api.d.ts +249 -0
- package/dist/src/api/user-connection-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/user-v1alpha1-api.d.ts +331 -0
- package/dist/src/api/user-v1alpha1-console-api.d.ts +632 -0
- package/dist/src/api/user-v1alpha1-public-api.d.ts +207 -0
- package/dist/src/api.d.ts +85 -0
- package/dist/src/base.d.ts +56 -0
- package/dist/src/common.d.ts +55 -0
- package/dist/src/configuration.d.ts +91 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/models/add-operation.d.ts +40 -0
- package/dist/src/models/annotation-setting-list.d.ts +63 -0
- package/dist/src/models/annotation-setting-spec.d.ts +21 -0
- package/dist/src/models/annotation-setting.d.ts +34 -0
- package/dist/src/models/attachment-list.d.ts +63 -0
- package/dist/src/models/attachment-spec.d.ts +60 -0
- package/dist/src/models/attachment-status.d.ts +24 -0
- package/dist/src/models/attachment.d.ts +41 -0
- package/dist/src/models/auth-provider-list.d.ts +63 -0
- package/dist/src/models/auth-provider-spec.d.ts +76 -0
- package/dist/src/models/auth-provider.d.ts +34 -0
- package/dist/src/models/author.d.ts +30 -0
- package/dist/src/models/backup-list.d.ts +63 -0
- package/dist/src/models/backup-spec.d.ts +30 -0
- package/dist/src/models/backup-status.d.ts +67 -0
- package/dist/src/models/backup.d.ts +41 -0
- package/dist/src/models/category-list.d.ts +63 -0
- package/dist/src/models/category-spec.d.ts +78 -0
- package/dist/src/models/category-status.d.ts +36 -0
- package/dist/src/models/category-vo-list.d.ts +63 -0
- package/dist/src/models/category-vo.d.ts +35 -0
- package/dist/src/models/category.d.ts +41 -0
- package/dist/src/models/change-own-password-request.d.ts +30 -0
- package/dist/src/models/change-password-request.d.ts +24 -0
- package/dist/src/models/comment-email-owner.d.ts +42 -0
- package/dist/src/models/comment-list.d.ts +63 -0
- package/dist/src/models/comment-owner.d.ts +44 -0
- package/dist/src/models/comment-request.d.ts +40 -0
- package/dist/src/models/comment-spec.d.ts +94 -0
- package/dist/src/models/comment-stats-vo.d.ts +24 -0
- package/dist/src/models/comment-stats.d.ts +24 -0
- package/dist/src/models/comment-status.d.ts +54 -0
- package/dist/src/models/comment-vo-list.d.ts +63 -0
- package/dist/src/models/comment-vo.d.ts +43 -0
- package/dist/src/models/comment-with-reply-vo-list.d.ts +63 -0
- package/dist/src/models/comment-with-reply-vo.d.ts +50 -0
- package/dist/src/models/comment.d.ts +41 -0
- package/dist/src/models/condition.d.ts +54 -0
- package/dist/src/models/config-map-list.d.ts +63 -0
- package/dist/src/models/config-map-ref.d.ts +24 -0
- package/dist/src/models/config-map.d.ts +35 -0
- package/dist/src/models/content-update-param.d.ts +42 -0
- package/dist/src/models/content-vo.d.ts +30 -0
- package/dist/src/models/content-wrapper.d.ts +42 -0
- package/dist/src/models/content.d.ts +36 -0
- package/dist/src/models/contributor-vo.d.ts +45 -0
- package/dist/src/models/contributor.d.ts +36 -0
- package/dist/src/models/copy-operation.d.ts +40 -0
- package/dist/src/models/counter-list.d.ts +63 -0
- package/dist/src/models/counter-request.d.ts +60 -0
- package/dist/src/models/counter.d.ts +57 -0
- package/dist/src/models/create-user-request.d.ts +74 -0
- package/dist/src/models/custom-templates.d.ts +27 -0
- package/dist/src/models/dashboard-stats.d.ts +54 -0
- package/dist/src/models/detailed-user.d.ts +22 -0
- package/dist/src/models/device-list.d.ts +63 -0
- package/dist/src/models/device-spec.d.ts +60 -0
- package/dist/src/models/device-status.d.ts +30 -0
- package/dist/src/models/device.d.ts +41 -0
- package/dist/src/models/email-config-validation-request.d.ts +66 -0
- package/dist/src/models/email-verify-request.d.ts +24 -0
- package/dist/src/models/excerpt.d.ts +30 -0
- package/dist/src/models/extension-definition-list.d.ts +63 -0
- package/dist/src/models/extension-definition.d.ts +34 -0
- package/dist/src/models/extension-point-definition-list.d.ts +63 -0
- package/dist/src/models/extension-point-definition.d.ts +34 -0
- package/dist/src/models/extension-point-spec.d.ts +53 -0
- package/dist/src/models/extension-spec.d.ts +48 -0
- package/dist/src/models/extension.d.ts +27 -0
- package/dist/src/models/file-reverse-proxy-provider.d.ts +30 -0
- package/dist/src/models/grant-request.d.ts +24 -0
- package/dist/src/models/group-kind.d.ts +30 -0
- package/dist/src/models/group-list.d.ts +63 -0
- package/dist/src/models/group-spec.d.ts +24 -0
- package/dist/src/models/group-status.d.ts +30 -0
- package/dist/src/models/group.d.ts +41 -0
- package/dist/src/models/halo-document.d.ts +116 -0
- package/dist/src/models/index.d.ts +249 -0
- package/dist/src/models/install-from-uri-request.d.ts +24 -0
- package/dist/src/models/interest-reason-subject.d.ts +36 -0
- package/dist/src/models/interest-reason.d.ts +27 -0
- package/dist/src/models/json-patch-inner.d.ts +12 -0
- package/dist/src/models/license.d.ts +30 -0
- package/dist/src/models/list-result-reply-vo.d.ts +63 -0
- package/dist/src/models/listed-auth-provider.d.ts +96 -0
- package/dist/src/models/listed-comment-list.d.ts +63 -0
- package/dist/src/models/listed-comment.d.ts +36 -0
- package/dist/src/models/listed-post-list.d.ts +63 -0
- package/dist/src/models/listed-post-vo-list.d.ts +63 -0
- package/dist/src/models/listed-post-vo.d.ts +63 -0
- package/dist/src/models/listed-post.d.ts +49 -0
- package/dist/src/models/listed-reply-list.d.ts +63 -0
- package/dist/src/models/listed-reply.d.ts +29 -0
- package/dist/src/models/listed-single-page-list.d.ts +63 -0
- package/dist/src/models/listed-single-page-vo-list.d.ts +63 -0
- package/dist/src/models/listed-single-page-vo.d.ts +49 -0
- package/dist/src/models/listed-single-page.d.ts +35 -0
- package/dist/src/models/listed-snapshot-dto.d.ts +22 -0
- package/dist/src/models/listed-snapshot-spec.d.ts +30 -0
- package/dist/src/models/listed-user.d.ts +22 -0
- package/dist/src/models/login-history.d.ts +48 -0
- package/dist/src/models/mark-specified-request.d.ts +24 -0
- package/dist/src/models/menu-item-list.d.ts +63 -0
- package/dist/src/models/menu-item-spec.d.ts +52 -0
- package/dist/src/models/menu-item-status.d.ts +30 -0
- package/dist/src/models/menu-item-vo.d.ts +41 -0
- package/dist/src/models/menu-item.d.ts +41 -0
- package/dist/src/models/menu-list.d.ts +63 -0
- package/dist/src/models/menu-spec.d.ts +30 -0
- package/dist/src/models/menu-vo.d.ts +29 -0
- package/dist/src/models/menu.d.ts +34 -0
- package/dist/src/models/metadata.d.ts +70 -0
- package/dist/src/models/move-operation.d.ts +40 -0
- package/dist/src/models/navigation-post-vo.d.ts +27 -0
- package/dist/src/models/notification-list.d.ts +63 -0
- package/dist/src/models/notification-spec.d.ts +60 -0
- package/dist/src/models/notification-template-list.d.ts +63 -0
- package/dist/src/models/notification-template-spec.d.ts +22 -0
- package/dist/src/models/notification-template.d.ts +34 -0
- package/dist/src/models/notification.d.ts +34 -0
- package/dist/src/models/notifier-descriptor-list.d.ts +63 -0
- package/dist/src/models/notifier-descriptor-spec.d.ts +39 -0
- package/dist/src/models/notifier-descriptor.d.ts +34 -0
- package/dist/src/models/notifier-info.d.ts +36 -0
- package/dist/src/models/notifier-setting-ref.d.ts +30 -0
- package/dist/src/models/owner-info.d.ts +48 -0
- package/dist/src/models/password-request.d.ts +24 -0
- package/dist/src/models/password-reset-email-request.d.ts +30 -0
- package/dist/src/models/pat-spec.d.ts +78 -0
- package/dist/src/models/personal-access-token-list.d.ts +63 -0
- package/dist/src/models/personal-access-token.d.ts +34 -0
- package/dist/src/models/plugin-author.d.ts +30 -0
- package/dist/src/models/plugin-list.d.ts +63 -0
- package/dist/src/models/plugin-running-state-request.d.ts +30 -0
- package/dist/src/models/plugin-spec.d.ts +103 -0
- package/dist/src/models/plugin-status.d.ts +80 -0
- package/dist/src/models/plugin.d.ts +41 -0
- package/dist/src/models/policy-list.d.ts +63 -0
- package/dist/src/models/policy-rule.d.ts +48 -0
- package/dist/src/models/policy-spec.d.ts +36 -0
- package/dist/src/models/policy-template-list.d.ts +63 -0
- package/dist/src/models/policy-template-spec.d.ts +30 -0
- package/dist/src/models/policy-template.d.ts +34 -0
- package/dist/src/models/policy.d.ts +34 -0
- package/dist/src/models/post-list.d.ts +63 -0
- package/dist/src/models/post-request.d.ts +22 -0
- package/dist/src/models/post-spec.d.ts +131 -0
- package/dist/src/models/post-status.d.ts +69 -0
- package/dist/src/models/post-vo.d.ts +70 -0
- package/dist/src/models/post.d.ts +41 -0
- package/dist/src/models/public-key-response.d.ts +24 -0
- package/dist/src/models/reason-attributes.d.ts +24 -0
- package/dist/src/models/reason-list.d.ts +63 -0
- package/dist/src/models/reason-property.d.ts +42 -0
- package/dist/src/models/reason-selector.d.ts +30 -0
- package/dist/src/models/reason-spec.d.ts +34 -0
- package/dist/src/models/reason-subject.d.ts +48 -0
- package/dist/src/models/reason-type-info.d.ts +42 -0
- package/dist/src/models/reason-type-list.d.ts +63 -0
- package/dist/src/models/reason-type-notifier-collection-request.d.ts +15 -0
- package/dist/src/models/reason-type-notifier-matrix.d.ts +28 -0
- package/dist/src/models/reason-type-notifier-request.d.ts +30 -0
- package/dist/src/models/reason-type-spec.d.ts +27 -0
- package/dist/src/models/reason-type.d.ts +34 -0
- package/dist/src/models/reason.d.ts +34 -0
- package/dist/src/models/ref.d.ts +42 -0
- package/dist/src/models/register-verify-email-request.d.ts +24 -0
- package/dist/src/models/remember-me-token-list.d.ts +63 -0
- package/dist/src/models/remember-me-token-spec.d.ts +42 -0
- package/dist/src/models/remember-me-token.d.ts +34 -0
- package/dist/src/models/remove-operation.d.ts +34 -0
- package/dist/src/models/replace-operation.d.ts +40 -0
- package/dist/src/models/reply-list.d.ts +63 -0
- package/dist/src/models/reply-request.d.ts +39 -0
- package/dist/src/models/reply-spec.d.ts +93 -0
- package/dist/src/models/reply-status.d.ts +24 -0
- package/dist/src/models/reply-vo-list.d.ts +63 -0
- package/dist/src/models/reply-vo.d.ts +36 -0
- package/dist/src/models/reply.d.ts +41 -0
- package/dist/src/models/reset-password-request.d.ts +30 -0
- package/dist/src/models/reverse-proxy-list.d.ts +63 -0
- package/dist/src/models/reverse-proxy-rule.d.ts +21 -0
- package/dist/src/models/reverse-proxy.d.ts +34 -0
- package/dist/src/models/revert-snapshot-for-post-param.d.ts +24 -0
- package/dist/src/models/revert-snapshot-for-single-param.d.ts +24 -0
- package/dist/src/models/role-binding-list.d.ts +63 -0
- package/dist/src/models/role-binding.d.ts +41 -0
- package/dist/src/models/role-list.d.ts +63 -0
- package/dist/src/models/role-ref.d.ts +36 -0
- package/dist/src/models/role.d.ts +34 -0
- package/dist/src/models/search-engine-list.d.ts +63 -0
- package/dist/src/models/search-engine-spec.d.ts +45 -0
- package/dist/src/models/search-engine.d.ts +34 -0
- package/dist/src/models/search-option.d.ts +92 -0
- package/dist/src/models/search-result.d.ts +39 -0
- package/dist/src/models/secret-list.d.ts +63 -0
- package/dist/src/models/secret.d.ts +49 -0
- package/dist/src/models/setting-form.d.ts +36 -0
- package/dist/src/models/setting-list.d.ts +63 -0
- package/dist/src/models/setting-ref.d.ts +30 -0
- package/dist/src/models/setting-spec.d.ts +15 -0
- package/dist/src/models/setting.d.ts +34 -0
- package/dist/src/models/sign-up-request.d.ts +27 -0
- package/dist/src/models/single-page-list.d.ts +63 -0
- package/dist/src/models/single-page-request.d.ts +22 -0
- package/dist/src/models/single-page-spec.d.ts +119 -0
- package/dist/src/models/single-page-status.d.ts +69 -0
- package/dist/src/models/single-page-vo.d.ts +56 -0
- package/dist/src/models/single-page.d.ts +41 -0
- package/dist/src/models/site-stats-vo.d.ts +48 -0
- package/dist/src/models/snap-shot-spec.d.ts +57 -0
- package/dist/src/models/snapshot-list.d.ts +63 -0
- package/dist/src/models/snapshot.d.ts +34 -0
- package/dist/src/models/stats-vo.d.ts +36 -0
- package/dist/src/models/stats.d.ts +42 -0
- package/dist/src/models/subject.d.ts +36 -0
- package/dist/src/models/subscription-list.d.ts +63 -0
- package/dist/src/models/subscription-spec.d.ts +34 -0
- package/dist/src/models/subscription-subscriber.d.ts +24 -0
- package/dist/src/models/subscription.d.ts +34 -0
- package/dist/src/models/system-initialization-request.d.ts +42 -0
- package/dist/src/models/tag-list.d.ts +63 -0
- package/dist/src/models/tag-spec.d.ts +42 -0
- package/dist/src/models/tag-status.d.ts +42 -0
- package/dist/src/models/tag-vo-list.d.ts +63 -0
- package/dist/src/models/tag-vo.d.ts +35 -0
- package/dist/src/models/tag.d.ts +41 -0
- package/dist/src/models/template-content.d.ts +36 -0
- package/dist/src/models/template-descriptor.d.ts +42 -0
- package/dist/src/models/test-operation.d.ts +40 -0
- package/dist/src/models/theme-list.d.ts +63 -0
- package/dist/src/models/theme-spec.d.ts +103 -0
- package/dist/src/models/theme-status.d.ts +33 -0
- package/dist/src/models/theme.d.ts +41 -0
- package/dist/src/models/totp-auth-link-response.d.ts +30 -0
- package/dist/src/models/totp-request.d.ts +36 -0
- package/dist/src/models/two-factor-auth-settings.d.ts +42 -0
- package/dist/src/models/upgrade-from-uri-request.d.ts +24 -0
- package/dist/src/models/user-connection-list.d.ts +63 -0
- package/dist/src/models/user-connection-spec.d.ts +78 -0
- package/dist/src/models/user-connection.d.ts +34 -0
- package/dist/src/models/user-device.d.ts +27 -0
- package/dist/src/models/user-endpoint-listed-user-list.d.ts +63 -0
- package/dist/src/models/user-list.d.ts +63 -0
- package/dist/src/models/user-permission.d.ts +27 -0
- package/dist/src/models/user-spec.d.ts +90 -0
- package/dist/src/models/user-status.d.ts +27 -0
- package/dist/src/models/user.d.ts +41 -0
- package/dist/src/models/verify-code-request.d.ts +30 -0
- package/dist/src/models/vote-request.d.ts +36 -0
- package/package.json +28 -30
- package/dist/index.cjs +0 -13783
- package/dist/index.d.ts +0 -30557
- package/dist/index.mjs +0 -13464
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var HaloApiClient=function(R,V){"use strict";const m="http://localhost:8091".replace(/\/+$/,"");class I{constructor(t,r=m,n=V){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class Ds extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const P={},O="https://example.com",C=function(e,t,r){if(r==null)throw new Ds(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},y=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},v=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function Ke(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>Ke(e,n,r)):Object.keys(t).forEach(n=>Ke(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const S=function(e,...t){const r=new URLSearchParams(e.search);Ke(r,t),e.search=r.toString()},w=function(e,t,r){const n=typeof e!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},A=function(e){return e.pathname+e.search+e.hash},u=function(e,t,r,n){return(l=t,s=r)=>{const a={...e.options,url:(l.defaults.baseURL?"":(n==null?void 0:n.basePath)??s)+e.url};return l.request(a)}},ea=function(e){return{createAnnotationSetting:async(t,r={})=>{const n="/api/v1alpha1/annotationsettings",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteAnnotationSetting:async(t,r={})=>{C("deleteAnnotationSetting","name",t);const n="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getAnnotationSetting:async(t,r={})=>{C("getAnnotationSetting","name",t);const n="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listAnnotationSetting:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/annotationsettings",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchAnnotationSetting:async(t,r,n={})=>{C("patchAnnotationSetting","name",t);const l="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateAnnotationSetting:async(t,r,n={})=>{C("updateAnnotationSetting","name",t);const l="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},H=function(e){const t=ea(e);return{async createAnnotationSetting(r,n){var o,c;const l=await t.createAnnotationSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AnnotationSettingV1alpha1Api.createAnnotationSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteAnnotationSetting(r,n){var o,c;const l=await t.deleteAnnotationSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AnnotationSettingV1alpha1Api.deleteAnnotationSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getAnnotationSetting(r,n){var o,c;const l=await t.getAnnotationSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AnnotationSettingV1alpha1Api.getAnnotationSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listAnnotationSetting(r,n,l,s,a,o){var i,d;const c=await t.listAnnotationSetting(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["AnnotationSettingV1alpha1Api.listAnnotationSetting"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchAnnotationSetting(r,n,l){var c,p;const s=await t.patchAnnotationSetting(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["AnnotationSettingV1alpha1Api.patchAnnotationSetting"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateAnnotationSetting(r,n,l){var c,p;const s=await t.updateAnnotationSetting(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["AnnotationSettingV1alpha1Api.updateAnnotationSetting"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Ns=function(e,t,r){const n=H(e);return{createAnnotationSetting(l={},s){return n.createAnnotationSetting(l.annotationSetting,s).then(a=>a(r,t))},deleteAnnotationSetting(l,s){return n.deleteAnnotationSetting(l.name,s).then(a=>a(r,t))},getAnnotationSetting(l,s){return n.getAnnotationSetting(l.name,s).then(a=>a(r,t))},listAnnotationSetting(l={},s){return n.listAnnotationSetting(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchAnnotationSetting(l,s){return n.patchAnnotationSetting(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateAnnotationSetting(l,s){return n.updateAnnotationSetting(l.name,l.annotationSetting,s).then(a=>a(r,t))}}};class aa extends I{createAnnotationSetting(t={},r){return H(this.configuration).createAnnotationSetting(t.annotationSetting,r).then(n=>n(this.axios,this.basePath))}deleteAnnotationSetting(t,r){return H(this.configuration).deleteAnnotationSetting(t.name,r).then(n=>n(this.axios,this.basePath))}getAnnotationSetting(t,r){return H(this.configuration).getAnnotationSetting(t.name,r).then(n=>n(this.axios,this.basePath))}listAnnotationSetting(t={},r){return H(this.configuration).listAnnotationSetting(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchAnnotationSetting(t,r){return H(this.configuration).patchAnnotationSetting(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateAnnotationSetting(t,r){return H(this.configuration).updateAnnotationSetting(t.name,t.annotationSetting,r).then(n=>n(this.axios,this.basePath))}}const ta=function(e){return{unsubscribe:async(t,r,n={})=>{C("unsubscribe","name",t),C("unsubscribe","token",r);const l="/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...n},c={},p={};y(o,e),await v(c,e),r!==void 0&&(p.token=r),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}}}},Je=function(e){const t=ta(e);return{async unsubscribe(r,n,l){var c,p;const s=await t.unsubscribe(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ApiNotificationHaloRunV1alpha1SubscriptionApi.unsubscribe"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Hs=function(e,t,r){const n=Je(e);return{unsubscribe(l,s){return n.unsubscribe(l.name,l.token,s).then(a=>a(r,t))}}};class Ms extends I{unsubscribe(t,r){return Je(this.configuration).unsubscribe(t.name,t.token,r).then(n=>n(this.axios,this.basePath))}}const sa=function(e){return{createAttachment:async(t,r={})=>{const n="/apis/storage.halo.run/v1alpha1/attachments",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteAttachment:async(t,r={})=>{C("deleteAttachment","name",t);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getAttachment:async(t,r={})=>{C("getAttachment","name",t);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listAttachment:async(t,r,n,l,s,a={})=>{const o="/apis/storage.halo.run/v1alpha1/attachments",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchAttachment:async(t,r,n={})=>{C("patchAttachment","name",t);const l="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateAttachment:async(t,r,n={})=>{C("updateAttachment","name",t);const l="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},M=function(e){const t=sa(e);return{async createAttachment(r,n){var o,c;const l=await t.createAttachment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AttachmentV1alpha1Api.createAttachment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteAttachment(r,n){var o,c;const l=await t.deleteAttachment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AttachmentV1alpha1Api.deleteAttachment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getAttachment(r,n){var o,c;const l=await t.getAttachment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AttachmentV1alpha1Api.getAttachment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listAttachment(r,n,l,s,a,o){var i,d;const c=await t.listAttachment(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["AttachmentV1alpha1Api.listAttachment"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchAttachment(r,n,l){var c,p;const s=await t.patchAttachment(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["AttachmentV1alpha1Api.patchAttachment"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateAttachment(r,n,l){var c,p;const s=await t.updateAttachment(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["AttachmentV1alpha1Api.updateAttachment"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Qs=function(e,t,r){const n=M(e);return{createAttachment(l={},s){return n.createAttachment(l.attachment,s).then(a=>a(r,t))},deleteAttachment(l,s){return n.deleteAttachment(l.name,s).then(a=>a(r,t))},getAttachment(l,s){return n.getAttachment(l.name,s).then(a=>a(r,t))},listAttachment(l={},s){return n.listAttachment(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchAttachment(l,s){return n.patchAttachment(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateAttachment(l,s){return n.updateAttachment(l.name,l.attachment,s).then(a=>a(r,t))}}};class ra extends I{createAttachment(t={},r){return M(this.configuration).createAttachment(t.attachment,r).then(n=>n(this.axios,this.basePath))}deleteAttachment(t,r){return M(this.configuration).deleteAttachment(t.name,r).then(n=>n(this.axios,this.basePath))}getAttachment(t,r){return M(this.configuration).getAttachment(t.name,r).then(n=>n(this.axios,this.basePath))}listAttachment(t={},r){return M(this.configuration).listAttachment(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchAttachment(t,r){return M(this.configuration).patchAttachment(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateAttachment(t,r){return M(this.configuration).updateAttachment(t.name,t.attachment,r).then(n=>n(this.axios,this.basePath))}}const la=function(e){return{searchAttachments:async(t,r,n,l,s,a,o,c,p={})=>{const h="/apis/api.console.halo.run/v1alpha1/attachments",i=new URL(h,O);let d;e&&(d=e.baseOptions);const U={method:"GET",...d,...p},b={},T={};y(U,e),await v(b,e),t!==void 0&&(T.page=t),r!==void 0&&(T.size=r),n&&(T.labelSelector=n),l&&(T.fieldSelector=l),s&&(T.sort=s),a!==void 0&&(T.ungrouped=a),o!==void 0&&(T.keyword=o),c&&(T.accepts=c),S(i,T);let B=d&&d.headers?d.headers:{};return U.headers={...b,...B,...p.headers},{url:A(i),options:U}},uploadAttachment:async(t,r,n,l={})=>{C("uploadAttachment","file",t),C("uploadAttachment","policyName",r);const s="/apis/api.console.halo.run/v1alpha1/attachments/upload",a=new URL(s,O);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...l},p={},h={},i=new(e&&e.formDataCtor||FormData);y(c,e),await v(p,e),t!==void 0&&i.append("file",t),n!==void 0&&i.append("groupName",n),r!==void 0&&i.append("policyName",r),p["Content-Type"]="multipart/form-data",S(a,h);let d=o&&o.headers?o.headers:{};return c.headers={...p,...d,...l.headers},c.data=i,{url:A(a),options:c}}}},De=function(e){const t=la(e);return{async searchAttachments(r,n,l,s,a,o,c,p,h){var b,T;const i=await t.searchAttachments(r,n,l,s,a,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,U=(T=(b=P["AttachmentV1alpha1ConsoleApi.searchAttachments"])==null?void 0:b[d])==null?void 0:T.url;return(B,L)=>u(i,V,m,e)(B,U||L)},async uploadAttachment(r,n,l,s){var p,h;const a=await t.uploadAttachment(r,n,l,s),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=P["AttachmentV1alpha1ConsoleApi.uploadAttachment"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>u(a,V,m,e)(i,c||d)}}},ks=function(e,t,r){const n=De(e);return{searchAttachments(l={},s){return n.searchAttachments(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.ungrouped,l.keyword,l.accepts,s).then(a=>a(r,t))},uploadAttachment(l,s){return n.uploadAttachment(l.file,l.policyName,l.groupName,s).then(a=>a(r,t))}}};class na extends I{searchAttachments(t={},r){return De(this.configuration).searchAttachments(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.ungrouped,t.keyword,t.accepts,r).then(n=>n(this.axios,this.basePath))}uploadAttachment(t,r){return De(this.configuration).uploadAttachment(t.file,t.policyName,t.groupName,r).then(n=>n(this.axios,this.basePath))}}const oa=function(e){return{createAttachmentForPost:async(t,r,n,l,s={})=>{C("createAttachmentForPost","file",t);const a="/apis/uc.api.content.halo.run/v1alpha1/attachments",o=new URL(a,O);let c;e&&(c=e.baseOptions);const p={method:"POST",...c,...s},h={},i={},d=new(e&&e.formDataCtor||FormData);y(p,e),await v(h,e),r!==void 0&&(i.waitForPermalink=r),t!==void 0&&d.append("file",t),n!==void 0&&d.append("postName",n),l!==void 0&&d.append("singlePageName",l),h["Content-Type"]="multipart/form-data",S(o,i);let U=c&&c.headers?c.headers:{};return p.headers={...h,...U,...s.headers},p.data=d,{url:A(o),options:p}}}},_e=function(e){const t=oa(e);return{async createAttachmentForPost(r,n,l,s,a){var h,i;const o=await t.createAttachmentForPost(r,n,l,s,a),c=(e==null?void 0:e.serverIndex)??0,p=(i=(h=P["AttachmentV1alpha1UcApi.createAttachmentForPost"])==null?void 0:h[c])==null?void 0:i.url;return(d,U)=>u(o,V,m,e)(d,p||U)}}},$s=function(e,t,r){const n=_e(e);return{createAttachmentForPost(l,s){return n.createAttachmentForPost(l.file,l.waitForPermalink,l.postName,l.singlePageName,s).then(a=>a(r,t))}}};class ca extends I{createAttachmentForPost(t,r){return _e(this.configuration).createAttachmentForPost(t.file,t.waitForPermalink,t.postName,t.singlePageName,r).then(n=>n(this.axios,this.basePath))}}const pa=function(e){return{createAuthProvider:async(t,r={})=>{const n="/apis/auth.halo.run/v1alpha1/authproviders",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteAuthProvider:async(t,r={})=>{C("deleteAuthProvider","name",t);const n="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getAuthProvider:async(t,r={})=>{C("getAuthProvider","name",t);const n="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listAuthProvider:async(t,r,n,l,s,a={})=>{const o="/apis/auth.halo.run/v1alpha1/authproviders",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchAuthProvider:async(t,r,n={})=>{C("patchAuthProvider","name",t);const l="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateAuthProvider:async(t,r,n={})=>{C("updateAuthProvider","name",t);const l="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Q=function(e){const t=pa(e);return{async createAuthProvider(r,n){var o,c;const l=await t.createAuthProvider(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AuthProviderV1alpha1Api.createAuthProvider"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteAuthProvider(r,n){var o,c;const l=await t.deleteAuthProvider(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AuthProviderV1alpha1Api.deleteAuthProvider"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getAuthProvider(r,n){var o,c;const l=await t.getAuthProvider(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AuthProviderV1alpha1Api.getAuthProvider"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listAuthProvider(r,n,l,s,a,o){var i,d;const c=await t.listAuthProvider(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["AuthProviderV1alpha1Api.listAuthProvider"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchAuthProvider(r,n,l){var c,p;const s=await t.patchAuthProvider(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["AuthProviderV1alpha1Api.patchAuthProvider"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateAuthProvider(r,n,l){var c,p;const s=await t.updateAuthProvider(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["AuthProviderV1alpha1Api.updateAuthProvider"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Gs=function(e,t,r){const n=Q(e);return{createAuthProvider(l={},s){return n.createAuthProvider(l.authProvider,s).then(a=>a(r,t))},deleteAuthProvider(l,s){return n.deleteAuthProvider(l.name,s).then(a=>a(r,t))},getAuthProvider(l,s){return n.getAuthProvider(l.name,s).then(a=>a(r,t))},listAuthProvider(l={},s){return n.listAuthProvider(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchAuthProvider(l,s){return n.patchAuthProvider(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateAuthProvider(l,s){return n.updateAuthProvider(l.name,l.authProvider,s).then(a=>a(r,t))}}};class ha extends I{createAuthProvider(t={},r){return Q(this.configuration).createAuthProvider(t.authProvider,r).then(n=>n(this.axios,this.basePath))}deleteAuthProvider(t,r){return Q(this.configuration).deleteAuthProvider(t.name,r).then(n=>n(this.axios,this.basePath))}getAuthProvider(t,r){return Q(this.configuration).getAuthProvider(t.name,r).then(n=>n(this.axios,this.basePath))}listAuthProvider(t={},r){return Q(this.configuration).listAuthProvider(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchAuthProvider(t,r){return Q(this.configuration).patchAuthProvider(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateAuthProvider(t,r){return Q(this.configuration).updateAuthProvider(t.name,t.authProvider,r).then(n=>n(this.axios,this.basePath))}}const ia=function(e){return{disableAuthProvider:async(t,r={})=>{C("disableAuthProvider","name",t);const n="/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},enableAuthProvider:async(t,r={})=>{C("enableAuthProvider","name",t);const n="/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listAuthProviders:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/auth-providers",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}}}},Ie=function(e){const t=ia(e);return{async disableAuthProvider(r,n){var o,c;const l=await t.disableAuthProvider(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AuthProviderV1alpha1ConsoleApi.disableAuthProvider"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async enableAuthProvider(r,n){var o,c;const l=await t.enableAuthProvider(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["AuthProviderV1alpha1ConsoleApi.enableAuthProvider"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listAuthProviders(r){var a,o;const n=await t.listAuthProviders(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["AuthProviderV1alpha1ConsoleApi.listAuthProviders"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)}}},zs=function(e,t,r){const n=Ie(e);return{disableAuthProvider(l,s){return n.disableAuthProvider(l.name,s).then(a=>a(r,t))},enableAuthProvider(l,s){return n.enableAuthProvider(l.name,s).then(a=>a(r,t))},listAuthProviders(l){return n.listAuthProviders(l).then(s=>s(r,t))}}};class da extends I{disableAuthProvider(t,r){return Ie(this.configuration).disableAuthProvider(t.name,r).then(n=>n(this.axios,this.basePath))}enableAuthProvider(t,r){return Ie(this.configuration).enableAuthProvider(t.name,r).then(n=>n(this.axios,this.basePath))}listAuthProviders(t){return Ie(this.configuration).listAuthProviders(t).then(r=>r(this.axios,this.basePath))}}const Va=function(e){return{createBackup:async(t,r={})=>{const n="/apis/migration.halo.run/v1alpha1/backups",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteBackup:async(t,r={})=>{C("deleteBackup","name",t);const n="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getBackup:async(t,r={})=>{C("getBackup","name",t);const n="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listBackup:async(t,r,n,l,s,a={})=>{const o="/apis/migration.halo.run/v1alpha1/backups",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchBackup:async(t,r,n={})=>{C("patchBackup","name",t);const l="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateBackup:async(t,r,n={})=>{C("updateBackup","name",t);const l="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},k=function(e){const t=Va(e);return{async createBackup(r,n){var o,c;const l=await t.createBackup(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["BackupV1alpha1Api.createBackup"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteBackup(r,n){var o,c;const l=await t.deleteBackup(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["BackupV1alpha1Api.deleteBackup"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getBackup(r,n){var o,c;const l=await t.getBackup(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["BackupV1alpha1Api.getBackup"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listBackup(r,n,l,s,a,o){var i,d;const c=await t.listBackup(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["BackupV1alpha1Api.listBackup"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchBackup(r,n,l){var c,p;const s=await t.patchBackup(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["BackupV1alpha1Api.patchBackup"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateBackup(r,n,l){var c,p;const s=await t.updateBackup(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["BackupV1alpha1Api.updateBackup"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Ks=function(e,t,r){const n=k(e);return{createBackup(l={},s){return n.createBackup(l.backup,s).then(a=>a(r,t))},deleteBackup(l,s){return n.deleteBackup(l.name,s).then(a=>a(r,t))},getBackup(l,s){return n.getBackup(l.name,s).then(a=>a(r,t))},listBackup(l={},s){return n.listBackup(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchBackup(l,s){return n.patchBackup(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateBackup(l,s){return n.updateBackup(l.name,l.backup,s).then(a=>a(r,t))}}};class ma extends I{createBackup(t={},r){return k(this.configuration).createBackup(t.backup,r).then(n=>n(this.axios,this.basePath))}deleteBackup(t,r){return k(this.configuration).deleteBackup(t.name,r).then(n=>n(this.axios,this.basePath))}getBackup(t,r){return k(this.configuration).getBackup(t.name,r).then(n=>n(this.axios,this.basePath))}listBackup(t={},r){return k(this.configuration).listBackup(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchBackup(t,r){return k(this.configuration).patchBackup(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateBackup(t,r){return k(this.configuration).updateBackup(t.name,t.backup,r).then(n=>n(this.axios,this.basePath))}}const Pa=function(e){return{createCategory:async(t,r={})=>{const n="/apis/content.halo.run/v1alpha1/categories",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteCategory:async(t,r={})=>{C("deleteCategory","name",t);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getCategory:async(t,r={})=>{C("getCategory","name",t);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listCategory:async(t,r,n,l,s,a={})=>{const o="/apis/content.halo.run/v1alpha1/categories",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchCategory:async(t,r,n={})=>{C("patchCategory","name",t);const l="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateCategory:async(t,r,n={})=>{C("updateCategory","name",t);const l="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},$=function(e){const t=Pa(e);return{async createCategory(r,n){var o,c;const l=await t.createCategory(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CategoryV1alpha1Api.createCategory"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteCategory(r,n){var o,c;const l=await t.deleteCategory(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CategoryV1alpha1Api.deleteCategory"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getCategory(r,n){var o,c;const l=await t.getCategory(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CategoryV1alpha1Api.getCategory"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listCategory(r,n,l,s,a,o){var i,d;const c=await t.listCategory(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["CategoryV1alpha1Api.listCategory"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchCategory(r,n,l){var c,p;const s=await t.patchCategory(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CategoryV1alpha1Api.patchCategory"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateCategory(r,n,l){var c,p;const s=await t.updateCategory(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CategoryV1alpha1Api.updateCategory"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Js=function(e,t,r){const n=$(e);return{createCategory(l={},s){return n.createCategory(l.category,s).then(a=>a(r,t))},deleteCategory(l,s){return n.deleteCategory(l.name,s).then(a=>a(r,t))},getCategory(l,s){return n.getCategory(l.name,s).then(a=>a(r,t))},listCategory(l={},s){return n.listCategory(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchCategory(l,s){return n.patchCategory(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateCategory(l,s){return n.updateCategory(l.name,l.category,s).then(a=>a(r,t))}}};class Oa extends I{createCategory(t={},r){return $(this.configuration).createCategory(t.category,r).then(n=>n(this.axios,this.basePath))}deleteCategory(t,r){return $(this.configuration).deleteCategory(t.name,r).then(n=>n(this.axios,this.basePath))}getCategory(t,r){return $(this.configuration).getCategory(t.name,r).then(n=>n(this.axios,this.basePath))}listCategory(t={},r){return $(this.configuration).listCategory(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchCategory(t,r){return $(this.configuration).patchCategory(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateCategory(t,r){return $(this.configuration).updateCategory(t.name,t.category,r).then(n=>n(this.axios,this.basePath))}}const ya=function(e){return{queryCategories:async(t,r,n,l,s,a={})=>{const o="/apis/api.content.halo.run/v1alpha1/categories",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},queryCategoryByName:async(t,r={})=>{C("queryCategoryByName","name",t);const n="/apis/api.content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},queryPostsByCategoryName:async(t,r,n,l,s,a,o={})=>{C("queryPostsByCategoryName","name",t);const c="/apis/api.content.halo.run/v1alpha1/categories/{name}/posts".replace("{name}",encodeURIComponent(String(t))),p=new URL(c,O);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},U={};y(i,e),await v(d,e),r!==void 0&&(U.page=r),n!==void 0&&(U.size=n),l&&(U.labelSelector=l),s&&(U.fieldSelector=s),a&&(U.sort=a),S(p,U);let b=h&&h.headers?h.headers:{};return i.headers={...d,...b,...o.headers},{url:A(p),options:i}}}},Be=function(e){const t=ya(e);return{async queryCategories(r,n,l,s,a,o){var i,d;const c=await t.queryCategories(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["CategoryV1alpha1PublicApi.queryCategories"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async queryCategoryByName(r,n){var o,c;const l=await t.queryCategoryByName(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CategoryV1alpha1PublicApi.queryCategoryByName"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async queryPostsByCategoryName(r,n,l,s,a,o,c){var d,U;const p=await t.queryPostsByCategoryName(r,n,l,s,a,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(U=(d=P["CategoryV1alpha1PublicApi.queryPostsByCategoryName"])==null?void 0:d[h])==null?void 0:U.url;return(b,T)=>u(p,V,m,e)(b,i||T)}}},_s=function(e,t,r){const n=Be(e);return{queryCategories(l={},s){return n.queryCategories(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},queryCategoryByName(l,s){return n.queryCategoryByName(l.name,s).then(a=>a(r,t))},queryPostsByCategoryName(l,s){return n.queryPostsByCategoryName(l.name,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))}}};class Ws extends I{queryCategories(t={},r){return Be(this.configuration).queryCategories(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}queryCategoryByName(t,r){return Be(this.configuration).queryCategoryByName(t.name,r).then(n=>n(this.axios,this.basePath))}queryPostsByCategoryName(t,r){return Be(this.configuration).queryPostsByCategoryName(t.name,t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}}const va=function(e){return{createComment:async(t,r={})=>{const n="/apis/content.halo.run/v1alpha1/comments",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteComment:async(t,r={})=>{C("deleteComment","name",t);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getComment:async(t,r={})=>{C("getComment","name",t);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listComment:async(t,r,n,l,s,a={})=>{const o="/apis/content.halo.run/v1alpha1/comments",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchComment:async(t,r,n={})=>{C("patchComment","name",t);const l="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateComment:async(t,r,n={})=>{C("updateComment","name",t);const l="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},G=function(e){const t=va(e);return{async createComment(r,n){var o,c;const l=await t.createComment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CommentV1alpha1Api.createComment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteComment(r,n){var o,c;const l=await t.deleteComment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CommentV1alpha1Api.deleteComment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getComment(r,n){var o,c;const l=await t.getComment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CommentV1alpha1Api.getComment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listComment(r,n,l,s,a,o){var i,d;const c=await t.listComment(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["CommentV1alpha1Api.listComment"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchComment(r,n,l){var c,p;const s=await t.patchComment(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CommentV1alpha1Api.patchComment"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateComment(r,n,l){var c,p;const s=await t.updateComment(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CommentV1alpha1Api.updateComment"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Xs=function(e,t,r){const n=G(e);return{createComment(l={},s){return n.createComment(l.comment,s).then(a=>a(r,t))},deleteComment(l,s){return n.deleteComment(l.name,s).then(a=>a(r,t))},getComment(l,s){return n.getComment(l.name,s).then(a=>a(r,t))},listComment(l={},s){return n.listComment(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchComment(l,s){return n.patchComment(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateComment(l,s){return n.updateComment(l.name,l.comment,s).then(a=>a(r,t))}}};class Sa extends I{createComment(t={},r){return G(this.configuration).createComment(t.comment,r).then(n=>n(this.axios,this.basePath))}deleteComment(t,r){return G(this.configuration).deleteComment(t.name,r).then(n=>n(this.axios,this.basePath))}getComment(t,r){return G(this.configuration).getComment(t.name,r).then(n=>n(this.axios,this.basePath))}listComment(t={},r){return G(this.configuration).listComment(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchComment(t,r){return G(this.configuration).patchComment(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateComment(t,r){return G(this.configuration).updateComment(t.name,t.comment,r).then(n=>n(this.axios,this.basePath))}}const Aa=function(e){return{createComment:async(t,r={})=>{C("createComment","commentRequest",t);const n="/apis/api.console.halo.run/v1alpha1/comments",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},createReply:async(t,r,n={})=>{C("createReply","name",t),C("createReply","replyRequest",r);const l="/apis/api.console.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},listComments:async(t,r,n,l,s,a,o,c,p={})=>{const h="/apis/api.console.halo.run/v1alpha1/comments",i=new URL(h,O);let d;e&&(d=e.baseOptions);const U={method:"GET",...d,...p},b={},T={};y(U,e),await v(b,e),t!==void 0&&(T.page=t),r!==void 0&&(T.size=r),n&&(T.labelSelector=n),l&&(T.fieldSelector=l),s&&(T.sort=s),a!==void 0&&(T.keyword=a),o!==void 0&&(T.ownerKind=o),c!==void 0&&(T.ownerName=c),S(i,T);let B=d&&d.headers?d.headers:{};return U.headers={...b,...B,...p.headers},{url:A(i),options:U}}}},xe=function(e){const t=Aa(e);return{async createComment(r,n){var o,c;const l=await t.createComment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CommentV1alpha1ConsoleApi.createComment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async createReply(r,n,l){var c,p;const s=await t.createReply(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CommentV1alpha1ConsoleApi.createReply"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async listComments(r,n,l,s,a,o,c,p,h){var b,T;const i=await t.listComments(r,n,l,s,a,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,U=(T=(b=P["CommentV1alpha1ConsoleApi.listComments"])==null?void 0:b[d])==null?void 0:T.url;return(B,L)=>u(i,V,m,e)(B,U||L)}}},Ys=function(e,t,r){const n=xe(e);return{createComment(l,s){return n.createComment(l.commentRequest,s).then(a=>a(r,t))},createReply(l,s){return n.createReply(l.name,l.replyRequest,s).then(a=>a(r,t))},listComments(l={},s){return n.listComments(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,l.ownerKind,l.ownerName,s).then(a=>a(r,t))}}};class ua extends I{createComment(t,r){return xe(this.configuration).createComment(t.commentRequest,r).then(n=>n(this.axios,this.basePath))}createReply(t,r){return xe(this.configuration).createReply(t.name,t.replyRequest,r).then(n=>n(this.axios,this.basePath))}listComments(t={},r){return xe(this.configuration).listComments(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.keyword,t.ownerKind,t.ownerName,r).then(n=>n(this.axios,this.basePath))}}const Ra=function(e){return{createComment1:async(t,r={})=>{C("createComment1","commentRequest",t);const n="/apis/api.halo.run/v1alpha1/comments",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},createReply1:async(t,r,n={})=>{C("createReply1","name",t),C("createReply1","replyRequest",r);const l="/apis/api.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},getComment:async(t,r={})=>{C("getComment","name",t);const n="/apis/api.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listCommentReplies:async(t,r,n,l={})=>{C("listCommentReplies","name",t);const s="/apis/api.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(t))),a=new URL(s,O);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...l},p={},h={};y(c,e),await v(p,e),r!==void 0&&(h.page=r),n!==void 0&&(h.size=n),S(a,h);let i=o&&o.headers?o.headers:{};return c.headers={...p,...i,...l.headers},{url:A(a),options:c}},listComments1:async(t,r,n,l,s,a,o,c,p,h={})=>{C("listComments1","version",t),C("listComments1","kind",r),C("listComments1","name",n);const i="/apis/api.halo.run/v1alpha1/comments",d=new URL(i,O);let U;e&&(U=e.baseOptions);const b={method:"GET",...U,...h},T={},B={};y(b,e),await v(T,e),l!==void 0&&(B.page=l),s!==void 0&&(B.size=s),a&&(B.sort=a),o!==void 0&&(B.group=o),t!==void 0&&(B.version=t),r!==void 0&&(B.kind=r),n!==void 0&&(B.name=n),c!==void 0&&(B.withReplies=c),p!==void 0&&(B.replySize=p),S(d,B);let L=U&&U.headers?U.headers:{};return b.headers={...T,...L,...h.headers},{url:A(d),options:b}}}},be=function(e){const t=Ra(e);return{async createComment1(r,n){var o,c;const l=await t.createComment1(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CommentV1alpha1PublicApi.createComment1"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async createReply1(r,n,l){var c,p;const s=await t.createReply1(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CommentV1alpha1PublicApi.createReply1"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async getComment(r,n){var o,c;const l=await t.getComment(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CommentV1alpha1PublicApi.getComment"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listCommentReplies(r,n,l,s){var p,h;const a=await t.listCommentReplies(r,n,l,s),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=P["CommentV1alpha1PublicApi.listCommentReplies"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>u(a,V,m,e)(i,c||d)},async listComments1(r,n,l,s,a,o,c,p,h,i){var T,B;const d=await t.listComments1(r,n,l,s,a,o,c,p,h,i),U=(e==null?void 0:e.serverIndex)??0,b=(B=(T=P["CommentV1alpha1PublicApi.listComments1"])==null?void 0:T[U])==null?void 0:B.url;return(L,fe)=>u(d,V,m,e)(L,b||fe)}}},Zs=function(e,t,r){const n=be(e);return{createComment1(l,s){return n.createComment1(l.commentRequest,s).then(a=>a(r,t))},createReply1(l,s){return n.createReply1(l.name,l.replyRequest,s).then(a=>a(r,t))},getComment(l,s){return n.getComment(l.name,s).then(a=>a(r,t))},listCommentReplies(l,s){return n.listCommentReplies(l.name,l.page,l.size,s).then(a=>a(r,t))},listComments1(l,s){return n.listComments1(l.version,l.kind,l.name,l.page,l.size,l.sort,l.group,l.withReplies,l.replySize,s).then(a=>a(r,t))}}};class Ca extends I{createComment1(t,r){return be(this.configuration).createComment1(t.commentRequest,r).then(n=>n(this.axios,this.basePath))}createReply1(t,r){return be(this.configuration).createReply1(t.name,t.replyRequest,r).then(n=>n(this.axios,this.basePath))}getComment(t,r){return be(this.configuration).getComment(t.name,r).then(n=>n(this.axios,this.basePath))}listCommentReplies(t,r){return be(this.configuration).listCommentReplies(t.name,t.page,t.size,r).then(n=>n(this.axios,this.basePath))}listComments1(t,r){return be(this.configuration).listComments1(t.version,t.kind,t.name,t.page,t.size,t.sort,t.group,t.withReplies,t.replySize,r).then(n=>n(this.axios,this.basePath))}}const Ua=function(e){return{createConfigMap:async(t,r={})=>{const n="/api/v1alpha1/configmaps",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteConfigMap:async(t,r={})=>{C("deleteConfigMap","name",t);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getConfigMap:async(t,r={})=>{C("getConfigMap","name",t);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listConfigMap:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/configmaps",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchConfigMap:async(t,r,n={})=>{C("patchConfigMap","name",t);const l="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateConfigMap:async(t,r,n={})=>{C("updateConfigMap","name",t);const l="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},z=function(e){const t=Ua(e);return{async createConfigMap(r,n){var o,c;const l=await t.createConfigMap(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ConfigMapV1alpha1Api.createConfigMap"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteConfigMap(r,n){var o,c;const l=await t.deleteConfigMap(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ConfigMapV1alpha1Api.deleteConfigMap"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getConfigMap(r,n){var o,c;const l=await t.getConfigMap(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ConfigMapV1alpha1Api.getConfigMap"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listConfigMap(r,n,l,s,a,o){var i,d;const c=await t.listConfigMap(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ConfigMapV1alpha1Api.listConfigMap"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchConfigMap(r,n,l){var c,p;const s=await t.patchConfigMap(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ConfigMapV1alpha1Api.patchConfigMap"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateConfigMap(r,n,l){var c,p;const s=await t.updateConfigMap(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ConfigMapV1alpha1Api.updateConfigMap"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},qs=function(e,t,r){const n=z(e);return{createConfigMap(l={},s){return n.createConfigMap(l.configMap,s).then(a=>a(r,t))},deleteConfigMap(l,s){return n.deleteConfigMap(l.name,s).then(a=>a(r,t))},getConfigMap(l,s){return n.getConfigMap(l.name,s).then(a=>a(r,t))},listConfigMap(l={},s){return n.listConfigMap(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchConfigMap(l,s){return n.patchConfigMap(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateConfigMap(l,s){return n.updateConfigMap(l.name,l.configMap,s).then(a=>a(r,t))}}};class ba extends I{createConfigMap(t={},r){return z(this.configuration).createConfigMap(t.configMap,r).then(n=>n(this.axios,this.basePath))}deleteConfigMap(t,r){return z(this.configuration).deleteConfigMap(t.name,r).then(n=>n(this.axios,this.basePath))}getConfigMap(t,r){return z(this.configuration).getConfigMap(t.name,r).then(n=>n(this.axios,this.basePath))}listConfigMap(t={},r){return z(this.configuration).listConfigMap(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchConfigMap(t,r){return z(this.configuration).patchConfigMap(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateConfigMap(t,r){return z(this.configuration).updateConfigMap(t.name,t.configMap,r).then(n=>n(this.axios,this.basePath))}}const wa=function(e){return{createCounter:async(t,r={})=>{const n="/apis/metrics.halo.run/v1alpha1/counters",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteCounter:async(t,r={})=>{C("deleteCounter","name",t);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getCounter:async(t,r={})=>{C("getCounter","name",t);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listCounter:async(t,r,n,l,s,a={})=>{const o="/apis/metrics.halo.run/v1alpha1/counters",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchCounter:async(t,r,n={})=>{C("patchCounter","name",t);const l="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateCounter:async(t,r,n={})=>{C("updateCounter","name",t);const l="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},K=function(e){const t=wa(e);return{async createCounter(r,n){var o,c;const l=await t.createCounter(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CounterV1alpha1Api.createCounter"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteCounter(r,n){var o,c;const l=await t.deleteCounter(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CounterV1alpha1Api.deleteCounter"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getCounter(r,n){var o,c;const l=await t.getCounter(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["CounterV1alpha1Api.getCounter"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listCounter(r,n,l,s,a,o){var i,d;const c=await t.listCounter(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["CounterV1alpha1Api.listCounter"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchCounter(r,n,l){var c,p;const s=await t.patchCounter(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CounterV1alpha1Api.patchCounter"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateCounter(r,n,l){var c,p;const s=await t.updateCounter(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["CounterV1alpha1Api.updateCounter"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},gs=function(e,t,r){const n=K(e);return{createCounter(l={},s){return n.createCounter(l.counter,s).then(a=>a(r,t))},deleteCounter(l,s){return n.deleteCounter(l.name,s).then(a=>a(r,t))},getCounter(l,s){return n.getCounter(l.name,s).then(a=>a(r,t))},listCounter(l={},s){return n.listCounter(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchCounter(l,s){return n.patchCounter(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateCounter(l,s){return n.updateCounter(l.name,l.counter,s).then(a=>a(r,t))}}};class Ta extends I{createCounter(t={},r){return K(this.configuration).createCounter(t.counter,r).then(n=>n(this.axios,this.basePath))}deleteCounter(t,r){return K(this.configuration).deleteCounter(t.name,r).then(n=>n(this.axios,this.basePath))}getCounter(t,r){return K(this.configuration).getCounter(t.name,r).then(n=>n(this.axios,this.basePath))}listCounter(t={},r){return K(this.configuration).listCounter(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchCounter(t,r){return K(this.configuration).patchCounter(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateCounter(t,r){return K(this.configuration).updateCounter(t.name,t.counter,r).then(n=>n(this.axios,this.basePath))}}const Ia=function(e){return{createDevice:async(t,r={})=>{const n="/apis/security.halo.run/v1alpha1/devices",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteDevice:async(t,r={})=>{C("deleteDevice","name",t);const n="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getDevice:async(t,r={})=>{C("getDevice","name",t);const n="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listDevice:async(t,r,n,l,s,a={})=>{const o="/apis/security.halo.run/v1alpha1/devices",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchDevice:async(t,r,n={})=>{C("patchDevice","name",t);const l="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateDevice:async(t,r,n={})=>{C("updateDevice","name",t);const l="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},J=function(e){const t=Ia(e);return{async createDevice(r,n){var o,c;const l=await t.createDevice(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["DeviceV1alpha1Api.createDevice"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteDevice(r,n){var o,c;const l=await t.deleteDevice(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["DeviceV1alpha1Api.deleteDevice"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getDevice(r,n){var o,c;const l=await t.getDevice(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["DeviceV1alpha1Api.getDevice"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listDevice(r,n,l,s,a,o){var i,d;const c=await t.listDevice(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["DeviceV1alpha1Api.listDevice"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchDevice(r,n,l){var c,p;const s=await t.patchDevice(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["DeviceV1alpha1Api.patchDevice"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateDevice(r,n,l){var c,p;const s=await t.updateDevice(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["DeviceV1alpha1Api.updateDevice"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},fs=function(e,t,r){const n=J(e);return{createDevice(l={},s){return n.createDevice(l.device,s).then(a=>a(r,t))},deleteDevice(l,s){return n.deleteDevice(l.name,s).then(a=>a(r,t))},getDevice(l,s){return n.getDevice(l.name,s).then(a=>a(r,t))},listDevice(l={},s){return n.listDevice(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchDevice(l,s){return n.patchDevice(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateDevice(l,s){return n.updateDevice(l.name,l.device,s).then(a=>a(r,t))}}};class er extends I{createDevice(t={},r){return J(this.configuration).createDevice(t.device,r).then(n=>n(this.axios,this.basePath))}deleteDevice(t,r){return J(this.configuration).deleteDevice(t.name,r).then(n=>n(this.axios,this.basePath))}getDevice(t,r){return J(this.configuration).getDevice(t.name,r).then(n=>n(this.axios,this.basePath))}listDevice(t={},r){return J(this.configuration).listDevice(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchDevice(t,r){return J(this.configuration).patchDevice(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateDevice(t,r){return J(this.configuration).updateDevice(t.name,t.device,r).then(n=>n(this.axios,this.basePath))}}const Ba=function(e){return{listDevices:async(t={})=>{const r="/apis/uc.api.security.halo.run/v1alpha1/devices",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},revokeDevice:async(t,r={})=>{C("revokeDevice","deviceId",t);const n="/apis/uc.api.security.halo.run/v1alpha1/devices/{deviceId}".replace("{deviceId}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}}}},Ne=function(e){const t=Ba(e);return{async listDevices(r){var a,o;const n=await t.listDevices(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["DeviceV1alpha1UcApi.listDevices"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async revokeDevice(r,n){var o,c;const l=await t.revokeDevice(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["DeviceV1alpha1UcApi.revokeDevice"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},ar=function(e,t,r){const n=Ne(e);return{listDevices(l){return n.listDevices(l).then(s=>s(r,t))},revokeDevice(l,s){return n.revokeDevice(l.deviceId,s).then(a=>a(r,t))}}};class xa extends I{listDevices(t){return Ne(this.configuration).listDevices(t).then(r=>r(this.axios,this.basePath))}revokeDevice(t,r){return Ne(this.configuration).revokeDevice(t.deviceId,r).then(n=>n(this.axios,this.basePath))}}const Fa=function(e){return{createExtensionDefinition:async(t,r={})=>{const n="/apis/plugin.halo.run/v1alpha1/extensiondefinitions",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteExtensionDefinition:async(t,r={})=>{C("deleteExtensionDefinition","name",t);const n="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getExtensionDefinition:async(t,r={})=>{C("getExtensionDefinition","name",t);const n="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listExtensionDefinition:async(t,r,n,l,s,a={})=>{const o="/apis/plugin.halo.run/v1alpha1/extensiondefinitions",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchExtensionDefinition:async(t,r,n={})=>{C("patchExtensionDefinition","name",t);const l="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateExtensionDefinition:async(t,r,n={})=>{C("updateExtensionDefinition","name",t);const l="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},_=function(e){const t=Fa(e);return{async createExtensionDefinition(r,n){var o,c;const l=await t.createExtensionDefinition(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ExtensionDefinitionV1alpha1Api.createExtensionDefinition"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteExtensionDefinition(r,n){var o,c;const l=await t.deleteExtensionDefinition(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ExtensionDefinitionV1alpha1Api.deleteExtensionDefinition"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getExtensionDefinition(r,n){var o,c;const l=await t.getExtensionDefinition(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ExtensionDefinitionV1alpha1Api.getExtensionDefinition"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listExtensionDefinition(r,n,l,s,a,o){var i,d;const c=await t.listExtensionDefinition(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ExtensionDefinitionV1alpha1Api.listExtensionDefinition"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchExtensionDefinition(r,n,l){var c,p;const s=await t.patchExtensionDefinition(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ExtensionDefinitionV1alpha1Api.patchExtensionDefinition"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateExtensionDefinition(r,n,l){var c,p;const s=await t.updateExtensionDefinition(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ExtensionDefinitionV1alpha1Api.updateExtensionDefinition"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},tr=function(e,t,r){const n=_(e);return{createExtensionDefinition(l={},s){return n.createExtensionDefinition(l.extensionDefinition,s).then(a=>a(r,t))},deleteExtensionDefinition(l,s){return n.deleteExtensionDefinition(l.name,s).then(a=>a(r,t))},getExtensionDefinition(l,s){return n.getExtensionDefinition(l.name,s).then(a=>a(r,t))},listExtensionDefinition(l={},s){return n.listExtensionDefinition(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchExtensionDefinition(l,s){return n.patchExtensionDefinition(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateExtensionDefinition(l,s){return n.updateExtensionDefinition(l.name,l.extensionDefinition,s).then(a=>a(r,t))}}};class ja extends I{createExtensionDefinition(t={},r){return _(this.configuration).createExtensionDefinition(t.extensionDefinition,r).then(n=>n(this.axios,this.basePath))}deleteExtensionDefinition(t,r){return _(this.configuration).deleteExtensionDefinition(t.name,r).then(n=>n(this.axios,this.basePath))}getExtensionDefinition(t,r){return _(this.configuration).getExtensionDefinition(t.name,r).then(n=>n(this.axios,this.basePath))}listExtensionDefinition(t={},r){return _(this.configuration).listExtensionDefinition(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchExtensionDefinition(t,r){return _(this.configuration).patchExtensionDefinition(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateExtensionDefinition(t,r){return _(this.configuration).updateExtensionDefinition(t.name,t.extensionDefinition,r).then(n=>n(this.axios,this.basePath))}}const Ea=function(e){return{createExtensionPointDefinition:async(t,r={})=>{const n="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteExtensionPointDefinition:async(t,r={})=>{C("deleteExtensionPointDefinition","name",t);const n="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getExtensionPointDefinition:async(t,r={})=>{C("getExtensionPointDefinition","name",t);const n="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listExtensionPointDefinition:async(t,r,n,l,s,a={})=>{const o="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchExtensionPointDefinition:async(t,r,n={})=>{C("patchExtensionPointDefinition","name",t);const l="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateExtensionPointDefinition:async(t,r,n={})=>{C("updateExtensionPointDefinition","name",t);const l="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},W=function(e){const t=Ea(e);return{async createExtensionPointDefinition(r,n){var o,c;const l=await t.createExtensionPointDefinition(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ExtensionPointDefinitionV1alpha1Api.createExtensionPointDefinition"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteExtensionPointDefinition(r,n){var o,c;const l=await t.deleteExtensionPointDefinition(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ExtensionPointDefinitionV1alpha1Api.deleteExtensionPointDefinition"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getExtensionPointDefinition(r,n){var o,c;const l=await t.getExtensionPointDefinition(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ExtensionPointDefinitionV1alpha1Api.getExtensionPointDefinition"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listExtensionPointDefinition(r,n,l,s,a,o){var i,d;const c=await t.listExtensionPointDefinition(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ExtensionPointDefinitionV1alpha1Api.listExtensionPointDefinition"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchExtensionPointDefinition(r,n,l){var c,p;const s=await t.patchExtensionPointDefinition(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ExtensionPointDefinitionV1alpha1Api.patchExtensionPointDefinition"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateExtensionPointDefinition(r,n,l){var c,p;const s=await t.updateExtensionPointDefinition(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ExtensionPointDefinitionV1alpha1Api.updateExtensionPointDefinition"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},sr=function(e,t,r){const n=W(e);return{createExtensionPointDefinition(l={},s){return n.createExtensionPointDefinition(l.extensionPointDefinition,s).then(a=>a(r,t))},deleteExtensionPointDefinition(l,s){return n.deleteExtensionPointDefinition(l.name,s).then(a=>a(r,t))},getExtensionPointDefinition(l,s){return n.getExtensionPointDefinition(l.name,s).then(a=>a(r,t))},listExtensionPointDefinition(l={},s){return n.listExtensionPointDefinition(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchExtensionPointDefinition(l,s){return n.patchExtensionPointDefinition(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateExtensionPointDefinition(l,s){return n.updateExtensionPointDefinition(l.name,l.extensionPointDefinition,s).then(a=>a(r,t))}}};class La extends I{createExtensionPointDefinition(t={},r){return W(this.configuration).createExtensionPointDefinition(t.extensionPointDefinition,r).then(n=>n(this.axios,this.basePath))}deleteExtensionPointDefinition(t,r){return W(this.configuration).deleteExtensionPointDefinition(t.name,r).then(n=>n(this.axios,this.basePath))}getExtensionPointDefinition(t,r){return W(this.configuration).getExtensionPointDefinition(t.name,r).then(n=>n(this.axios,this.basePath))}listExtensionPointDefinition(t={},r){return W(this.configuration).listExtensionPointDefinition(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchExtensionPointDefinition(t,r){return W(this.configuration).patchExtensionPointDefinition(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateExtensionPointDefinition(t,r){return W(this.configuration).updateExtensionPointDefinition(t.name,t.extensionPointDefinition,r).then(n=>n(this.axios,this.basePath))}}const Da=function(e){return{createGroup:async(t,r={})=>{const n="/apis/storage.halo.run/v1alpha1/groups",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteGroup:async(t,r={})=>{C("deleteGroup","name",t);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getGroup:async(t,r={})=>{C("getGroup","name",t);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listGroup:async(t,r,n,l,s,a={})=>{const o="/apis/storage.halo.run/v1alpha1/groups",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchGroup:async(t,r,n={})=>{C("patchGroup","name",t);const l="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateGroup:async(t,r,n={})=>{C("updateGroup","name",t);const l="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},X=function(e){const t=Da(e);return{async createGroup(r,n){var o,c;const l=await t.createGroup(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["GroupV1alpha1Api.createGroup"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteGroup(r,n){var o,c;const l=await t.deleteGroup(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["GroupV1alpha1Api.deleteGroup"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getGroup(r,n){var o,c;const l=await t.getGroup(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["GroupV1alpha1Api.getGroup"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listGroup(r,n,l,s,a,o){var i,d;const c=await t.listGroup(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["GroupV1alpha1Api.listGroup"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchGroup(r,n,l){var c,p;const s=await t.patchGroup(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["GroupV1alpha1Api.patchGroup"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateGroup(r,n,l){var c,p;const s=await t.updateGroup(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["GroupV1alpha1Api.updateGroup"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},rr=function(e,t,r){const n=X(e);return{createGroup(l={},s){return n.createGroup(l.group,s).then(a=>a(r,t))},deleteGroup(l,s){return n.deleteGroup(l.name,s).then(a=>a(r,t))},getGroup(l,s){return n.getGroup(l.name,s).then(a=>a(r,t))},listGroup(l={},s){return n.listGroup(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchGroup(l,s){return n.patchGroup(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateGroup(l,s){return n.updateGroup(l.name,l.group,s).then(a=>a(r,t))}}};class Na extends I{createGroup(t={},r){return X(this.configuration).createGroup(t.group,r).then(n=>n(this.axios,this.basePath))}deleteGroup(t,r){return X(this.configuration).deleteGroup(t.name,r).then(n=>n(this.axios,this.basePath))}getGroup(t,r){return X(this.configuration).getGroup(t.name,r).then(n=>n(this.axios,this.basePath))}listGroup(t={},r){return X(this.configuration).listGroup(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchGroup(t,r){return X(this.configuration).patchGroup(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateGroup(t,r){return X(this.configuration).updateGroup(t.name,t.group,r).then(n=>n(this.axios,this.basePath))}}const Ha=function(e){return{indicesSearch:async(t,r={})=>{const n="/apis/api.halo.run/v1alpha1/indices/-/search",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},searchPost:async(t,r,n,l,s={})=>{C("searchPost","keyword",t);const a="/apis/api.halo.run/v1alpha1/indices/post",o=new URL(a,O);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...s},h={},i={};y(p,e),await v(h,e),t!==void 0&&(i.keyword=t),r!==void 0&&(i.limit=r),n!==void 0&&(i.highlightPreTag=n),l!==void 0&&(i.highlightPostTag=l),S(o,i);let d=c&&c.headers?c.headers:{};return p.headers={...h,...d,...s.headers},{url:A(o),options:p}}}},He=function(e){const t=Ha(e);return{async indicesSearch(r,n){var o,c;const l=await t.indicesSearch(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["IndexV1alpha1PublicApi.indicesSearch"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async searchPost(r,n,l,s,a){var h,i;const o=await t.searchPost(r,n,l,s,a),c=(e==null?void 0:e.serverIndex)??0,p=(i=(h=P["IndexV1alpha1PublicApi.searchPost"])==null?void 0:h[c])==null?void 0:i.url;return(d,U)=>u(o,V,m,e)(d,p||U)}}},lr=function(e,t,r){const n=He(e);return{indicesSearch(l={},s){return n.indicesSearch(l.searchOption,s).then(a=>a(r,t))},searchPost(l,s){return n.searchPost(l.keyword,l.limit,l.highlightPreTag,l.highlightPostTag,s).then(a=>a(r,t))}}};class nr extends I{indicesSearch(t={},r){return He(this.configuration).indicesSearch(t.searchOption,r).then(n=>n(this.axios,this.basePath))}searchPost(t,r){return He(this.configuration).searchPost(t.keyword,t.limit,t.highlightPreTag,t.highlightPostTag,r).then(n=>n(this.axios,this.basePath))}}const Ma=function(e){return{buildPostIndices:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/indices/post",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"POST",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},rebuildAllIndices:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/indices/-/rebuild",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"POST",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}}}},Me=function(e){const t=Ma(e);return{async buildPostIndices(r){var a,o;const n=await t.buildPostIndices(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["IndicesV1alpha1ConsoleApi.buildPostIndices"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async rebuildAllIndices(r){var a,o;const n=await t.rebuildAllIndices(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["IndicesV1alpha1ConsoleApi.rebuildAllIndices"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)}}},or=function(e,t,r){const n=Me(e);return{buildPostIndices(l){return n.buildPostIndices(l).then(s=>s(r,t))},rebuildAllIndices(l){return n.rebuildAllIndices(l).then(s=>s(r,t))}}};class Qa extends I{buildPostIndices(t){return Me(this.configuration).buildPostIndices(t).then(r=>r(this.axios,this.basePath))}rebuildAllIndices(t){return Me(this.configuration).rebuildAllIndices(t).then(r=>r(this.axios,this.basePath))}}const ka=function(e){return{getPublicKey:async(t={})=>{const r="/login/public-key",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}}}},We=function(e){const t=ka(e);return{async getPublicKey(r){var a,o;const n=await t.getPublicKey(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["LoginApi.getPublicKey"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)}}},cr=function(e,t,r){const n=We(e);return{getPublicKey(l){return n.getPublicKey(l).then(s=>s(r,t))}}};class $a extends I{getPublicKey(t){return We(this.configuration).getPublicKey(t).then(r=>r(this.axios,this.basePath))}}const Ga=function(e){return{createMenuItem:async(t,r={})=>{const n="/api/v1alpha1/menuitems",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteMenuItem:async(t,r={})=>{C("deleteMenuItem","name",t);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getMenuItem:async(t,r={})=>{C("getMenuItem","name",t);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listMenuItem:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/menuitems",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchMenuItem:async(t,r,n={})=>{C("patchMenuItem","name",t);const l="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateMenuItem:async(t,r,n={})=>{C("updateMenuItem","name",t);const l="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Y=function(e){const t=Ga(e);return{async createMenuItem(r,n){var o,c;const l=await t.createMenuItem(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MenuItemV1alpha1Api.createMenuItem"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteMenuItem(r,n){var o,c;const l=await t.deleteMenuItem(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MenuItemV1alpha1Api.deleteMenuItem"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getMenuItem(r,n){var o,c;const l=await t.getMenuItem(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MenuItemV1alpha1Api.getMenuItem"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listMenuItem(r,n,l,s,a,o){var i,d;const c=await t.listMenuItem(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["MenuItemV1alpha1Api.listMenuItem"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchMenuItem(r,n,l){var c,p;const s=await t.patchMenuItem(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["MenuItemV1alpha1Api.patchMenuItem"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateMenuItem(r,n,l){var c,p;const s=await t.updateMenuItem(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["MenuItemV1alpha1Api.updateMenuItem"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},pr=function(e,t,r){const n=Y(e);return{createMenuItem(l={},s){return n.createMenuItem(l.menuItem,s).then(a=>a(r,t))},deleteMenuItem(l,s){return n.deleteMenuItem(l.name,s).then(a=>a(r,t))},getMenuItem(l,s){return n.getMenuItem(l.name,s).then(a=>a(r,t))},listMenuItem(l={},s){return n.listMenuItem(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchMenuItem(l,s){return n.patchMenuItem(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateMenuItem(l,s){return n.updateMenuItem(l.name,l.menuItem,s).then(a=>a(r,t))}}};class za extends I{createMenuItem(t={},r){return Y(this.configuration).createMenuItem(t.menuItem,r).then(n=>n(this.axios,this.basePath))}deleteMenuItem(t,r){return Y(this.configuration).deleteMenuItem(t.name,r).then(n=>n(this.axios,this.basePath))}getMenuItem(t,r){return Y(this.configuration).getMenuItem(t.name,r).then(n=>n(this.axios,this.basePath))}listMenuItem(t={},r){return Y(this.configuration).listMenuItem(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchMenuItem(t,r){return Y(this.configuration).patchMenuItem(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateMenuItem(t,r){return Y(this.configuration).updateMenuItem(t.name,t.menuItem,r).then(n=>n(this.axios,this.basePath))}}const Ka=function(e){return{createMenu:async(t,r={})=>{const n="/api/v1alpha1/menus",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteMenu:async(t,r={})=>{C("deleteMenu","name",t);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getMenu:async(t,r={})=>{C("getMenu","name",t);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listMenu:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/menus",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchMenu:async(t,r,n={})=>{C("patchMenu","name",t);const l="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateMenu:async(t,r,n={})=>{C("updateMenu","name",t);const l="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Z=function(e){const t=Ka(e);return{async createMenu(r,n){var o,c;const l=await t.createMenu(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MenuV1alpha1Api.createMenu"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteMenu(r,n){var o,c;const l=await t.deleteMenu(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MenuV1alpha1Api.deleteMenu"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getMenu(r,n){var o,c;const l=await t.getMenu(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MenuV1alpha1Api.getMenu"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listMenu(r,n,l,s,a,o){var i,d;const c=await t.listMenu(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["MenuV1alpha1Api.listMenu"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchMenu(r,n,l){var c,p;const s=await t.patchMenu(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["MenuV1alpha1Api.patchMenu"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateMenu(r,n,l){var c,p;const s=await t.updateMenu(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["MenuV1alpha1Api.updateMenu"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},hr=function(e,t,r){const n=Z(e);return{createMenu(l={},s){return n.createMenu(l.menu,s).then(a=>a(r,t))},deleteMenu(l,s){return n.deleteMenu(l.name,s).then(a=>a(r,t))},getMenu(l,s){return n.getMenu(l.name,s).then(a=>a(r,t))},listMenu(l={},s){return n.listMenu(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchMenu(l,s){return n.patchMenu(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateMenu(l,s){return n.updateMenu(l.name,l.menu,s).then(a=>a(r,t))}}};class Ja extends I{createMenu(t={},r){return Z(this.configuration).createMenu(t.menu,r).then(n=>n(this.axios,this.basePath))}deleteMenu(t,r){return Z(this.configuration).deleteMenu(t.name,r).then(n=>n(this.axios,this.basePath))}getMenu(t,r){return Z(this.configuration).getMenu(t.name,r).then(n=>n(this.axios,this.basePath))}listMenu(t={},r){return Z(this.configuration).listMenu(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchMenu(t,r){return Z(this.configuration).patchMenu(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateMenu(t,r){return Z(this.configuration).updateMenu(t.name,t.menu,r).then(n=>n(this.axios,this.basePath))}}const _a=function(e){return{queryMenuByName:async(t,r={})=>{C("queryMenuByName","name",t);const n="/apis/api.halo.run/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},queryPrimaryMenu:async(t={})=>{const r="/apis/api.halo.run/v1alpha1/menus/-",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}}}},Qe=function(e){const t=_a(e);return{async queryMenuByName(r,n){var o,c;const l=await t.queryMenuByName(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MenuV1alpha1PublicApi.queryMenuByName"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async queryPrimaryMenu(r){var a,o;const n=await t.queryPrimaryMenu(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["MenuV1alpha1PublicApi.queryPrimaryMenu"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)}}},ir=function(e,t,r){const n=Qe(e);return{queryMenuByName(l,s){return n.queryMenuByName(l.name,s).then(a=>a(r,t))},queryPrimaryMenu(l){return n.queryPrimaryMenu(l).then(s=>s(r,t))}}};class Wa extends I{queryMenuByName(t,r){return Qe(this.configuration).queryMenuByName(t.name,r).then(n=>n(this.axios,this.basePath))}queryPrimaryMenu(t){return Qe(this.configuration).queryPrimaryMenu(t).then(r=>r(this.axios,this.basePath))}}const Xa=function(e){return{count:async(t,r={})=>{C("count","counterRequest",t);const n="/apis/api.halo.run/v1alpha1/trackers/counter",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},downvote:async(t,r={})=>{C("downvote","voteRequest",t);const n="/apis/api.halo.run/v1alpha1/trackers/downvote",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},upvote:async(t,r={})=>{C("upvote","voteRequest",t);const n="/apis/api.halo.run/v1alpha1/trackers/upvote",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}}}},Fe=function(e){const t=Xa(e);return{async count(r,n){var o,c;const l=await t.count(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MetricsV1alpha1PublicApi.count"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async downvote(r,n){var o,c;const l=await t.downvote(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MetricsV1alpha1PublicApi.downvote"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async upvote(r,n){var o,c;const l=await t.upvote(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["MetricsV1alpha1PublicApi.upvote"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},dr=function(e,t,r){const n=Fe(e);return{count(l,s){return n.count(l.counterRequest,s).then(a=>a(r,t))},downvote(l,s){return n.downvote(l.voteRequest,s).then(a=>a(r,t))},upvote(l,s){return n.upvote(l.voteRequest,s).then(a=>a(r,t))}}};class Ya extends I{count(t,r){return Fe(this.configuration).count(t.counterRequest,r).then(n=>n(this.axios,this.basePath))}downvote(t,r){return Fe(this.configuration).downvote(t.voteRequest,r).then(n=>n(this.axios,this.basePath))}upvote(t,r){return Fe(this.configuration).upvote(t.voteRequest,r).then(n=>n(this.axios,this.basePath))}}const Za=function(e){return{downloadBackups:async(t,r,n={})=>{C("downloadBackups","name",t),C("downloadBackups","filename",r);const l="/apis/api.console.migration.halo.run/v1alpha1/backups/{name}/files/{filename}".replace("{name}",encodeURIComponent(String(t))).replace("{filename}",encodeURIComponent(String(r))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...n},c={},p={};y(o,e),await v(c,e),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},restoreBackup:async(t,r,n,l={})=>{const s="/apis/api.console.migration.halo.run/v1alpha1/restorations",a=new URL(s,O);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...l},p={},h={},i=new(e&&e.formDataCtor||FormData);y(c,e),await v(p,e),t!==void 0&&i.append("backupName",t),r!==void 0&&i.append("downloadUrl",r),n!==void 0&&i.append("file",n),p["Content-Type"]="multipart/form-data",S(a,h);let d=o&&o.headers?o.headers:{};return c.headers={...p,...d,...l.headers},c.data=i,{url:A(a),options:c}}}},ke=function(e){const t=Za(e);return{async downloadBackups(r,n,l){var c,p;const s=await t.downloadBackups(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["MigrationV1alpha1ConsoleApi.downloadBackups"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async restoreBackup(r,n,l,s){var p,h;const a=await t.restoreBackup(r,n,l,s),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=P["MigrationV1alpha1ConsoleApi.restoreBackup"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>u(a,V,m,e)(i,c||d)}}},Vr=function(e,t,r){const n=ke(e);return{downloadBackups(l,s){return n.downloadBackups(l.name,l.filename,s).then(a=>a(r,t))},restoreBackup(l={},s){return n.restoreBackup(l.backupName,l.downloadUrl,l.file,s).then(a=>a(r,t))}}};class qa extends I{downloadBackups(t,r){return ke(this.configuration).downloadBackups(t.name,t.filename,r).then(n=>n(this.axios,this.basePath))}restoreBackup(t={},r){return ke(this.configuration).restoreBackup(t.backupName,t.downloadUrl,t.file,r).then(n=>n(this.axios,this.basePath))}}const ga=function(e){return{createNotificationTemplate:async(t,r={})=>{const n="/apis/notification.halo.run/v1alpha1/notificationtemplates",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteNotificationTemplate:async(t,r={})=>{C("deleteNotificationTemplate","name",t);const n="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getNotificationTemplate:async(t,r={})=>{C("getNotificationTemplate","name",t);const n="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listNotificationTemplate:async(t,r,n,l,s,a={})=>{const o="/apis/notification.halo.run/v1alpha1/notificationtemplates",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchNotificationTemplate:async(t,r,n={})=>{C("patchNotificationTemplate","name",t);const l="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateNotificationTemplate:async(t,r,n={})=>{C("updateNotificationTemplate","name",t);const l="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},q=function(e){const t=ga(e);return{async createNotificationTemplate(r,n){var o,c;const l=await t.createNotificationTemplate(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotificationTemplateV1alpha1Api.createNotificationTemplate"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteNotificationTemplate(r,n){var o,c;const l=await t.deleteNotificationTemplate(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotificationTemplateV1alpha1Api.deleteNotificationTemplate"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getNotificationTemplate(r,n){var o,c;const l=await t.getNotificationTemplate(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotificationTemplateV1alpha1Api.getNotificationTemplate"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listNotificationTemplate(r,n,l,s,a,o){var i,d;const c=await t.listNotificationTemplate(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["NotificationTemplateV1alpha1Api.listNotificationTemplate"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchNotificationTemplate(r,n,l){var c,p;const s=await t.patchNotificationTemplate(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationTemplateV1alpha1Api.patchNotificationTemplate"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateNotificationTemplate(r,n,l){var c,p;const s=await t.updateNotificationTemplate(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationTemplateV1alpha1Api.updateNotificationTemplate"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},mr=function(e,t,r){const n=q(e);return{createNotificationTemplate(l={},s){return n.createNotificationTemplate(l.notificationTemplate,s).then(a=>a(r,t))},deleteNotificationTemplate(l,s){return n.deleteNotificationTemplate(l.name,s).then(a=>a(r,t))},getNotificationTemplate(l,s){return n.getNotificationTemplate(l.name,s).then(a=>a(r,t))},listNotificationTemplate(l={},s){return n.listNotificationTemplate(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchNotificationTemplate(l,s){return n.patchNotificationTemplate(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateNotificationTemplate(l,s){return n.updateNotificationTemplate(l.name,l.notificationTemplate,s).then(a=>a(r,t))}}};class fa extends I{createNotificationTemplate(t={},r){return q(this.configuration).createNotificationTemplate(t.notificationTemplate,r).then(n=>n(this.axios,this.basePath))}deleteNotificationTemplate(t,r){return q(this.configuration).deleteNotificationTemplate(t.name,r).then(n=>n(this.axios,this.basePath))}getNotificationTemplate(t,r){return q(this.configuration).getNotificationTemplate(t.name,r).then(n=>n(this.axios,this.basePath))}listNotificationTemplate(t={},r){return q(this.configuration).listNotificationTemplate(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchNotificationTemplate(t,r){return q(this.configuration).patchNotificationTemplate(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateNotificationTemplate(t,r){return q(this.configuration).updateNotificationTemplate(t.name,t.notificationTemplate,r).then(n=>n(this.axios,this.basePath))}}const et=function(e){return{createNotification:async(t,r={})=>{const n="/apis/notification.halo.run/v1alpha1/notifications",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteNotification:async(t,r={})=>{C("deleteNotification","name",t);const n="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getNotification:async(t,r={})=>{C("getNotification","name",t);const n="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listNotification:async(t,r,n,l,s,a={})=>{const o="/apis/notification.halo.run/v1alpha1/notifications",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchNotification:async(t,r,n={})=>{C("patchNotification","name",t);const l="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateNotification:async(t,r,n={})=>{C("updateNotification","name",t);const l="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},g=function(e){const t=et(e);return{async createNotification(r,n){var o,c;const l=await t.createNotification(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotificationV1alpha1Api.createNotification"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteNotification(r,n){var o,c;const l=await t.deleteNotification(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotificationV1alpha1Api.deleteNotification"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getNotification(r,n){var o,c;const l=await t.getNotification(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotificationV1alpha1Api.getNotification"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listNotification(r,n,l,s,a,o){var i,d;const c=await t.listNotification(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["NotificationV1alpha1Api.listNotification"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchNotification(r,n,l){var c,p;const s=await t.patchNotification(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationV1alpha1Api.patchNotification"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateNotification(r,n,l){var c,p;const s=await t.updateNotification(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationV1alpha1Api.updateNotification"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Pr=function(e,t,r){const n=g(e);return{createNotification(l={},s){return n.createNotification(l.notification,s).then(a=>a(r,t))},deleteNotification(l,s){return n.deleteNotification(l.name,s).then(a=>a(r,t))},getNotification(l,s){return n.getNotification(l.name,s).then(a=>a(r,t))},listNotification(l={},s){return n.listNotification(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchNotification(l,s){return n.patchNotification(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateNotification(l,s){return n.updateNotification(l.name,l.notification,s).then(a=>a(r,t))}}};class at extends I{createNotification(t={},r){return g(this.configuration).createNotification(t.notification,r).then(n=>n(this.axios,this.basePath))}deleteNotification(t,r){return g(this.configuration).deleteNotification(t.name,r).then(n=>n(this.axios,this.basePath))}getNotification(t,r){return g(this.configuration).getNotification(t.name,r).then(n=>n(this.axios,this.basePath))}listNotification(t={},r){return g(this.configuration).listNotification(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchNotification(t,r){return g(this.configuration).patchNotification(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateNotification(t,r){return g(this.configuration).updateNotification(t.name,t.notification,r).then(n=>n(this.axios,this.basePath))}}const tt=function(e){return{deleteSpecifiedNotification:async(t,r,n={})=>{C("deleteSpecifiedNotification","username",t),C("deleteSpecifiedNotification","name",r);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}".replace("{username}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"DELETE",...a,...n},c={},p={};y(o,e),await v(c,e),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},listUserNotificationPreferences:async(t,r={})=>{C("listUserNotificationPreferences","username",t);const n="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences".replace("{username}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listUserNotifications:async(t,r,n,l,s,a,o,c={})=>{C("listUserNotifications","username",t);const p="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications".replace("{username}",encodeURIComponent(String(t))),h=new URL(p,O);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...c},U={},b={};y(d,e),await v(U,e),r!==void 0&&(b.page=r),n!==void 0&&(b.size=n),l&&(b.labelSelector=l),s&&(b.fieldSelector=s),a&&(b.sort=a),o!==void 0&&(b.keyword=o),S(h,b);let T=i&&i.headers?i.headers:{};return d.headers={...U,...T,...c.headers},{url:A(h),options:d}},markNotificationAsRead:async(t,r,n={})=>{C("markNotificationAsRead","username",t),C("markNotificationAsRead","name",r);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read".replace("{username}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},markNotificationsAsRead:async(t,r,n={})=>{C("markNotificationsAsRead","username",t),C("markNotificationsAsRead","markSpecifiedRequest",r);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read".replace("{username}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},saveUserNotificationPreferences:async(t,r,n={})=>{C("saveUserNotificationPreferences","username",t);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences".replace("{username}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},f=function(e){const t=tt(e);return{async deleteSpecifiedNotification(r,n,l){var c,p;const s=await t.deleteSpecifiedNotification(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationV1alpha1UcApi.deleteSpecifiedNotification"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async listUserNotificationPreferences(r,n){var o,c;const l=await t.listUserNotificationPreferences(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotificationV1alpha1UcApi.listUserNotificationPreferences"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listUserNotifications(r,n,l,s,a,o,c,p){var U,b;const h=await t.listUserNotifications(r,n,l,s,a,o,c,p),i=(e==null?void 0:e.serverIndex)??0,d=(b=(U=P["NotificationV1alpha1UcApi.listUserNotifications"])==null?void 0:U[i])==null?void 0:b.url;return(T,B)=>u(h,V,m,e)(T,d||B)},async markNotificationAsRead(r,n,l){var c,p;const s=await t.markNotificationAsRead(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationV1alpha1UcApi.markNotificationAsRead"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async markNotificationsAsRead(r,n,l){var c,p;const s=await t.markNotificationsAsRead(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationV1alpha1UcApi.markNotificationsAsRead"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async saveUserNotificationPreferences(r,n,l){var c,p;const s=await t.saveUserNotificationPreferences(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotificationV1alpha1UcApi.saveUserNotificationPreferences"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Or=function(e,t,r){const n=f(e);return{deleteSpecifiedNotification(l,s){return n.deleteSpecifiedNotification(l.username,l.name,s).then(a=>a(r,t))},listUserNotificationPreferences(l,s){return n.listUserNotificationPreferences(l.username,s).then(a=>a(r,t))},listUserNotifications(l,s){return n.listUserNotifications(l.username,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,s).then(a=>a(r,t))},markNotificationAsRead(l,s){return n.markNotificationAsRead(l.username,l.name,s).then(a=>a(r,t))},markNotificationsAsRead(l,s){return n.markNotificationsAsRead(l.username,l.markSpecifiedRequest,s).then(a=>a(r,t))},saveUserNotificationPreferences(l,s){return n.saveUserNotificationPreferences(l.username,l.reasonTypeNotifierCollectionRequest,s).then(a=>a(r,t))}}};class st extends I{deleteSpecifiedNotification(t,r){return f(this.configuration).deleteSpecifiedNotification(t.username,t.name,r).then(n=>n(this.axios,this.basePath))}listUserNotificationPreferences(t,r){return f(this.configuration).listUserNotificationPreferences(t.username,r).then(n=>n(this.axios,this.basePath))}listUserNotifications(t,r){return f(this.configuration).listUserNotifications(t.username,t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.keyword,r).then(n=>n(this.axios,this.basePath))}markNotificationAsRead(t,r){return f(this.configuration).markNotificationAsRead(t.username,t.name,r).then(n=>n(this.axios,this.basePath))}markNotificationsAsRead(t,r){return f(this.configuration).markNotificationsAsRead(t.username,t.markSpecifiedRequest,r).then(n=>n(this.axios,this.basePath))}saveUserNotificationPreferences(t,r){return f(this.configuration).saveUserNotificationPreferences(t.username,t.reasonTypeNotifierCollectionRequest,r).then(n=>n(this.axios,this.basePath))}}const rt=function(e){return{createNotifierDescriptor:async(t,r={})=>{const n="/apis/notification.halo.run/v1alpha1/notifierDescriptors",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteNotifierDescriptor:async(t,r={})=>{C("deleteNotifierDescriptor","name",t);const n="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getNotifierDescriptor:async(t,r={})=>{C("getNotifierDescriptor","name",t);const n="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listNotifierDescriptor:async(t,r,n,l,s,a={})=>{const o="/apis/notification.halo.run/v1alpha1/notifierDescriptors",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchNotifierDescriptor:async(t,r,n={})=>{C("patchNotifierDescriptor","name",t);const l="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateNotifierDescriptor:async(t,r,n={})=>{C("updateNotifierDescriptor","name",t);const l="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ee=function(e){const t=rt(e);return{async createNotifierDescriptor(r,n){var o,c;const l=await t.createNotifierDescriptor(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotifierDescriptorV1alpha1Api.createNotifierDescriptor"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteNotifierDescriptor(r,n){var o,c;const l=await t.deleteNotifierDescriptor(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotifierDescriptorV1alpha1Api.deleteNotifierDescriptor"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getNotifierDescriptor(r,n){var o,c;const l=await t.getNotifierDescriptor(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotifierDescriptorV1alpha1Api.getNotifierDescriptor"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listNotifierDescriptor(r,n,l,s,a,o){var i,d;const c=await t.listNotifierDescriptor(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["NotifierDescriptorV1alpha1Api.listNotifierDescriptor"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchNotifierDescriptor(r,n,l){var c,p;const s=await t.patchNotifierDescriptor(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotifierDescriptorV1alpha1Api.patchNotifierDescriptor"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateNotifierDescriptor(r,n,l){var c,p;const s=await t.updateNotifierDescriptor(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotifierDescriptorV1alpha1Api.updateNotifierDescriptor"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},yr=function(e,t,r){const n=ee(e);return{createNotifierDescriptor(l={},s){return n.createNotifierDescriptor(l.notifierDescriptor,s).then(a=>a(r,t))},deleteNotifierDescriptor(l,s){return n.deleteNotifierDescriptor(l.name,s).then(a=>a(r,t))},getNotifierDescriptor(l,s){return n.getNotifierDescriptor(l.name,s).then(a=>a(r,t))},listNotifierDescriptor(l={},s){return n.listNotifierDescriptor(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchNotifierDescriptor(l,s){return n.patchNotifierDescriptor(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateNotifierDescriptor(l,s){return n.updateNotifierDescriptor(l.name,l.notifierDescriptor,s).then(a=>a(r,t))}}};class lt extends I{createNotifierDescriptor(t={},r){return ee(this.configuration).createNotifierDescriptor(t.notifierDescriptor,r).then(n=>n(this.axios,this.basePath))}deleteNotifierDescriptor(t,r){return ee(this.configuration).deleteNotifierDescriptor(t.name,r).then(n=>n(this.axios,this.basePath))}getNotifierDescriptor(t,r){return ee(this.configuration).getNotifierDescriptor(t.name,r).then(n=>n(this.axios,this.basePath))}listNotifierDescriptor(t={},r){return ee(this.configuration).listNotifierDescriptor(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchNotifierDescriptor(t,r){return ee(this.configuration).patchNotifierDescriptor(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateNotifierDescriptor(t,r){return ee(this.configuration).updateNotifierDescriptor(t.name,t.notifierDescriptor,r).then(n=>n(this.axios,this.basePath))}}const nt=function(e){return{fetchSenderConfig:async(t,r={})=>{C("fetchSenderConfig","name",t);const n="/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},saveSenderConfig:async(t,r,n={})=>{C("saveSenderConfig","name",t),C("saveSenderConfig","body",r);const l="/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},verifyEmailSenderConfig:async(t,r={})=>{C("verifyEmailSenderConfig","emailConfigValidationRequest",t);const n="/apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}}}},je=function(e){const t=nt(e);return{async fetchSenderConfig(r,n){var o,c;const l=await t.fetchSenderConfig(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotifierV1alpha1ConsoleApi.fetchSenderConfig"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async saveSenderConfig(r,n,l){var c,p;const s=await t.saveSenderConfig(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotifierV1alpha1ConsoleApi.saveSenderConfig"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async verifyEmailSenderConfig(r,n){var o,c;const l=await t.verifyEmailSenderConfig(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotifierV1alpha1ConsoleApi.verifyEmailSenderConfig"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},vr=function(e,t,r){const n=je(e);return{fetchSenderConfig(l,s){return n.fetchSenderConfig(l.name,s).then(a=>a(r,t))},saveSenderConfig(l,s){return n.saveSenderConfig(l.name,l.body,s).then(a=>a(r,t))},verifyEmailSenderConfig(l,s){return n.verifyEmailSenderConfig(l.emailConfigValidationRequest,s).then(a=>a(r,t))}}};class ot extends I{fetchSenderConfig(t,r){return je(this.configuration).fetchSenderConfig(t.name,r).then(n=>n(this.axios,this.basePath))}saveSenderConfig(t,r){return je(this.configuration).saveSenderConfig(t.name,t.body,r).then(n=>n(this.axios,this.basePath))}verifyEmailSenderConfig(t,r){return je(this.configuration).verifyEmailSenderConfig(t.emailConfigValidationRequest,r).then(n=>n(this.axios,this.basePath))}}const ct=function(e){return{fetchReceiverConfig:async(t,r={})=>{C("fetchReceiverConfig","name",t);const n="/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},saveReceiverConfig:async(t,r,n={})=>{C("saveReceiverConfig","name",t),C("saveReceiverConfig","body",r);const l="/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},$e=function(e){const t=ct(e);return{async fetchReceiverConfig(r,n){var o,c;const l=await t.fetchReceiverConfig(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["NotifierV1alpha1UcApi.fetchReceiverConfig"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async saveReceiverConfig(r,n,l){var c,p;const s=await t.saveReceiverConfig(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["NotifierV1alpha1UcApi.saveReceiverConfig"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Sr=function(e,t,r){const n=$e(e);return{fetchReceiverConfig(l,s){return n.fetchReceiverConfig(l.name,s).then(a=>a(r,t))},saveReceiverConfig(l,s){return n.saveReceiverConfig(l.name,l.body,s).then(a=>a(r,t))}}};class Ar extends I{fetchReceiverConfig(t,r){return $e(this.configuration).fetchReceiverConfig(t.name,r).then(n=>n(this.axios,this.basePath))}saveReceiverConfig(t,r){return $e(this.configuration).saveReceiverConfig(t.name,t.body,r).then(n=>n(this.axios,this.basePath))}}const pt=function(e){return{createPersonalAccessToken:async(t,r={})=>{const n="/apis/security.halo.run/v1alpha1/personalaccesstokens",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deletePersonalAccessToken:async(t,r={})=>{C("deletePersonalAccessToken","name",t);const n="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getPersonalAccessToken:async(t,r={})=>{C("getPersonalAccessToken","name",t);const n="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listPersonalAccessToken:async(t,r,n,l,s,a={})=>{const o="/apis/security.halo.run/v1alpha1/personalaccesstokens",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchPersonalAccessToken:async(t,r,n={})=>{C("patchPersonalAccessToken","name",t);const l="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updatePersonalAccessToken:async(t,r,n={})=>{C("updatePersonalAccessToken","name",t);const l="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ae=function(e){const t=pt(e);return{async createPersonalAccessToken(r,n){var o,c;const l=await t.createPersonalAccessToken(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1Api.createPersonalAccessToken"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deletePersonalAccessToken(r,n){var o,c;const l=await t.deletePersonalAccessToken(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1Api.deletePersonalAccessToken"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getPersonalAccessToken(r,n){var o,c;const l=await t.getPersonalAccessToken(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1Api.getPersonalAccessToken"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPersonalAccessToken(r,n,l,s,a,o){var i,d;const c=await t.listPersonalAccessToken(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["PersonalAccessTokenV1alpha1Api.listPersonalAccessToken"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchPersonalAccessToken(r,n,l){var c,p;const s=await t.patchPersonalAccessToken(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PersonalAccessTokenV1alpha1Api.patchPersonalAccessToken"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updatePersonalAccessToken(r,n,l){var c,p;const s=await t.updatePersonalAccessToken(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PersonalAccessTokenV1alpha1Api.updatePersonalAccessToken"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},ur=function(e,t,r){const n=ae(e);return{createPersonalAccessToken(l={},s){return n.createPersonalAccessToken(l.personalAccessToken,s).then(a=>a(r,t))},deletePersonalAccessToken(l,s){return n.deletePersonalAccessToken(l.name,s).then(a=>a(r,t))},getPersonalAccessToken(l,s){return n.getPersonalAccessToken(l.name,s).then(a=>a(r,t))},listPersonalAccessToken(l={},s){return n.listPersonalAccessToken(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchPersonalAccessToken(l,s){return n.patchPersonalAccessToken(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updatePersonalAccessToken(l,s){return n.updatePersonalAccessToken(l.name,l.personalAccessToken,s).then(a=>a(r,t))}}};class ht extends I{createPersonalAccessToken(t={},r){return ae(this.configuration).createPersonalAccessToken(t.personalAccessToken,r).then(n=>n(this.axios,this.basePath))}deletePersonalAccessToken(t,r){return ae(this.configuration).deletePersonalAccessToken(t.name,r).then(n=>n(this.axios,this.basePath))}getPersonalAccessToken(t,r){return ae(this.configuration).getPersonalAccessToken(t.name,r).then(n=>n(this.axios,this.basePath))}listPersonalAccessToken(t={},r){return ae(this.configuration).listPersonalAccessToken(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchPersonalAccessToken(t,r){return ae(this.configuration).patchPersonalAccessToken(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updatePersonalAccessToken(t,r){return ae(this.configuration).updatePersonalAccessToken(t.name,t.personalAccessToken,r).then(n=>n(this.axios,this.basePath))}}const it=function(e){return{deletePat:async(t,r={})=>{C("deletePat","name",t);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},generatePat:async(t,r={})=>{C("generatePat","personalAccessToken",t);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},obtainPat:async(t,r={})=>{C("obtainPat","name",t);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},obtainPats:async(t={})=>{const r="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},restorePat:async(t,r={})=>{C("restorePat","name",t);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/restoration".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},revokePat:async(t,r={})=>{C("revokePat","name",t);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/revocation".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}}}},te=function(e){const t=it(e);return{async deletePat(r,n){var o,c;const l=await t.deletePat(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1UcApi.deletePat"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async generatePat(r,n){var o,c;const l=await t.generatePat(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1UcApi.generatePat"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async obtainPat(r,n){var o,c;const l=await t.obtainPat(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1UcApi.obtainPat"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async obtainPats(r){var a,o;const n=await t.obtainPats(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["PersonalAccessTokenV1alpha1UcApi.obtainPats"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async restorePat(r,n){var o,c;const l=await t.restorePat(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1UcApi.restorePat"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async revokePat(r,n){var o,c;const l=await t.revokePat(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PersonalAccessTokenV1alpha1UcApi.revokePat"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},Rr=function(e,t,r){const n=te(e);return{deletePat(l,s){return n.deletePat(l.name,s).then(a=>a(r,t))},generatePat(l,s){return n.generatePat(l.personalAccessToken,s).then(a=>a(r,t))},obtainPat(l,s){return n.obtainPat(l.name,s).then(a=>a(r,t))},obtainPats(l){return n.obtainPats(l).then(s=>s(r,t))},restorePat(l,s){return n.restorePat(l.name,s).then(a=>a(r,t))},revokePat(l,s){return n.revokePat(l.name,s).then(a=>a(r,t))}}};class dt extends I{deletePat(t,r){return te(this.configuration).deletePat(t.name,r).then(n=>n(this.axios,this.basePath))}generatePat(t,r){return te(this.configuration).generatePat(t.personalAccessToken,r).then(n=>n(this.axios,this.basePath))}obtainPat(t,r){return te(this.configuration).obtainPat(t.name,r).then(n=>n(this.axios,this.basePath))}obtainPats(t){return te(this.configuration).obtainPats(t).then(r=>r(this.axios,this.basePath))}restorePat(t,r){return te(this.configuration).restorePat(t.name,r).then(n=>n(this.axios,this.basePath))}revokePat(t,r){return te(this.configuration).revokePat(t.name,r).then(n=>n(this.axios,this.basePath))}}const Vt=function(e){return{createPlugin:async(t,r={})=>{const n="/apis/plugin.halo.run/v1alpha1/plugins",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deletePlugin:async(t,r={})=>{C("deletePlugin","name",t);const n="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getPlugin:async(t,r={})=>{C("getPlugin","name",t);const n="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listPlugin:async(t,r,n,l,s,a={})=>{const o="/apis/plugin.halo.run/v1alpha1/plugins",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchPlugin:async(t,r,n={})=>{C("patchPlugin","name",t);const l="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updatePlugin:async(t,r,n={})=>{C("updatePlugin","name",t);const l="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},se=function(e){const t=Vt(e);return{async createPlugin(r,n){var o,c;const l=await t.createPlugin(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1Api.createPlugin"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deletePlugin(r,n){var o,c;const l=await t.deletePlugin(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1Api.deletePlugin"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getPlugin(r,n){var o,c;const l=await t.getPlugin(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1Api.getPlugin"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPlugin(r,n,l,s,a,o){var i,d;const c=await t.listPlugin(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["PluginV1alpha1Api.listPlugin"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchPlugin(r,n,l){var c,p;const s=await t.patchPlugin(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PluginV1alpha1Api.patchPlugin"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updatePlugin(r,n,l){var c,p;const s=await t.updatePlugin(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PluginV1alpha1Api.updatePlugin"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Cr=function(e,t,r){const n=se(e);return{createPlugin(l={},s){return n.createPlugin(l.plugin,s).then(a=>a(r,t))},deletePlugin(l,s){return n.deletePlugin(l.name,s).then(a=>a(r,t))},getPlugin(l,s){return n.getPlugin(l.name,s).then(a=>a(r,t))},listPlugin(l={},s){return n.listPlugin(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchPlugin(l,s){return n.patchPlugin(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updatePlugin(l,s){return n.updatePlugin(l.name,l.plugin,s).then(a=>a(r,t))}}};class mt extends I{createPlugin(t={},r){return se(this.configuration).createPlugin(t.plugin,r).then(n=>n(this.axios,this.basePath))}deletePlugin(t,r){return se(this.configuration).deletePlugin(t.name,r).then(n=>n(this.axios,this.basePath))}getPlugin(t,r){return se(this.configuration).getPlugin(t.name,r).then(n=>n(this.axios,this.basePath))}listPlugin(t={},r){return se(this.configuration).listPlugin(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchPlugin(t,r){return se(this.configuration).patchPlugin(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updatePlugin(t,r){return se(this.configuration).updatePlugin(t.name,t.plugin,r).then(n=>n(this.axios,this.basePath))}}const Pt=function(e){return{changePluginRunningState:async(t,r,n={})=>{C("changePluginRunningState","name",t),C("changePluginRunningState","pluginRunningStateRequest",r);const l="/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},fetchCssBundle:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},fetchJsBundle:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},fetchPluginConfig:async(t,r={})=>{C("fetchPluginConfig","name",t);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/config".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},fetchPluginSetting:async(t,r={})=>{C("fetchPluginSetting","name",t);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},installPlugin:async(t,r,n,l={})=>{const s="/apis/api.console.halo.run/v1alpha1/plugins/install",a=new URL(s,O);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...l},p={},h={},i=new(e&&e.formDataCtor||FormData);y(c,e),await v(p,e),t!==void 0&&i.append("file",t),r!==void 0&&i.append("presetName",r),n!==void 0&&i.append("source",n),p["Content-Type"]="multipart/form-data",S(a,h);let d=o&&o.headers?o.headers:{};return c.headers={...p,...d,...l.headers},c.data=i,{url:A(a),options:c}},installPluginFromUri:async(t,r={})=>{C("installPluginFromUri","installFromUriRequest",t);const n="/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},listPluginPresets:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/plugin-presets",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},listPlugins:async(t,r,n,l,s,a,o,c={})=>{const p="/apis/api.console.halo.run/v1alpha1/plugins",h=new URL(p,O);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...c},U={},b={};y(d,e),await v(U,e),t!==void 0&&(b.page=t),r!==void 0&&(b.size=r),n&&(b.labelSelector=n),l&&(b.fieldSelector=l),s&&(b.sort=s),a!==void 0&&(b.keyword=a),o!==void 0&&(b.enabled=o),S(h,b);let T=i&&i.headers?i.headers:{};return d.headers={...U,...T,...c.headers},{url:A(h),options:d}},reloadPlugin:async(t,r={})=>{C("reloadPlugin","name",t);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},resetPluginConfig:async(t,r={})=>{C("resetPluginConfig","name",t);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},updatePluginConfig:async(t,r,n={})=>{C("updatePluginConfig","name",t),C("updatePluginConfig","configMap",r);const l="/apis/api.console.halo.run/v1alpha1/plugins/{name}/config".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},upgradePlugin:async(t,r,n,l,s={})=>{C("upgradePlugin","name",t);const a="/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade".replace("{name}",encodeURIComponent(String(t))),o=new URL(a,O);let c;e&&(c=e.baseOptions);const p={method:"POST",...c,...s},h={},i={},d=new(e&&e.formDataCtor||FormData);y(p,e),await v(h,e),r!==void 0&&d.append("file",r),n!==void 0&&d.append("presetName",n),l!==void 0&&d.append("source",l),h["Content-Type"]="multipart/form-data",S(o,i);let U=c&&c.headers?c.headers:{};return p.headers={...h,...U,...s.headers},p.data=d,{url:A(o),options:p}},upgradePluginFromUri:async(t,r,n={})=>{C("upgradePluginFromUri","name",t),C("upgradePluginFromUri","upgradeFromUriRequest",r);const l="/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade-from-uri".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},x=function(e){const t=Pt(e);return{async changePluginRunningState(r,n,l){var c,p;const s=await t.changePluginRunningState(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PluginV1alpha1ConsoleApi.changePluginRunningState"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async fetchCssBundle(r){var a,o;const n=await t.fetchCssBundle(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["PluginV1alpha1ConsoleApi.fetchCssBundle"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async fetchJsBundle(r){var a,o;const n=await t.fetchJsBundle(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["PluginV1alpha1ConsoleApi.fetchJsBundle"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async fetchPluginConfig(r,n){var o,c;const l=await t.fetchPluginConfig(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1ConsoleApi.fetchPluginConfig"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async fetchPluginSetting(r,n){var o,c;const l=await t.fetchPluginSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1ConsoleApi.fetchPluginSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async installPlugin(r,n,l,s){var p,h;const a=await t.installPlugin(r,n,l,s),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=P["PluginV1alpha1ConsoleApi.installPlugin"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>u(a,V,m,e)(i,c||d)},async installPluginFromUri(r,n){var o,c;const l=await t.installPluginFromUri(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1ConsoleApi.installPluginFromUri"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPluginPresets(r){var a,o;const n=await t.listPluginPresets(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["PluginV1alpha1ConsoleApi.listPluginPresets"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async listPlugins(r,n,l,s,a,o,c,p){var U,b;const h=await t.listPlugins(r,n,l,s,a,o,c,p),i=(e==null?void 0:e.serverIndex)??0,d=(b=(U=P["PluginV1alpha1ConsoleApi.listPlugins"])==null?void 0:U[i])==null?void 0:b.url;return(T,B)=>u(h,V,m,e)(T,d||B)},async reloadPlugin(r,n){var o,c;const l=await t.reloadPlugin(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1ConsoleApi.reloadPlugin"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async resetPluginConfig(r,n){var o,c;const l=await t.resetPluginConfig(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1ConsoleApi.resetPluginConfig"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async updatePluginConfig(r,n,l){var c,p;const s=await t.updatePluginConfig(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PluginV1alpha1ConsoleApi.updatePluginConfig"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async upgradePlugin(r,n,l,s,a){var h,i;const o=await t.upgradePlugin(r,n,l,s,a),c=(e==null?void 0:e.serverIndex)??0,p=(i=(h=P["PluginV1alpha1ConsoleApi.upgradePlugin"])==null?void 0:h[c])==null?void 0:i.url;return(d,U)=>u(o,V,m,e)(d,p||U)},async upgradePluginFromUri(r,n,l){var c,p;const s=await t.upgradePluginFromUri(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PluginV1alpha1ConsoleApi.upgradePluginFromUri"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Ur=function(e,t,r){const n=x(e);return{changePluginRunningState(l,s){return n.changePluginRunningState(l.name,l.pluginRunningStateRequest,s).then(a=>a(r,t))},fetchCssBundle(l){return n.fetchCssBundle(l).then(s=>s(r,t))},fetchJsBundle(l){return n.fetchJsBundle(l).then(s=>s(r,t))},fetchPluginConfig(l,s){return n.fetchPluginConfig(l.name,s).then(a=>a(r,t))},fetchPluginSetting(l,s){return n.fetchPluginSetting(l.name,s).then(a=>a(r,t))},installPlugin(l={},s){return n.installPlugin(l.file,l.presetName,l.source,s).then(a=>a(r,t))},installPluginFromUri(l,s){return n.installPluginFromUri(l.installFromUriRequest,s).then(a=>a(r,t))},listPluginPresets(l){return n.listPluginPresets(l).then(s=>s(r,t))},listPlugins(l={},s){return n.listPlugins(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,l.enabled,s).then(a=>a(r,t))},reloadPlugin(l,s){return n.reloadPlugin(l.name,s).then(a=>a(r,t))},resetPluginConfig(l,s){return n.resetPluginConfig(l.name,s).then(a=>a(r,t))},updatePluginConfig(l,s){return n.updatePluginConfig(l.name,l.configMap,s).then(a=>a(r,t))},upgradePlugin(l,s){return n.upgradePlugin(l.name,l.file,l.presetName,l.source,s).then(a=>a(r,t))},upgradePluginFromUri(l,s){return n.upgradePluginFromUri(l.name,l.upgradeFromUriRequest,s).then(a=>a(r,t))}}};class Ot extends I{changePluginRunningState(t,r){return x(this.configuration).changePluginRunningState(t.name,t.pluginRunningStateRequest,r).then(n=>n(this.axios,this.basePath))}fetchCssBundle(t){return x(this.configuration).fetchCssBundle(t).then(r=>r(this.axios,this.basePath))}fetchJsBundle(t){return x(this.configuration).fetchJsBundle(t).then(r=>r(this.axios,this.basePath))}fetchPluginConfig(t,r){return x(this.configuration).fetchPluginConfig(t.name,r).then(n=>n(this.axios,this.basePath))}fetchPluginSetting(t,r){return x(this.configuration).fetchPluginSetting(t.name,r).then(n=>n(this.axios,this.basePath))}installPlugin(t={},r){return x(this.configuration).installPlugin(t.file,t.presetName,t.source,r).then(n=>n(this.axios,this.basePath))}installPluginFromUri(t,r){return x(this.configuration).installPluginFromUri(t.installFromUriRequest,r).then(n=>n(this.axios,this.basePath))}listPluginPresets(t){return x(this.configuration).listPluginPresets(t).then(r=>r(this.axios,this.basePath))}listPlugins(t={},r){return x(this.configuration).listPlugins(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.keyword,t.enabled,r).then(n=>n(this.axios,this.basePath))}reloadPlugin(t,r){return x(this.configuration).reloadPlugin(t.name,r).then(n=>n(this.axios,this.basePath))}resetPluginConfig(t,r){return x(this.configuration).resetPluginConfig(t.name,r).then(n=>n(this.axios,this.basePath))}updatePluginConfig(t,r){return x(this.configuration).updatePluginConfig(t.name,t.configMap,r).then(n=>n(this.axios,this.basePath))}upgradePlugin(t,r){return x(this.configuration).upgradePlugin(t.name,t.file,t.presetName,t.source,r).then(n=>n(this.axios,this.basePath))}upgradePluginFromUri(t,r){return x(this.configuration).upgradePluginFromUri(t.name,t.upgradeFromUriRequest,r).then(n=>n(this.axios,this.basePath))}}const br={File:"FILE",Preset:"PRESET",Url:"URL"},wr={File:"FILE",Preset:"PRESET",Url:"URL"},yt=function(e){return{queryPluginAvailableByName:async(t,r={})=>{C("queryPluginAvailableByName","name",t);const n="/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}}}},Xe=function(e){const t=yt(e);return{async queryPluginAvailableByName(r,n){var o,c;const l=await t.queryPluginAvailableByName(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PluginV1alpha1PublicApi.queryPluginAvailableByName"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},Tr=function(e,t,r){const n=Xe(e);return{queryPluginAvailableByName(l,s){return n.queryPluginAvailableByName(l.name,s).then(a=>a(r,t))}}};class Ir extends I{queryPluginAvailableByName(t,r){return Xe(this.configuration).queryPluginAvailableByName(t.name,r).then(n=>n(this.axios,this.basePath))}}const vt=function(e){return{createPolicyTemplate:async(t,r={})=>{const n="/apis/storage.halo.run/v1alpha1/policytemplates",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deletePolicyTemplate:async(t,r={})=>{C("deletePolicyTemplate","name",t);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getPolicyTemplate:async(t,r={})=>{C("getPolicyTemplate","name",t);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listPolicyTemplate:async(t,r,n,l,s,a={})=>{const o="/apis/storage.halo.run/v1alpha1/policytemplates",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchPolicyTemplate:async(t,r,n={})=>{C("patchPolicyTemplate","name",t);const l="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updatePolicyTemplate:async(t,r,n={})=>{C("updatePolicyTemplate","name",t);const l="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},re=function(e){const t=vt(e);return{async createPolicyTemplate(r,n){var o,c;const l=await t.createPolicyTemplate(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PolicyTemplateV1alpha1Api.createPolicyTemplate"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deletePolicyTemplate(r,n){var o,c;const l=await t.deletePolicyTemplate(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PolicyTemplateV1alpha1Api.deletePolicyTemplate"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getPolicyTemplate(r,n){var o,c;const l=await t.getPolicyTemplate(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PolicyTemplateV1alpha1Api.getPolicyTemplate"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPolicyTemplate(r,n,l,s,a,o){var i,d;const c=await t.listPolicyTemplate(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["PolicyTemplateV1alpha1Api.listPolicyTemplate"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchPolicyTemplate(r,n,l){var c,p;const s=await t.patchPolicyTemplate(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PolicyTemplateV1alpha1Api.patchPolicyTemplate"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updatePolicyTemplate(r,n,l){var c,p;const s=await t.updatePolicyTemplate(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PolicyTemplateV1alpha1Api.updatePolicyTemplate"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Br=function(e,t,r){const n=re(e);return{createPolicyTemplate(l={},s){return n.createPolicyTemplate(l.policyTemplate,s).then(a=>a(r,t))},deletePolicyTemplate(l,s){return n.deletePolicyTemplate(l.name,s).then(a=>a(r,t))},getPolicyTemplate(l,s){return n.getPolicyTemplate(l.name,s).then(a=>a(r,t))},listPolicyTemplate(l={},s){return n.listPolicyTemplate(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchPolicyTemplate(l,s){return n.patchPolicyTemplate(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updatePolicyTemplate(l,s){return n.updatePolicyTemplate(l.name,l.policyTemplate,s).then(a=>a(r,t))}}};class St extends I{createPolicyTemplate(t={},r){return re(this.configuration).createPolicyTemplate(t.policyTemplate,r).then(n=>n(this.axios,this.basePath))}deletePolicyTemplate(t,r){return re(this.configuration).deletePolicyTemplate(t.name,r).then(n=>n(this.axios,this.basePath))}getPolicyTemplate(t,r){return re(this.configuration).getPolicyTemplate(t.name,r).then(n=>n(this.axios,this.basePath))}listPolicyTemplate(t={},r){return re(this.configuration).listPolicyTemplate(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchPolicyTemplate(t,r){return re(this.configuration).patchPolicyTemplate(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updatePolicyTemplate(t,r){return re(this.configuration).updatePolicyTemplate(t.name,t.policyTemplate,r).then(n=>n(this.axios,this.basePath))}}const At=function(e){return{createPolicy:async(t,r={})=>{const n="/apis/storage.halo.run/v1alpha1/policies",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deletePolicy:async(t,r={})=>{C("deletePolicy","name",t);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getPolicy:async(t,r={})=>{C("getPolicy","name",t);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listPolicy:async(t,r,n,l,s,a={})=>{const o="/apis/storage.halo.run/v1alpha1/policies",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchPolicy:async(t,r,n={})=>{C("patchPolicy","name",t);const l="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updatePolicy:async(t,r,n={})=>{C("updatePolicy","name",t);const l="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},le=function(e){const t=At(e);return{async createPolicy(r,n){var o,c;const l=await t.createPolicy(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PolicyV1alpha1Api.createPolicy"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deletePolicy(r,n){var o,c;const l=await t.deletePolicy(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PolicyV1alpha1Api.deletePolicy"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getPolicy(r,n){var o,c;const l=await t.getPolicy(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PolicyV1alpha1Api.getPolicy"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPolicy(r,n,l,s,a,o){var i,d;const c=await t.listPolicy(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["PolicyV1alpha1Api.listPolicy"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchPolicy(r,n,l){var c,p;const s=await t.patchPolicy(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PolicyV1alpha1Api.patchPolicy"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updatePolicy(r,n,l){var c,p;const s=await t.updatePolicy(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PolicyV1alpha1Api.updatePolicy"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},xr=function(e,t,r){const n=le(e);return{createPolicy(l={},s){return n.createPolicy(l.policy,s).then(a=>a(r,t))},deletePolicy(l,s){return n.deletePolicy(l.name,s).then(a=>a(r,t))},getPolicy(l,s){return n.getPolicy(l.name,s).then(a=>a(r,t))},listPolicy(l={},s){return n.listPolicy(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchPolicy(l,s){return n.patchPolicy(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updatePolicy(l,s){return n.updatePolicy(l.name,l.policy,s).then(a=>a(r,t))}}};class ut extends I{createPolicy(t={},r){return le(this.configuration).createPolicy(t.policy,r).then(n=>n(this.axios,this.basePath))}deletePolicy(t,r){return le(this.configuration).deletePolicy(t.name,r).then(n=>n(this.axios,this.basePath))}getPolicy(t,r){return le(this.configuration).getPolicy(t.name,r).then(n=>n(this.axios,this.basePath))}listPolicy(t={},r){return le(this.configuration).listPolicy(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchPolicy(t,r){return le(this.configuration).patchPolicy(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updatePolicy(t,r){return le(this.configuration).updatePolicy(t.name,t.policy,r).then(n=>n(this.axios,this.basePath))}}const Rt=function(e){return{createPost:async(t,r={})=>{const n="/apis/content.halo.run/v1alpha1/posts",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deletePost:async(t,r={})=>{C("deletePost","name",t);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getPost:async(t,r={})=>{C("getPost","name",t);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listPost:async(t,r,n,l,s,a={})=>{const o="/apis/content.halo.run/v1alpha1/posts",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchPost:async(t,r,n={})=>{C("patchPost","name",t);const l="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updatePost:async(t,r,n={})=>{C("updatePost","name",t);const l="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ne=function(e){const t=Rt(e);return{async createPost(r,n){var o,c;const l=await t.createPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1Api.createPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deletePost(r,n){var o,c;const l=await t.deletePost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1Api.deletePost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getPost(r,n){var o,c;const l=await t.getPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1Api.getPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPost(r,n,l,s,a,o){var i,d;const c=await t.listPost(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["PostV1alpha1Api.listPost"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchPost(r,n,l){var c,p;const s=await t.patchPost(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1Api.patchPost"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updatePost(r,n,l){var c,p;const s=await t.updatePost(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1Api.updatePost"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Fr=function(e,t,r){const n=ne(e);return{createPost(l={},s){return n.createPost(l.post,s).then(a=>a(r,t))},deletePost(l,s){return n.deletePost(l.name,s).then(a=>a(r,t))},getPost(l,s){return n.getPost(l.name,s).then(a=>a(r,t))},listPost(l={},s){return n.listPost(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchPost(l,s){return n.patchPost(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updatePost(l,s){return n.updatePost(l.name,l.post,s).then(a=>a(r,t))}}};class Ct extends I{createPost(t={},r){return ne(this.configuration).createPost(t.post,r).then(n=>n(this.axios,this.basePath))}deletePost(t,r){return ne(this.configuration).deletePost(t.name,r).then(n=>n(this.axios,this.basePath))}getPost(t,r){return ne(this.configuration).getPost(t.name,r).then(n=>n(this.axios,this.basePath))}listPost(t={},r){return ne(this.configuration).listPost(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchPost(t,r){return ne(this.configuration).patchPost(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updatePost(t,r){return ne(this.configuration).updatePost(t.name,t.post,r).then(n=>n(this.axios,this.basePath))}}const Ut=function(e){return{deletePostContent:async(t,r,n={})=>{C("deletePostContent","name",t),C("deletePostContent","snapshotName",r);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"DELETE",...a,...n},c={},p={};y(o,e),await v(c,e),r!==void 0&&(p.snapshotName=r),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},draftPost:async(t,r={})=>{C("draftPost","postRequest",t);const n="/apis/api.console.halo.run/v1alpha1/posts",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},fetchPostContent:async(t,r,n={})=>{C("fetchPostContent","name",t),C("fetchPostContent","snapshotName",r);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...n},c={},p={};y(o,e),await v(c,e),r!==void 0&&(p.snapshotName=r),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},fetchPostHeadContent:async(t,r={})=>{C("fetchPostHeadContent","name",t);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},fetchPostReleaseContent:async(t,r={})=>{C("fetchPostReleaseContent","name",t);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listPostSnapshots:async(t,r={})=>{C("listPostSnapshots","name",t);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/snapshot".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listPosts:async(t,r,n,l,s,a,o,c,p={})=>{const h="/apis/api.console.halo.run/v1alpha1/posts",i=new URL(h,O);let d;e&&(d=e.baseOptions);const U={method:"GET",...d,...p},b={},T={};y(U,e),await v(b,e),t!==void 0&&(T.page=t),r!==void 0&&(T.size=r),n&&(T.labelSelector=n),l&&(T.fieldSelector=l),s&&(T.sort=s),a!==void 0&&(T.publishPhase=a),o!==void 0&&(T.keyword=o),c!==void 0&&(T.categoryWithChildren=c),S(i,T);let B=d&&d.headers?d.headers:{};return U.headers={...b,...B,...p.headers},{url:A(i),options:U}},publishPost:async(t,r,n,l={})=>{C("publishPost","name",t);const s="/apis/api.console.halo.run/v1alpha1/posts/{name}/publish".replace("{name}",encodeURIComponent(String(t))),a=new URL(s,O);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...l},p={},h={};y(c,e),await v(p,e),r!==void 0&&(h.headSnapshot=r),n!==void 0&&(h.async=n),S(a,h);let i=o&&o.headers?o.headers:{};return c.headers={...p,...i,...l.headers},{url:A(a),options:c}},recyclePost:async(t,r={})=>{C("recyclePost","name",t);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},revertToSpecifiedSnapshotForPost:async(t,r,n={})=>{C("revertToSpecifiedSnapshotForPost","name",t),C("revertToSpecifiedSnapshotForPost","revertSnapshotForPostParam",r);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/revert-content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},unpublishPost:async(t,r={})=>{C("unpublishPost","name",t);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},updateDraftPost:async(t,r,n={})=>{C("updateDraftPost","name",t),C("updateDraftPost","postRequest",r);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updatePostContent:async(t,r,n={})=>{C("updatePostContent","name",t),C("updatePostContent","content",r);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},F=function(e){const t=Ut(e);return{async deletePostContent(r,n,l){var c,p;const s=await t.deletePostContent(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1ConsoleApi.deletePostContent"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async draftPost(r,n){var o,c;const l=await t.draftPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1ConsoleApi.draftPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async fetchPostContent(r,n,l){var c,p;const s=await t.fetchPostContent(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1ConsoleApi.fetchPostContent"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async fetchPostHeadContent(r,n){var o,c;const l=await t.fetchPostHeadContent(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1ConsoleApi.fetchPostHeadContent"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async fetchPostReleaseContent(r,n){var o,c;const l=await t.fetchPostReleaseContent(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1ConsoleApi.fetchPostReleaseContent"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPostSnapshots(r,n){var o,c;const l=await t.listPostSnapshots(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1ConsoleApi.listPostSnapshots"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listPosts(r,n,l,s,a,o,c,p,h){var b,T;const i=await t.listPosts(r,n,l,s,a,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,U=(T=(b=P["PostV1alpha1ConsoleApi.listPosts"])==null?void 0:b[d])==null?void 0:T.url;return(B,L)=>u(i,V,m,e)(B,U||L)},async publishPost(r,n,l,s){var p,h;const a=await t.publishPost(r,n,l,s),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=P["PostV1alpha1ConsoleApi.publishPost"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>u(a,V,m,e)(i,c||d)},async recyclePost(r,n){var o,c;const l=await t.recyclePost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1ConsoleApi.recyclePost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async revertToSpecifiedSnapshotForPost(r,n,l){var c,p;const s=await t.revertToSpecifiedSnapshotForPost(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1ConsoleApi.revertToSpecifiedSnapshotForPost"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async unpublishPost(r,n){var o,c;const l=await t.unpublishPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1ConsoleApi.unpublishPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async updateDraftPost(r,n,l){var c,p;const s=await t.updateDraftPost(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1ConsoleApi.updateDraftPost"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updatePostContent(r,n,l){var c,p;const s=await t.updatePostContent(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1ConsoleApi.updatePostContent"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},jr=function(e,t,r){const n=F(e);return{deletePostContent(l,s){return n.deletePostContent(l.name,l.snapshotName,s).then(a=>a(r,t))},draftPost(l,s){return n.draftPost(l.postRequest,s).then(a=>a(r,t))},fetchPostContent(l,s){return n.fetchPostContent(l.name,l.snapshotName,s).then(a=>a(r,t))},fetchPostHeadContent(l,s){return n.fetchPostHeadContent(l.name,s).then(a=>a(r,t))},fetchPostReleaseContent(l,s){return n.fetchPostReleaseContent(l.name,s).then(a=>a(r,t))},listPostSnapshots(l,s){return n.listPostSnapshots(l.name,s).then(a=>a(r,t))},listPosts(l={},s){return n.listPosts(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.publishPhase,l.keyword,l.categoryWithChildren,s).then(a=>a(r,t))},publishPost(l,s){return n.publishPost(l.name,l.headSnapshot,l.async,s).then(a=>a(r,t))},recyclePost(l,s){return n.recyclePost(l.name,s).then(a=>a(r,t))},revertToSpecifiedSnapshotForPost(l,s){return n.revertToSpecifiedSnapshotForPost(l.name,l.revertSnapshotForPostParam,s).then(a=>a(r,t))},unpublishPost(l,s){return n.unpublishPost(l.name,s).then(a=>a(r,t))},updateDraftPost(l,s){return n.updateDraftPost(l.name,l.postRequest,s).then(a=>a(r,t))},updatePostContent(l,s){return n.updatePostContent(l.name,l.content,s).then(a=>a(r,t))}}};class bt extends I{deletePostContent(t,r){return F(this.configuration).deletePostContent(t.name,t.snapshotName,r).then(n=>n(this.axios,this.basePath))}draftPost(t,r){return F(this.configuration).draftPost(t.postRequest,r).then(n=>n(this.axios,this.basePath))}fetchPostContent(t,r){return F(this.configuration).fetchPostContent(t.name,t.snapshotName,r).then(n=>n(this.axios,this.basePath))}fetchPostHeadContent(t,r){return F(this.configuration).fetchPostHeadContent(t.name,r).then(n=>n(this.axios,this.basePath))}fetchPostReleaseContent(t,r){return F(this.configuration).fetchPostReleaseContent(t.name,r).then(n=>n(this.axios,this.basePath))}listPostSnapshots(t,r){return F(this.configuration).listPostSnapshots(t.name,r).then(n=>n(this.axios,this.basePath))}listPosts(t={},r){return F(this.configuration).listPosts(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.publishPhase,t.keyword,t.categoryWithChildren,r).then(n=>n(this.axios,this.basePath))}publishPost(t,r){return F(this.configuration).publishPost(t.name,t.headSnapshot,t.async,r).then(n=>n(this.axios,this.basePath))}recyclePost(t,r){return F(this.configuration).recyclePost(t.name,r).then(n=>n(this.axios,this.basePath))}revertToSpecifiedSnapshotForPost(t,r){return F(this.configuration).revertToSpecifiedSnapshotForPost(t.name,t.revertSnapshotForPostParam,r).then(n=>n(this.axios,this.basePath))}unpublishPost(t,r){return F(this.configuration).unpublishPost(t.name,r).then(n=>n(this.axios,this.basePath))}updateDraftPost(t,r){return F(this.configuration).updateDraftPost(t.name,t.postRequest,r).then(n=>n(this.axios,this.basePath))}updatePostContent(t,r){return F(this.configuration).updatePostContent(t.name,t.content,r).then(n=>n(this.axios,this.basePath))}}const Er={Draft:"DRAFT",PendingApproval:"PENDING_APPROVAL",Published:"PUBLISHED",Failed:"FAILED"},wt=function(e){return{queryPostByName:async(t,r={})=>{C("queryPostByName","name",t);const n="/apis/api.content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},queryPostNavigationByName:async(t,r={})=>{C("queryPostNavigationByName","name",t);const n="/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},queryPosts:async(t,r,n,l,s,a={})=>{const o="/apis/api.content.halo.run/v1alpha1/posts",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}}}},Ee=function(e){const t=wt(e);return{async queryPostByName(r,n){var o,c;const l=await t.queryPostByName(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1PublicApi.queryPostByName"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async queryPostNavigationByName(r,n){var o,c;const l=await t.queryPostNavigationByName(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1PublicApi.queryPostNavigationByName"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async queryPosts(r,n,l,s,a,o){var i,d;const c=await t.queryPosts(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["PostV1alpha1PublicApi.queryPosts"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)}}},Lr=function(e,t,r){const n=Ee(e);return{queryPostByName(l,s){return n.queryPostByName(l.name,s).then(a=>a(r,t))},queryPostNavigationByName(l,s){return n.queryPostNavigationByName(l.name,s).then(a=>a(r,t))},queryPosts(l={},s){return n.queryPosts(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))}}};class Tt extends I{queryPostByName(t,r){return Ee(this.configuration).queryPostByName(t.name,r).then(n=>n(this.axios,this.basePath))}queryPostNavigationByName(t,r){return Ee(this.configuration).queryPostNavigationByName(t.name,r).then(n=>n(this.axios,this.basePath))}queryPosts(t={},r){return Ee(this.configuration).queryPosts(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}}const It=function(e){return{createMyPost:async(t,r={})=>{const n="/apis/uc.api.content.halo.run/v1alpha1/posts",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},getMyPost:async(t,r={})=>{C("getMyPost","name",t);const n="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getMyPostDraft:async(t,r,n={})=>{C("getMyPostDraft","name",t);const l="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...n},c={},p={};y(o,e),await v(c,e),r!==void 0&&(p.patched=r),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},listMyPosts:async(t,r,n,l,s,a,o,c,p={})=>{const h="/apis/uc.api.content.halo.run/v1alpha1/posts",i=new URL(h,O);let d;e&&(d=e.baseOptions);const U={method:"GET",...d,...p},b={},T={};y(U,e),await v(b,e),t!==void 0&&(T.page=t),r!==void 0&&(T.size=r),n&&(T.labelSelector=n),l&&(T.fieldSelector=l),s&&(T.sort=s),a!==void 0&&(T.publishPhase=a),o!==void 0&&(T.keyword=o),c!==void 0&&(T.categoryWithChildren=c),S(i,T);let B=d&&d.headers?d.headers:{};return U.headers={...b,...B,...p.headers},{url:A(i),options:U}},publishMyPost:async(t,r={})=>{C("publishMyPost","name",t);const n="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},unpublishMyPost:async(t,r={})=>{C("unpublishMyPost","name",t);const n="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},updateMyPost:async(t,r,n={})=>{C("updateMyPost","name",t);const l="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateMyPostDraft:async(t,r,n={})=>{C("updateMyPostDraft","name",t);const l="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},N=function(e){const t=It(e);return{async createMyPost(r,n){var o,c;const l=await t.createMyPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1UcApi.createMyPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getMyPost(r,n){var o,c;const l=await t.getMyPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1UcApi.getMyPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getMyPostDraft(r,n,l){var c,p;const s=await t.getMyPostDraft(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1UcApi.getMyPostDraft"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async listMyPosts(r,n,l,s,a,o,c,p,h){var b,T;const i=await t.listMyPosts(r,n,l,s,a,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,U=(T=(b=P["PostV1alpha1UcApi.listMyPosts"])==null?void 0:b[d])==null?void 0:T.url;return(B,L)=>u(i,V,m,e)(B,U||L)},async publishMyPost(r,n){var o,c;const l=await t.publishMyPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1UcApi.publishMyPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async unpublishMyPost(r,n){var o,c;const l=await t.unpublishMyPost(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["PostV1alpha1UcApi.unpublishMyPost"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async updateMyPost(r,n,l){var c,p;const s=await t.updateMyPost(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1UcApi.updateMyPost"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateMyPostDraft(r,n,l){var c,p;const s=await t.updateMyPostDraft(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["PostV1alpha1UcApi.updateMyPostDraft"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Dr=function(e,t,r){const n=N(e);return{createMyPost(l={},s){return n.createMyPost(l.post,s).then(a=>a(r,t))},getMyPost(l,s){return n.getMyPost(l.name,s).then(a=>a(r,t))},getMyPostDraft(l,s){return n.getMyPostDraft(l.name,l.patched,s).then(a=>a(r,t))},listMyPosts(l={},s){return n.listMyPosts(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.publishPhase,l.keyword,l.categoryWithChildren,s).then(a=>a(r,t))},publishMyPost(l,s){return n.publishMyPost(l.name,s).then(a=>a(r,t))},unpublishMyPost(l,s){return n.unpublishMyPost(l.name,s).then(a=>a(r,t))},updateMyPost(l,s){return n.updateMyPost(l.name,l.post,s).then(a=>a(r,t))},updateMyPostDraft(l,s){return n.updateMyPostDraft(l.name,l.snapshot,s).then(a=>a(r,t))}}};class Bt extends I{createMyPost(t={},r){return N(this.configuration).createMyPost(t.post,r).then(n=>n(this.axios,this.basePath))}getMyPost(t,r){return N(this.configuration).getMyPost(t.name,r).then(n=>n(this.axios,this.basePath))}getMyPostDraft(t,r){return N(this.configuration).getMyPostDraft(t.name,t.patched,r).then(n=>n(this.axios,this.basePath))}listMyPosts(t={},r){return N(this.configuration).listMyPosts(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.publishPhase,t.keyword,t.categoryWithChildren,r).then(n=>n(this.axios,this.basePath))}publishMyPost(t,r){return N(this.configuration).publishMyPost(t.name,r).then(n=>n(this.axios,this.basePath))}unpublishMyPost(t,r){return N(this.configuration).unpublishMyPost(t.name,r).then(n=>n(this.axios,this.basePath))}updateMyPost(t,r){return N(this.configuration).updateMyPost(t.name,t.post,r).then(n=>n(this.axios,this.basePath))}updateMyPostDraft(t,r){return N(this.configuration).updateMyPostDraft(t.name,t.snapshot,r).then(n=>n(this.axios,this.basePath))}}const Nr={Draft:"DRAFT",PendingApproval:"PENDING_APPROVAL",Published:"PUBLISHED",Failed:"FAILED"},xt=function(e){return{createReasonType:async(t,r={})=>{const n="/apis/notification.halo.run/v1alpha1/reasontypes",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteReasonType:async(t,r={})=>{C("deleteReasonType","name",t);const n="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getReasonType:async(t,r={})=>{C("getReasonType","name",t);const n="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listReasonType:async(t,r,n,l,s,a={})=>{const o="/apis/notification.halo.run/v1alpha1/reasontypes",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchReasonType:async(t,r,n={})=>{C("patchReasonType","name",t);const l="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateReasonType:async(t,r,n={})=>{C("updateReasonType","name",t);const l="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},oe=function(e){const t=xt(e);return{async createReasonType(r,n){var o,c;const l=await t.createReasonType(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReasonTypeV1alpha1Api.createReasonType"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteReasonType(r,n){var o,c;const l=await t.deleteReasonType(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReasonTypeV1alpha1Api.deleteReasonType"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getReasonType(r,n){var o,c;const l=await t.getReasonType(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReasonTypeV1alpha1Api.getReasonType"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listReasonType(r,n,l,s,a,o){var i,d;const c=await t.listReasonType(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ReasonTypeV1alpha1Api.listReasonType"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchReasonType(r,n,l){var c,p;const s=await t.patchReasonType(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReasonTypeV1alpha1Api.patchReasonType"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateReasonType(r,n,l){var c,p;const s=await t.updateReasonType(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReasonTypeV1alpha1Api.updateReasonType"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Hr=function(e,t,r){const n=oe(e);return{createReasonType(l={},s){return n.createReasonType(l.reasonType,s).then(a=>a(r,t))},deleteReasonType(l,s){return n.deleteReasonType(l.name,s).then(a=>a(r,t))},getReasonType(l,s){return n.getReasonType(l.name,s).then(a=>a(r,t))},listReasonType(l={},s){return n.listReasonType(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchReasonType(l,s){return n.patchReasonType(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateReasonType(l,s){return n.updateReasonType(l.name,l.reasonType,s).then(a=>a(r,t))}}};class Ft extends I{createReasonType(t={},r){return oe(this.configuration).createReasonType(t.reasonType,r).then(n=>n(this.axios,this.basePath))}deleteReasonType(t,r){return oe(this.configuration).deleteReasonType(t.name,r).then(n=>n(this.axios,this.basePath))}getReasonType(t,r){return oe(this.configuration).getReasonType(t.name,r).then(n=>n(this.axios,this.basePath))}listReasonType(t={},r){return oe(this.configuration).listReasonType(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchReasonType(t,r){return oe(this.configuration).patchReasonType(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateReasonType(t,r){return oe(this.configuration).updateReasonType(t.name,t.reasonType,r).then(n=>n(this.axios,this.basePath))}}const jt=function(e){return{createReason:async(t,r={})=>{const n="/apis/notification.halo.run/v1alpha1/reasons",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteReason:async(t,r={})=>{C("deleteReason","name",t);const n="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getReason:async(t,r={})=>{C("getReason","name",t);const n="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listReason:async(t,r,n,l,s,a={})=>{const o="/apis/notification.halo.run/v1alpha1/reasons",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchReason:async(t,r,n={})=>{C("patchReason","name",t);const l="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateReason:async(t,r,n={})=>{C("updateReason","name",t);const l="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ce=function(e){const t=jt(e);return{async createReason(r,n){var o,c;const l=await t.createReason(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReasonV1alpha1Api.createReason"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteReason(r,n){var o,c;const l=await t.deleteReason(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReasonV1alpha1Api.deleteReason"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getReason(r,n){var o,c;const l=await t.getReason(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReasonV1alpha1Api.getReason"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listReason(r,n,l,s,a,o){var i,d;const c=await t.listReason(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ReasonV1alpha1Api.listReason"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchReason(r,n,l){var c,p;const s=await t.patchReason(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReasonV1alpha1Api.patchReason"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateReason(r,n,l){var c,p;const s=await t.updateReason(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReasonV1alpha1Api.updateReason"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Mr=function(e,t,r){const n=ce(e);return{createReason(l={},s){return n.createReason(l.reason,s).then(a=>a(r,t))},deleteReason(l,s){return n.deleteReason(l.name,s).then(a=>a(r,t))},getReason(l,s){return n.getReason(l.name,s).then(a=>a(r,t))},listReason(l={},s){return n.listReason(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchReason(l,s){return n.patchReason(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateReason(l,s){return n.updateReason(l.name,l.reason,s).then(a=>a(r,t))}}};class Et extends I{createReason(t={},r){return ce(this.configuration).createReason(t.reason,r).then(n=>n(this.axios,this.basePath))}deleteReason(t,r){return ce(this.configuration).deleteReason(t.name,r).then(n=>n(this.axios,this.basePath))}getReason(t,r){return ce(this.configuration).getReason(t.name,r).then(n=>n(this.axios,this.basePath))}listReason(t={},r){return ce(this.configuration).listReason(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchReason(t,r){return ce(this.configuration).patchReason(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateReason(t,r){return ce(this.configuration).updateReason(t.name,t.reason,r).then(n=>n(this.axios,this.basePath))}}const Lt=function(e){return{createRememberMeToken:async(t,r={})=>{const n="/apis/security.halo.run/v1alpha1/remembermetokens",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteRememberMeToken:async(t,r={})=>{C("deleteRememberMeToken","name",t);const n="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getRememberMeToken:async(t,r={})=>{C("getRememberMeToken","name",t);const n="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listRememberMeToken:async(t,r,n,l,s,a={})=>{const o="/apis/security.halo.run/v1alpha1/remembermetokens",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchRememberMeToken:async(t,r,n={})=>{C("patchRememberMeToken","name",t);const l="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateRememberMeToken:async(t,r,n={})=>{C("updateRememberMeToken","name",t);const l="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},pe=function(e){const t=Lt(e);return{async createRememberMeToken(r,n){var o,c;const l=await t.createRememberMeToken(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RememberMeTokenV1alpha1Api.createRememberMeToken"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteRememberMeToken(r,n){var o,c;const l=await t.deleteRememberMeToken(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RememberMeTokenV1alpha1Api.deleteRememberMeToken"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getRememberMeToken(r,n){var o,c;const l=await t.getRememberMeToken(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RememberMeTokenV1alpha1Api.getRememberMeToken"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listRememberMeToken(r,n,l,s,a,o){var i,d;const c=await t.listRememberMeToken(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["RememberMeTokenV1alpha1Api.listRememberMeToken"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchRememberMeToken(r,n,l){var c,p;const s=await t.patchRememberMeToken(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["RememberMeTokenV1alpha1Api.patchRememberMeToken"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateRememberMeToken(r,n,l){var c,p;const s=await t.updateRememberMeToken(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["RememberMeTokenV1alpha1Api.updateRememberMeToken"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Qr=function(e,t,r){const n=pe(e);return{createRememberMeToken(l={},s){return n.createRememberMeToken(l.rememberMeToken,s).then(a=>a(r,t))},deleteRememberMeToken(l,s){return n.deleteRememberMeToken(l.name,s).then(a=>a(r,t))},getRememberMeToken(l,s){return n.getRememberMeToken(l.name,s).then(a=>a(r,t))},listRememberMeToken(l={},s){return n.listRememberMeToken(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchRememberMeToken(l,s){return n.patchRememberMeToken(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateRememberMeToken(l,s){return n.updateRememberMeToken(l.name,l.rememberMeToken,s).then(a=>a(r,t))}}};class kr extends I{createRememberMeToken(t={},r){return pe(this.configuration).createRememberMeToken(t.rememberMeToken,r).then(n=>n(this.axios,this.basePath))}deleteRememberMeToken(t,r){return pe(this.configuration).deleteRememberMeToken(t.name,r).then(n=>n(this.axios,this.basePath))}getRememberMeToken(t,r){return pe(this.configuration).getRememberMeToken(t.name,r).then(n=>n(this.axios,this.basePath))}listRememberMeToken(t={},r){return pe(this.configuration).listRememberMeToken(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchRememberMeToken(t,r){return pe(this.configuration).patchRememberMeToken(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateRememberMeToken(t,r){return pe(this.configuration).updateRememberMeToken(t.name,t.rememberMeToken,r).then(n=>n(this.axios,this.basePath))}}const Dt=function(e){return{createReply:async(t,r={})=>{const n="/apis/content.halo.run/v1alpha1/replies",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteReply:async(t,r={})=>{C("deleteReply","name",t);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getReply:async(t,r={})=>{C("getReply","name",t);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listReply:async(t,r,n,l,s,a={})=>{const o="/apis/content.halo.run/v1alpha1/replies",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchReply:async(t,r,n={})=>{C("patchReply","name",t);const l="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateReply:async(t,r,n={})=>{C("updateReply","name",t);const l="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},he=function(e){const t=Dt(e);return{async createReply(r,n){var o,c;const l=await t.createReply(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReplyV1alpha1Api.createReply"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteReply(r,n){var o,c;const l=await t.deleteReply(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReplyV1alpha1Api.deleteReply"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getReply(r,n){var o,c;const l=await t.getReply(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReplyV1alpha1Api.getReply"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listReply(r,n,l,s,a,o){var i,d;const c=await t.listReply(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ReplyV1alpha1Api.listReply"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchReply(r,n,l){var c,p;const s=await t.patchReply(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReplyV1alpha1Api.patchReply"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateReply(r,n,l){var c,p;const s=await t.updateReply(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReplyV1alpha1Api.updateReply"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},$r=function(e,t,r){const n=he(e);return{createReply(l={},s){return n.createReply(l.reply,s).then(a=>a(r,t))},deleteReply(l,s){return n.deleteReply(l.name,s).then(a=>a(r,t))},getReply(l,s){return n.getReply(l.name,s).then(a=>a(r,t))},listReply(l={},s){return n.listReply(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchReply(l,s){return n.patchReply(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateReply(l,s){return n.updateReply(l.name,l.reply,s).then(a=>a(r,t))}}};class Nt extends I{createReply(t={},r){return he(this.configuration).createReply(t.reply,r).then(n=>n(this.axios,this.basePath))}deleteReply(t,r){return he(this.configuration).deleteReply(t.name,r).then(n=>n(this.axios,this.basePath))}getReply(t,r){return he(this.configuration).getReply(t.name,r).then(n=>n(this.axios,this.basePath))}listReply(t={},r){return he(this.configuration).listReply(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchReply(t,r){return he(this.configuration).patchReply(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateReply(t,r){return he(this.configuration).updateReply(t.name,t.reply,r).then(n=>n(this.axios,this.basePath))}}const Ht=function(e){return{listReplies:async(t,r,n,l,s,a,o={})=>{C("listReplies","commentName",t);const c="/apis/api.console.halo.run/v1alpha1/replies",p=new URL(c,O);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},U={};y(i,e),await v(d,e),r!==void 0&&(U.page=r),n!==void 0&&(U.size=n),l&&(U.labelSelector=l),s&&(U.fieldSelector=s),a&&(U.sort=a),t!==void 0&&(U.commentName=t),S(p,U);let b=h&&h.headers?h.headers:{};return i.headers={...d,...b,...o.headers},{url:A(p),options:i}}}},Ye=function(e){const t=Ht(e);return{async listReplies(r,n,l,s,a,o,c){var d,U;const p=await t.listReplies(r,n,l,s,a,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(U=(d=P["ReplyV1alpha1ConsoleApi.listReplies"])==null?void 0:d[h])==null?void 0:U.url;return(b,T)=>u(p,V,m,e)(b,i||T)}}},Gr=function(e,t,r){const n=Ye(e);return{listReplies(l,s){return n.listReplies(l.commentName,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))}}};class Mt extends I{listReplies(t,r){return Ye(this.configuration).listReplies(t.commentName,t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}}const Qt=function(e){return{createReverseProxy:async(t,r={})=>{const n="/apis/plugin.halo.run/v1alpha1/reverseproxies",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteReverseProxy:async(t,r={})=>{C("deleteReverseProxy","name",t);const n="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getReverseProxy:async(t,r={})=>{C("getReverseProxy","name",t);const n="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listReverseProxy:async(t,r,n,l,s,a={})=>{const o="/apis/plugin.halo.run/v1alpha1/reverseproxies",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchReverseProxy:async(t,r,n={})=>{C("patchReverseProxy","name",t);const l="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateReverseProxy:async(t,r,n={})=>{C("updateReverseProxy","name",t);const l="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ie=function(e){const t=Qt(e);return{async createReverseProxy(r,n){var o,c;const l=await t.createReverseProxy(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReverseProxyV1alpha1Api.createReverseProxy"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteReverseProxy(r,n){var o,c;const l=await t.deleteReverseProxy(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReverseProxyV1alpha1Api.deleteReverseProxy"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getReverseProxy(r,n){var o,c;const l=await t.getReverseProxy(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ReverseProxyV1alpha1Api.getReverseProxy"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listReverseProxy(r,n,l,s,a,o){var i,d;const c=await t.listReverseProxy(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ReverseProxyV1alpha1Api.listReverseProxy"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchReverseProxy(r,n,l){var c,p;const s=await t.patchReverseProxy(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReverseProxyV1alpha1Api.patchReverseProxy"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateReverseProxy(r,n,l){var c,p;const s=await t.updateReverseProxy(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ReverseProxyV1alpha1Api.updateReverseProxy"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},zr=function(e,t,r){const n=ie(e);return{createReverseProxy(l={},s){return n.createReverseProxy(l.reverseProxy,s).then(a=>a(r,t))},deleteReverseProxy(l,s){return n.deleteReverseProxy(l.name,s).then(a=>a(r,t))},getReverseProxy(l,s){return n.getReverseProxy(l.name,s).then(a=>a(r,t))},listReverseProxy(l={},s){return n.listReverseProxy(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchReverseProxy(l,s){return n.patchReverseProxy(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateReverseProxy(l,s){return n.updateReverseProxy(l.name,l.reverseProxy,s).then(a=>a(r,t))}}};class kt extends I{createReverseProxy(t={},r){return ie(this.configuration).createReverseProxy(t.reverseProxy,r).then(n=>n(this.axios,this.basePath))}deleteReverseProxy(t,r){return ie(this.configuration).deleteReverseProxy(t.name,r).then(n=>n(this.axios,this.basePath))}getReverseProxy(t,r){return ie(this.configuration).getReverseProxy(t.name,r).then(n=>n(this.axios,this.basePath))}listReverseProxy(t={},r){return ie(this.configuration).listReverseProxy(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchReverseProxy(t,r){return ie(this.configuration).patchReverseProxy(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateReverseProxy(t,r){return ie(this.configuration).updateReverseProxy(t.name,t.reverseProxy,r).then(n=>n(this.axios,this.basePath))}}const $t=function(e){return{createRoleBinding:async(t,r={})=>{const n="/api/v1alpha1/rolebindings",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteRoleBinding:async(t,r={})=>{C("deleteRoleBinding","name",t);const n="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getRoleBinding:async(t,r={})=>{C("getRoleBinding","name",t);const n="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listRoleBinding:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/rolebindings",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchRoleBinding:async(t,r,n={})=>{C("patchRoleBinding","name",t);const l="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateRoleBinding:async(t,r,n={})=>{C("updateRoleBinding","name",t);const l="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},de=function(e){const t=$t(e);return{async createRoleBinding(r,n){var o,c;const l=await t.createRoleBinding(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RoleBindingV1alpha1Api.createRoleBinding"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteRoleBinding(r,n){var o,c;const l=await t.deleteRoleBinding(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RoleBindingV1alpha1Api.deleteRoleBinding"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getRoleBinding(r,n){var o,c;const l=await t.getRoleBinding(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RoleBindingV1alpha1Api.getRoleBinding"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listRoleBinding(r,n,l,s,a,o){var i,d;const c=await t.listRoleBinding(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["RoleBindingV1alpha1Api.listRoleBinding"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchRoleBinding(r,n,l){var c,p;const s=await t.patchRoleBinding(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["RoleBindingV1alpha1Api.patchRoleBinding"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateRoleBinding(r,n,l){var c,p;const s=await t.updateRoleBinding(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["RoleBindingV1alpha1Api.updateRoleBinding"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Kr=function(e,t,r){const n=de(e);return{createRoleBinding(l={},s){return n.createRoleBinding(l.roleBinding,s).then(a=>a(r,t))},deleteRoleBinding(l,s){return n.deleteRoleBinding(l.name,s).then(a=>a(r,t))},getRoleBinding(l,s){return n.getRoleBinding(l.name,s).then(a=>a(r,t))},listRoleBinding(l={},s){return n.listRoleBinding(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchRoleBinding(l,s){return n.patchRoleBinding(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateRoleBinding(l,s){return n.updateRoleBinding(l.name,l.roleBinding,s).then(a=>a(r,t))}}};class Gt extends I{createRoleBinding(t={},r){return de(this.configuration).createRoleBinding(t.roleBinding,r).then(n=>n(this.axios,this.basePath))}deleteRoleBinding(t,r){return de(this.configuration).deleteRoleBinding(t.name,r).then(n=>n(this.axios,this.basePath))}getRoleBinding(t,r){return de(this.configuration).getRoleBinding(t.name,r).then(n=>n(this.axios,this.basePath))}listRoleBinding(t={},r){return de(this.configuration).listRoleBinding(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchRoleBinding(t,r){return de(this.configuration).patchRoleBinding(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateRoleBinding(t,r){return de(this.configuration).updateRoleBinding(t.name,t.roleBinding,r).then(n=>n(this.axios,this.basePath))}}const zt=function(e){return{createRole:async(t,r={})=>{const n="/api/v1alpha1/roles",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteRole:async(t,r={})=>{C("deleteRole","name",t);const n="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getRole:async(t,r={})=>{C("getRole","name",t);const n="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listRole:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/roles",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchRole:async(t,r,n={})=>{C("patchRole","name",t);const l="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateRole:async(t,r,n={})=>{C("updateRole","name",t);const l="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Ve=function(e){const t=zt(e);return{async createRole(r,n){var o,c;const l=await t.createRole(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RoleV1alpha1Api.createRole"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteRole(r,n){var o,c;const l=await t.deleteRole(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RoleV1alpha1Api.deleteRole"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getRole(r,n){var o,c;const l=await t.getRole(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["RoleV1alpha1Api.getRole"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listRole(r,n,l,s,a,o){var i,d;const c=await t.listRole(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["RoleV1alpha1Api.listRole"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchRole(r,n,l){var c,p;const s=await t.patchRole(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["RoleV1alpha1Api.patchRole"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateRole(r,n,l){var c,p;const s=await t.updateRole(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["RoleV1alpha1Api.updateRole"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Jr=function(e,t,r){const n=Ve(e);return{createRole(l={},s){return n.createRole(l.role,s).then(a=>a(r,t))},deleteRole(l,s){return n.deleteRole(l.name,s).then(a=>a(r,t))},getRole(l,s){return n.getRole(l.name,s).then(a=>a(r,t))},listRole(l={},s){return n.listRole(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchRole(l,s){return n.patchRole(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateRole(l,s){return n.updateRole(l.name,l.role,s).then(a=>a(r,t))}}};class Kt extends I{createRole(t={},r){return Ve(this.configuration).createRole(t.role,r).then(n=>n(this.axios,this.basePath))}deleteRole(t,r){return Ve(this.configuration).deleteRole(t.name,r).then(n=>n(this.axios,this.basePath))}getRole(t,r){return Ve(this.configuration).getRole(t.name,r).then(n=>n(this.axios,this.basePath))}listRole(t={},r){return Ve(this.configuration).listRole(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchRole(t,r){return Ve(this.configuration).patchRole(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateRole(t,r){return Ve(this.configuration).updateRole(t.name,t.role,r).then(n=>n(this.axios,this.basePath))}}const Jt=function(e){return{createSearchEngine:async(t,r={})=>{const n="/apis/plugin.halo.run/v1alpha1/searchengines",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteSearchEngine:async(t,r={})=>{C("deleteSearchEngine","name",t);const n="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getSearchEngine:async(t,r={})=>{C("getSearchEngine","name",t);const n="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSearchEngine:async(t,r,n,l,s,a={})=>{const o="/apis/plugin.halo.run/v1alpha1/searchengines",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchSearchEngine:async(t,r,n={})=>{C("patchSearchEngine","name",t);const l="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateSearchEngine:async(t,r,n={})=>{C("updateSearchEngine","name",t);const l="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},me=function(e){const t=Jt(e);return{async createSearchEngine(r,n){var o,c;const l=await t.createSearchEngine(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SearchEngineV1alpha1Api.createSearchEngine"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteSearchEngine(r,n){var o,c;const l=await t.deleteSearchEngine(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SearchEngineV1alpha1Api.deleteSearchEngine"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getSearchEngine(r,n){var o,c;const l=await t.getSearchEngine(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SearchEngineV1alpha1Api.getSearchEngine"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSearchEngine(r,n,l,s,a,o){var i,d;const c=await t.listSearchEngine(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["SearchEngineV1alpha1Api.listSearchEngine"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchSearchEngine(r,n,l){var c,p;const s=await t.patchSearchEngine(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SearchEngineV1alpha1Api.patchSearchEngine"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateSearchEngine(r,n,l){var c,p;const s=await t.updateSearchEngine(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SearchEngineV1alpha1Api.updateSearchEngine"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},_r=function(e,t,r){const n=me(e);return{createSearchEngine(l={},s){return n.createSearchEngine(l.searchEngine,s).then(a=>a(r,t))},deleteSearchEngine(l,s){return n.deleteSearchEngine(l.name,s).then(a=>a(r,t))},getSearchEngine(l,s){return n.getSearchEngine(l.name,s).then(a=>a(r,t))},listSearchEngine(l={},s){return n.listSearchEngine(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchSearchEngine(l,s){return n.patchSearchEngine(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateSearchEngine(l,s){return n.updateSearchEngine(l.name,l.searchEngine,s).then(a=>a(r,t))}}};class _t extends I{createSearchEngine(t={},r){return me(this.configuration).createSearchEngine(t.searchEngine,r).then(n=>n(this.axios,this.basePath))}deleteSearchEngine(t,r){return me(this.configuration).deleteSearchEngine(t.name,r).then(n=>n(this.axios,this.basePath))}getSearchEngine(t,r){return me(this.configuration).getSearchEngine(t.name,r).then(n=>n(this.axios,this.basePath))}listSearchEngine(t={},r){return me(this.configuration).listSearchEngine(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchSearchEngine(t,r){return me(this.configuration).patchSearchEngine(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateSearchEngine(t,r){return me(this.configuration).updateSearchEngine(t.name,t.searchEngine,r).then(n=>n(this.axios,this.basePath))}}const Wt=function(e){return{createSecret:async(t,r={})=>{const n="/api/v1alpha1/secrets",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteSecret:async(t,r={})=>{C("deleteSecret","name",t);const n="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getSecret:async(t,r={})=>{C("getSecret","name",t);const n="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSecret:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/secrets",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchSecret:async(t,r,n={})=>{C("patchSecret","name",t);const l="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateSecret:async(t,r,n={})=>{C("updateSecret","name",t);const l="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Pe=function(e){const t=Wt(e);return{async createSecret(r,n){var o,c;const l=await t.createSecret(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SecretV1alpha1Api.createSecret"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteSecret(r,n){var o,c;const l=await t.deleteSecret(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SecretV1alpha1Api.deleteSecret"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getSecret(r,n){var o,c;const l=await t.getSecret(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SecretV1alpha1Api.getSecret"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSecret(r,n,l,s,a,o){var i,d;const c=await t.listSecret(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["SecretV1alpha1Api.listSecret"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchSecret(r,n,l){var c,p;const s=await t.patchSecret(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SecretV1alpha1Api.patchSecret"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateSecret(r,n,l){var c,p;const s=await t.updateSecret(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SecretV1alpha1Api.updateSecret"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Wr=function(e,t,r){const n=Pe(e);return{createSecret(l={},s){return n.createSecret(l.secret,s).then(a=>a(r,t))},deleteSecret(l,s){return n.deleteSecret(l.name,s).then(a=>a(r,t))},getSecret(l,s){return n.getSecret(l.name,s).then(a=>a(r,t))},listSecret(l={},s){return n.listSecret(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchSecret(l,s){return n.patchSecret(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateSecret(l,s){return n.updateSecret(l.name,l.secret,s).then(a=>a(r,t))}}};class Xt extends I{createSecret(t={},r){return Pe(this.configuration).createSecret(t.secret,r).then(n=>n(this.axios,this.basePath))}deleteSecret(t,r){return Pe(this.configuration).deleteSecret(t.name,r).then(n=>n(this.axios,this.basePath))}getSecret(t,r){return Pe(this.configuration).getSecret(t.name,r).then(n=>n(this.axios,this.basePath))}listSecret(t={},r){return Pe(this.configuration).listSecret(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchSecret(t,r){return Pe(this.configuration).patchSecret(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateSecret(t,r){return Pe(this.configuration).updateSecret(t.name,t.secret,r).then(n=>n(this.axios,this.basePath))}}const Yt=function(e){return{createSetting:async(t,r={})=>{const n="/api/v1alpha1/settings",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteSetting:async(t,r={})=>{C("deleteSetting","name",t);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getSetting:async(t,r={})=>{C("getSetting","name",t);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSetting:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/settings",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchSetting:async(t,r,n={})=>{C("patchSetting","name",t);const l="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateSetting:async(t,r,n={})=>{C("updateSetting","name",t);const l="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Oe=function(e){const t=Yt(e);return{async createSetting(r,n){var o,c;const l=await t.createSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SettingV1alpha1Api.createSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteSetting(r,n){var o,c;const l=await t.deleteSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SettingV1alpha1Api.deleteSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getSetting(r,n){var o,c;const l=await t.getSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SettingV1alpha1Api.getSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSetting(r,n,l,s,a,o){var i,d;const c=await t.listSetting(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["SettingV1alpha1Api.listSetting"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchSetting(r,n,l){var c,p;const s=await t.patchSetting(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SettingV1alpha1Api.patchSetting"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateSetting(r,n,l){var c,p;const s=await t.updateSetting(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SettingV1alpha1Api.updateSetting"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Xr=function(e,t,r){const n=Oe(e);return{createSetting(l={},s){return n.createSetting(l.setting,s).then(a=>a(r,t))},deleteSetting(l,s){return n.deleteSetting(l.name,s).then(a=>a(r,t))},getSetting(l,s){return n.getSetting(l.name,s).then(a=>a(r,t))},listSetting(l={},s){return n.listSetting(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchSetting(l,s){return n.patchSetting(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateSetting(l,s){return n.updateSetting(l.name,l.setting,s).then(a=>a(r,t))}}};class Zt extends I{createSetting(t={},r){return Oe(this.configuration).createSetting(t.setting,r).then(n=>n(this.axios,this.basePath))}deleteSetting(t,r){return Oe(this.configuration).deleteSetting(t.name,r).then(n=>n(this.axios,this.basePath))}getSetting(t,r){return Oe(this.configuration).getSetting(t.name,r).then(n=>n(this.axios,this.basePath))}listSetting(t={},r){return Oe(this.configuration).listSetting(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchSetting(t,r){return Oe(this.configuration).patchSetting(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateSetting(t,r){return Oe(this.configuration).updateSetting(t.name,t.setting,r).then(n=>n(this.axios,this.basePath))}}const qt=function(e){return{createSinglePage:async(t,r={})=>{const n="/apis/content.halo.run/v1alpha1/singlepages",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteSinglePage:async(t,r={})=>{C("deleteSinglePage","name",t);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getSinglePage:async(t,r={})=>{C("getSinglePage","name",t);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSinglePage:async(t,r,n,l,s,a={})=>{const o="/apis/content.halo.run/v1alpha1/singlepages",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchSinglePage:async(t,r,n={})=>{C("patchSinglePage","name",t);const l="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateSinglePage:async(t,r,n={})=>{C("updateSinglePage","name",t);const l="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ye=function(e){const t=qt(e);return{async createSinglePage(r,n){var o,c;const l=await t.createSinglePage(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1Api.createSinglePage"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteSinglePage(r,n){var o,c;const l=await t.deleteSinglePage(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1Api.deleteSinglePage"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getSinglePage(r,n){var o,c;const l=await t.getSinglePage(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1Api.getSinglePage"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSinglePage(r,n,l,s,a,o){var i,d;const c=await t.listSinglePage(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["SinglePageV1alpha1Api.listSinglePage"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchSinglePage(r,n,l){var c,p;const s=await t.patchSinglePage(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SinglePageV1alpha1Api.patchSinglePage"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateSinglePage(r,n,l){var c,p;const s=await t.updateSinglePage(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SinglePageV1alpha1Api.updateSinglePage"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Yr=function(e,t,r){const n=ye(e);return{createSinglePage(l={},s){return n.createSinglePage(l.singlePage,s).then(a=>a(r,t))},deleteSinglePage(l,s){return n.deleteSinglePage(l.name,s).then(a=>a(r,t))},getSinglePage(l,s){return n.getSinglePage(l.name,s).then(a=>a(r,t))},listSinglePage(l={},s){return n.listSinglePage(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchSinglePage(l,s){return n.patchSinglePage(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateSinglePage(l,s){return n.updateSinglePage(l.name,l.singlePage,s).then(a=>a(r,t))}}};class gt extends I{createSinglePage(t={},r){return ye(this.configuration).createSinglePage(t.singlePage,r).then(n=>n(this.axios,this.basePath))}deleteSinglePage(t,r){return ye(this.configuration).deleteSinglePage(t.name,r).then(n=>n(this.axios,this.basePath))}getSinglePage(t,r){return ye(this.configuration).getSinglePage(t.name,r).then(n=>n(this.axios,this.basePath))}listSinglePage(t={},r){return ye(this.configuration).listSinglePage(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchSinglePage(t,r){return ye(this.configuration).patchSinglePage(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateSinglePage(t,r){return ye(this.configuration).updateSinglePage(t.name,t.singlePage,r).then(n=>n(this.axios,this.basePath))}}const ft=function(e){return{deleteSinglePageContent:async(t,r,n={})=>{C("deleteSinglePageContent","name",t),C("deleteSinglePageContent","snapshotName",r);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"DELETE",...a,...n},c={},p={};y(o,e),await v(c,e),r!==void 0&&(p.snapshotName=r),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},draftSinglePage:async(t,r={})=>{C("draftSinglePage","singlePageRequest",t);const n="/apis/api.console.halo.run/v1alpha1/singlepages",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},fetchSinglePageContent:async(t,r,n={})=>{C("fetchSinglePageContent","name",t),C("fetchSinglePageContent","snapshotName",r);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...n},c={},p={};y(o,e),await v(c,e),r!==void 0&&(p.snapshotName=r),S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},{url:A(s),options:o}},fetchSinglePageHeadContent:async(t,r={})=>{C("fetchSinglePageHeadContent","name",t);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},fetchSinglePageReleaseContent:async(t,r={})=>{C("fetchSinglePageReleaseContent","name",t);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSinglePageSnapshots:async(t,r={})=>{C("listSinglePageSnapshots","name",t);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/snapshot".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSinglePages:async(t,r,n,l,s,a,o,c,p,h={})=>{const i="/apis/api.console.halo.run/v1alpha1/singlepages",d=new URL(i,O);let U;e&&(U=e.baseOptions);const b={method:"GET",...U,...h},T={},B={};y(b,e),await v(T,e),t!==void 0&&(B.page=t),r!==void 0&&(B.size=r),n&&(B.labelSelector=n),l&&(B.fieldSelector=l),s&&(B.sort=s),a&&(B.contributor=a),o!==void 0&&(B.publishPhase=o),c!==void 0&&(B.visible=c),p!==void 0&&(B.keyword=p),S(d,B);let L=U&&U.headers?U.headers:{};return b.headers={...T,...L,...h.headers},{url:A(d),options:b}},publishSinglePage:async(t,r={})=>{C("publishSinglePage","name",t);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},revertToSpecifiedSnapshotForSinglePage:async(t,r,n={})=>{C("revertToSpecifiedSnapshotForSinglePage","name",t),C("revertToSpecifiedSnapshotForSinglePage","revertSnapshotForSingleParam",r);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/revert-content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateDraftSinglePage:async(t,r,n={})=>{C("updateDraftSinglePage","name",t),C("updateDraftSinglePage","singlePageRequest",r);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateSinglePageContent:async(t,r,n={})=>{C("updateSinglePageContent","name",t),C("updateSinglePageContent","content",r);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},D=function(e){const t=ft(e);return{async deleteSinglePageContent(r,n,l){var c,p;const s=await t.deleteSinglePageContent(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SinglePageV1alpha1ConsoleApi.deleteSinglePageContent"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async draftSinglePage(r,n){var o,c;const l=await t.draftSinglePage(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1ConsoleApi.draftSinglePage"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async fetchSinglePageContent(r,n,l){var c,p;const s=await t.fetchSinglePageContent(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SinglePageV1alpha1ConsoleApi.fetchSinglePageContent"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async fetchSinglePageHeadContent(r,n){var o,c;const l=await t.fetchSinglePageHeadContent(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1ConsoleApi.fetchSinglePageHeadContent"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async fetchSinglePageReleaseContent(r,n){var o,c;const l=await t.fetchSinglePageReleaseContent(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1ConsoleApi.fetchSinglePageReleaseContent"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSinglePageSnapshots(r,n){var o,c;const l=await t.listSinglePageSnapshots(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1ConsoleApi.listSinglePageSnapshots"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSinglePages(r,n,l,s,a,o,c,p,h,i){var T,B;const d=await t.listSinglePages(r,n,l,s,a,o,c,p,h,i),U=(e==null?void 0:e.serverIndex)??0,b=(B=(T=P["SinglePageV1alpha1ConsoleApi.listSinglePages"])==null?void 0:T[U])==null?void 0:B.url;return(L,fe)=>u(d,V,m,e)(L,b||fe)},async publishSinglePage(r,n){var o,c;const l=await t.publishSinglePage(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1ConsoleApi.publishSinglePage"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async revertToSpecifiedSnapshotForSinglePage(r,n,l){var c,p;const s=await t.revertToSpecifiedSnapshotForSinglePage(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SinglePageV1alpha1ConsoleApi.revertToSpecifiedSnapshotForSinglePage"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateDraftSinglePage(r,n,l){var c,p;const s=await t.updateDraftSinglePage(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SinglePageV1alpha1ConsoleApi.updateDraftSinglePage"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateSinglePageContent(r,n,l){var c,p;const s=await t.updateSinglePageContent(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SinglePageV1alpha1ConsoleApi.updateSinglePageContent"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Zr=function(e,t,r){const n=D(e);return{deleteSinglePageContent(l,s){return n.deleteSinglePageContent(l.name,l.snapshotName,s).then(a=>a(r,t))},draftSinglePage(l,s){return n.draftSinglePage(l.singlePageRequest,s).then(a=>a(r,t))},fetchSinglePageContent(l,s){return n.fetchSinglePageContent(l.name,l.snapshotName,s).then(a=>a(r,t))},fetchSinglePageHeadContent(l,s){return n.fetchSinglePageHeadContent(l.name,s).then(a=>a(r,t))},fetchSinglePageReleaseContent(l,s){return n.fetchSinglePageReleaseContent(l.name,s).then(a=>a(r,t))},listSinglePageSnapshots(l,s){return n.listSinglePageSnapshots(l.name,s).then(a=>a(r,t))},listSinglePages(l={},s){return n.listSinglePages(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.contributor,l.publishPhase,l.visible,l.keyword,s).then(a=>a(r,t))},publishSinglePage(l,s){return n.publishSinglePage(l.name,s).then(a=>a(r,t))},revertToSpecifiedSnapshotForSinglePage(l,s){return n.revertToSpecifiedSnapshotForSinglePage(l.name,l.revertSnapshotForSingleParam,s).then(a=>a(r,t))},updateDraftSinglePage(l,s){return n.updateDraftSinglePage(l.name,l.singlePageRequest,s).then(a=>a(r,t))},updateSinglePageContent(l,s){return n.updateSinglePageContent(l.name,l.content,s).then(a=>a(r,t))}}};class es extends I{deleteSinglePageContent(t,r){return D(this.configuration).deleteSinglePageContent(t.name,t.snapshotName,r).then(n=>n(this.axios,this.basePath))}draftSinglePage(t,r){return D(this.configuration).draftSinglePage(t.singlePageRequest,r).then(n=>n(this.axios,this.basePath))}fetchSinglePageContent(t,r){return D(this.configuration).fetchSinglePageContent(t.name,t.snapshotName,r).then(n=>n(this.axios,this.basePath))}fetchSinglePageHeadContent(t,r){return D(this.configuration).fetchSinglePageHeadContent(t.name,r).then(n=>n(this.axios,this.basePath))}fetchSinglePageReleaseContent(t,r){return D(this.configuration).fetchSinglePageReleaseContent(t.name,r).then(n=>n(this.axios,this.basePath))}listSinglePageSnapshots(t,r){return D(this.configuration).listSinglePageSnapshots(t.name,r).then(n=>n(this.axios,this.basePath))}listSinglePages(t={},r){return D(this.configuration).listSinglePages(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.contributor,t.publishPhase,t.visible,t.keyword,r).then(n=>n(this.axios,this.basePath))}publishSinglePage(t,r){return D(this.configuration).publishSinglePage(t.name,r).then(n=>n(this.axios,this.basePath))}revertToSpecifiedSnapshotForSinglePage(t,r){return D(this.configuration).revertToSpecifiedSnapshotForSinglePage(t.name,t.revertSnapshotForSingleParam,r).then(n=>n(this.axios,this.basePath))}updateDraftSinglePage(t,r){return D(this.configuration).updateDraftSinglePage(t.name,t.singlePageRequest,r).then(n=>n(this.axios,this.basePath))}updateSinglePageContent(t,r){return D(this.configuration).updateSinglePageContent(t.name,t.content,r).then(n=>n(this.axios,this.basePath))}}const qr={Draft:"DRAFT",PendingApproval:"PENDING_APPROVAL",Published:"PUBLISHED",Failed:"FAILED"},gr={Public:"PUBLIC",Internal:"INTERNAL",Private:"PRIVATE"},as=function(e){return{querySinglePageByName:async(t,r={})=>{C("querySinglePageByName","name",t);const n="/apis/api.content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},querySinglePages:async(t,r,n,l,s,a={})=>{const o="/apis/api.content.halo.run/v1alpha1/singlepages",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}}}},Ge=function(e){const t=as(e);return{async querySinglePageByName(r,n){var o,c;const l=await t.querySinglePageByName(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SinglePageV1alpha1PublicApi.querySinglePageByName"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async querySinglePages(r,n,l,s,a,o){var i,d;const c=await t.querySinglePages(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["SinglePageV1alpha1PublicApi.querySinglePages"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)}}},fr=function(e,t,r){const n=Ge(e);return{querySinglePageByName(l,s){return n.querySinglePageByName(l.name,s).then(a=>a(r,t))},querySinglePages(l={},s){return n.querySinglePages(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))}}};class el extends I{querySinglePageByName(t,r){return Ge(this.configuration).querySinglePageByName(t.name,r).then(n=>n(this.axios,this.basePath))}querySinglePages(t={},r){return Ge(this.configuration).querySinglePages(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}}const ts=function(e){return{createSnapshot:async(t,r={})=>{const n="/apis/content.halo.run/v1alpha1/snapshots",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteSnapshot:async(t,r={})=>{C("deleteSnapshot","name",t);const n="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getSnapshot:async(t,r={})=>{C("getSnapshot","name",t);const n="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSnapshot:async(t,r,n,l,s,a={})=>{const o="/apis/content.halo.run/v1alpha1/snapshots",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchSnapshot:async(t,r,n={})=>{C("patchSnapshot","name",t);const l="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateSnapshot:async(t,r,n={})=>{C("updateSnapshot","name",t);const l="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ve=function(e){const t=ts(e);return{async createSnapshot(r,n){var o,c;const l=await t.createSnapshot(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SnapshotV1alpha1Api.createSnapshot"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteSnapshot(r,n){var o,c;const l=await t.deleteSnapshot(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SnapshotV1alpha1Api.deleteSnapshot"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getSnapshot(r,n){var o,c;const l=await t.getSnapshot(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SnapshotV1alpha1Api.getSnapshot"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSnapshot(r,n,l,s,a,o){var i,d;const c=await t.listSnapshot(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["SnapshotV1alpha1Api.listSnapshot"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchSnapshot(r,n,l){var c,p;const s=await t.patchSnapshot(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SnapshotV1alpha1Api.patchSnapshot"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateSnapshot(r,n,l){var c,p;const s=await t.updateSnapshot(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SnapshotV1alpha1Api.updateSnapshot"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},al=function(e,t,r){const n=ve(e);return{createSnapshot(l={},s){return n.createSnapshot(l.snapshot,s).then(a=>a(r,t))},deleteSnapshot(l,s){return n.deleteSnapshot(l.name,s).then(a=>a(r,t))},getSnapshot(l,s){return n.getSnapshot(l.name,s).then(a=>a(r,t))},listSnapshot(l={},s){return n.listSnapshot(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchSnapshot(l,s){return n.patchSnapshot(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateSnapshot(l,s){return n.updateSnapshot(l.name,l.snapshot,s).then(a=>a(r,t))}}};class ss extends I{createSnapshot(t={},r){return ve(this.configuration).createSnapshot(t.snapshot,r).then(n=>n(this.axios,this.basePath))}deleteSnapshot(t,r){return ve(this.configuration).deleteSnapshot(t.name,r).then(n=>n(this.axios,this.basePath))}getSnapshot(t,r){return ve(this.configuration).getSnapshot(t.name,r).then(n=>n(this.axios,this.basePath))}listSnapshot(t={},r){return ve(this.configuration).listSnapshot(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchSnapshot(t,r){return ve(this.configuration).patchSnapshot(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateSnapshot(t,r){return ve(this.configuration).updateSnapshot(t.name,t.snapshot,r).then(n=>n(this.axios,this.basePath))}}const rs=function(e){return{getSnapshotForPost:async(t,r,n,l={})=>{C("getSnapshotForPost","name",t),C("getSnapshotForPost","postName",r);const s="/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(t))),a=new URL(s,O);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...l},p={},h={};y(c,e),await v(p,e),r!==void 0&&(h.postName=r),n!==void 0&&(h.patched=n),S(a,h);let i=o&&o.headers?o.headers:{};return c.headers={...p,...i,...l.headers},{url:A(a),options:c}}}},Ze=function(e){const t=rs(e);return{async getSnapshotForPost(r,n,l,s){var p,h;const a=await t.getSnapshotForPost(r,n,l,s),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=P["SnapshotV1alpha1UcApi.getSnapshotForPost"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>u(a,V,m,e)(i,c||d)}}},tl=function(e,t,r){const n=Ze(e);return{getSnapshotForPost(l,s){return n.getSnapshotForPost(l.name,l.postName,l.patched,s).then(a=>a(r,t))}}};class ls extends I{getSnapshotForPost(t,r){return Ze(this.configuration).getSnapshotForPost(t.name,t.postName,t.patched,r).then(n=>n(this.axios,this.basePath))}}const ns=function(e){return{createSubscription:async(t,r={})=>{const n="/apis/notification.halo.run/v1alpha1/subscriptions",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteSubscription:async(t,r={})=>{C("deleteSubscription","name",t);const n="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getSubscription:async(t,r={})=>{C("getSubscription","name",t);const n="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listSubscription:async(t,r,n,l,s,a={})=>{const o="/apis/notification.halo.run/v1alpha1/subscriptions",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchSubscription:async(t,r,n={})=>{C("patchSubscription","name",t);const l="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateSubscription:async(t,r,n={})=>{C("updateSubscription","name",t);const l="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Se=function(e){const t=ns(e);return{async createSubscription(r,n){var o,c;const l=await t.createSubscription(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SubscriptionV1alpha1Api.createSubscription"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteSubscription(r,n){var o,c;const l=await t.deleteSubscription(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SubscriptionV1alpha1Api.deleteSubscription"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getSubscription(r,n){var o,c;const l=await t.getSubscription(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SubscriptionV1alpha1Api.getSubscription"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listSubscription(r,n,l,s,a,o){var i,d;const c=await t.listSubscription(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["SubscriptionV1alpha1Api.listSubscription"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchSubscription(r,n,l){var c,p;const s=await t.patchSubscription(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SubscriptionV1alpha1Api.patchSubscription"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateSubscription(r,n,l){var c,p;const s=await t.updateSubscription(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["SubscriptionV1alpha1Api.updateSubscription"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},sl=function(e,t,r){const n=Se(e);return{createSubscription(l={},s){return n.createSubscription(l.subscription,s).then(a=>a(r,t))},deleteSubscription(l,s){return n.deleteSubscription(l.name,s).then(a=>a(r,t))},getSubscription(l,s){return n.getSubscription(l.name,s).then(a=>a(r,t))},listSubscription(l={},s){return n.listSubscription(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchSubscription(l,s){return n.patchSubscription(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateSubscription(l,s){return n.updateSubscription(l.name,l.subscription,s).then(a=>a(r,t))}}};class os extends I{createSubscription(t={},r){return Se(this.configuration).createSubscription(t.subscription,r).then(n=>n(this.axios,this.basePath))}deleteSubscription(t,r){return Se(this.configuration).deleteSubscription(t.name,r).then(n=>n(this.axios,this.basePath))}getSubscription(t,r){return Se(this.configuration).getSubscription(t.name,r).then(n=>n(this.axios,this.basePath))}listSubscription(t={},r){return Se(this.configuration).listSubscription(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchSubscription(t,r){return Se(this.configuration).patchSubscription(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateSubscription(t,r){return Se(this.configuration).updateSubscription(t.name,t.subscription,r).then(n=>n(this.axios,this.basePath))}}const cs=function(e){return{getStats:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/stats",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},initialize:async(t,r={})=>{const n="/apis/api.console.halo.run/v1alpha1/system/initialize",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}}}},ze=function(e){const t=cs(e);return{async getStats(r){var a,o;const n=await t.getStats(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["SystemV1alpha1ConsoleApi.getStats"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async initialize(r,n){var o,c;const l=await t.initialize(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["SystemV1alpha1ConsoleApi.initialize"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},rl=function(e,t,r){const n=ze(e);return{getStats(l){return n.getStats(l).then(s=>s(r,t))},initialize(l={},s){return n.initialize(l.systemInitializationRequest,s).then(a=>a(r,t))}}};class ps extends I{getStats(t){return ze(this.configuration).getStats(t).then(r=>r(this.axios,this.basePath))}initialize(t={},r){return ze(this.configuration).initialize(t.systemInitializationRequest,r).then(n=>n(this.axios,this.basePath))}}const hs=function(e){return{queryStats:async(t={})=>{const r="/apis/api.halo.run/v1alpha1/stats/-",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}}}},qe=function(e){const t=hs(e);return{async queryStats(r){var a,o;const n=await t.queryStats(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["SystemV1alpha1PublicApi.queryStats"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)}}},ll=function(e,t,r){const n=qe(e);return{queryStats(l){return n.queryStats(l).then(s=>s(r,t))}}};class is extends I{queryStats(t){return qe(this.configuration).queryStats(t).then(r=>r(this.axios,this.basePath))}}const ds=function(e){return{createTag:async(t,r={})=>{const n="/apis/content.halo.run/v1alpha1/tags",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteTag:async(t,r={})=>{C("deleteTag","name",t);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getTag:async(t,r={})=>{C("getTag","name",t);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listTag:async(t,r,n,l,s,a={})=>{const o="/apis/content.halo.run/v1alpha1/tags",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchTag:async(t,r,n={})=>{C("patchTag","name",t);const l="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateTag:async(t,r,n={})=>{C("updateTag","name",t);const l="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Ae=function(e){const t=ds(e);return{async createTag(r,n){var o,c;const l=await t.createTag(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TagV1alpha1Api.createTag"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteTag(r,n){var o,c;const l=await t.deleteTag(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TagV1alpha1Api.deleteTag"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getTag(r,n){var o,c;const l=await t.getTag(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TagV1alpha1Api.getTag"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listTag(r,n,l,s,a,o){var i,d;const c=await t.listTag(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["TagV1alpha1Api.listTag"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchTag(r,n,l){var c,p;const s=await t.patchTag(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["TagV1alpha1Api.patchTag"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateTag(r,n,l){var c,p;const s=await t.updateTag(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["TagV1alpha1Api.updateTag"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},nl=function(e,t,r){const n=Ae(e);return{createTag(l={},s){return n.createTag(l.tag,s).then(a=>a(r,t))},deleteTag(l,s){return n.deleteTag(l.name,s).then(a=>a(r,t))},getTag(l,s){return n.getTag(l.name,s).then(a=>a(r,t))},listTag(l={},s){return n.listTag(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchTag(l,s){return n.patchTag(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateTag(l,s){return n.updateTag(l.name,l.tag,s).then(a=>a(r,t))}}};class Vs extends I{createTag(t={},r){return Ae(this.configuration).createTag(t.tag,r).then(n=>n(this.axios,this.basePath))}deleteTag(t,r){return Ae(this.configuration).deleteTag(t.name,r).then(n=>n(this.axios,this.basePath))}getTag(t,r){return Ae(this.configuration).getTag(t.name,r).then(n=>n(this.axios,this.basePath))}listTag(t={},r){return Ae(this.configuration).listTag(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchTag(t,r){return Ae(this.configuration).patchTag(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateTag(t,r){return Ae(this.configuration).updateTag(t.name,t.tag,r).then(n=>n(this.axios,this.basePath))}}const ms=function(e){return{listPostTags:async(t,r,n,l,s,a,o={})=>{const c="/apis/api.console.halo.run/v1alpha1/tags",p=new URL(c,O);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},U={};y(i,e),await v(d,e),t!==void 0&&(U.page=t),r!==void 0&&(U.size=r),n&&(U.labelSelector=n),l&&(U.fieldSelector=l),s&&(U.sort=s),a!==void 0&&(U.keyword=a),S(p,U);let b=h&&h.headers?h.headers:{};return i.headers={...d,...b,...o.headers},{url:A(p),options:i}}}},ge=function(e){const t=ms(e);return{async listPostTags(r,n,l,s,a,o,c){var d,U;const p=await t.listPostTags(r,n,l,s,a,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(U=(d=P["TagV1alpha1ConsoleApi.listPostTags"])==null?void 0:d[h])==null?void 0:U.url;return(b,T)=>u(p,V,m,e)(b,i||T)}}},ol=function(e,t,r){const n=ge(e);return{listPostTags(l={},s){return n.listPostTags(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,s).then(a=>a(r,t))}}};class Ps extends I{listPostTags(t={},r){return ge(this.configuration).listPostTags(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.keyword,r).then(n=>n(this.axios,this.basePath))}}const Os=function(e){return{queryPostsByTagName:async(t,r,n,l,s,a,o={})=>{C("queryPostsByTagName","name",t);const c="/apis/api.content.halo.run/v1alpha1/tags/{name}/posts".replace("{name}",encodeURIComponent(String(t))),p=new URL(c,O);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},U={};y(i,e),await v(d,e),r!==void 0&&(U.page=r),n!==void 0&&(U.size=n),l&&(U.labelSelector=l),s&&(U.fieldSelector=s),a&&(U.sort=a),S(p,U);let b=h&&h.headers?h.headers:{};return i.headers={...d,...b,...o.headers},{url:A(p),options:i}},queryTagByName:async(t,r={})=>{C("queryTagByName","name",t);const n="/apis/api.content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},queryTags:async(t,r,n,l,s,a={})=>{const o="/apis/api.content.halo.run/v1alpha1/tags",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}}}},Le=function(e){const t=Os(e);return{async queryPostsByTagName(r,n,l,s,a,o,c){var d,U;const p=await t.queryPostsByTagName(r,n,l,s,a,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(U=(d=P["TagV1alpha1PublicApi.queryPostsByTagName"])==null?void 0:d[h])==null?void 0:U.url;return(b,T)=>u(p,V,m,e)(b,i||T)},async queryTagByName(r,n){var o,c;const l=await t.queryTagByName(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TagV1alpha1PublicApi.queryTagByName"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async queryTags(r,n,l,s,a,o){var i,d;const c=await t.queryTags(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["TagV1alpha1PublicApi.queryTags"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)}}},cl=function(e,t,r){const n=Le(e);return{queryPostsByTagName(l,s){return n.queryPostsByTagName(l.name,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},queryTagByName(l,s){return n.queryTagByName(l.name,s).then(a=>a(r,t))},queryTags(l={},s){return n.queryTags(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))}}};class pl extends I{queryPostsByTagName(t,r){return Le(this.configuration).queryPostsByTagName(t.name,t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}queryTagByName(t,r){return Le(this.configuration).queryTagByName(t.name,r).then(n=>n(this.axios,this.basePath))}queryTags(t={},r){return Le(this.configuration).queryTags(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}}const ys=function(e){return{createTheme:async(t,r={})=>{const n="/apis/theme.halo.run/v1alpha1/themes",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteTheme:async(t,r={})=>{C("deleteTheme","name",t);const n="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getTheme:async(t,r={})=>{C("getTheme","name",t);const n="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listTheme:async(t,r,n,l,s,a={})=>{const o="/apis/theme.halo.run/v1alpha1/themes",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchTheme:async(t,r,n={})=>{C("patchTheme","name",t);const l="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateTheme:async(t,r,n={})=>{C("updateTheme","name",t);const l="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},ue=function(e){const t=ys(e);return{async createTheme(r,n){var o,c;const l=await t.createTheme(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1Api.createTheme"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteTheme(r,n){var o,c;const l=await t.deleteTheme(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1Api.deleteTheme"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getTheme(r,n){var o,c;const l=await t.getTheme(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1Api.getTheme"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listTheme(r,n,l,s,a,o){var i,d;const c=await t.listTheme(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ThemeV1alpha1Api.listTheme"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchTheme(r,n,l){var c,p;const s=await t.patchTheme(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ThemeV1alpha1Api.patchTheme"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateTheme(r,n,l){var c,p;const s=await t.updateTheme(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ThemeV1alpha1Api.updateTheme"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},hl=function(e,t,r){const n=ue(e);return{createTheme(l={},s){return n.createTheme(l.theme,s).then(a=>a(r,t))},deleteTheme(l,s){return n.deleteTheme(l.name,s).then(a=>a(r,t))},getTheme(l,s){return n.getTheme(l.name,s).then(a=>a(r,t))},listTheme(l={},s){return n.listTheme(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchTheme(l,s){return n.patchTheme(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateTheme(l,s){return n.updateTheme(l.name,l.theme,s).then(a=>a(r,t))}}};class vs extends I{createTheme(t={},r){return ue(this.configuration).createTheme(t.theme,r).then(n=>n(this.axios,this.basePath))}deleteTheme(t,r){return ue(this.configuration).deleteTheme(t.name,r).then(n=>n(this.axios,this.basePath))}getTheme(t,r){return ue(this.configuration).getTheme(t.name,r).then(n=>n(this.axios,this.basePath))}listTheme(t={},r){return ue(this.configuration).listTheme(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchTheme(t,r){return ue(this.configuration).patchTheme(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateTheme(t,r){return ue(this.configuration).updateTheme(t.name,t.theme,r).then(n=>n(this.axios,this.basePath))}}const Ss=function(e){return{activateTheme:async(t,r={})=>{C("activateTheme","name",t);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/activation".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},fetchActivatedTheme:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/themes/-/activation",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},fetchThemeConfig:async(t,r={})=>{C("fetchThemeConfig","name",t);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/config".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},fetchThemeSetting:async(t,r={})=>{C("fetchThemeSetting","name",t);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/setting".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},installTheme:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/themes/install",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"POST",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},installThemeFromUri:async(t,r={})=>{C("installThemeFromUri","installFromUriRequest",t);const n="/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},invalidateCache:async(t,r={})=>{C("invalidateCache","name",t);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/invalidate-cache".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listThemes:async(t,r,n,l,s,a={})=>{const o="/apis/api.console.halo.run/v1alpha1/themes",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s!==void 0&&(d.uninstalled=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},reload:async(t,r={})=>{C("reload","name",t);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/reload".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},resetThemeConfig:async(t,r={})=>{C("resetThemeConfig","name",t);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},updateThemeConfig:async(t,r,n={})=>{C("updateThemeConfig","name",t),C("updateThemeConfig","configMap",r);const l="/apis/api.console.halo.run/v1alpha1/themes/{name}/config".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},upgradeTheme:async(t,r,n={})=>{C("upgradeTheme","name",t),C("upgradeTheme","file",r);const l="/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={},h=new(e&&e.formDataCtor||FormData);y(o,e),await v(c,e),r!==void 0&&h.append("file",r),c["Content-Type"]="multipart/form-data",S(s,p);let i=a&&a.headers?a.headers:{};return o.headers={...c,...i,...n.headers},o.data=h,{url:A(s),options:o}},upgradeThemeFromUri:async(t,r,n={})=>{C("upgradeThemeFromUri","name",t),C("upgradeThemeFromUri","upgradeFromUriRequest",r);const l="/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade-from-uri".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},j=function(e){const t=Ss(e);return{async activateTheme(r,n){var o,c;const l=await t.activateTheme(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1ConsoleApi.activateTheme"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async fetchActivatedTheme(r){var a,o;const n=await t.fetchActivatedTheme(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["ThemeV1alpha1ConsoleApi.fetchActivatedTheme"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async fetchThemeConfig(r,n){var o,c;const l=await t.fetchThemeConfig(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1ConsoleApi.fetchThemeConfig"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async fetchThemeSetting(r,n){var o,c;const l=await t.fetchThemeSetting(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1ConsoleApi.fetchThemeSetting"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async installTheme(r){var a,o;const n=await t.installTheme(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["ThemeV1alpha1ConsoleApi.installTheme"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async installThemeFromUri(r,n){var o,c;const l=await t.installThemeFromUri(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1ConsoleApi.installThemeFromUri"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async invalidateCache(r,n){var o,c;const l=await t.invalidateCache(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1ConsoleApi.invalidateCache"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listThemes(r,n,l,s,a,o){var i,d;const c=await t.listThemes(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["ThemeV1alpha1ConsoleApi.listThemes"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async reload(r,n){var o,c;const l=await t.reload(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1ConsoleApi.reload"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async resetThemeConfig(r,n){var o,c;const l=await t.resetThemeConfig(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["ThemeV1alpha1ConsoleApi.resetThemeConfig"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async updateThemeConfig(r,n,l){var c,p;const s=await t.updateThemeConfig(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ThemeV1alpha1ConsoleApi.updateThemeConfig"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async upgradeTheme(r,n,l){var c,p;const s=await t.upgradeTheme(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ThemeV1alpha1ConsoleApi.upgradeTheme"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async upgradeThemeFromUri(r,n,l){var c,p;const s=await t.upgradeThemeFromUri(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["ThemeV1alpha1ConsoleApi.upgradeThemeFromUri"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},il=function(e,t,r){const n=j(e);return{activateTheme(l,s){return n.activateTheme(l.name,s).then(a=>a(r,t))},fetchActivatedTheme(l){return n.fetchActivatedTheme(l).then(s=>s(r,t))},fetchThemeConfig(l,s){return n.fetchThemeConfig(l.name,s).then(a=>a(r,t))},fetchThemeSetting(l,s){return n.fetchThemeSetting(l.name,s).then(a=>a(r,t))},installTheme(l){return n.installTheme(l).then(s=>s(r,t))},installThemeFromUri(l,s){return n.installThemeFromUri(l.installFromUriRequest,s).then(a=>a(r,t))},invalidateCache(l,s){return n.invalidateCache(l.name,s).then(a=>a(r,t))},listThemes(l={},s){return n.listThemes(l.page,l.size,l.labelSelector,l.fieldSelector,l.uninstalled,s).then(a=>a(r,t))},reload(l,s){return n.reload(l.name,s).then(a=>a(r,t))},resetThemeConfig(l,s){return n.resetThemeConfig(l.name,s).then(a=>a(r,t))},updateThemeConfig(l,s){return n.updateThemeConfig(l.name,l.configMap,s).then(a=>a(r,t))},upgradeTheme(l,s){return n.upgradeTheme(l.name,l.file,s).then(a=>a(r,t))},upgradeThemeFromUri(l,s){return n.upgradeThemeFromUri(l.name,l.upgradeFromUriRequest,s).then(a=>a(r,t))}}};class As extends I{activateTheme(t,r){return j(this.configuration).activateTheme(t.name,r).then(n=>n(this.axios,this.basePath))}fetchActivatedTheme(t){return j(this.configuration).fetchActivatedTheme(t).then(r=>r(this.axios,this.basePath))}fetchThemeConfig(t,r){return j(this.configuration).fetchThemeConfig(t.name,r).then(n=>n(this.axios,this.basePath))}fetchThemeSetting(t,r){return j(this.configuration).fetchThemeSetting(t.name,r).then(n=>n(this.axios,this.basePath))}installTheme(t){return j(this.configuration).installTheme(t).then(r=>r(this.axios,this.basePath))}installThemeFromUri(t,r){return j(this.configuration).installThemeFromUri(t.installFromUriRequest,r).then(n=>n(this.axios,this.basePath))}invalidateCache(t,r){return j(this.configuration).invalidateCache(t.name,r).then(n=>n(this.axios,this.basePath))}listThemes(t={},r){return j(this.configuration).listThemes(t.page,t.size,t.labelSelector,t.fieldSelector,t.uninstalled,r).then(n=>n(this.axios,this.basePath))}reload(t,r){return j(this.configuration).reload(t.name,r).then(n=>n(this.axios,this.basePath))}resetThemeConfig(t,r){return j(this.configuration).resetThemeConfig(t.name,r).then(n=>n(this.axios,this.basePath))}updateThemeConfig(t,r){return j(this.configuration).updateThemeConfig(t.name,t.configMap,r).then(n=>n(this.axios,this.basePath))}upgradeTheme(t,r){return j(this.configuration).upgradeTheme(t.name,t.file,r).then(n=>n(this.axios,this.basePath))}upgradeThemeFromUri(t,r){return j(this.configuration).upgradeThemeFromUri(t.name,t.upgradeFromUriRequest,r).then(n=>n(this.axios,this.basePath))}}const us=function(e){return{configurerTotp:async(t,r={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteTotp:async(t,r={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/-",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},disableTwoFactor:async(t,r={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},enableTwoFactor:async(t,r={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},getTotpAuthLink:async(t={})=>{const r="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},getTwoFactorAuthenticationSettings:async(t={})=>{const r="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}}}},Re=function(e){const t=us(e);return{async configurerTotp(r,n){var o,c;const l=await t.configurerTotp(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TwoFactorAuthV1alpha1UcApi.configurerTotp"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteTotp(r,n){var o,c;const l=await t.deleteTotp(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TwoFactorAuthV1alpha1UcApi.deleteTotp"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async disableTwoFactor(r,n){var o,c;const l=await t.disableTwoFactor(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TwoFactorAuthV1alpha1UcApi.disableTwoFactor"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async enableTwoFactor(r,n){var o,c;const l=await t.enableTwoFactor(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["TwoFactorAuthV1alpha1UcApi.enableTwoFactor"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getTotpAuthLink(r){var a,o;const n=await t.getTotpAuthLink(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["TwoFactorAuthV1alpha1UcApi.getTotpAuthLink"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async getTwoFactorAuthenticationSettings(r){var a,o;const n=await t.getTwoFactorAuthenticationSettings(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["TwoFactorAuthV1alpha1UcApi.getTwoFactorAuthenticationSettings"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)}}},dl=function(e,t,r){const n=Re(e);return{configurerTotp(l={},s){return n.configurerTotp(l.totpRequest,s).then(a=>a(r,t))},deleteTotp(l={},s){return n.deleteTotp(l.passwordRequest,s).then(a=>a(r,t))},disableTwoFactor(l={},s){return n.disableTwoFactor(l.passwordRequest,s).then(a=>a(r,t))},enableTwoFactor(l={},s){return n.enableTwoFactor(l.passwordRequest,s).then(a=>a(r,t))},getTotpAuthLink(l){return n.getTotpAuthLink(l).then(s=>s(r,t))},getTwoFactorAuthenticationSettings(l){return n.getTwoFactorAuthenticationSettings(l).then(s=>s(r,t))}}};class Rs extends I{configurerTotp(t={},r){return Re(this.configuration).configurerTotp(t.totpRequest,r).then(n=>n(this.axios,this.basePath))}deleteTotp(t={},r){return Re(this.configuration).deleteTotp(t.passwordRequest,r).then(n=>n(this.axios,this.basePath))}disableTwoFactor(t={},r){return Re(this.configuration).disableTwoFactor(t.passwordRequest,r).then(n=>n(this.axios,this.basePath))}enableTwoFactor(t={},r){return Re(this.configuration).enableTwoFactor(t.passwordRequest,r).then(n=>n(this.axios,this.basePath))}getTotpAuthLink(t){return Re(this.configuration).getTotpAuthLink(t).then(r=>r(this.axios,this.basePath))}getTwoFactorAuthenticationSettings(t){return Re(this.configuration).getTwoFactorAuthenticationSettings(t).then(r=>r(this.axios,this.basePath))}}const Cs=function(e){return{createUserConnection:async(t,r={})=>{const n="/apis/auth.halo.run/v1alpha1/userconnections",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteUserConnection:async(t,r={})=>{C("deleteUserConnection","name",t);const n="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getUserConnection:async(t,r={})=>{C("getUserConnection","name",t);const n="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listUserConnection:async(t,r,n,l,s,a={})=>{const o="/apis/auth.halo.run/v1alpha1/userconnections",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchUserConnection:async(t,r,n={})=>{C("patchUserConnection","name",t);const l="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateUserConnection:async(t,r,n={})=>{C("updateUserConnection","name",t);const l="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Ce=function(e){const t=Cs(e);return{async createUserConnection(r,n){var o,c;const l=await t.createUserConnection(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserConnectionV1alpha1Api.createUserConnection"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteUserConnection(r,n){var o,c;const l=await t.deleteUserConnection(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserConnectionV1alpha1Api.deleteUserConnection"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getUserConnection(r,n){var o,c;const l=await t.getUserConnection(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserConnectionV1alpha1Api.getUserConnection"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listUserConnection(r,n,l,s,a,o){var i,d;const c=await t.listUserConnection(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["UserConnectionV1alpha1Api.listUserConnection"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchUserConnection(r,n,l){var c,p;const s=await t.patchUserConnection(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserConnectionV1alpha1Api.patchUserConnection"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateUserConnection(r,n,l){var c,p;const s=await t.updateUserConnection(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserConnectionV1alpha1Api.updateUserConnection"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},Vl=function(e,t,r){const n=Ce(e);return{createUserConnection(l={},s){return n.createUserConnection(l.userConnection,s).then(a=>a(r,t))},deleteUserConnection(l,s){return n.deleteUserConnection(l.name,s).then(a=>a(r,t))},getUserConnection(l,s){return n.getUserConnection(l.name,s).then(a=>a(r,t))},listUserConnection(l={},s){return n.listUserConnection(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchUserConnection(l,s){return n.patchUserConnection(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateUserConnection(l,s){return n.updateUserConnection(l.name,l.userConnection,s).then(a=>a(r,t))}}};class Us extends I{createUserConnection(t={},r){return Ce(this.configuration).createUserConnection(t.userConnection,r).then(n=>n(this.axios,this.basePath))}deleteUserConnection(t,r){return Ce(this.configuration).deleteUserConnection(t.name,r).then(n=>n(this.axios,this.basePath))}getUserConnection(t,r){return Ce(this.configuration).getUserConnection(t.name,r).then(n=>n(this.axios,this.basePath))}listUserConnection(t={},r){return Ce(this.configuration).listUserConnection(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchUserConnection(t,r){return Ce(this.configuration).patchUserConnection(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateUserConnection(t,r){return Ce(this.configuration).updateUserConnection(t.name,t.userConnection,r).then(n=>n(this.axios,this.basePath))}}const bs=function(e){return{createUser:async(t,r={})=>{const n="/api/v1alpha1/users",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteUser:async(t,r={})=>{C("deleteUser","name",t);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getUser:async(t,r={})=>{C("getUser","name",t);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},listUser:async(t,r,n,l,s,a={})=>{const o="/api/v1alpha1/users",c=new URL(o,O);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...a},i={},d={};y(h,e),await v(i,e),t!==void 0&&(d.page=t),r!==void 0&&(d.size=r),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),s&&(d.sort=s),S(c,d);let U=p&&p.headers?p.headers:{};return h.headers={...i,...U,...a.headers},{url:A(c),options:h}},patchUser:async(t,r,n={})=>{C("patchUser","name",t);const l="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PATCH",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json-patch+json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},updateUser:async(t,r,n={})=>{C("updateUser","name",t);const l="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}}}},Ue=function(e){const t=bs(e);return{async createUser(r,n){var o,c;const l=await t.createUser(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1Api.createUser"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteUser(r,n){var o,c;const l=await t.deleteUser(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1Api.deleteUser"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getUser(r,n){var o,c;const l=await t.getUser(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1Api.getUser"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async listUser(r,n,l,s,a,o){var i,d;const c=await t.listUser(r,n,l,s,a,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=P["UserV1alpha1Api.listUser"])==null?void 0:i[p])==null?void 0:d.url;return(U,b)=>u(c,V,m,e)(U,h||b)},async patchUser(r,n,l){var c,p;const s=await t.patchUser(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserV1alpha1Api.patchUser"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async updateUser(r,n,l){var c,p;const s=await t.updateUser(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserV1alpha1Api.updateUser"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)}}},ml=function(e,t,r){const n=Ue(e);return{createUser(l={},s){return n.createUser(l.user,s).then(a=>a(r,t))},deleteUser(l,s){return n.deleteUser(l.name,s).then(a=>a(r,t))},getUser(l,s){return n.getUser(l.name,s).then(a=>a(r,t))},listUser(l={},s){return n.listUser(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,s).then(a=>a(r,t))},patchUser(l,s){return n.patchUser(l.name,l.jsonPatchInner,s).then(a=>a(r,t))},updateUser(l,s){return n.updateUser(l.name,l.user,s).then(a=>a(r,t))}}};class ws extends I{createUser(t={},r){return Ue(this.configuration).createUser(t.user,r).then(n=>n(this.axios,this.basePath))}deleteUser(t,r){return Ue(this.configuration).deleteUser(t.name,r).then(n=>n(this.axios,this.basePath))}getUser(t,r){return Ue(this.configuration).getUser(t.name,r).then(n=>n(this.axios,this.basePath))}listUser(t={},r){return Ue(this.configuration).listUser(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,r).then(n=>n(this.axios,this.basePath))}patchUser(t,r){return Ue(this.configuration).patchUser(t.name,t.jsonPatchInner,r).then(n=>n(this.axios,this.basePath))}updateUser(t,r){return Ue(this.configuration).updateUser(t.name,t.user,r).then(n=>n(this.axios,this.basePath))}}const Ts=function(e){return{changeAnyonePassword:async(t,r,n={})=>{C("changeAnyonePassword","name",t),C("changeAnyonePassword","changePasswordRequest",r);const l="/apis/api.console.halo.run/v1alpha1/users/{name}/password".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},changeOwnPassword:async(t,r={})=>{C("changeOwnPassword","changeOwnPasswordRequest",t);const n="/apis/api.console.halo.run/v1alpha1/users/-/password",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},createUser:async(t,r={})=>{C("createUser","createUserRequest",t);const n="/apis/api.console.halo.run/v1alpha1/users",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},deleteUserAvatar:async(t,r={})=>{C("deleteUserAvatar","name",t);const n="/apis/api.console.halo.run/v1alpha1/users/{name}/avatar".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"DELETE",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getCurrentUserDetail:async(t={})=>{const r="/apis/api.console.halo.run/v1alpha1/users/-",n=new URL(r,O);let l;e&&(l=e.baseOptions);const s={method:"GET",...l,...t},a={},o={};y(s,e),await v(a,e),S(n,o);let c=l&&l.headers?l.headers:{};return s.headers={...a,...c,...t.headers},{url:A(n),options:s}},getPermissions:async(t,r={})=>{C("getPermissions","name",t);const n="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},getUserDetail:async(t,r={})=>{C("getUserDetail","name",t);const n="/apis/api.console.halo.run/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(t))),l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},o={},c={};y(a,e),await v(o,e),S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},{url:A(l),options:a}},grantPermission:async(t,r,n={})=>{C("grantPermission","name",t),C("grantPermission","grantRequest",r);const l="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},listUsers:async(t,r,n,l,s,a,o,c={})=>{const p="/apis/api.console.halo.run/v1alpha1/users",h=new URL(p,O);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...c},U={},b={};y(d,e),await v(U,e),t!==void 0&&(b.page=t),r!==void 0&&(b.size=r),n&&(b.labelSelector=n),l&&(b.fieldSelector=l),s&&(b.sort=s),a!==void 0&&(b.keyword=a),o!==void 0&&(b.role=o),S(h,b);let T=i&&i.headers?i.headers:{};return d.headers={...U,...T,...c.headers},{url:A(h),options:d}},sendEmailVerificationCode:async(t,r={})=>{C("sendEmailVerificationCode","emailVerifyRequest",t);const n="/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},updateCurrentUser:async(t,r={})=>{C("updateCurrentUser","user",t);const n="/apis/api.console.halo.run/v1alpha1/users/-",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"PUT",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},uploadUserAvatar:async(t,r,n={})=>{C("uploadUserAvatar","name",t),C("uploadUserAvatar","file",r);const l="/apis/api.console.halo.run/v1alpha1/users/{name}/avatar".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...n},c={},p={},h=new(e&&e.formDataCtor||FormData);y(o,e),await v(c,e),r!==void 0&&h.append("file",r),c["Content-Type"]="multipart/form-data",S(s,p);let i=a&&a.headers?a.headers:{};return o.headers={...c,...i,...n.headers},o.data=h,{url:A(s),options:o}},verifyEmail:async(t,r={})=>{C("verifyEmail","verifyCodeRequest",t);const n="/apis/api.console.halo.run/v1alpha1/users/-/verify-email",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}}}},E=function(e){const t=Ts(e);return{async changeAnyonePassword(r,n,l){var c,p;const s=await t.changeAnyonePassword(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserV1alpha1ConsoleApi.changeAnyonePassword"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async changeOwnPassword(r,n){var o,c;const l=await t.changeOwnPassword(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.changeOwnPassword"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async createUser(r,n){var o,c;const l=await t.createUser(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.createUser"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async deleteUserAvatar(r,n){var o,c;const l=await t.deleteUserAvatar(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.deleteUserAvatar"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getCurrentUserDetail(r){var a,o;const n=await t.getCurrentUserDetail(r),l=(e==null?void 0:e.serverIndex)??0,s=(o=(a=P["UserV1alpha1ConsoleApi.getCurrentUserDetail"])==null?void 0:a[l])==null?void 0:o.url;return(c,p)=>u(n,V,m,e)(c,s||p)},async getPermissions(r,n){var o,c;const l=await t.getPermissions(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.getPermissions"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async getUserDetail(r,n){var o,c;const l=await t.getUserDetail(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.getUserDetail"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async grantPermission(r,n,l){var c,p;const s=await t.grantPermission(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserV1alpha1ConsoleApi.grantPermission"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async listUsers(r,n,l,s,a,o,c,p){var U,b;const h=await t.listUsers(r,n,l,s,a,o,c,p),i=(e==null?void 0:e.serverIndex)??0,d=(b=(U=P["UserV1alpha1ConsoleApi.listUsers"])==null?void 0:U[i])==null?void 0:b.url;return(T,B)=>u(h,V,m,e)(T,d||B)},async sendEmailVerificationCode(r,n){var o,c;const l=await t.sendEmailVerificationCode(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.sendEmailVerificationCode"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async updateCurrentUser(r,n){var o,c;const l=await t.updateCurrentUser(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.updateCurrentUser"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async uploadUserAvatar(r,n,l){var c,p;const s=await t.uploadUserAvatar(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserV1alpha1ConsoleApi.uploadUserAvatar"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async verifyEmail(r,n){var o,c;const l=await t.verifyEmail(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1ConsoleApi.verifyEmail"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},Pl=function(e,t,r){const n=E(e);return{changeAnyonePassword(l,s){return n.changeAnyonePassword(l.name,l.changePasswordRequest,s).then(a=>a(r,t))},changeOwnPassword(l,s){return n.changeOwnPassword(l.changeOwnPasswordRequest,s).then(a=>a(r,t))},createUser(l,s){return n.createUser(l.createUserRequest,s).then(a=>a(r,t))},deleteUserAvatar(l,s){return n.deleteUserAvatar(l.name,s).then(a=>a(r,t))},getCurrentUserDetail(l){return n.getCurrentUserDetail(l).then(s=>s(r,t))},getPermissions(l,s){return n.getPermissions(l.name,s).then(a=>a(r,t))},getUserDetail(l,s){return n.getUserDetail(l.name,s).then(a=>a(r,t))},grantPermission(l,s){return n.grantPermission(l.name,l.grantRequest,s).then(a=>a(r,t))},listUsers(l={},s){return n.listUsers(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,l.role,s).then(a=>a(r,t))},sendEmailVerificationCode(l,s){return n.sendEmailVerificationCode(l.emailVerifyRequest,s).then(a=>a(r,t))},updateCurrentUser(l,s){return n.updateCurrentUser(l.user,s).then(a=>a(r,t))},uploadUserAvatar(l,s){return n.uploadUserAvatar(l.name,l.file,s).then(a=>a(r,t))},verifyEmail(l,s){return n.verifyEmail(l.verifyCodeRequest,s).then(a=>a(r,t))}}};class Is extends I{changeAnyonePassword(t,r){return E(this.configuration).changeAnyonePassword(t.name,t.changePasswordRequest,r).then(n=>n(this.axios,this.basePath))}changeOwnPassword(t,r){return E(this.configuration).changeOwnPassword(t.changeOwnPasswordRequest,r).then(n=>n(this.axios,this.basePath))}createUser(t,r){return E(this.configuration).createUser(t.createUserRequest,r).then(n=>n(this.axios,this.basePath))}deleteUserAvatar(t,r){return E(this.configuration).deleteUserAvatar(t.name,r).then(n=>n(this.axios,this.basePath))}getCurrentUserDetail(t){return E(this.configuration).getCurrentUserDetail(t).then(r=>r(this.axios,this.basePath))}getPermissions(t,r){return E(this.configuration).getPermissions(t.name,r).then(n=>n(this.axios,this.basePath))}getUserDetail(t,r){return E(this.configuration).getUserDetail(t.name,r).then(n=>n(this.axios,this.basePath))}grantPermission(t,r){return E(this.configuration).grantPermission(t.name,t.grantRequest,r).then(n=>n(this.axios,this.basePath))}listUsers(t={},r){return E(this.configuration).listUsers(t.page,t.size,t.labelSelector,t.fieldSelector,t.sort,t.keyword,t.role,r).then(n=>n(this.axios,this.basePath))}sendEmailVerificationCode(t,r){return E(this.configuration).sendEmailVerificationCode(t.emailVerifyRequest,r).then(n=>n(this.axios,this.basePath))}updateCurrentUser(t,r){return E(this.configuration).updateCurrentUser(t.user,r).then(n=>n(this.axios,this.basePath))}uploadUserAvatar(t,r){return E(this.configuration).uploadUserAvatar(t.name,t.file,r).then(n=>n(this.axios,this.basePath))}verifyEmail(t,r){return E(this.configuration).verifyEmail(t.verifyCodeRequest,r).then(n=>n(this.axios,this.basePath))}}const Bs=function(e){return{resetPasswordByToken:async(t,r,n={})=>{C("resetPasswordByToken","name",t),C("resetPasswordByToken","resetPasswordRequest",r);const l="/apis/api.halo.run/v1alpha1/users/{name}/reset-password".replace("{name}",encodeURIComponent(String(t))),s=new URL(l,O);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...n},c={},p={};y(o,e),await v(c,e),c["Content-Type"]="application/json",S(s,p);let h=a&&a.headers?a.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(r,o,e),{url:A(s),options:o}},sendPasswordResetEmail:async(t,r={})=>{C("sendPasswordResetEmail","passwordResetEmailRequest",t);const n="/apis/api.halo.run/v1alpha1/users/-/send-password-reset-email",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},sendRegisterVerifyEmail:async(t,r={})=>{C("sendRegisterVerifyEmail","registerVerifyEmailRequest",t);const n="/apis/api.halo.run/v1alpha1/users/-/send-register-verify-email",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}},signUp:async(t,r={})=>{C("signUp","signUpRequest",t);const n="/apis/api.halo.run/v1alpha1/users/-/signup",l=new URL(n,O);let s;e&&(s=e.baseOptions);const a={method:"POST",...s,...r},o={},c={};y(a,e),await v(o,e),o["Content-Type"]="application/json",S(l,c);let p=s&&s.headers?s.headers:{};return a.headers={...o,...p,...r.headers},a.data=w(t,a,e),{url:A(l),options:a}}}},we=function(e){const t=Bs(e);return{async resetPasswordByToken(r,n,l){var c,p;const s=await t.resetPasswordByToken(r,n,l),a=(e==null?void 0:e.serverIndex)??0,o=(p=(c=P["UserV1alpha1PublicApi.resetPasswordByToken"])==null?void 0:c[a])==null?void 0:p.url;return(h,i)=>u(s,V,m,e)(h,o||i)},async sendPasswordResetEmail(r,n){var o,c;const l=await t.sendPasswordResetEmail(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1PublicApi.sendPasswordResetEmail"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async sendRegisterVerifyEmail(r,n){var o,c;const l=await t.sendRegisterVerifyEmail(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1PublicApi.sendRegisterVerifyEmail"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)},async signUp(r,n){var o,c;const l=await t.signUp(r,n),s=(e==null?void 0:e.serverIndex)??0,a=(c=(o=P["UserV1alpha1PublicApi.signUp"])==null?void 0:o[s])==null?void 0:c.url;return(p,h)=>u(l,V,m,e)(p,a||h)}}},Ol=function(e,t,r){const n=we(e);return{resetPasswordByToken(l,s){return n.resetPasswordByToken(l.name,l.resetPasswordRequest,s).then(a=>a(r,t))},sendPasswordResetEmail(l,s){return n.sendPasswordResetEmail(l.passwordResetEmailRequest,s).then(a=>a(r,t))},sendRegisterVerifyEmail(l,s){return n.sendRegisterVerifyEmail(l.registerVerifyEmailRequest,s).then(a=>a(r,t))},signUp(l,s){return n.signUp(l.signUpRequest,s).then(a=>a(r,t))}}};class xs extends I{resetPasswordByToken(t,r){return we(this.configuration).resetPasswordByToken(t.name,t.resetPasswordRequest,r).then(n=>n(this.axios,this.basePath))}sendPasswordResetEmail(t,r){return we(this.configuration).sendPasswordResetEmail(t.passwordResetEmailRequest,r).then(n=>n(this.axios,this.basePath))}sendRegisterVerifyEmail(t,r){return we(this.configuration).sendRegisterVerifyEmail(t.registerVerifyEmailRequest,r).then(n=>n(this.axios,this.basePath))}signUp(t,r){return we(this.configuration).signUp(t.signUpRequest,r).then(n=>n(this.axios,this.basePath))}}class yl{constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}}const vl={Add:"add"},Sl={Pending:"PENDING",Running:"RUNNING",Succeeded:"SUCCEEDED",Failed:"FAILED"},Al={True:"TRUE",False:"FALSE",Unknown:"UNKNOWN"},ul={Copy:"copy"},Rl={Singleton:"SINGLETON",MultiInstance:"MULTI_INSTANCE"},Cl={Blank:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},Ul={Move:"move"},bl={Created:"CREATED",Disabled:"DISABLED",Resolved:"RESOLVED",Started:"STARTED",Stopped:"STOPPED",Failed:"FAILED",Unloaded:"UNLOADED"},wl={Pending:"PENDING",Starting:"STARTING",Created:"CREATED",Disabling:"DISABLING",Disabled:"DISABLED",Resolved:"RESOLVED",Started:"STARTED",Stopped:"STOPPED",Failed:"FAILED",Unknown:"UNKNOWN"},Tl={Public:"PUBLIC",Internal:"INTERNAL",Private:"PRIVATE"},Il={Remove:"remove"},Bl={Replace:"replace"},xl={Public:"PUBLIC",Internal:"INTERNAL",Private:"PRIVATE"},Fl={Test:"test"},jl={Ready:"READY",Failed:"FAILED",Unknown:"UNKNOWN"},Te=V.create({baseURL:"/",withCredentials:!0});Te.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";function Fs(e){const t=e.defaults.baseURL;return{annotationSetting:new aa(void 0,t,e),menu:new Ja(void 0,t,e),menuItem:new za(void 0,t,e),setting:new Zt(void 0,t,e),configMap:new ba(void 0,t,e),secret:new Xt(void 0,t,e),user:new ws(void 0,t,e),role:new Kt(void 0,t,e),roleBinding:new Gt(void 0,t,e),content:{category:new Oa(void 0,t,e),comment:new Sa(void 0,t,e),post:new Ct(void 0,t,e),reply:new Nt(void 0,t,e),singlePage:new gt(void 0,t,e),snapshot:new ss(void 0,t,e),tag:new Vs(void 0,t,e)},auth:{authProvider:new ha(void 0,t,e),userConnection:new Us(void 0,t,e)},storage:{attachment:new ra(void 0,t,e),group:new Na(void 0,t,e),policy:new ut(void 0,t,e),policyTemplate:new St(void 0,t,e)},plugin:{extensionDefinition:new ja(void 0,t,e),extensionPointDefinition:new La(void 0,t,e),plugin:new mt(void 0,t,e),reverseProxy:new kt(void 0,t,e),searchEngine:new _t(void 0,t,e)},metrics:{counter:new Ta(void 0,t,e)},theme:{theme:new vs(void 0,t,e)},notification:{notification:new at(void 0,t,e),notificationTemplate:new fa(void 0,t,e),notifierDescriptor:new lt(void 0,t,e),reason:new Et(void 0,t,e),reasonType:new Ft(void 0,t,e),subscription:new os(void 0,t,e)},migration:{backup:new ma(void 0,t,e)},security:{personalAccessToken:new ht(void 0,t,e)}}}function js(e){const t=e.defaults.baseURL;return{user:new Is(void 0,t,e),system:new ps(void 0,t,e),migration:new qa(void 0,t,e),login:new $a(void 0,t,e),storage:{attachment:new na(void 0,t,e)},auth:{authProvider:new da(void 0,t,e)},content:{comment:new ua(void 0,t,e),reply:new Mt(void 0,t,e),indices:new Qa(void 0,t,e),post:new bt(void 0,t,e),singlePage:new es(void 0,t,e),tag:new Ps(void 0,t,e)},notification:{notifier:new ot(void 0,t,e)},plugin:{plugin:new Ot(void 0,t,e)},theme:{theme:new As(void 0,t,e)}}}function Es(e){const t=e.defaults.baseURL;return{storage:{attachment:new ca(void 0,t,e)},content:{post:new Bt(void 0,t,e),snapshot:new ls(void 0,t,e)},security:{twoFactor:new Rs(void 0,t,e),personalAccessToken:new dt(void 0,t,e),device:new xa(void 0,t,e)},notification:{notification:new st(void 0,t,e)}}}function Ls(e){const t=e.defaults.baseURL;return{menu:new Wa(void 0,t,e),stats:new is(void 0,t,e),user:new xs(void 0,t,e),content:{post:new Tt(void 0,t,e),comment:new Ca(void 0,t,e)},metrics:{metrics:new Ya(void 0,t,e)}}}const El=Fs(Te),Ll=js(Te),Dl=Es(Te),Nl=Ls(Te);return R.AddOperationOpEnum=vl,R.AnnotationSettingV1alpha1Api=aa,R.AnnotationSettingV1alpha1ApiAxiosParamCreator=ea,R.AnnotationSettingV1alpha1ApiFactory=Ns,R.AnnotationSettingV1alpha1ApiFp=H,R.ApiNotificationHaloRunV1alpha1SubscriptionApi=Ms,R.ApiNotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator=ta,R.ApiNotificationHaloRunV1alpha1SubscriptionApiFactory=Hs,R.ApiNotificationHaloRunV1alpha1SubscriptionApiFp=Je,R.AttachmentV1alpha1Api=ra,R.AttachmentV1alpha1ApiAxiosParamCreator=sa,R.AttachmentV1alpha1ApiFactory=Qs,R.AttachmentV1alpha1ApiFp=M,R.AttachmentV1alpha1ConsoleApi=na,R.AttachmentV1alpha1ConsoleApiAxiosParamCreator=la,R.AttachmentV1alpha1ConsoleApiFactory=ks,R.AttachmentV1alpha1ConsoleApiFp=De,R.AttachmentV1alpha1UcApi=ca,R.AttachmentV1alpha1UcApiAxiosParamCreator=oa,R.AttachmentV1alpha1UcApiFactory=$s,R.AttachmentV1alpha1UcApiFp=_e,R.AuthProviderV1alpha1Api=ha,R.AuthProviderV1alpha1ApiAxiosParamCreator=pa,R.AuthProviderV1alpha1ApiFactory=Gs,R.AuthProviderV1alpha1ApiFp=Q,R.AuthProviderV1alpha1ConsoleApi=da,R.AuthProviderV1alpha1ConsoleApiAxiosParamCreator=ia,R.AuthProviderV1alpha1ConsoleApiFactory=zs,R.AuthProviderV1alpha1ConsoleApiFp=Ie,R.BackupStatusPhaseEnum=Sl,R.BackupV1alpha1Api=ma,R.BackupV1alpha1ApiAxiosParamCreator=Va,R.BackupV1alpha1ApiFactory=Ks,R.BackupV1alpha1ApiFp=k,R.CategoryV1alpha1Api=Oa,R.CategoryV1alpha1ApiAxiosParamCreator=Pa,R.CategoryV1alpha1ApiFactory=Js,R.CategoryV1alpha1ApiFp=$,R.CategoryV1alpha1PublicApi=Ws,R.CategoryV1alpha1PublicApiAxiosParamCreator=ya,R.CategoryV1alpha1PublicApiFactory=_s,R.CategoryV1alpha1PublicApiFp=Be,R.CommentV1alpha1Api=Sa,R.CommentV1alpha1ApiAxiosParamCreator=va,R.CommentV1alpha1ApiFactory=Xs,R.CommentV1alpha1ApiFp=G,R.CommentV1alpha1ConsoleApi=ua,R.CommentV1alpha1ConsoleApiAxiosParamCreator=Aa,R.CommentV1alpha1ConsoleApiFactory=Ys,R.CommentV1alpha1ConsoleApiFp=xe,R.CommentV1alpha1PublicApi=Ca,R.CommentV1alpha1PublicApiAxiosParamCreator=Ra,R.CommentV1alpha1PublicApiFactory=Zs,R.CommentV1alpha1PublicApiFp=be,R.ConditionStatusEnum=Al,R.ConfigMapV1alpha1Api=ba,R.ConfigMapV1alpha1ApiAxiosParamCreator=Ua,R.ConfigMapV1alpha1ApiFactory=qs,R.ConfigMapV1alpha1ApiFp=z,R.Configuration=yl,R.CopyOperationOpEnum=ul,R.CounterV1alpha1Api=Ta,R.CounterV1alpha1ApiAxiosParamCreator=wa,R.CounterV1alpha1ApiFactory=gs,R.CounterV1alpha1ApiFp=K,R.DeviceV1alpha1Api=er,R.DeviceV1alpha1ApiAxiosParamCreator=Ia,R.DeviceV1alpha1ApiFactory=fs,R.DeviceV1alpha1ApiFp=J,R.DeviceV1alpha1UcApi=xa,R.DeviceV1alpha1UcApiAxiosParamCreator=Ba,R.DeviceV1alpha1UcApiFactory=ar,R.DeviceV1alpha1UcApiFp=Ne,R.ExtensionDefinitionV1alpha1Api=ja,R.ExtensionDefinitionV1alpha1ApiAxiosParamCreator=Fa,R.ExtensionDefinitionV1alpha1ApiFactory=tr,R.ExtensionDefinitionV1alpha1ApiFp=_,R.ExtensionPointDefinitionV1alpha1Api=La,R.ExtensionPointDefinitionV1alpha1ApiAxiosParamCreator=Ea,R.ExtensionPointDefinitionV1alpha1ApiFactory=sr,R.ExtensionPointDefinitionV1alpha1ApiFp=W,R.ExtensionPointSpecTypeEnum=Rl,R.GroupV1alpha1Api=Na,R.GroupV1alpha1ApiAxiosParamCreator=Da,R.GroupV1alpha1ApiFactory=rr,R.GroupV1alpha1ApiFp=X,R.IndexV1alpha1PublicApi=nr,R.IndexV1alpha1PublicApiAxiosParamCreator=Ha,R.IndexV1alpha1PublicApiFactory=lr,R.IndexV1alpha1PublicApiFp=He,R.IndicesV1alpha1ConsoleApi=Qa,R.IndicesV1alpha1ConsoleApiAxiosParamCreator=Ma,R.IndicesV1alpha1ConsoleApiFactory=or,R.IndicesV1alpha1ConsoleApiFp=Me,R.InstallPluginSourceEnum=br,R.ListMyPostsPublishPhaseEnum=Nr,R.ListPostsPublishPhaseEnum=Er,R.ListSinglePagesPublishPhaseEnum=qr,R.ListSinglePagesVisibleEnum=gr,R.LoginApi=$a,R.LoginApiAxiosParamCreator=ka,R.LoginApiFactory=cr,R.LoginApiFp=We,R.MenuItemSpecTargetEnum=Cl,R.MenuItemV1alpha1Api=za,R.MenuItemV1alpha1ApiAxiosParamCreator=Ga,R.MenuItemV1alpha1ApiFactory=pr,R.MenuItemV1alpha1ApiFp=Y,R.MenuV1alpha1Api=Ja,R.MenuV1alpha1ApiAxiosParamCreator=Ka,R.MenuV1alpha1ApiFactory=hr,R.MenuV1alpha1ApiFp=Z,R.MenuV1alpha1PublicApi=Wa,R.MenuV1alpha1PublicApiAxiosParamCreator=_a,R.MenuV1alpha1PublicApiFactory=ir,R.MenuV1alpha1PublicApiFp=Qe,R.MetricsV1alpha1PublicApi=Ya,R.MetricsV1alpha1PublicApiAxiosParamCreator=Xa,R.MetricsV1alpha1PublicApiFactory=dr,R.MetricsV1alpha1PublicApiFp=Fe,R.MigrationV1alpha1ConsoleApi=qa,R.MigrationV1alpha1ConsoleApiAxiosParamCreator=Za,R.MigrationV1alpha1ConsoleApiFactory=Vr,R.MigrationV1alpha1ConsoleApiFp=ke,R.MoveOperationOpEnum=Ul,R.NotificationTemplateV1alpha1Api=fa,R.NotificationTemplateV1alpha1ApiAxiosParamCreator=ga,R.NotificationTemplateV1alpha1ApiFactory=mr,R.NotificationTemplateV1alpha1ApiFp=q,R.NotificationV1alpha1Api=at,R.NotificationV1alpha1ApiAxiosParamCreator=et,R.NotificationV1alpha1ApiFactory=Pr,R.NotificationV1alpha1ApiFp=g,R.NotificationV1alpha1UcApi=st,R.NotificationV1alpha1UcApiAxiosParamCreator=tt,R.NotificationV1alpha1UcApiFactory=Or,R.NotificationV1alpha1UcApiFp=f,R.NotifierDescriptorV1alpha1Api=lt,R.NotifierDescriptorV1alpha1ApiAxiosParamCreator=rt,R.NotifierDescriptorV1alpha1ApiFactory=yr,R.NotifierDescriptorV1alpha1ApiFp=ee,R.NotifierV1alpha1ConsoleApi=ot,R.NotifierV1alpha1ConsoleApiAxiosParamCreator=nt,R.NotifierV1alpha1ConsoleApiFactory=vr,R.NotifierV1alpha1ConsoleApiFp=je,R.NotifierV1alpha1UcApi=Ar,R.NotifierV1alpha1UcApiAxiosParamCreator=ct,R.NotifierV1alpha1UcApiFactory=Sr,R.NotifierV1alpha1UcApiFp=$e,R.PersonalAccessTokenV1alpha1Api=ht,R.PersonalAccessTokenV1alpha1ApiAxiosParamCreator=pt,R.PersonalAccessTokenV1alpha1ApiFactory=ur,R.PersonalAccessTokenV1alpha1ApiFp=ae,R.PersonalAccessTokenV1alpha1UcApi=dt,R.PersonalAccessTokenV1alpha1UcApiAxiosParamCreator=it,R.PersonalAccessTokenV1alpha1UcApiFactory=Rr,R.PersonalAccessTokenV1alpha1UcApiFp=te,R.PluginStatusLastProbeStateEnum=bl,R.PluginStatusPhaseEnum=wl,R.PluginV1alpha1Api=mt,R.PluginV1alpha1ApiAxiosParamCreator=Vt,R.PluginV1alpha1ApiFactory=Cr,R.PluginV1alpha1ApiFp=se,R.PluginV1alpha1ConsoleApi=Ot,R.PluginV1alpha1ConsoleApiAxiosParamCreator=Pt,R.PluginV1alpha1ConsoleApiFactory=Ur,R.PluginV1alpha1ConsoleApiFp=x,R.PluginV1alpha1PublicApi=Ir,R.PluginV1alpha1PublicApiAxiosParamCreator=yt,R.PluginV1alpha1PublicApiFactory=Tr,R.PluginV1alpha1PublicApiFp=Xe,R.PolicyTemplateV1alpha1Api=St,R.PolicyTemplateV1alpha1ApiAxiosParamCreator=vt,R.PolicyTemplateV1alpha1ApiFactory=Br,R.PolicyTemplateV1alpha1ApiFp=re,R.PolicyV1alpha1Api=ut,R.PolicyV1alpha1ApiAxiosParamCreator=At,R.PolicyV1alpha1ApiFactory=xr,R.PolicyV1alpha1ApiFp=le,R.PostSpecVisibleEnum=Tl,R.PostV1alpha1Api=Ct,R.PostV1alpha1ApiAxiosParamCreator=Rt,R.PostV1alpha1ApiFactory=Fr,R.PostV1alpha1ApiFp=ne,R.PostV1alpha1ConsoleApi=bt,R.PostV1alpha1ConsoleApiAxiosParamCreator=Ut,R.PostV1alpha1ConsoleApiFactory=jr,R.PostV1alpha1ConsoleApiFp=F,R.PostV1alpha1PublicApi=Tt,R.PostV1alpha1PublicApiAxiosParamCreator=wt,R.PostV1alpha1PublicApiFactory=Lr,R.PostV1alpha1PublicApiFp=Ee,R.PostV1alpha1UcApi=Bt,R.PostV1alpha1UcApiAxiosParamCreator=It,R.PostV1alpha1UcApiFactory=Dr,R.PostV1alpha1UcApiFp=N,R.ReasonTypeV1alpha1Api=Ft,R.ReasonTypeV1alpha1ApiAxiosParamCreator=xt,R.ReasonTypeV1alpha1ApiFactory=Hr,R.ReasonTypeV1alpha1ApiFp=oe,R.ReasonV1alpha1Api=Et,R.ReasonV1alpha1ApiAxiosParamCreator=jt,R.ReasonV1alpha1ApiFactory=Mr,R.ReasonV1alpha1ApiFp=ce,R.RememberMeTokenV1alpha1Api=kr,R.RememberMeTokenV1alpha1ApiAxiosParamCreator=Lt,R.RememberMeTokenV1alpha1ApiFactory=Qr,R.RememberMeTokenV1alpha1ApiFp=pe,R.RemoveOperationOpEnum=Il,R.ReplaceOperationOpEnum=Bl,R.ReplyV1alpha1Api=Nt,R.ReplyV1alpha1ApiAxiosParamCreator=Dt,R.ReplyV1alpha1ApiFactory=$r,R.ReplyV1alpha1ApiFp=he,R.ReplyV1alpha1ConsoleApi=Mt,R.ReplyV1alpha1ConsoleApiAxiosParamCreator=Ht,R.ReplyV1alpha1ConsoleApiFactory=Gr,R.ReplyV1alpha1ConsoleApiFp=Ye,R.ReverseProxyV1alpha1Api=kt,R.ReverseProxyV1alpha1ApiAxiosParamCreator=Qt,R.ReverseProxyV1alpha1ApiFactory=zr,R.ReverseProxyV1alpha1ApiFp=ie,R.RoleBindingV1alpha1Api=Gt,R.RoleBindingV1alpha1ApiAxiosParamCreator=$t,R.RoleBindingV1alpha1ApiFactory=Kr,R.RoleBindingV1alpha1ApiFp=de,R.RoleV1alpha1Api=Kt,R.RoleV1alpha1ApiAxiosParamCreator=zt,R.RoleV1alpha1ApiFactory=Jr,R.RoleV1alpha1ApiFp=Ve,R.SearchEngineV1alpha1Api=_t,R.SearchEngineV1alpha1ApiAxiosParamCreator=Jt,R.SearchEngineV1alpha1ApiFactory=_r,R.SearchEngineV1alpha1ApiFp=me,R.SecretV1alpha1Api=Xt,R.SecretV1alpha1ApiAxiosParamCreator=Wt,R.SecretV1alpha1ApiFactory=Wr,R.SecretV1alpha1ApiFp=Pe,R.SettingV1alpha1Api=Zt,R.SettingV1alpha1ApiAxiosParamCreator=Yt,R.SettingV1alpha1ApiFactory=Xr,R.SettingV1alpha1ApiFp=Oe,R.SinglePageSpecVisibleEnum=xl,R.SinglePageV1alpha1Api=gt,R.SinglePageV1alpha1ApiAxiosParamCreator=qt,R.SinglePageV1alpha1ApiFactory=Yr,R.SinglePageV1alpha1ApiFp=ye,R.SinglePageV1alpha1ConsoleApi=es,R.SinglePageV1alpha1ConsoleApiAxiosParamCreator=ft,R.SinglePageV1alpha1ConsoleApiFactory=Zr,R.SinglePageV1alpha1ConsoleApiFp=D,R.SinglePageV1alpha1PublicApi=el,R.SinglePageV1alpha1PublicApiAxiosParamCreator=as,R.SinglePageV1alpha1PublicApiFactory=fr,R.SinglePageV1alpha1PublicApiFp=Ge,R.SnapshotV1alpha1Api=ss,R.SnapshotV1alpha1ApiAxiosParamCreator=ts,R.SnapshotV1alpha1ApiFactory=al,R.SnapshotV1alpha1ApiFp=ve,R.SnapshotV1alpha1UcApi=ls,R.SnapshotV1alpha1UcApiAxiosParamCreator=rs,R.SnapshotV1alpha1UcApiFactory=tl,R.SnapshotV1alpha1UcApiFp=Ze,R.SubscriptionV1alpha1Api=os,R.SubscriptionV1alpha1ApiAxiosParamCreator=ns,R.SubscriptionV1alpha1ApiFactory=sl,R.SubscriptionV1alpha1ApiFp=Se,R.SystemV1alpha1ConsoleApi=ps,R.SystemV1alpha1ConsoleApiAxiosParamCreator=cs,R.SystemV1alpha1ConsoleApiFactory=rl,R.SystemV1alpha1ConsoleApiFp=ze,R.SystemV1alpha1PublicApi=is,R.SystemV1alpha1PublicApiAxiosParamCreator=hs,R.SystemV1alpha1PublicApiFactory=ll,R.SystemV1alpha1PublicApiFp=qe,R.TagV1alpha1Api=Vs,R.TagV1alpha1ApiAxiosParamCreator=ds,R.TagV1alpha1ApiFactory=nl,R.TagV1alpha1ApiFp=Ae,R.TagV1alpha1ConsoleApi=Ps,R.TagV1alpha1ConsoleApiAxiosParamCreator=ms,R.TagV1alpha1ConsoleApiFactory=ol,R.TagV1alpha1ConsoleApiFp=ge,R.TagV1alpha1PublicApi=pl,R.TagV1alpha1PublicApiAxiosParamCreator=Os,R.TagV1alpha1PublicApiFactory=cl,R.TagV1alpha1PublicApiFp=Le,R.TestOperationOpEnum=Fl,R.ThemeStatusPhaseEnum=jl,R.ThemeV1alpha1Api=vs,R.ThemeV1alpha1ApiAxiosParamCreator=ys,R.ThemeV1alpha1ApiFactory=hl,R.ThemeV1alpha1ApiFp=ue,R.ThemeV1alpha1ConsoleApi=As,R.ThemeV1alpha1ConsoleApiAxiosParamCreator=Ss,R.ThemeV1alpha1ConsoleApiFactory=il,R.ThemeV1alpha1ConsoleApiFp=j,R.TwoFactorAuthV1alpha1UcApi=Rs,R.TwoFactorAuthV1alpha1UcApiAxiosParamCreator=us,R.TwoFactorAuthV1alpha1UcApiFactory=dl,R.TwoFactorAuthV1alpha1UcApiFp=Re,R.UpgradePluginSourceEnum=wr,R.UserConnectionV1alpha1Api=Us,R.UserConnectionV1alpha1ApiAxiosParamCreator=Cs,R.UserConnectionV1alpha1ApiFactory=Vl,R.UserConnectionV1alpha1ApiFp=Ce,R.UserV1alpha1Api=ws,R.UserV1alpha1ApiAxiosParamCreator=bs,R.UserV1alpha1ApiFactory=ml,R.UserV1alpha1ApiFp=Ue,R.UserV1alpha1ConsoleApi=Is,R.UserV1alpha1ConsoleApiAxiosParamCreator=Ts,R.UserV1alpha1ConsoleApiFactory=Pl,R.UserV1alpha1ConsoleApiFp=E,R.UserV1alpha1PublicApi=xs,R.UserV1alpha1PublicApiAxiosParamCreator=Bs,R.UserV1alpha1PublicApiFactory=Ol,R.UserV1alpha1PublicApiFp=we,R.axiosInstance=Te,R.consoleApiClient=Ll,R.coreApiClient=El,R.createConsoleApiClient=js,R.createCoreApiClient=Fs,R.createPublicApiClient=Ls,R.createUcApiClient=Es,R.publicApiClient=Nl,R.ucApiClient=Dl,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),R}({},axios);
|
|
2
|
+
//# sourceMappingURL=halo-api-client.iife.js.map
|