@halo-dev/api-client 2.17.0 → 2.19.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/dist/entry/api-client.d.ts +0 -1
- package/dist/halo-api-client.es.js +9505 -7362
- package/dist/halo-api-client.es.js.map +1 -1
- package/dist/halo-api-client.iife.js +4 -1
- package/dist/halo-api-client.iife.js.map +1 -1
- package/dist/src/api/annotation-setting-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/api-notification-halo-run-v1alpha1-subscription-api.d.ts +0 -1
- package/dist/src/api/attachment-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/attachment-v1alpha1-console-api.d.ts +43 -2
- package/dist/src/api/attachment-v1alpha1-uc-api.d.ts +51 -2
- package/dist/src/api/auth-provider-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/auth-provider-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/backup-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/category-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/category-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/comment-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/comment-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/comment-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/config-map-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/counter-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/device-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/device-v1alpha1-uc-api.d.ts +0 -1
- package/dist/src/api/extension-definition-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/extension-point-definition-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/group-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/index-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/indices-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/local-thumbnail-v1alpha1-api.d.ts +330 -0
- package/dist/src/api/login-api.d.ts +0 -1
- package/dist/src/api/menu-item-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/menu-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/menu-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/metrics-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/migration-v1alpha1-console-api.d.ts +36 -3
- package/dist/src/api/notification-template-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/notification-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/notification-v1alpha1-uc-api.d.ts +2 -11
- package/dist/src/api/notifier-descriptor-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/notifier-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/notifier-v1alpha1-uc-api.d.ts +0 -1
- package/dist/src/api/personal-access-token-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/personal-access-token-v1alpha1-uc-api.d.ts +0 -1
- package/dist/src/api/plugin-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/plugin-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/plugin-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/policy-template-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/policy-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/post-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/post-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/post-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/post-v1alpha1-uc-api.d.ts +0 -1
- package/dist/src/api/reason-type-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/reason-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/remember-me-token-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/reply-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/reply-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/reverse-proxy-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/role-binding-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/role-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/search-engine-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/secret-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/setting-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/single-page-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/single-page-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/single-page-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/snapshot-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/snapshot-v1alpha1-uc-api.d.ts +0 -1
- package/dist/src/api/subscription-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/system-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/system-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/tag-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/tag-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/tag-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api/theme-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/theme-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/thumbnail-v1alpha1-api.d.ts +330 -0
- package/dist/src/api/thumbnail-v1alpha1-public-api.d.ts +79 -0
- package/dist/src/api/two-factor-auth-v1alpha1-uc-api.d.ts +0 -1
- package/dist/src/api/user-connection-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/user-v1alpha1-api.d.ts +0 -1
- package/dist/src/api/user-v1alpha1-console-api.d.ts +0 -1
- package/dist/src/api/user-v1alpha1-public-api.d.ts +0 -1
- package/dist/src/api.d.ts +4 -1
- package/dist/src/base.d.ts +0 -1
- package/dist/src/common.d.ts +0 -1
- package/dist/src/configuration.d.ts +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/models/add-operation.d.ts +1 -1
- package/dist/src/models/annotation-setting-list.d.ts +0 -1
- package/dist/src/models/annotation-setting-spec.d.ts +0 -1
- package/dist/src/models/annotation-setting.d.ts +0 -1
- package/dist/src/models/attachment-list.d.ts +0 -1
- package/dist/src/models/attachment-spec.d.ts +1 -1
- package/dist/src/models/attachment-status.d.ts +9 -1
- package/dist/src/models/attachment.d.ts +0 -1
- package/dist/src/models/auth-provider-list.d.ts +0 -1
- package/dist/src/models/auth-provider-spec.d.ts +0 -1
- package/dist/src/models/auth-provider.d.ts +0 -1
- package/dist/src/models/author.d.ts +1 -1
- package/dist/src/models/backup-file.d.ts +36 -0
- package/dist/src/models/backup-list.d.ts +0 -1
- package/dist/src/models/backup-spec.d.ts +1 -1
- package/dist/src/models/backup-status.d.ts +1 -1
- package/dist/src/models/backup.d.ts +0 -1
- package/dist/src/models/category-list.d.ts +0 -1
- package/dist/src/models/category-spec.d.ts +1 -1
- package/dist/src/models/category-status.d.ts +1 -1
- package/dist/src/models/category-vo-list.d.ts +0 -1
- package/dist/src/models/category-vo.d.ts +0 -1
- package/dist/src/models/category.d.ts +0 -1
- package/dist/src/models/change-own-password-request.d.ts +1 -1
- package/dist/src/models/change-password-request.d.ts +1 -1
- package/dist/src/models/comment-email-owner.d.ts +1 -1
- package/dist/src/models/comment-list.d.ts +0 -1
- package/dist/src/models/comment-owner.d.ts +1 -1
- package/dist/src/models/comment-request.d.ts +0 -1
- package/dist/src/models/comment-spec.d.ts +0 -1
- package/dist/src/models/comment-stats-vo.d.ts +1 -1
- package/dist/src/models/comment-stats.d.ts +1 -1
- package/dist/src/models/comment-status.d.ts +1 -1
- package/dist/src/models/comment-vo-list.d.ts +0 -1
- package/dist/src/models/comment-vo.d.ts +0 -1
- package/dist/src/models/comment-with-reply-vo-list.d.ts +0 -1
- package/dist/src/models/comment-with-reply-vo.d.ts +0 -1
- package/dist/src/models/comment.d.ts +0 -1
- package/dist/src/models/condition.d.ts +1 -1
- package/dist/src/models/config-map-list.d.ts +0 -1
- package/dist/src/models/config-map-ref.d.ts +1 -1
- package/dist/src/models/config-map.d.ts +0 -1
- package/dist/src/models/content-update-param.d.ts +1 -1
- package/dist/src/models/content-vo.d.ts +1 -1
- package/dist/src/models/content-wrapper.d.ts +1 -1
- package/dist/src/models/content.d.ts +1 -1
- package/dist/src/models/contributor-vo.d.ts +0 -1
- package/dist/src/models/contributor.d.ts +1 -1
- package/dist/src/models/copy-operation.d.ts +1 -1
- package/dist/src/models/counter-list.d.ts +0 -1
- package/dist/src/models/counter-request.d.ts +1 -1
- package/dist/src/models/counter.d.ts +0 -1
- package/dist/src/models/create-user-request.d.ts +1 -1
- package/dist/src/models/custom-templates.d.ts +0 -1
- package/dist/src/models/dashboard-stats.d.ts +1 -1
- package/dist/src/models/detailed-user.d.ts +0 -1
- package/dist/src/models/device-list.d.ts +0 -1
- package/dist/src/models/device-spec.d.ts +1 -1
- package/dist/src/models/device-status.d.ts +1 -1
- package/dist/src/models/device.d.ts +0 -1
- package/dist/src/models/email-config-validation-request.d.ts +1 -1
- package/dist/src/models/email-verify-request.d.ts +1 -1
- package/dist/src/models/excerpt.d.ts +1 -1
- package/dist/src/models/extension-definition-list.d.ts +0 -1
- package/dist/src/models/extension-definition.d.ts +0 -1
- package/dist/src/models/extension-point-definition-list.d.ts +0 -1
- package/dist/src/models/extension-point-definition.d.ts +0 -1
- package/dist/src/models/extension-point-spec.d.ts +1 -1
- package/dist/src/models/extension-spec.d.ts +1 -1
- package/dist/src/models/extension.d.ts +0 -1
- package/dist/src/models/file-reverse-proxy-provider.d.ts +1 -1
- package/dist/src/models/grant-request.d.ts +1 -1
- package/dist/src/models/group-kind.d.ts +1 -1
- package/dist/src/models/group-list.d.ts +0 -1
- package/dist/src/models/group-spec.d.ts +1 -1
- package/dist/src/models/group-status.d.ts +1 -1
- package/dist/src/models/group.d.ts +0 -1
- package/dist/src/models/halo-document.d.ts +1 -1
- package/dist/src/models/index.d.ts +10 -1
- package/dist/src/models/install-from-uri-request.d.ts +1 -1
- package/dist/src/models/interest-reason-subject.d.ts +1 -1
- package/dist/src/models/interest-reason.d.ts +0 -1
- package/dist/src/models/json-patch-inner.d.ts +0 -1
- package/dist/src/models/license.d.ts +1 -1
- package/dist/src/models/list-result-reply-vo.d.ts +0 -1
- package/dist/src/models/listed-auth-provider.d.ts +1 -1
- package/dist/src/models/listed-comment-list.d.ts +0 -1
- package/dist/src/models/listed-comment.d.ts +0 -1
- package/dist/src/models/listed-post-list.d.ts +0 -1
- package/dist/src/models/listed-post-vo-list.d.ts +0 -1
- package/dist/src/models/listed-post-vo.d.ts +0 -1
- package/dist/src/models/listed-post.d.ts +0 -1
- package/dist/src/models/listed-reply-list.d.ts +0 -1
- package/dist/src/models/listed-reply.d.ts +0 -1
- package/dist/src/models/listed-single-page-list.d.ts +0 -1
- package/dist/src/models/listed-single-page-vo-list.d.ts +0 -1
- package/dist/src/models/listed-single-page-vo.d.ts +0 -1
- package/dist/src/models/listed-single-page.d.ts +0 -1
- package/dist/src/models/listed-snapshot-dto.d.ts +0 -1
- package/dist/src/models/listed-snapshot-spec.d.ts +1 -1
- package/dist/src/models/listed-user.d.ts +0 -1
- package/dist/src/models/local-thumbnail-list.d.ts +62 -0
- package/dist/src/models/local-thumbnail-spec.d.ts +61 -0
- package/dist/src/models/local-thumbnail-status.d.ts +30 -0
- package/dist/src/models/local-thumbnail.d.ts +40 -0
- package/dist/src/models/login-history.d.ts +1 -1
- package/dist/src/models/mark-specified-request.d.ts +1 -1
- package/dist/src/models/menu-item-list.d.ts +0 -1
- package/dist/src/models/menu-item-spec.d.ts +0 -1
- package/dist/src/models/menu-item-status.d.ts +1 -1
- package/dist/src/models/menu-item-vo.d.ts +0 -1
- package/dist/src/models/menu-item.d.ts +0 -1
- package/dist/src/models/menu-list.d.ts +0 -1
- package/dist/src/models/menu-spec.d.ts +1 -1
- package/dist/src/models/menu-vo.d.ts +0 -1
- package/dist/src/models/menu.d.ts +0 -1
- package/dist/src/models/metadata.d.ts +1 -1
- package/dist/src/models/move-operation.d.ts +1 -1
- package/dist/src/models/navigation-post-vo.d.ts +0 -1
- package/dist/src/models/notification-list.d.ts +0 -1
- package/dist/src/models/notification-spec.d.ts +1 -1
- package/dist/src/models/notification-template-list.d.ts +0 -1
- package/dist/src/models/notification-template-spec.d.ts +0 -1
- package/dist/src/models/notification-template.d.ts +0 -1
- package/dist/src/models/notification.d.ts +0 -1
- package/dist/src/models/notifier-descriptor-list.d.ts +0 -1
- package/dist/src/models/notifier-descriptor-spec.d.ts +0 -1
- package/dist/src/models/notifier-descriptor.d.ts +0 -1
- package/dist/src/models/notifier-info.d.ts +1 -1
- package/dist/src/models/notifier-setting-ref.d.ts +1 -1
- package/dist/src/models/owner-info.d.ts +1 -1
- package/dist/src/models/password-request.d.ts +1 -1
- package/dist/src/models/password-reset-email-request.d.ts +1 -1
- package/dist/src/models/pat-spec.d.ts +1 -1
- package/dist/src/models/personal-access-token-list.d.ts +0 -1
- package/dist/src/models/personal-access-token.d.ts +0 -1
- package/dist/src/models/plugin-author.d.ts +1 -1
- package/dist/src/models/plugin-list.d.ts +0 -1
- package/dist/src/models/plugin-running-state-request.d.ts +1 -1
- package/dist/src/models/plugin-spec.d.ts +0 -1
- package/dist/src/models/plugin-status.d.ts +0 -1
- package/dist/src/models/plugin.d.ts +0 -1
- package/dist/src/models/policy-list.d.ts +0 -1
- package/dist/src/models/policy-rule.d.ts +1 -1
- package/dist/src/models/policy-spec.d.ts +1 -1
- package/dist/src/models/policy-template-list.d.ts +0 -1
- package/dist/src/models/policy-template-spec.d.ts +1 -1
- package/dist/src/models/policy-template.d.ts +0 -1
- package/dist/src/models/policy.d.ts +0 -1
- package/dist/src/models/post-list.d.ts +0 -1
- package/dist/src/models/post-request.d.ts +0 -1
- package/dist/src/models/post-spec.d.ts +0 -1
- package/dist/src/models/post-status.d.ts +0 -1
- package/dist/src/models/post-vo.d.ts +0 -1
- package/dist/src/models/post.d.ts +0 -1
- package/dist/src/models/public-key-response.d.ts +1 -1
- package/dist/src/models/{reason-spec-attributes.d.ts → reason-attributes.d.ts} +4 -4
- package/dist/src/models/reason-list.d.ts +0 -1
- package/dist/src/models/reason-property.d.ts +1 -1
- package/dist/src/models/reason-selector.d.ts +1 -1
- package/dist/src/models/reason-spec.d.ts +3 -4
- package/dist/src/models/reason-subject.d.ts +1 -1
- package/dist/src/models/reason-type-info.d.ts +1 -1
- package/dist/src/models/reason-type-list.d.ts +0 -1
- package/dist/src/models/reason-type-notifier-collection-request.d.ts +0 -1
- package/dist/src/models/reason-type-notifier-matrix.d.ts +0 -1
- package/dist/src/models/reason-type-notifier-request.d.ts +1 -1
- package/dist/src/models/reason-type-spec.d.ts +0 -1
- package/dist/src/models/reason-type.d.ts +0 -1
- package/dist/src/models/reason.d.ts +0 -1
- package/dist/src/models/ref.d.ts +1 -1
- package/dist/src/models/register-verify-email-request.d.ts +1 -1
- package/dist/src/models/remember-me-token-list.d.ts +0 -1
- package/dist/src/models/remember-me-token-spec.d.ts +1 -1
- package/dist/src/models/remember-me-token.d.ts +0 -1
- package/dist/src/models/remove-operation.d.ts +1 -1
- package/dist/src/models/replace-operation.d.ts +1 -1
- package/dist/src/models/reply-list.d.ts +0 -1
- package/dist/src/models/reply-request.d.ts +0 -1
- package/dist/src/models/reply-spec.d.ts +0 -1
- package/dist/src/models/reply-status.d.ts +1 -1
- package/dist/src/models/reply-vo-list.d.ts +0 -1
- package/dist/src/models/reply-vo.d.ts +0 -1
- package/dist/src/models/reply.d.ts +0 -1
- package/dist/src/models/reset-password-request.d.ts +1 -1
- package/dist/src/models/reverse-proxy-list.d.ts +0 -1
- package/dist/src/models/reverse-proxy-rule.d.ts +0 -1
- package/dist/src/models/reverse-proxy.d.ts +0 -1
- package/dist/src/models/revert-snapshot-for-post-param.d.ts +1 -1
- package/dist/src/models/revert-snapshot-for-single-param.d.ts +1 -1
- package/dist/src/models/role-binding-list.d.ts +0 -1
- package/dist/src/models/role-binding.d.ts +0 -1
- package/dist/src/models/role-list.d.ts +0 -1
- package/dist/src/models/role-ref.d.ts +1 -1
- package/dist/src/models/role.d.ts +0 -1
- package/dist/src/models/search-engine-list.d.ts +0 -1
- package/dist/src/models/search-engine-spec.d.ts +0 -1
- package/dist/src/models/search-engine.d.ts +0 -1
- package/dist/src/models/search-option.d.ts +1 -1
- package/dist/src/models/search-result.d.ts +0 -1
- package/dist/src/models/secret-list.d.ts +0 -1
- package/dist/src/models/secret.d.ts +2 -3
- package/dist/src/models/setting-form.d.ts +1 -1
- package/dist/src/models/setting-list.d.ts +0 -1
- package/dist/src/models/setting-ref.d.ts +1 -1
- package/dist/src/models/setting-spec.d.ts +0 -1
- package/dist/src/models/setting.d.ts +0 -1
- package/dist/src/models/sign-up-request.d.ts +0 -1
- package/dist/src/models/single-page-list.d.ts +0 -1
- package/dist/src/models/single-page-request.d.ts +0 -1
- package/dist/src/models/single-page-spec.d.ts +0 -1
- package/dist/src/models/single-page-status.d.ts +0 -1
- package/dist/src/models/single-page-vo.d.ts +0 -1
- package/dist/src/models/single-page.d.ts +0 -1
- package/dist/src/models/site-stats-vo.d.ts +1 -1
- package/dist/src/models/snap-shot-spec.d.ts +0 -1
- package/dist/src/models/snapshot-list.d.ts +0 -1
- package/dist/src/models/snapshot.d.ts +0 -1
- package/dist/src/models/stats-vo.d.ts +1 -1
- package/dist/src/models/stats.d.ts +1 -1
- package/dist/src/models/subject.d.ts +1 -1
- package/dist/src/models/subscription-list.d.ts +0 -1
- package/dist/src/models/subscription-spec.d.ts +0 -1
- package/dist/src/models/subscription-subscriber.d.ts +1 -1
- package/dist/src/models/subscription.d.ts +0 -1
- package/dist/src/models/system-initialization-request.d.ts +1 -1
- package/dist/src/models/tag-list.d.ts +0 -1
- package/dist/src/models/tag-spec.d.ts +1 -1
- package/dist/src/models/tag-status.d.ts +1 -1
- package/dist/src/models/tag-vo-list.d.ts +0 -1
- package/dist/src/models/tag-vo.d.ts +0 -1
- package/dist/src/models/tag.d.ts +0 -1
- package/dist/src/models/template-content.d.ts +1 -1
- package/dist/src/models/template-descriptor.d.ts +1 -1
- package/dist/src/models/test-operation.d.ts +1 -1
- package/dist/src/models/theme-list.d.ts +0 -1
- package/dist/src/models/theme-spec.d.ts +0 -1
- package/dist/src/models/theme-status.d.ts +0 -1
- package/dist/src/models/theme.d.ts +0 -1
- package/dist/src/models/thumbnail-list.d.ts +62 -0
- package/dist/src/models/thumbnail-spec.d.ts +49 -0
- package/dist/src/models/thumbnail.d.ts +33 -0
- package/dist/src/models/totp-auth-link-response.d.ts +1 -1
- package/dist/src/models/totp-request.d.ts +1 -1
- package/dist/src/models/two-factor-auth-settings.d.ts +1 -1
- package/dist/src/models/upgrade-from-uri-request.d.ts +1 -1
- package/dist/src/models/upload-from-url-request.d.ts +30 -0
- package/dist/src/models/user-connection-list.d.ts +0 -1
- package/dist/src/models/user-connection-spec.d.ts +1 -1
- package/dist/src/models/user-connection.d.ts +0 -1
- package/dist/src/models/user-device.d.ts +0 -1
- package/dist/src/models/user-endpoint-listed-user-list.d.ts +0 -1
- package/dist/src/models/user-list.d.ts +0 -1
- package/dist/src/models/user-permission.d.ts +0 -1
- package/dist/src/models/user-spec.d.ts +1 -1
- package/dist/src/models/user-status.d.ts +0 -1
- package/dist/src/models/user.d.ts +0 -1
- package/dist/src/models/verify-code-request.d.ts +1 -1
- package/dist/src/models/vote-request.d.ts +1 -1
- package/package.json +7 -3
|
@@ -1,2 +1,5 @@
|
|
|
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);
|
|
1
|
+
var HaloApiClient=function(b,V){"use strict";const m="http://localhost:8091".replace(/\/+$/,"");class I{constructor(a,s=m,n=V){this.basePath=s,this.axios=n,a&&(this.configuration=a,this.basePath=a.basePath??s)}}class rn extends Error{constructor(a,s){super(s),this.field=a,this.name="RequiredError"}}const y={},P="https://example.com",C=function(e,a,s){if(s==null)throw new rn(a,`Required parameter ${a} was null or undefined when calling ${e}.`)},O=function(e,a){a&&(a.username||a.password)&&(e.auth={username:a.username,password:a.password})},u=async function(e,a){if(a&&a.accessToken){const s=typeof a.accessToken=="function"?await a.accessToken():await a.accessToken;e.Authorization="Bearer "+s}};function Ka(e,a,s=""){a!=null&&(typeof a=="object"?Array.isArray(a)?a.forEach(n=>Ka(e,n,s)):Object.keys(a).forEach(n=>Ka(e,a[n],`${s}${s!==""?".":""}${n}`)):e.has(s)?e.append(s,a):e.set(s,a))}const v=function(e,...a){const s=new URLSearchParams(e.search);Ka(s,a),e.search=s.toString()},w=function(e,a,s){const n=typeof e!="string";return(n&&s&&s.isJsonMime?s.isJsonMime(a.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},S=function(e){return e.pathname+e.search+e.hash},A=function(e,a,s,n){return(l=a,r=s)=>{const t={...e.options,url:(l.defaults.baseURL?"":(n==null?void 0:n.basePath)??r)+e.url};return l.request(t)}},Bt=function(e){return{createAnnotationSetting:async(a,s={})=>{const n="/api/v1alpha1/annotationsettings",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteAnnotationSetting:async(a,s={})=>{C("deleteAnnotationSetting","name",a);const n="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getAnnotationSetting:async(a,s={})=>{C("getAnnotationSetting","name",a);const n="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listAnnotationSetting:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/annotationsettings",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchAnnotationSetting:async(a,s,n={})=>{C("patchAnnotationSetting","name",a);const l="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateAnnotationSetting:async(a,s,n={})=>{C("updateAnnotationSetting","name",a);const l="/api/v1alpha1/annotationsettings/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},X=function(e){const a=Bt(e);return{async createAnnotationSetting(s,n){var o,c;const l=await a.createAnnotationSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AnnotationSettingV1alpha1Api.createAnnotationSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteAnnotationSetting(s,n){var o,c;const l=await a.deleteAnnotationSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AnnotationSettingV1alpha1Api.deleteAnnotationSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getAnnotationSetting(s,n){var o,c;const l=await a.getAnnotationSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AnnotationSettingV1alpha1Api.getAnnotationSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listAnnotationSetting(s,n,l,r,t,o){var i,d;const c=await a.listAnnotationSetting(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["AnnotationSettingV1alpha1Api.listAnnotationSetting"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchAnnotationSetting(s,n,l){var c,p;const r=await a.patchAnnotationSetting(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["AnnotationSettingV1alpha1Api.patchAnnotationSetting"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateAnnotationSetting(s,n,l){var c,p;const r=await a.updateAnnotationSetting(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["AnnotationSettingV1alpha1Api.updateAnnotationSetting"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},sn=function(e,a,s){const n=X(e);return{createAnnotationSetting(l={},r){return n.createAnnotationSetting(l.annotationSetting,r).then(t=>t(s,a))},deleteAnnotationSetting(l,r){return n.deleteAnnotationSetting(l.name,r).then(t=>t(s,a))},getAnnotationSetting(l,r){return n.getAnnotationSetting(l.name,r).then(t=>t(s,a))},listAnnotationSetting(l={},r){return n.listAnnotationSetting(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchAnnotationSetting(l,r){return n.patchAnnotationSetting(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateAnnotationSetting(l,r){return n.updateAnnotationSetting(l.name,l.annotationSetting,r).then(t=>t(s,a))}}};class xt extends I{createAnnotationSetting(a={},s){return X(this.configuration).createAnnotationSetting(a.annotationSetting,s).then(n=>n(this.axios,this.basePath))}deleteAnnotationSetting(a,s){return X(this.configuration).deleteAnnotationSetting(a.name,s).then(n=>n(this.axios,this.basePath))}getAnnotationSetting(a,s){return X(this.configuration).getAnnotationSetting(a.name,s).then(n=>n(this.axios,this.basePath))}listAnnotationSetting(a={},s){return X(this.configuration).listAnnotationSetting(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchAnnotationSetting(a,s){return X(this.configuration).patchAnnotationSetting(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateAnnotationSetting(a,s){return X(this.configuration).updateAnnotationSetting(a.name,a.annotationSetting,s).then(n=>n(this.axios,this.basePath))}}const Ft=function(e){return{unsubscribe:async(a,s,n={})=>{C("unsubscribe","name",a),C("unsubscribe","token",s);const l="/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"GET",...t,...n},c={},p={};O(o,e),await u(c,e),s!==void 0&&(p.token=s),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}}}},Ja=function(e){const a=Ft(e);return{async unsubscribe(s,n,l){var c,p;const r=await a.unsubscribe(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ApiNotificationHaloRunV1alpha1SubscriptionApi.unsubscribe"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},ln=function(e,a,s){const n=Ja(e);return{unsubscribe(l,r){return n.unsubscribe(l.name,l.token,r).then(t=>t(s,a))}}};class nn extends I{unsubscribe(a,s){return Ja(this.configuration).unsubscribe(a.name,a.token,s).then(n=>n(this.axios,this.basePath))}}const Et=function(e){return{createAttachment:async(a,s={})=>{const n="/apis/storage.halo.run/v1alpha1/attachments",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteAttachment:async(a,s={})=>{C("deleteAttachment","name",a);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getAttachment:async(a,s={})=>{C("getAttachment","name",a);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listAttachment:async(a,s,n,l,r,t={})=>{const o="/apis/storage.halo.run/v1alpha1/attachments",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchAttachment:async(a,s,n={})=>{C("patchAttachment","name",a);const l="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateAttachment:async(a,s,n={})=>{C("updateAttachment","name",a);const l="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Y=function(e){const a=Et(e);return{async createAttachment(s,n){var o,c;const l=await a.createAttachment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AttachmentV1alpha1Api.createAttachment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteAttachment(s,n){var o,c;const l=await a.deleteAttachment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AttachmentV1alpha1Api.deleteAttachment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getAttachment(s,n){var o,c;const l=await a.getAttachment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AttachmentV1alpha1Api.getAttachment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listAttachment(s,n,l,r,t,o){var i,d;const c=await a.listAttachment(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["AttachmentV1alpha1Api.listAttachment"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchAttachment(s,n,l){var c,p;const r=await a.patchAttachment(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["AttachmentV1alpha1Api.patchAttachment"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateAttachment(s,n,l){var c,p;const r=await a.updateAttachment(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["AttachmentV1alpha1Api.updateAttachment"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},on=function(e,a,s){const n=Y(e);return{createAttachment(l={},r){return n.createAttachment(l.attachment,r).then(t=>t(s,a))},deleteAttachment(l,r){return n.deleteAttachment(l.name,r).then(t=>t(s,a))},getAttachment(l,r){return n.getAttachment(l.name,r).then(t=>t(s,a))},listAttachment(l={},r){return n.listAttachment(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchAttachment(l,r){return n.patchAttachment(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateAttachment(l,r){return n.updateAttachment(l.name,l.attachment,r).then(t=>t(s,a))}}};class jt extends I{createAttachment(a={},s){return Y(this.configuration).createAttachment(a.attachment,s).then(n=>n(this.axios,this.basePath))}deleteAttachment(a,s){return Y(this.configuration).deleteAttachment(a.name,s).then(n=>n(this.axios,this.basePath))}getAttachment(a,s){return Y(this.configuration).getAttachment(a.name,s).then(n=>n(this.axios,this.basePath))}listAttachment(a={},s){return Y(this.configuration).listAttachment(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchAttachment(a,s){return Y(this.configuration).patchAttachment(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateAttachment(a,s){return Y(this.configuration).updateAttachment(a.name,a.attachment,s).then(n=>n(this.axios,this.basePath))}}const Lt=function(e){return{externalTransferAttachment:async(a,s={})=>{C("externalTransferAttachment","uploadFromUrlRequest",a);const n="/apis/api.console.halo.run/v1alpha1/attachments/-/upload-from-url",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},searchAttachments:async(a,s,n,l,r,t,o,c,p={})=>{const h="/apis/api.console.halo.run/v1alpha1/attachments",i=new URL(h,P);let d;e&&(d=e.baseOptions);const R={method:"GET",...d,...p},T={},U={};O(R,e),await u(T,e),a!==void 0&&(U.page=a),s!==void 0&&(U.size=s),n&&(U.labelSelector=n),l&&(U.fieldSelector=l),r&&(U.sort=r),t!==void 0&&(U.ungrouped=t),o!==void 0&&(U.keyword=o),c&&(U.accepts=c),v(i,U);let B=d&&d.headers?d.headers:{};return R.headers={...T,...B,...p.headers},{url:S(i),options:R}},uploadAttachment:async(a,s,n,l={})=>{C("uploadAttachment","file",a),C("uploadAttachment","policyName",s);const r="/apis/api.console.halo.run/v1alpha1/attachments/upload",t=new URL(r,P);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...l},p={},h={},i=new(e&&e.formDataCtor||FormData);O(c,e),await u(p,e),a!==void 0&&i.append("file",a),n!==void 0&&i.append("groupName",n),s!==void 0&&i.append("policyName",s),p["Content-Type"]="multipart/form-data",v(t,h);let d=o&&o.headers?o.headers:{};return c.headers={...p,...d,...l.headers},c.data=i,{url:S(t),options:c}}}},ha=function(e){const a=Lt(e);return{async externalTransferAttachment(s,n){var o,c;const l=await a.externalTransferAttachment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AttachmentV1alpha1ConsoleApi.externalTransferAttachment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async searchAttachments(s,n,l,r,t,o,c,p,h){var T,U;const i=await a.searchAttachments(s,n,l,r,t,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,R=(U=(T=y["AttachmentV1alpha1ConsoleApi.searchAttachments"])==null?void 0:T[d])==null?void 0:U.url;return(B,E)=>A(i,V,m,e)(B,R||E)},async uploadAttachment(s,n,l,r){var p,h;const t=await a.uploadAttachment(s,n,l,r),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=y["AttachmentV1alpha1ConsoleApi.uploadAttachment"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>A(t,V,m,e)(i,c||d)}}},cn=function(e,a,s){const n=ha(e);return{externalTransferAttachment(l,r){return n.externalTransferAttachment(l.uploadFromUrlRequest,r).then(t=>t(s,a))},searchAttachments(l={},r){return n.searchAttachments(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.ungrouped,l.keyword,l.accepts,r).then(t=>t(s,a))},uploadAttachment(l,r){return n.uploadAttachment(l.file,l.policyName,l.groupName,r).then(t=>t(s,a))}}};class Dt extends I{externalTransferAttachment(a,s){return ha(this.configuration).externalTransferAttachment(a.uploadFromUrlRequest,s).then(n=>n(this.axios,this.basePath))}searchAttachments(a={},s){return ha(this.configuration).searchAttachments(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.ungrouped,a.keyword,a.accepts,s).then(n=>n(this.axios,this.basePath))}uploadAttachment(a,s){return ha(this.configuration).uploadAttachment(a.file,a.policyName,a.groupName,s).then(n=>n(this.axios,this.basePath))}}const Nt=function(e){return{createAttachmentForPost:async(a,s,n,l,r={})=>{C("createAttachmentForPost","file",a);const t="/apis/uc.api.content.halo.run/v1alpha1/attachments",o=new URL(t,P);let c;e&&(c=e.baseOptions);const p={method:"POST",...c,...r},h={},i={},d=new(e&&e.formDataCtor||FormData);O(p,e),await u(h,e),s!==void 0&&(i.waitForPermalink=s),a!==void 0&&d.append("file",a),n!==void 0&&d.append("postName",n),l!==void 0&&d.append("singlePageName",l),h["Content-Type"]="multipart/form-data",v(o,i);let R=c&&c.headers?c.headers:{};return p.headers={...h,...R,...r.headers},p.data=d,{url:S(o),options:p}},externalTransferAttachment1:async(a,s,n={})=>{C("externalTransferAttachment1","uploadFromUrlRequest",a);const l="/apis/uc.api.content.halo.run/v1alpha1/attachments/-/upload-from-url",r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),s!==void 0&&(p.waitForPermalink=s),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(a,o,e),{url:S(r),options:o}}}},Ua=function(e){const a=Nt(e);return{async createAttachmentForPost(s,n,l,r,t){var h,i;const o=await a.createAttachmentForPost(s,n,l,r,t),c=(e==null?void 0:e.serverIndex)??0,p=(i=(h=y["AttachmentV1alpha1UcApi.createAttachmentForPost"])==null?void 0:h[c])==null?void 0:i.url;return(d,R)=>A(o,V,m,e)(d,p||R)},async externalTransferAttachment1(s,n,l){var c,p;const r=await a.externalTransferAttachment1(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["AttachmentV1alpha1UcApi.externalTransferAttachment1"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},pn=function(e,a,s){const n=Ua(e);return{createAttachmentForPost(l,r){return n.createAttachmentForPost(l.file,l.waitForPermalink,l.postName,l.singlePageName,r).then(t=>t(s,a))},externalTransferAttachment1(l,r){return n.externalTransferAttachment1(l.uploadFromUrlRequest,l.waitForPermalink,r).then(t=>t(s,a))}}};class Ht extends I{createAttachmentForPost(a,s){return Ua(this.configuration).createAttachmentForPost(a.file,a.waitForPermalink,a.postName,a.singlePageName,s).then(n=>n(this.axios,this.basePath))}externalTransferAttachment1(a,s){return Ua(this.configuration).externalTransferAttachment1(a.uploadFromUrlRequest,a.waitForPermalink,s).then(n=>n(this.axios,this.basePath))}}const Mt=function(e){return{createAuthProvider:async(a,s={})=>{const n="/apis/auth.halo.run/v1alpha1/authproviders",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteAuthProvider:async(a,s={})=>{C("deleteAuthProvider","name",a);const n="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getAuthProvider:async(a,s={})=>{C("getAuthProvider","name",a);const n="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listAuthProvider:async(a,s,n,l,r,t={})=>{const o="/apis/auth.halo.run/v1alpha1/authproviders",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchAuthProvider:async(a,s,n={})=>{C("patchAuthProvider","name",a);const l="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateAuthProvider:async(a,s,n={})=>{C("updateAuthProvider","name",a);const l="/apis/auth.halo.run/v1alpha1/authproviders/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Z=function(e){const a=Mt(e);return{async createAuthProvider(s,n){var o,c;const l=await a.createAuthProvider(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AuthProviderV1alpha1Api.createAuthProvider"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteAuthProvider(s,n){var o,c;const l=await a.deleteAuthProvider(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AuthProviderV1alpha1Api.deleteAuthProvider"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getAuthProvider(s,n){var o,c;const l=await a.getAuthProvider(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AuthProviderV1alpha1Api.getAuthProvider"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listAuthProvider(s,n,l,r,t,o){var i,d;const c=await a.listAuthProvider(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["AuthProviderV1alpha1Api.listAuthProvider"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchAuthProvider(s,n,l){var c,p;const r=await a.patchAuthProvider(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["AuthProviderV1alpha1Api.patchAuthProvider"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateAuthProvider(s,n,l){var c,p;const r=await a.updateAuthProvider(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["AuthProviderV1alpha1Api.updateAuthProvider"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},hn=function(e,a,s){const n=Z(e);return{createAuthProvider(l={},r){return n.createAuthProvider(l.authProvider,r).then(t=>t(s,a))},deleteAuthProvider(l,r){return n.deleteAuthProvider(l.name,r).then(t=>t(s,a))},getAuthProvider(l,r){return n.getAuthProvider(l.name,r).then(t=>t(s,a))},listAuthProvider(l={},r){return n.listAuthProvider(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchAuthProvider(l,r){return n.patchAuthProvider(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateAuthProvider(l,r){return n.updateAuthProvider(l.name,l.authProvider,r).then(t=>t(s,a))}}};class Qt extends I{createAuthProvider(a={},s){return Z(this.configuration).createAuthProvider(a.authProvider,s).then(n=>n(this.axios,this.basePath))}deleteAuthProvider(a,s){return Z(this.configuration).deleteAuthProvider(a.name,s).then(n=>n(this.axios,this.basePath))}getAuthProvider(a,s){return Z(this.configuration).getAuthProvider(a.name,s).then(n=>n(this.axios,this.basePath))}listAuthProvider(a={},s){return Z(this.configuration).listAuthProvider(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchAuthProvider(a,s){return Z(this.configuration).patchAuthProvider(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateAuthProvider(a,s){return Z(this.configuration).updateAuthProvider(a.name,a.authProvider,s).then(n=>n(this.axios,this.basePath))}}const kt=function(e){return{disableAuthProvider:async(a,s={})=>{C("disableAuthProvider","name",a);const n="/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},enableAuthProvider:async(a,s={})=>{C("enableAuthProvider","name",a);const n="/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listAuthProviders:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/auth-providers",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}}}},ia=function(e){const a=kt(e);return{async disableAuthProvider(s,n){var o,c;const l=await a.disableAuthProvider(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AuthProviderV1alpha1ConsoleApi.disableAuthProvider"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async enableAuthProvider(s,n){var o,c;const l=await a.enableAuthProvider(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["AuthProviderV1alpha1ConsoleApi.enableAuthProvider"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listAuthProviders(s){var t,o;const n=await a.listAuthProviders(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["AuthProviderV1alpha1ConsoleApi.listAuthProviders"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)}}},dn=function(e,a,s){const n=ia(e);return{disableAuthProvider(l,r){return n.disableAuthProvider(l.name,r).then(t=>t(s,a))},enableAuthProvider(l,r){return n.enableAuthProvider(l.name,r).then(t=>t(s,a))},listAuthProviders(l){return n.listAuthProviders(l).then(r=>r(s,a))}}};class $t extends I{disableAuthProvider(a,s){return ia(this.configuration).disableAuthProvider(a.name,s).then(n=>n(this.axios,this.basePath))}enableAuthProvider(a,s){return ia(this.configuration).enableAuthProvider(a.name,s).then(n=>n(this.axios,this.basePath))}listAuthProviders(a){return ia(this.configuration).listAuthProviders(a).then(s=>s(this.axios,this.basePath))}}const Gt=function(e){return{createBackup:async(a,s={})=>{const n="/apis/migration.halo.run/v1alpha1/backups",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteBackup:async(a,s={})=>{C("deleteBackup","name",a);const n="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getBackup:async(a,s={})=>{C("getBackup","name",a);const n="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listBackup:async(a,s,n,l,r,t={})=>{const o="/apis/migration.halo.run/v1alpha1/backups",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchBackup:async(a,s,n={})=>{C("patchBackup","name",a);const l="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateBackup:async(a,s,n={})=>{C("updateBackup","name",a);const l="/apis/migration.halo.run/v1alpha1/backups/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},q=function(e){const a=Gt(e);return{async createBackup(s,n){var o,c;const l=await a.createBackup(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["BackupV1alpha1Api.createBackup"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteBackup(s,n){var o,c;const l=await a.deleteBackup(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["BackupV1alpha1Api.deleteBackup"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getBackup(s,n){var o,c;const l=await a.getBackup(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["BackupV1alpha1Api.getBackup"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listBackup(s,n,l,r,t,o){var i,d;const c=await a.listBackup(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["BackupV1alpha1Api.listBackup"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchBackup(s,n,l){var c,p;const r=await a.patchBackup(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["BackupV1alpha1Api.patchBackup"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateBackup(s,n,l){var c,p;const r=await a.updateBackup(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["BackupV1alpha1Api.updateBackup"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Vn=function(e,a,s){const n=q(e);return{createBackup(l={},r){return n.createBackup(l.backup,r).then(t=>t(s,a))},deleteBackup(l,r){return n.deleteBackup(l.name,r).then(t=>t(s,a))},getBackup(l,r){return n.getBackup(l.name,r).then(t=>t(s,a))},listBackup(l={},r){return n.listBackup(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchBackup(l,r){return n.patchBackup(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateBackup(l,r){return n.updateBackup(l.name,l.backup,r).then(t=>t(s,a))}}};class zt extends I{createBackup(a={},s){return q(this.configuration).createBackup(a.backup,s).then(n=>n(this.axios,this.basePath))}deleteBackup(a,s){return q(this.configuration).deleteBackup(a.name,s).then(n=>n(this.axios,this.basePath))}getBackup(a,s){return q(this.configuration).getBackup(a.name,s).then(n=>n(this.axios,this.basePath))}listBackup(a={},s){return q(this.configuration).listBackup(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchBackup(a,s){return q(this.configuration).patchBackup(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateBackup(a,s){return q(this.configuration).updateBackup(a.name,a.backup,s).then(n=>n(this.axios,this.basePath))}}const _t=function(e){return{createCategory:async(a,s={})=>{const n="/apis/content.halo.run/v1alpha1/categories",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteCategory:async(a,s={})=>{C("deleteCategory","name",a);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getCategory:async(a,s={})=>{C("getCategory","name",a);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listCategory:async(a,s,n,l,r,t={})=>{const o="/apis/content.halo.run/v1alpha1/categories",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchCategory:async(a,s,n={})=>{C("patchCategory","name",a);const l="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateCategory:async(a,s,n={})=>{C("updateCategory","name",a);const l="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},f=function(e){const a=_t(e);return{async createCategory(s,n){var o,c;const l=await a.createCategory(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CategoryV1alpha1Api.createCategory"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteCategory(s,n){var o,c;const l=await a.deleteCategory(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CategoryV1alpha1Api.deleteCategory"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getCategory(s,n){var o,c;const l=await a.getCategory(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CategoryV1alpha1Api.getCategory"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listCategory(s,n,l,r,t,o){var i,d;const c=await a.listCategory(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["CategoryV1alpha1Api.listCategory"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchCategory(s,n,l){var c,p;const r=await a.patchCategory(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CategoryV1alpha1Api.patchCategory"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateCategory(s,n,l){var c,p;const r=await a.updateCategory(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CategoryV1alpha1Api.updateCategory"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},mn=function(e,a,s){const n=f(e);return{createCategory(l={},r){return n.createCategory(l.category,r).then(t=>t(s,a))},deleteCategory(l,r){return n.deleteCategory(l.name,r).then(t=>t(s,a))},getCategory(l,r){return n.getCategory(l.name,r).then(t=>t(s,a))},listCategory(l={},r){return n.listCategory(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchCategory(l,r){return n.patchCategory(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateCategory(l,r){return n.updateCategory(l.name,l.category,r).then(t=>t(s,a))}}};class Wt extends I{createCategory(a={},s){return f(this.configuration).createCategory(a.category,s).then(n=>n(this.axios,this.basePath))}deleteCategory(a,s){return f(this.configuration).deleteCategory(a.name,s).then(n=>n(this.axios,this.basePath))}getCategory(a,s){return f(this.configuration).getCategory(a.name,s).then(n=>n(this.axios,this.basePath))}listCategory(a={},s){return f(this.configuration).listCategory(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchCategory(a,s){return f(this.configuration).patchCategory(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateCategory(a,s){return f(this.configuration).updateCategory(a.name,a.category,s).then(n=>n(this.axios,this.basePath))}}const Kt=function(e){return{queryCategories:async(a,s,n,l,r,t={})=>{const o="/apis/api.content.halo.run/v1alpha1/categories",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},queryCategoryByName:async(a,s={})=>{C("queryCategoryByName","name",a);const n="/apis/api.content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},queryPostsByCategoryName:async(a,s,n,l,r,t,o={})=>{C("queryPostsByCategoryName","name",a);const c="/apis/api.content.halo.run/v1alpha1/categories/{name}/posts".replace("{name}",encodeURIComponent(String(a))),p=new URL(c,P);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},R={};O(i,e),await u(d,e),s!==void 0&&(R.page=s),n!==void 0&&(R.size=n),l&&(R.labelSelector=l),r&&(R.fieldSelector=r),t&&(R.sort=t),v(p,R);let T=h&&h.headers?h.headers:{};return i.headers={...d,...T,...o.headers},{url:S(p),options:i}}}},da=function(e){const a=Kt(e);return{async queryCategories(s,n,l,r,t,o){var i,d;const c=await a.queryCategories(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["CategoryV1alpha1PublicApi.queryCategories"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async queryCategoryByName(s,n){var o,c;const l=await a.queryCategoryByName(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CategoryV1alpha1PublicApi.queryCategoryByName"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async queryPostsByCategoryName(s,n,l,r,t,o,c){var d,R;const p=await a.queryPostsByCategoryName(s,n,l,r,t,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(R=(d=y["CategoryV1alpha1PublicApi.queryPostsByCategoryName"])==null?void 0:d[h])==null?void 0:R.url;return(T,U)=>A(p,V,m,e)(T,i||U)}}},yn=function(e,a,s){const n=da(e);return{queryCategories(l={},r){return n.queryCategories(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},queryCategoryByName(l,r){return n.queryCategoryByName(l.name,r).then(t=>t(s,a))},queryPostsByCategoryName(l,r){return n.queryPostsByCategoryName(l.name,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))}}};class Pn extends I{queryCategories(a={},s){return da(this.configuration).queryCategories(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}queryCategoryByName(a,s){return da(this.configuration).queryCategoryByName(a.name,s).then(n=>n(this.axios,this.basePath))}queryPostsByCategoryName(a,s){return da(this.configuration).queryPostsByCategoryName(a.name,a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}}const Jt=function(e){return{createComment:async(a,s={})=>{const n="/apis/content.halo.run/v1alpha1/comments",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteComment:async(a,s={})=>{C("deleteComment","name",a);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getComment:async(a,s={})=>{C("getComment","name",a);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listComment:async(a,s,n,l,r,t={})=>{const o="/apis/content.halo.run/v1alpha1/comments",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchComment:async(a,s,n={})=>{C("patchComment","name",a);const l="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateComment:async(a,s,n={})=>{C("updateComment","name",a);const l="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},g=function(e){const a=Jt(e);return{async createComment(s,n){var o,c;const l=await a.createComment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CommentV1alpha1Api.createComment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteComment(s,n){var o,c;const l=await a.deleteComment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CommentV1alpha1Api.deleteComment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getComment(s,n){var o,c;const l=await a.getComment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CommentV1alpha1Api.getComment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listComment(s,n,l,r,t,o){var i,d;const c=await a.listComment(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["CommentV1alpha1Api.listComment"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchComment(s,n,l){var c,p;const r=await a.patchComment(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CommentV1alpha1Api.patchComment"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateComment(s,n,l){var c,p;const r=await a.updateComment(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CommentV1alpha1Api.updateComment"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},On=function(e,a,s){const n=g(e);return{createComment(l={},r){return n.createComment(l.comment,r).then(t=>t(s,a))},deleteComment(l,r){return n.deleteComment(l.name,r).then(t=>t(s,a))},getComment(l,r){return n.getComment(l.name,r).then(t=>t(s,a))},listComment(l={},r){return n.listComment(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchComment(l,r){return n.patchComment(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateComment(l,r){return n.updateComment(l.name,l.comment,r).then(t=>t(s,a))}}};class Xt extends I{createComment(a={},s){return g(this.configuration).createComment(a.comment,s).then(n=>n(this.axios,this.basePath))}deleteComment(a,s){return g(this.configuration).deleteComment(a.name,s).then(n=>n(this.axios,this.basePath))}getComment(a,s){return g(this.configuration).getComment(a.name,s).then(n=>n(this.axios,this.basePath))}listComment(a={},s){return g(this.configuration).listComment(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchComment(a,s){return g(this.configuration).patchComment(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateComment(a,s){return g(this.configuration).updateComment(a.name,a.comment,s).then(n=>n(this.axios,this.basePath))}}const Yt=function(e){return{createComment:async(a,s={})=>{C("createComment","commentRequest",a);const n="/apis/api.console.halo.run/v1alpha1/comments",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},createReply:async(a,s,n={})=>{C("createReply","name",a),C("createReply","replyRequest",s);const l="/apis/api.console.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},listComments:async(a,s,n,l,r,t,o,c,p={})=>{const h="/apis/api.console.halo.run/v1alpha1/comments",i=new URL(h,P);let d;e&&(d=e.baseOptions);const R={method:"GET",...d,...p},T={},U={};O(R,e),await u(T,e),a!==void 0&&(U.page=a),s!==void 0&&(U.size=s),n&&(U.labelSelector=n),l&&(U.fieldSelector=l),r&&(U.sort=r),t!==void 0&&(U.keyword=t),o!==void 0&&(U.ownerKind=o),c!==void 0&&(U.ownerName=c),v(i,U);let B=d&&d.headers?d.headers:{};return R.headers={...T,...B,...p.headers},{url:S(i),options:R}}}},Va=function(e){const a=Yt(e);return{async createComment(s,n){var o,c;const l=await a.createComment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CommentV1alpha1ConsoleApi.createComment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async createReply(s,n,l){var c,p;const r=await a.createReply(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CommentV1alpha1ConsoleApi.createReply"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async listComments(s,n,l,r,t,o,c,p,h){var T,U;const i=await a.listComments(s,n,l,r,t,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,R=(U=(T=y["CommentV1alpha1ConsoleApi.listComments"])==null?void 0:T[d])==null?void 0:U.url;return(B,E)=>A(i,V,m,e)(B,R||E)}}},un=function(e,a,s){const n=Va(e);return{createComment(l,r){return n.createComment(l.commentRequest,r).then(t=>t(s,a))},createReply(l,r){return n.createReply(l.name,l.replyRequest,r).then(t=>t(s,a))},listComments(l={},r){return n.listComments(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,l.ownerKind,l.ownerName,r).then(t=>t(s,a))}}};class Zt extends I{createComment(a,s){return Va(this.configuration).createComment(a.commentRequest,s).then(n=>n(this.axios,this.basePath))}createReply(a,s){return Va(this.configuration).createReply(a.name,a.replyRequest,s).then(n=>n(this.axios,this.basePath))}listComments(a={},s){return Va(this.configuration).listComments(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.keyword,a.ownerKind,a.ownerName,s).then(n=>n(this.axios,this.basePath))}}const qt=function(e){return{createComment1:async(a,s={})=>{C("createComment1","commentRequest",a);const n="/apis/api.halo.run/v1alpha1/comments",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},createReply1:async(a,s,n={})=>{C("createReply1","name",a),C("createReply1","replyRequest",s);const l="/apis/api.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},getComment:async(a,s={})=>{C("getComment","name",a);const n="/apis/api.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listCommentReplies:async(a,s,n,l={})=>{C("listCommentReplies","name",a);const r="/apis/api.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(a))),t=new URL(r,P);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...l},p={},h={};O(c,e),await u(p,e),s!==void 0&&(h.page=s),n!==void 0&&(h.size=n),v(t,h);let i=o&&o.headers?o.headers:{};return c.headers={...p,...i,...l.headers},{url:S(t),options:c}},listComments1:async(a,s,n,l,r,t,o,c,p,h={})=>{C("listComments1","version",a),C("listComments1","kind",s),C("listComments1","name",n);const i="/apis/api.halo.run/v1alpha1/comments",d=new URL(i,P);let R;e&&(R=e.baseOptions);const T={method:"GET",...R,...h},U={},B={};O(T,e),await u(U,e),l!==void 0&&(B.page=l),r!==void 0&&(B.size=r),t&&(B.sort=t),o!==void 0&&(B.group=o),a!==void 0&&(B.version=a),s!==void 0&&(B.kind=s),n!==void 0&&(B.name=n),c!==void 0&&(B.withReplies=c),p!==void 0&&(B.replySize=p),v(d,B);let E=R&&R.headers?R.headers:{};return T.headers={...U,...E,...h.headers},{url:S(d),options:T}}}},We=function(e){const a=qt(e);return{async createComment1(s,n){var o,c;const l=await a.createComment1(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CommentV1alpha1PublicApi.createComment1"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async createReply1(s,n,l){var c,p;const r=await a.createReply1(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CommentV1alpha1PublicApi.createReply1"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async getComment(s,n){var o,c;const l=await a.getComment(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CommentV1alpha1PublicApi.getComment"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listCommentReplies(s,n,l,r){var p,h;const t=await a.listCommentReplies(s,n,l,r),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=y["CommentV1alpha1PublicApi.listCommentReplies"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>A(t,V,m,e)(i,c||d)},async listComments1(s,n,l,r,t,o,c,p,h,i){var U,B;const d=await a.listComments1(s,n,l,r,t,o,c,p,h,i),R=(e==null?void 0:e.serverIndex)??0,T=(B=(U=y["CommentV1alpha1PublicApi.listComments1"])==null?void 0:U[R])==null?void 0:B.url;return(E,G)=>A(d,V,m,e)(E,T||G)}}},vn=function(e,a,s){const n=We(e);return{createComment1(l,r){return n.createComment1(l.commentRequest,r).then(t=>t(s,a))},createReply1(l,r){return n.createReply1(l.name,l.replyRequest,r).then(t=>t(s,a))},getComment(l,r){return n.getComment(l.name,r).then(t=>t(s,a))},listCommentReplies(l,r){return n.listCommentReplies(l.name,l.page,l.size,r).then(t=>t(s,a))},listComments1(l,r){return n.listComments1(l.version,l.kind,l.name,l.page,l.size,l.sort,l.group,l.withReplies,l.replySize,r).then(t=>t(s,a))}}};class ft extends I{createComment1(a,s){return We(this.configuration).createComment1(a.commentRequest,s).then(n=>n(this.axios,this.basePath))}createReply1(a,s){return We(this.configuration).createReply1(a.name,a.replyRequest,s).then(n=>n(this.axios,this.basePath))}getComment(a,s){return We(this.configuration).getComment(a.name,s).then(n=>n(this.axios,this.basePath))}listCommentReplies(a,s){return We(this.configuration).listCommentReplies(a.name,a.page,a.size,s).then(n=>n(this.axios,this.basePath))}listComments1(a,s){return We(this.configuration).listComments1(a.version,a.kind,a.name,a.page,a.size,a.sort,a.group,a.withReplies,a.replySize,s).then(n=>n(this.axios,this.basePath))}}const gt=function(e){return{createConfigMap:async(a,s={})=>{const n="/api/v1alpha1/configmaps",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteConfigMap:async(a,s={})=>{C("deleteConfigMap","name",a);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getConfigMap:async(a,s={})=>{C("getConfigMap","name",a);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listConfigMap:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/configmaps",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchConfigMap:async(a,s,n={})=>{C("patchConfigMap","name",a);const l="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateConfigMap:async(a,s,n={})=>{C("updateConfigMap","name",a);const l="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ee=function(e){const a=gt(e);return{async createConfigMap(s,n){var o,c;const l=await a.createConfigMap(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ConfigMapV1alpha1Api.createConfigMap"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteConfigMap(s,n){var o,c;const l=await a.deleteConfigMap(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ConfigMapV1alpha1Api.deleteConfigMap"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getConfigMap(s,n){var o,c;const l=await a.getConfigMap(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ConfigMapV1alpha1Api.getConfigMap"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listConfigMap(s,n,l,r,t,o){var i,d;const c=await a.listConfigMap(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ConfigMapV1alpha1Api.listConfigMap"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchConfigMap(s,n,l){var c,p;const r=await a.patchConfigMap(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ConfigMapV1alpha1Api.patchConfigMap"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateConfigMap(s,n,l){var c,p;const r=await a.updateConfigMap(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ConfigMapV1alpha1Api.updateConfigMap"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Sn=function(e,a,s){const n=ee(e);return{createConfigMap(l={},r){return n.createConfigMap(l.configMap,r).then(t=>t(s,a))},deleteConfigMap(l,r){return n.deleteConfigMap(l.name,r).then(t=>t(s,a))},getConfigMap(l,r){return n.getConfigMap(l.name,r).then(t=>t(s,a))},listConfigMap(l={},r){return n.listConfigMap(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchConfigMap(l,r){return n.patchConfigMap(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateConfigMap(l,r){return n.updateConfigMap(l.name,l.configMap,r).then(t=>t(s,a))}}};class er extends I{createConfigMap(a={},s){return ee(this.configuration).createConfigMap(a.configMap,s).then(n=>n(this.axios,this.basePath))}deleteConfigMap(a,s){return ee(this.configuration).deleteConfigMap(a.name,s).then(n=>n(this.axios,this.basePath))}getConfigMap(a,s){return ee(this.configuration).getConfigMap(a.name,s).then(n=>n(this.axios,this.basePath))}listConfigMap(a={},s){return ee(this.configuration).listConfigMap(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchConfigMap(a,s){return ee(this.configuration).patchConfigMap(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateConfigMap(a,s){return ee(this.configuration).updateConfigMap(a.name,a.configMap,s).then(n=>n(this.axios,this.basePath))}}const ar=function(e){return{createCounter:async(a,s={})=>{const n="/apis/metrics.halo.run/v1alpha1/counters",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteCounter:async(a,s={})=>{C("deleteCounter","name",a);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getCounter:async(a,s={})=>{C("getCounter","name",a);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listCounter:async(a,s,n,l,r,t={})=>{const o="/apis/metrics.halo.run/v1alpha1/counters",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchCounter:async(a,s,n={})=>{C("patchCounter","name",a);const l="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateCounter:async(a,s,n={})=>{C("updateCounter","name",a);const l="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ae=function(e){const a=ar(e);return{async createCounter(s,n){var o,c;const l=await a.createCounter(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CounterV1alpha1Api.createCounter"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteCounter(s,n){var o,c;const l=await a.deleteCounter(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CounterV1alpha1Api.deleteCounter"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getCounter(s,n){var o,c;const l=await a.getCounter(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["CounterV1alpha1Api.getCounter"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listCounter(s,n,l,r,t,o){var i,d;const c=await a.listCounter(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["CounterV1alpha1Api.listCounter"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchCounter(s,n,l){var c,p;const r=await a.patchCounter(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CounterV1alpha1Api.patchCounter"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateCounter(s,n,l){var c,p;const r=await a.updateCounter(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["CounterV1alpha1Api.updateCounter"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},An=function(e,a,s){const n=ae(e);return{createCounter(l={},r){return n.createCounter(l.counter,r).then(t=>t(s,a))},deleteCounter(l,r){return n.deleteCounter(l.name,r).then(t=>t(s,a))},getCounter(l,r){return n.getCounter(l.name,r).then(t=>t(s,a))},listCounter(l={},r){return n.listCounter(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchCounter(l,r){return n.patchCounter(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateCounter(l,r){return n.updateCounter(l.name,l.counter,r).then(t=>t(s,a))}}};class tr extends I{createCounter(a={},s){return ae(this.configuration).createCounter(a.counter,s).then(n=>n(this.axios,this.basePath))}deleteCounter(a,s){return ae(this.configuration).deleteCounter(a.name,s).then(n=>n(this.axios,this.basePath))}getCounter(a,s){return ae(this.configuration).getCounter(a.name,s).then(n=>n(this.axios,this.basePath))}listCounter(a={},s){return ae(this.configuration).listCounter(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchCounter(a,s){return ae(this.configuration).patchCounter(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateCounter(a,s){return ae(this.configuration).updateCounter(a.name,a.counter,s).then(n=>n(this.axios,this.basePath))}}const rr=function(e){return{createDevice:async(a,s={})=>{const n="/apis/security.halo.run/v1alpha1/devices",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteDevice:async(a,s={})=>{C("deleteDevice","name",a);const n="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getDevice:async(a,s={})=>{C("getDevice","name",a);const n="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listDevice:async(a,s,n,l,r,t={})=>{const o="/apis/security.halo.run/v1alpha1/devices",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchDevice:async(a,s,n={})=>{C("patchDevice","name",a);const l="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateDevice:async(a,s,n={})=>{C("updateDevice","name",a);const l="/apis/security.halo.run/v1alpha1/devices/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},te=function(e){const a=rr(e);return{async createDevice(s,n){var o,c;const l=await a.createDevice(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["DeviceV1alpha1Api.createDevice"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteDevice(s,n){var o,c;const l=await a.deleteDevice(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["DeviceV1alpha1Api.deleteDevice"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getDevice(s,n){var o,c;const l=await a.getDevice(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["DeviceV1alpha1Api.getDevice"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listDevice(s,n,l,r,t,o){var i,d;const c=await a.listDevice(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["DeviceV1alpha1Api.listDevice"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchDevice(s,n,l){var c,p;const r=await a.patchDevice(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["DeviceV1alpha1Api.patchDevice"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateDevice(s,n,l){var c,p;const r=await a.updateDevice(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["DeviceV1alpha1Api.updateDevice"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},bn=function(e,a,s){const n=te(e);return{createDevice(l={},r){return n.createDevice(l.device,r).then(t=>t(s,a))},deleteDevice(l,r){return n.deleteDevice(l.name,r).then(t=>t(s,a))},getDevice(l,r){return n.getDevice(l.name,r).then(t=>t(s,a))},listDevice(l={},r){return n.listDevice(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchDevice(l,r){return n.patchDevice(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateDevice(l,r){return n.updateDevice(l.name,l.device,r).then(t=>t(s,a))}}};class Rn extends I{createDevice(a={},s){return te(this.configuration).createDevice(a.device,s).then(n=>n(this.axios,this.basePath))}deleteDevice(a,s){return te(this.configuration).deleteDevice(a.name,s).then(n=>n(this.axios,this.basePath))}getDevice(a,s){return te(this.configuration).getDevice(a.name,s).then(n=>n(this.axios,this.basePath))}listDevice(a={},s){return te(this.configuration).listDevice(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchDevice(a,s){return te(this.configuration).patchDevice(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateDevice(a,s){return te(this.configuration).updateDevice(a.name,a.device,s).then(n=>n(this.axios,this.basePath))}}const sr=function(e){return{listDevices:async(a={})=>{const s="/apis/uc.api.security.halo.run/v1alpha1/devices",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},revokeDevice:async(a,s={})=>{C("revokeDevice","deviceId",a);const n="/apis/uc.api.security.halo.run/v1alpha1/devices/{deviceId}".replace("{deviceId}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}}}},Ia=function(e){const a=sr(e);return{async listDevices(s){var t,o;const n=await a.listDevices(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["DeviceV1alpha1UcApi.listDevices"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async revokeDevice(s,n){var o,c;const l=await a.revokeDevice(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["DeviceV1alpha1UcApi.revokeDevice"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},Cn=function(e,a,s){const n=Ia(e);return{listDevices(l){return n.listDevices(l).then(r=>r(s,a))},revokeDevice(l,r){return n.revokeDevice(l.deviceId,r).then(t=>t(s,a))}}};class lr extends I{listDevices(a){return Ia(this.configuration).listDevices(a).then(s=>s(this.axios,this.basePath))}revokeDevice(a,s){return Ia(this.configuration).revokeDevice(a.deviceId,s).then(n=>n(this.axios,this.basePath))}}const nr=function(e){return{createExtensionDefinition:async(a,s={})=>{const n="/apis/plugin.halo.run/v1alpha1/extensiondefinitions",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteExtensionDefinition:async(a,s={})=>{C("deleteExtensionDefinition","name",a);const n="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getExtensionDefinition:async(a,s={})=>{C("getExtensionDefinition","name",a);const n="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listExtensionDefinition:async(a,s,n,l,r,t={})=>{const o="/apis/plugin.halo.run/v1alpha1/extensiondefinitions",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchExtensionDefinition:async(a,s,n={})=>{C("patchExtensionDefinition","name",a);const l="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateExtensionDefinition:async(a,s,n={})=>{C("updateExtensionDefinition","name",a);const l="/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},re=function(e){const a=nr(e);return{async createExtensionDefinition(s,n){var o,c;const l=await a.createExtensionDefinition(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ExtensionDefinitionV1alpha1Api.createExtensionDefinition"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteExtensionDefinition(s,n){var o,c;const l=await a.deleteExtensionDefinition(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ExtensionDefinitionV1alpha1Api.deleteExtensionDefinition"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getExtensionDefinition(s,n){var o,c;const l=await a.getExtensionDefinition(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ExtensionDefinitionV1alpha1Api.getExtensionDefinition"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listExtensionDefinition(s,n,l,r,t,o){var i,d;const c=await a.listExtensionDefinition(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ExtensionDefinitionV1alpha1Api.listExtensionDefinition"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchExtensionDefinition(s,n,l){var c,p;const r=await a.patchExtensionDefinition(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ExtensionDefinitionV1alpha1Api.patchExtensionDefinition"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateExtensionDefinition(s,n,l){var c,p;const r=await a.updateExtensionDefinition(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ExtensionDefinitionV1alpha1Api.updateExtensionDefinition"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Tn=function(e,a,s){const n=re(e);return{createExtensionDefinition(l={},r){return n.createExtensionDefinition(l.extensionDefinition,r).then(t=>t(s,a))},deleteExtensionDefinition(l,r){return n.deleteExtensionDefinition(l.name,r).then(t=>t(s,a))},getExtensionDefinition(l,r){return n.getExtensionDefinition(l.name,r).then(t=>t(s,a))},listExtensionDefinition(l={},r){return n.listExtensionDefinition(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchExtensionDefinition(l,r){return n.patchExtensionDefinition(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateExtensionDefinition(l,r){return n.updateExtensionDefinition(l.name,l.extensionDefinition,r).then(t=>t(s,a))}}};class or extends I{createExtensionDefinition(a={},s){return re(this.configuration).createExtensionDefinition(a.extensionDefinition,s).then(n=>n(this.axios,this.basePath))}deleteExtensionDefinition(a,s){return re(this.configuration).deleteExtensionDefinition(a.name,s).then(n=>n(this.axios,this.basePath))}getExtensionDefinition(a,s){return re(this.configuration).getExtensionDefinition(a.name,s).then(n=>n(this.axios,this.basePath))}listExtensionDefinition(a={},s){return re(this.configuration).listExtensionDefinition(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchExtensionDefinition(a,s){return re(this.configuration).patchExtensionDefinition(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateExtensionDefinition(a,s){return re(this.configuration).updateExtensionDefinition(a.name,a.extensionDefinition,s).then(n=>n(this.axios,this.basePath))}}const cr=function(e){return{createExtensionPointDefinition:async(a,s={})=>{const n="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteExtensionPointDefinition:async(a,s={})=>{C("deleteExtensionPointDefinition","name",a);const n="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getExtensionPointDefinition:async(a,s={})=>{C("getExtensionPointDefinition","name",a);const n="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listExtensionPointDefinition:async(a,s,n,l,r,t={})=>{const o="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchExtensionPointDefinition:async(a,s,n={})=>{C("patchExtensionPointDefinition","name",a);const l="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateExtensionPointDefinition:async(a,s,n={})=>{C("updateExtensionPointDefinition","name",a);const l="/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},se=function(e){const a=cr(e);return{async createExtensionPointDefinition(s,n){var o,c;const l=await a.createExtensionPointDefinition(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ExtensionPointDefinitionV1alpha1Api.createExtensionPointDefinition"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteExtensionPointDefinition(s,n){var o,c;const l=await a.deleteExtensionPointDefinition(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ExtensionPointDefinitionV1alpha1Api.deleteExtensionPointDefinition"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getExtensionPointDefinition(s,n){var o,c;const l=await a.getExtensionPointDefinition(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ExtensionPointDefinitionV1alpha1Api.getExtensionPointDefinition"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listExtensionPointDefinition(s,n,l,r,t,o){var i,d;const c=await a.listExtensionPointDefinition(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ExtensionPointDefinitionV1alpha1Api.listExtensionPointDefinition"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchExtensionPointDefinition(s,n,l){var c,p;const r=await a.patchExtensionPointDefinition(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ExtensionPointDefinitionV1alpha1Api.patchExtensionPointDefinition"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateExtensionPointDefinition(s,n,l){var c,p;const r=await a.updateExtensionPointDefinition(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ExtensionPointDefinitionV1alpha1Api.updateExtensionPointDefinition"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},wn=function(e,a,s){const n=se(e);return{createExtensionPointDefinition(l={},r){return n.createExtensionPointDefinition(l.extensionPointDefinition,r).then(t=>t(s,a))},deleteExtensionPointDefinition(l,r){return n.deleteExtensionPointDefinition(l.name,r).then(t=>t(s,a))},getExtensionPointDefinition(l,r){return n.getExtensionPointDefinition(l.name,r).then(t=>t(s,a))},listExtensionPointDefinition(l={},r){return n.listExtensionPointDefinition(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchExtensionPointDefinition(l,r){return n.patchExtensionPointDefinition(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateExtensionPointDefinition(l,r){return n.updateExtensionPointDefinition(l.name,l.extensionPointDefinition,r).then(t=>t(s,a))}}};class pr extends I{createExtensionPointDefinition(a={},s){return se(this.configuration).createExtensionPointDefinition(a.extensionPointDefinition,s).then(n=>n(this.axios,this.basePath))}deleteExtensionPointDefinition(a,s){return se(this.configuration).deleteExtensionPointDefinition(a.name,s).then(n=>n(this.axios,this.basePath))}getExtensionPointDefinition(a,s){return se(this.configuration).getExtensionPointDefinition(a.name,s).then(n=>n(this.axios,this.basePath))}listExtensionPointDefinition(a={},s){return se(this.configuration).listExtensionPointDefinition(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchExtensionPointDefinition(a,s){return se(this.configuration).patchExtensionPointDefinition(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateExtensionPointDefinition(a,s){return se(this.configuration).updateExtensionPointDefinition(a.name,a.extensionPointDefinition,s).then(n=>n(this.axios,this.basePath))}}const hr=function(e){return{createGroup:async(a,s={})=>{const n="/apis/storage.halo.run/v1alpha1/groups",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteGroup:async(a,s={})=>{C("deleteGroup","name",a);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getGroup:async(a,s={})=>{C("getGroup","name",a);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listGroup:async(a,s,n,l,r,t={})=>{const o="/apis/storage.halo.run/v1alpha1/groups",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchGroup:async(a,s,n={})=>{C("patchGroup","name",a);const l="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateGroup:async(a,s,n={})=>{C("updateGroup","name",a);const l="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},le=function(e){const a=hr(e);return{async createGroup(s,n){var o,c;const l=await a.createGroup(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["GroupV1alpha1Api.createGroup"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteGroup(s,n){var o,c;const l=await a.deleteGroup(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["GroupV1alpha1Api.deleteGroup"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getGroup(s,n){var o,c;const l=await a.getGroup(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["GroupV1alpha1Api.getGroup"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listGroup(s,n,l,r,t,o){var i,d;const c=await a.listGroup(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["GroupV1alpha1Api.listGroup"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchGroup(s,n,l){var c,p;const r=await a.patchGroup(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["GroupV1alpha1Api.patchGroup"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateGroup(s,n,l){var c,p;const r=await a.updateGroup(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["GroupV1alpha1Api.updateGroup"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Un=function(e,a,s){const n=le(e);return{createGroup(l={},r){return n.createGroup(l.group,r).then(t=>t(s,a))},deleteGroup(l,r){return n.deleteGroup(l.name,r).then(t=>t(s,a))},getGroup(l,r){return n.getGroup(l.name,r).then(t=>t(s,a))},listGroup(l={},r){return n.listGroup(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchGroup(l,r){return n.patchGroup(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateGroup(l,r){return n.updateGroup(l.name,l.group,r).then(t=>t(s,a))}}};class ir extends I{createGroup(a={},s){return le(this.configuration).createGroup(a.group,s).then(n=>n(this.axios,this.basePath))}deleteGroup(a,s){return le(this.configuration).deleteGroup(a.name,s).then(n=>n(this.axios,this.basePath))}getGroup(a,s){return le(this.configuration).getGroup(a.name,s).then(n=>n(this.axios,this.basePath))}listGroup(a={},s){return le(this.configuration).listGroup(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchGroup(a,s){return le(this.configuration).patchGroup(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateGroup(a,s){return le(this.configuration).updateGroup(a.name,a.group,s).then(n=>n(this.axios,this.basePath))}}const dr=function(e){return{indicesSearch:async(a,s={})=>{const n="/apis/api.halo.run/v1alpha1/indices/-/search",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},searchPost:async(a,s,n,l,r={})=>{C("searchPost","keyword",a);const t="/apis/api.halo.run/v1alpha1/indices/post",o=new URL(t,P);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...r},h={},i={};O(p,e),await u(h,e),a!==void 0&&(i.keyword=a),s!==void 0&&(i.limit=s),n!==void 0&&(i.highlightPreTag=n),l!==void 0&&(i.highlightPostTag=l),v(o,i);let d=c&&c.headers?c.headers:{};return p.headers={...h,...d,...r.headers},{url:S(o),options:p}}}},Ba=function(e){const a=dr(e);return{async indicesSearch(s,n){var o,c;const l=await a.indicesSearch(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["IndexV1alpha1PublicApi.indicesSearch"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async searchPost(s,n,l,r,t){var h,i;const o=await a.searchPost(s,n,l,r,t),c=(e==null?void 0:e.serverIndex)??0,p=(i=(h=y["IndexV1alpha1PublicApi.searchPost"])==null?void 0:h[c])==null?void 0:i.url;return(d,R)=>A(o,V,m,e)(d,p||R)}}},In=function(e,a,s){const n=Ba(e);return{indicesSearch(l={},r){return n.indicesSearch(l.searchOption,r).then(t=>t(s,a))},searchPost(l,r){return n.searchPost(l.keyword,l.limit,l.highlightPreTag,l.highlightPostTag,r).then(t=>t(s,a))}}};class Bn extends I{indicesSearch(a={},s){return Ba(this.configuration).indicesSearch(a.searchOption,s).then(n=>n(this.axios,this.basePath))}searchPost(a,s){return Ba(this.configuration).searchPost(a.keyword,a.limit,a.highlightPreTag,a.highlightPostTag,s).then(n=>n(this.axios,this.basePath))}}const Vr=function(e){return{buildPostIndices:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/indices/post",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"POST",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},rebuildAllIndices:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/indices/-/rebuild",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"POST",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}}}},xa=function(e){const a=Vr(e);return{async buildPostIndices(s){var t,o;const n=await a.buildPostIndices(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["IndicesV1alpha1ConsoleApi.buildPostIndices"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async rebuildAllIndices(s){var t,o;const n=await a.rebuildAllIndices(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["IndicesV1alpha1ConsoleApi.rebuildAllIndices"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)}}},xn=function(e,a,s){const n=xa(e);return{buildPostIndices(l){return n.buildPostIndices(l).then(r=>r(s,a))},rebuildAllIndices(l){return n.rebuildAllIndices(l).then(r=>r(s,a))}}};class mr extends I{buildPostIndices(a){return xa(this.configuration).buildPostIndices(a).then(s=>s(this.axios,this.basePath))}rebuildAllIndices(a){return xa(this.configuration).rebuildAllIndices(a).then(s=>s(this.axios,this.basePath))}}const yr=function(e){return{createLocalThumbnail:async(a,s={})=>{const n="/apis/storage.halo.run/v1alpha1/localthumbnails",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteLocalThumbnail:async(a,s={})=>{C("deleteLocalThumbnail","name",a);const n="/apis/storage.halo.run/v1alpha1/localthumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getLocalThumbnail:async(a,s={})=>{C("getLocalThumbnail","name",a);const n="/apis/storage.halo.run/v1alpha1/localthumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listLocalThumbnail:async(a,s,n,l,r,t={})=>{const o="/apis/storage.halo.run/v1alpha1/localthumbnails",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchLocalThumbnail:async(a,s,n={})=>{C("patchLocalThumbnail","name",a);const l="/apis/storage.halo.run/v1alpha1/localthumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateLocalThumbnail:async(a,s,n={})=>{C("updateLocalThumbnail","name",a);const l="/apis/storage.halo.run/v1alpha1/localthumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ne=function(e){const a=yr(e);return{async createLocalThumbnail(s,n){var o,c;const l=await a.createLocalThumbnail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["LocalThumbnailV1alpha1Api.createLocalThumbnail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteLocalThumbnail(s,n){var o,c;const l=await a.deleteLocalThumbnail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["LocalThumbnailV1alpha1Api.deleteLocalThumbnail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getLocalThumbnail(s,n){var o,c;const l=await a.getLocalThumbnail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["LocalThumbnailV1alpha1Api.getLocalThumbnail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listLocalThumbnail(s,n,l,r,t,o){var i,d;const c=await a.listLocalThumbnail(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["LocalThumbnailV1alpha1Api.listLocalThumbnail"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchLocalThumbnail(s,n,l){var c,p;const r=await a.patchLocalThumbnail(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["LocalThumbnailV1alpha1Api.patchLocalThumbnail"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateLocalThumbnail(s,n,l){var c,p;const r=await a.updateLocalThumbnail(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["LocalThumbnailV1alpha1Api.updateLocalThumbnail"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Fn=function(e,a,s){const n=ne(e);return{createLocalThumbnail(l={},r){return n.createLocalThumbnail(l.localThumbnail,r).then(t=>t(s,a))},deleteLocalThumbnail(l,r){return n.deleteLocalThumbnail(l.name,r).then(t=>t(s,a))},getLocalThumbnail(l,r){return n.getLocalThumbnail(l.name,r).then(t=>t(s,a))},listLocalThumbnail(l={},r){return n.listLocalThumbnail(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchLocalThumbnail(l,r){return n.patchLocalThumbnail(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateLocalThumbnail(l,r){return n.updateLocalThumbnail(l.name,l.localThumbnail,r).then(t=>t(s,a))}}};class En extends I{createLocalThumbnail(a={},s){return ne(this.configuration).createLocalThumbnail(a.localThumbnail,s).then(n=>n(this.axios,this.basePath))}deleteLocalThumbnail(a,s){return ne(this.configuration).deleteLocalThumbnail(a.name,s).then(n=>n(this.axios,this.basePath))}getLocalThumbnail(a,s){return ne(this.configuration).getLocalThumbnail(a.name,s).then(n=>n(this.axios,this.basePath))}listLocalThumbnail(a={},s){return ne(this.configuration).listLocalThumbnail(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchLocalThumbnail(a,s){return ne(this.configuration).patchLocalThumbnail(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateLocalThumbnail(a,s){return ne(this.configuration).updateLocalThumbnail(a.name,a.localThumbnail,s).then(n=>n(this.axios,this.basePath))}}const Pr=function(e){return{getPublicKey:async(a={})=>{const s="/login/public-key",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}}}},Xa=function(e){const a=Pr(e);return{async getPublicKey(s){var t,o;const n=await a.getPublicKey(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["LoginApi.getPublicKey"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)}}},jn=function(e,a,s){const n=Xa(e);return{getPublicKey(l){return n.getPublicKey(l).then(r=>r(s,a))}}};class Or extends I{getPublicKey(a){return Xa(this.configuration).getPublicKey(a).then(s=>s(this.axios,this.basePath))}}const ur=function(e){return{createMenuItem:async(a,s={})=>{const n="/api/v1alpha1/menuitems",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteMenuItem:async(a,s={})=>{C("deleteMenuItem","name",a);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getMenuItem:async(a,s={})=>{C("getMenuItem","name",a);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listMenuItem:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/menuitems",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchMenuItem:async(a,s,n={})=>{C("patchMenuItem","name",a);const l="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateMenuItem:async(a,s,n={})=>{C("updateMenuItem","name",a);const l="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},oe=function(e){const a=ur(e);return{async createMenuItem(s,n){var o,c;const l=await a.createMenuItem(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MenuItemV1alpha1Api.createMenuItem"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteMenuItem(s,n){var o,c;const l=await a.deleteMenuItem(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MenuItemV1alpha1Api.deleteMenuItem"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getMenuItem(s,n){var o,c;const l=await a.getMenuItem(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MenuItemV1alpha1Api.getMenuItem"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listMenuItem(s,n,l,r,t,o){var i,d;const c=await a.listMenuItem(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["MenuItemV1alpha1Api.listMenuItem"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchMenuItem(s,n,l){var c,p;const r=await a.patchMenuItem(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["MenuItemV1alpha1Api.patchMenuItem"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateMenuItem(s,n,l){var c,p;const r=await a.updateMenuItem(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["MenuItemV1alpha1Api.updateMenuItem"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Ln=function(e,a,s){const n=oe(e);return{createMenuItem(l={},r){return n.createMenuItem(l.menuItem,r).then(t=>t(s,a))},deleteMenuItem(l,r){return n.deleteMenuItem(l.name,r).then(t=>t(s,a))},getMenuItem(l,r){return n.getMenuItem(l.name,r).then(t=>t(s,a))},listMenuItem(l={},r){return n.listMenuItem(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchMenuItem(l,r){return n.patchMenuItem(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateMenuItem(l,r){return n.updateMenuItem(l.name,l.menuItem,r).then(t=>t(s,a))}}};class vr extends I{createMenuItem(a={},s){return oe(this.configuration).createMenuItem(a.menuItem,s).then(n=>n(this.axios,this.basePath))}deleteMenuItem(a,s){return oe(this.configuration).deleteMenuItem(a.name,s).then(n=>n(this.axios,this.basePath))}getMenuItem(a,s){return oe(this.configuration).getMenuItem(a.name,s).then(n=>n(this.axios,this.basePath))}listMenuItem(a={},s){return oe(this.configuration).listMenuItem(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchMenuItem(a,s){return oe(this.configuration).patchMenuItem(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateMenuItem(a,s){return oe(this.configuration).updateMenuItem(a.name,a.menuItem,s).then(n=>n(this.axios,this.basePath))}}const Sr=function(e){return{createMenu:async(a,s={})=>{const n="/api/v1alpha1/menus",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteMenu:async(a,s={})=>{C("deleteMenu","name",a);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getMenu:async(a,s={})=>{C("getMenu","name",a);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listMenu:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/menus",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchMenu:async(a,s,n={})=>{C("patchMenu","name",a);const l="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateMenu:async(a,s,n={})=>{C("updateMenu","name",a);const l="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ce=function(e){const a=Sr(e);return{async createMenu(s,n){var o,c;const l=await a.createMenu(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MenuV1alpha1Api.createMenu"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteMenu(s,n){var o,c;const l=await a.deleteMenu(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MenuV1alpha1Api.deleteMenu"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getMenu(s,n){var o,c;const l=await a.getMenu(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MenuV1alpha1Api.getMenu"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listMenu(s,n,l,r,t,o){var i,d;const c=await a.listMenu(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["MenuV1alpha1Api.listMenu"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchMenu(s,n,l){var c,p;const r=await a.patchMenu(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["MenuV1alpha1Api.patchMenu"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateMenu(s,n,l){var c,p;const r=await a.updateMenu(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["MenuV1alpha1Api.updateMenu"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Dn=function(e,a,s){const n=ce(e);return{createMenu(l={},r){return n.createMenu(l.menu,r).then(t=>t(s,a))},deleteMenu(l,r){return n.deleteMenu(l.name,r).then(t=>t(s,a))},getMenu(l,r){return n.getMenu(l.name,r).then(t=>t(s,a))},listMenu(l={},r){return n.listMenu(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchMenu(l,r){return n.patchMenu(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateMenu(l,r){return n.updateMenu(l.name,l.menu,r).then(t=>t(s,a))}}};class Ar extends I{createMenu(a={},s){return ce(this.configuration).createMenu(a.menu,s).then(n=>n(this.axios,this.basePath))}deleteMenu(a,s){return ce(this.configuration).deleteMenu(a.name,s).then(n=>n(this.axios,this.basePath))}getMenu(a,s){return ce(this.configuration).getMenu(a.name,s).then(n=>n(this.axios,this.basePath))}listMenu(a={},s){return ce(this.configuration).listMenu(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchMenu(a,s){return ce(this.configuration).patchMenu(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateMenu(a,s){return ce(this.configuration).updateMenu(a.name,a.menu,s).then(n=>n(this.axios,this.basePath))}}const br=function(e){return{queryMenuByName:async(a,s={})=>{C("queryMenuByName","name",a);const n="/apis/api.halo.run/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},queryPrimaryMenu:async(a={})=>{const s="/apis/api.halo.run/v1alpha1/menus/-",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}}}},Fa=function(e){const a=br(e);return{async queryMenuByName(s,n){var o,c;const l=await a.queryMenuByName(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MenuV1alpha1PublicApi.queryMenuByName"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async queryPrimaryMenu(s){var t,o;const n=await a.queryPrimaryMenu(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["MenuV1alpha1PublicApi.queryPrimaryMenu"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)}}},Nn=function(e,a,s){const n=Fa(e);return{queryMenuByName(l,r){return n.queryMenuByName(l.name,r).then(t=>t(s,a))},queryPrimaryMenu(l){return n.queryPrimaryMenu(l).then(r=>r(s,a))}}};class Rr extends I{queryMenuByName(a,s){return Fa(this.configuration).queryMenuByName(a.name,s).then(n=>n(this.axios,this.basePath))}queryPrimaryMenu(a){return Fa(this.configuration).queryPrimaryMenu(a).then(s=>s(this.axios,this.basePath))}}const Cr=function(e){return{count:async(a,s={})=>{C("count","counterRequest",a);const n="/apis/api.halo.run/v1alpha1/trackers/counter",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},downvote:async(a,s={})=>{C("downvote","voteRequest",a);const n="/apis/api.halo.run/v1alpha1/trackers/downvote",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},upvote:async(a,s={})=>{C("upvote","voteRequest",a);const n="/apis/api.halo.run/v1alpha1/trackers/upvote",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}}}},ma=function(e){const a=Cr(e);return{async count(s,n){var o,c;const l=await a.count(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MetricsV1alpha1PublicApi.count"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async downvote(s,n){var o,c;const l=await a.downvote(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MetricsV1alpha1PublicApi.downvote"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async upvote(s,n){var o,c;const l=await a.upvote(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["MetricsV1alpha1PublicApi.upvote"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},Hn=function(e,a,s){const n=ma(e);return{count(l,r){return n.count(l.counterRequest,r).then(t=>t(s,a))},downvote(l,r){return n.downvote(l.voteRequest,r).then(t=>t(s,a))},upvote(l,r){return n.upvote(l.voteRequest,r).then(t=>t(s,a))}}};class Tr extends I{count(a,s){return ma(this.configuration).count(a.counterRequest,s).then(n=>n(this.axios,this.basePath))}downvote(a,s){return ma(this.configuration).downvote(a.voteRequest,s).then(n=>n(this.axios,this.basePath))}upvote(a,s){return ma(this.configuration).upvote(a.voteRequest,s).then(n=>n(this.axios,this.basePath))}}const wr=function(e){return{downloadBackups:async(a,s,n={})=>{C("downloadBackups","name",a),C("downloadBackups","filename",s);const l="/apis/console.api.migration.halo.run/v1alpha1/backups/{name}/files/{filename}".replace("{name}",encodeURIComponent(String(a))).replace("{filename}",encodeURIComponent(String(s))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"GET",...t,...n},c={},p={};O(o,e),await u(c,e),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},getBackupFiles:async(a={})=>{const s="/apis/console.api.migration.halo.run/v1alpha1/backup-files",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},restoreBackup:async(a,s,n,l,r={})=>{const t="/apis/console.api.migration.halo.run/v1alpha1/restorations",o=new URL(t,P);let c;e&&(c=e.baseOptions);const p={method:"POST",...c,...r},h={},i={},d=new(e&&e.formDataCtor||FormData);O(p,e),await u(h,e),a!==void 0&&d.append("backupName",a),s!==void 0&&d.append("downloadUrl",s),n!==void 0&&d.append("file",n),l!==void 0&&d.append("filename",l),h["Content-Type"]="multipart/form-data",v(o,i);let R=c&&c.headers?c.headers:{};return p.headers={...h,...R,...r.headers},p.data=d,{url:S(o),options:p}}}},ya=function(e){const a=wr(e);return{async downloadBackups(s,n,l){var c,p;const r=await a.downloadBackups(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["MigrationV1alpha1ConsoleApi.downloadBackups"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async getBackupFiles(s){var t,o;const n=await a.getBackupFiles(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["MigrationV1alpha1ConsoleApi.getBackupFiles"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async restoreBackup(s,n,l,r,t){var h,i;const o=await a.restoreBackup(s,n,l,r,t),c=(e==null?void 0:e.serverIndex)??0,p=(i=(h=y["MigrationV1alpha1ConsoleApi.restoreBackup"])==null?void 0:h[c])==null?void 0:i.url;return(d,R)=>A(o,V,m,e)(d,p||R)}}},Mn=function(e,a,s){const n=ya(e);return{downloadBackups(l,r){return n.downloadBackups(l.name,l.filename,r).then(t=>t(s,a))},getBackupFiles(l){return n.getBackupFiles(l).then(r=>r(s,a))},restoreBackup(l={},r){return n.restoreBackup(l.backupName,l.downloadUrl,l.file,l.filename,r).then(t=>t(s,a))}}};class Ur extends I{downloadBackups(a,s){return ya(this.configuration).downloadBackups(a.name,a.filename,s).then(n=>n(this.axios,this.basePath))}getBackupFiles(a){return ya(this.configuration).getBackupFiles(a).then(s=>s(this.axios,this.basePath))}restoreBackup(a={},s){return ya(this.configuration).restoreBackup(a.backupName,a.downloadUrl,a.file,a.filename,s).then(n=>n(this.axios,this.basePath))}}const Ir=function(e){return{createNotificationTemplate:async(a,s={})=>{const n="/apis/notification.halo.run/v1alpha1/notificationtemplates",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteNotificationTemplate:async(a,s={})=>{C("deleteNotificationTemplate","name",a);const n="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getNotificationTemplate:async(a,s={})=>{C("getNotificationTemplate","name",a);const n="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listNotificationTemplate:async(a,s,n,l,r,t={})=>{const o="/apis/notification.halo.run/v1alpha1/notificationtemplates",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchNotificationTemplate:async(a,s,n={})=>{C("patchNotificationTemplate","name",a);const l="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateNotificationTemplate:async(a,s,n={})=>{C("updateNotificationTemplate","name",a);const l="/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},pe=function(e){const a=Ir(e);return{async createNotificationTemplate(s,n){var o,c;const l=await a.createNotificationTemplate(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotificationTemplateV1alpha1Api.createNotificationTemplate"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteNotificationTemplate(s,n){var o,c;const l=await a.deleteNotificationTemplate(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotificationTemplateV1alpha1Api.deleteNotificationTemplate"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getNotificationTemplate(s,n){var o,c;const l=await a.getNotificationTemplate(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotificationTemplateV1alpha1Api.getNotificationTemplate"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listNotificationTemplate(s,n,l,r,t,o){var i,d;const c=await a.listNotificationTemplate(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["NotificationTemplateV1alpha1Api.listNotificationTemplate"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchNotificationTemplate(s,n,l){var c,p;const r=await a.patchNotificationTemplate(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationTemplateV1alpha1Api.patchNotificationTemplate"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateNotificationTemplate(s,n,l){var c,p;const r=await a.updateNotificationTemplate(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationTemplateV1alpha1Api.updateNotificationTemplate"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Qn=function(e,a,s){const n=pe(e);return{createNotificationTemplate(l={},r){return n.createNotificationTemplate(l.notificationTemplate,r).then(t=>t(s,a))},deleteNotificationTemplate(l,r){return n.deleteNotificationTemplate(l.name,r).then(t=>t(s,a))},getNotificationTemplate(l,r){return n.getNotificationTemplate(l.name,r).then(t=>t(s,a))},listNotificationTemplate(l={},r){return n.listNotificationTemplate(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchNotificationTemplate(l,r){return n.patchNotificationTemplate(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateNotificationTemplate(l,r){return n.updateNotificationTemplate(l.name,l.notificationTemplate,r).then(t=>t(s,a))}}};class Br extends I{createNotificationTemplate(a={},s){return pe(this.configuration).createNotificationTemplate(a.notificationTemplate,s).then(n=>n(this.axios,this.basePath))}deleteNotificationTemplate(a,s){return pe(this.configuration).deleteNotificationTemplate(a.name,s).then(n=>n(this.axios,this.basePath))}getNotificationTemplate(a,s){return pe(this.configuration).getNotificationTemplate(a.name,s).then(n=>n(this.axios,this.basePath))}listNotificationTemplate(a={},s){return pe(this.configuration).listNotificationTemplate(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchNotificationTemplate(a,s){return pe(this.configuration).patchNotificationTemplate(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateNotificationTemplate(a,s){return pe(this.configuration).updateNotificationTemplate(a.name,a.notificationTemplate,s).then(n=>n(this.axios,this.basePath))}}const xr=function(e){return{createNotification:async(a,s={})=>{const n="/apis/notification.halo.run/v1alpha1/notifications",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteNotification:async(a,s={})=>{C("deleteNotification","name",a);const n="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getNotification:async(a,s={})=>{C("getNotification","name",a);const n="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listNotification:async(a,s,n,l,r,t={})=>{const o="/apis/notification.halo.run/v1alpha1/notifications",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchNotification:async(a,s,n={})=>{C("patchNotification","name",a);const l="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateNotification:async(a,s,n={})=>{C("updateNotification","name",a);const l="/apis/notification.halo.run/v1alpha1/notifications/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},he=function(e){const a=xr(e);return{async createNotification(s,n){var o,c;const l=await a.createNotification(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotificationV1alpha1Api.createNotification"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteNotification(s,n){var o,c;const l=await a.deleteNotification(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotificationV1alpha1Api.deleteNotification"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getNotification(s,n){var o,c;const l=await a.getNotification(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotificationV1alpha1Api.getNotification"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listNotification(s,n,l,r,t,o){var i,d;const c=await a.listNotification(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["NotificationV1alpha1Api.listNotification"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchNotification(s,n,l){var c,p;const r=await a.patchNotification(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationV1alpha1Api.patchNotification"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateNotification(s,n,l){var c,p;const r=await a.updateNotification(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationV1alpha1Api.updateNotification"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},kn=function(e,a,s){const n=he(e);return{createNotification(l={},r){return n.createNotification(l.notification,r).then(t=>t(s,a))},deleteNotification(l,r){return n.deleteNotification(l.name,r).then(t=>t(s,a))},getNotification(l,r){return n.getNotification(l.name,r).then(t=>t(s,a))},listNotification(l={},r){return n.listNotification(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchNotification(l,r){return n.patchNotification(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateNotification(l,r){return n.updateNotification(l.name,l.notification,r).then(t=>t(s,a))}}};class Fr extends I{createNotification(a={},s){return he(this.configuration).createNotification(a.notification,s).then(n=>n(this.axios,this.basePath))}deleteNotification(a,s){return he(this.configuration).deleteNotification(a.name,s).then(n=>n(this.axios,this.basePath))}getNotification(a,s){return he(this.configuration).getNotification(a.name,s).then(n=>n(this.axios,this.basePath))}listNotification(a={},s){return he(this.configuration).listNotification(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchNotification(a,s){return he(this.configuration).patchNotification(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateNotification(a,s){return he(this.configuration).updateNotification(a.name,a.notification,s).then(n=>n(this.axios,this.basePath))}}const Er=function(e){return{deleteSpecifiedNotification:async(a,s,n={})=>{C("deleteSpecifiedNotification","username",a),C("deleteSpecifiedNotification","name",s);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}".replace("{username}",encodeURIComponent(String(a))).replace("{name}",encodeURIComponent(String(s))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"DELETE",...t,...n},c={},p={};O(o,e),await u(c,e),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},listUserNotificationPreferences:async(a,s={})=>{C("listUserNotificationPreferences","username",a);const n="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences".replace("{username}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listUserNotifications:async(a,s,n,l,r,t,o={})=>{C("listUserNotifications","username",a);const c="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications".replace("{username}",encodeURIComponent(String(a))),p=new URL(c,P);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},R={};O(i,e),await u(d,e),s!==void 0&&(R.page=s),n!==void 0&&(R.size=n),l&&(R.labelSelector=l),r&&(R.fieldSelector=r),t&&(R.sort=t),v(p,R);let T=h&&h.headers?h.headers:{};return i.headers={...d,...T,...o.headers},{url:S(p),options:i}},markNotificationAsRead:async(a,s,n={})=>{C("markNotificationAsRead","username",a),C("markNotificationAsRead","name",s);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read".replace("{username}",encodeURIComponent(String(a))).replace("{name}",encodeURIComponent(String(s))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},markNotificationsAsRead:async(a,s,n={})=>{C("markNotificationsAsRead","username",a),C("markNotificationsAsRead","markSpecifiedRequest",s);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read".replace("{username}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},saveUserNotificationPreferences:async(a,s,n={})=>{C("saveUserNotificationPreferences","username",a);const l="/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences".replace("{username}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ie=function(e){const a=Er(e);return{async deleteSpecifiedNotification(s,n,l){var c,p;const r=await a.deleteSpecifiedNotification(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationV1alpha1UcApi.deleteSpecifiedNotification"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async listUserNotificationPreferences(s,n){var o,c;const l=await a.listUserNotificationPreferences(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotificationV1alpha1UcApi.listUserNotificationPreferences"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listUserNotifications(s,n,l,r,t,o,c){var d,R;const p=await a.listUserNotifications(s,n,l,r,t,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(R=(d=y["NotificationV1alpha1UcApi.listUserNotifications"])==null?void 0:d[h])==null?void 0:R.url;return(T,U)=>A(p,V,m,e)(T,i||U)},async markNotificationAsRead(s,n,l){var c,p;const r=await a.markNotificationAsRead(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationV1alpha1UcApi.markNotificationAsRead"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async markNotificationsAsRead(s,n,l){var c,p;const r=await a.markNotificationsAsRead(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationV1alpha1UcApi.markNotificationsAsRead"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async saveUserNotificationPreferences(s,n,l){var c,p;const r=await a.saveUserNotificationPreferences(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotificationV1alpha1UcApi.saveUserNotificationPreferences"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},$n=function(e,a,s){const n=ie(e);return{deleteSpecifiedNotification(l,r){return n.deleteSpecifiedNotification(l.username,l.name,r).then(t=>t(s,a))},listUserNotificationPreferences(l,r){return n.listUserNotificationPreferences(l.username,r).then(t=>t(s,a))},listUserNotifications(l,r){return n.listUserNotifications(l.username,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},markNotificationAsRead(l,r){return n.markNotificationAsRead(l.username,l.name,r).then(t=>t(s,a))},markNotificationsAsRead(l,r){return n.markNotificationsAsRead(l.username,l.markSpecifiedRequest,r).then(t=>t(s,a))},saveUserNotificationPreferences(l,r){return n.saveUserNotificationPreferences(l.username,l.reasonTypeNotifierCollectionRequest,r).then(t=>t(s,a))}}};class jr extends I{deleteSpecifiedNotification(a,s){return ie(this.configuration).deleteSpecifiedNotification(a.username,a.name,s).then(n=>n(this.axios,this.basePath))}listUserNotificationPreferences(a,s){return ie(this.configuration).listUserNotificationPreferences(a.username,s).then(n=>n(this.axios,this.basePath))}listUserNotifications(a,s){return ie(this.configuration).listUserNotifications(a.username,a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}markNotificationAsRead(a,s){return ie(this.configuration).markNotificationAsRead(a.username,a.name,s).then(n=>n(this.axios,this.basePath))}markNotificationsAsRead(a,s){return ie(this.configuration).markNotificationsAsRead(a.username,a.markSpecifiedRequest,s).then(n=>n(this.axios,this.basePath))}saveUserNotificationPreferences(a,s){return ie(this.configuration).saveUserNotificationPreferences(a.username,a.reasonTypeNotifierCollectionRequest,s).then(n=>n(this.axios,this.basePath))}}const Lr=function(e){return{createNotifierDescriptor:async(a,s={})=>{const n="/apis/notification.halo.run/v1alpha1/notifierDescriptors",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteNotifierDescriptor:async(a,s={})=>{C("deleteNotifierDescriptor","name",a);const n="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getNotifierDescriptor:async(a,s={})=>{C("getNotifierDescriptor","name",a);const n="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listNotifierDescriptor:async(a,s,n,l,r,t={})=>{const o="/apis/notification.halo.run/v1alpha1/notifierDescriptors",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchNotifierDescriptor:async(a,s,n={})=>{C("patchNotifierDescriptor","name",a);const l="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateNotifierDescriptor:async(a,s,n={})=>{C("updateNotifierDescriptor","name",a);const l="/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},de=function(e){const a=Lr(e);return{async createNotifierDescriptor(s,n){var o,c;const l=await a.createNotifierDescriptor(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotifierDescriptorV1alpha1Api.createNotifierDescriptor"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteNotifierDescriptor(s,n){var o,c;const l=await a.deleteNotifierDescriptor(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotifierDescriptorV1alpha1Api.deleteNotifierDescriptor"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getNotifierDescriptor(s,n){var o,c;const l=await a.getNotifierDescriptor(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotifierDescriptorV1alpha1Api.getNotifierDescriptor"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listNotifierDescriptor(s,n,l,r,t,o){var i,d;const c=await a.listNotifierDescriptor(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["NotifierDescriptorV1alpha1Api.listNotifierDescriptor"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchNotifierDescriptor(s,n,l){var c,p;const r=await a.patchNotifierDescriptor(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotifierDescriptorV1alpha1Api.patchNotifierDescriptor"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateNotifierDescriptor(s,n,l){var c,p;const r=await a.updateNotifierDescriptor(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotifierDescriptorV1alpha1Api.updateNotifierDescriptor"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Gn=function(e,a,s){const n=de(e);return{createNotifierDescriptor(l={},r){return n.createNotifierDescriptor(l.notifierDescriptor,r).then(t=>t(s,a))},deleteNotifierDescriptor(l,r){return n.deleteNotifierDescriptor(l.name,r).then(t=>t(s,a))},getNotifierDescriptor(l,r){return n.getNotifierDescriptor(l.name,r).then(t=>t(s,a))},listNotifierDescriptor(l={},r){return n.listNotifierDescriptor(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchNotifierDescriptor(l,r){return n.patchNotifierDescriptor(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateNotifierDescriptor(l,r){return n.updateNotifierDescriptor(l.name,l.notifierDescriptor,r).then(t=>t(s,a))}}};class Dr extends I{createNotifierDescriptor(a={},s){return de(this.configuration).createNotifierDescriptor(a.notifierDescriptor,s).then(n=>n(this.axios,this.basePath))}deleteNotifierDescriptor(a,s){return de(this.configuration).deleteNotifierDescriptor(a.name,s).then(n=>n(this.axios,this.basePath))}getNotifierDescriptor(a,s){return de(this.configuration).getNotifierDescriptor(a.name,s).then(n=>n(this.axios,this.basePath))}listNotifierDescriptor(a={},s){return de(this.configuration).listNotifierDescriptor(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchNotifierDescriptor(a,s){return de(this.configuration).patchNotifierDescriptor(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateNotifierDescriptor(a,s){return de(this.configuration).updateNotifierDescriptor(a.name,a.notifierDescriptor,s).then(n=>n(this.axios,this.basePath))}}const Nr=function(e){return{fetchSenderConfig:async(a,s={})=>{C("fetchSenderConfig","name",a);const n="/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},saveSenderConfig:async(a,s,n={})=>{C("saveSenderConfig","name",a),C("saveSenderConfig","body",s);const l="/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},verifyEmailSenderConfig:async(a,s={})=>{C("verifyEmailSenderConfig","emailConfigValidationRequest",a);const n="/apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}}}},Pa=function(e){const a=Nr(e);return{async fetchSenderConfig(s,n){var o,c;const l=await a.fetchSenderConfig(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotifierV1alpha1ConsoleApi.fetchSenderConfig"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async saveSenderConfig(s,n,l){var c,p;const r=await a.saveSenderConfig(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotifierV1alpha1ConsoleApi.saveSenderConfig"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async verifyEmailSenderConfig(s,n){var o,c;const l=await a.verifyEmailSenderConfig(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotifierV1alpha1ConsoleApi.verifyEmailSenderConfig"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},zn=function(e,a,s){const n=Pa(e);return{fetchSenderConfig(l,r){return n.fetchSenderConfig(l.name,r).then(t=>t(s,a))},saveSenderConfig(l,r){return n.saveSenderConfig(l.name,l.body,r).then(t=>t(s,a))},verifyEmailSenderConfig(l,r){return n.verifyEmailSenderConfig(l.emailConfigValidationRequest,r).then(t=>t(s,a))}}};class Hr extends I{fetchSenderConfig(a,s){return Pa(this.configuration).fetchSenderConfig(a.name,s).then(n=>n(this.axios,this.basePath))}saveSenderConfig(a,s){return Pa(this.configuration).saveSenderConfig(a.name,a.body,s).then(n=>n(this.axios,this.basePath))}verifyEmailSenderConfig(a,s){return Pa(this.configuration).verifyEmailSenderConfig(a.emailConfigValidationRequest,s).then(n=>n(this.axios,this.basePath))}}const Mr=function(e){return{fetchReceiverConfig:async(a,s={})=>{C("fetchReceiverConfig","name",a);const n="/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},saveReceiverConfig:async(a,s,n={})=>{C("saveReceiverConfig","name",a),C("saveReceiverConfig","body",s);const l="/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ea=function(e){const a=Mr(e);return{async fetchReceiverConfig(s,n){var o,c;const l=await a.fetchReceiverConfig(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["NotifierV1alpha1UcApi.fetchReceiverConfig"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async saveReceiverConfig(s,n,l){var c,p;const r=await a.saveReceiverConfig(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["NotifierV1alpha1UcApi.saveReceiverConfig"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},_n=function(e,a,s){const n=Ea(e);return{fetchReceiverConfig(l,r){return n.fetchReceiverConfig(l.name,r).then(t=>t(s,a))},saveReceiverConfig(l,r){return n.saveReceiverConfig(l.name,l.body,r).then(t=>t(s,a))}}};class Wn extends I{fetchReceiverConfig(a,s){return Ea(this.configuration).fetchReceiverConfig(a.name,s).then(n=>n(this.axios,this.basePath))}saveReceiverConfig(a,s){return Ea(this.configuration).saveReceiverConfig(a.name,a.body,s).then(n=>n(this.axios,this.basePath))}}const Qr=function(e){return{createPersonalAccessToken:async(a,s={})=>{const n="/apis/security.halo.run/v1alpha1/personalaccesstokens",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deletePersonalAccessToken:async(a,s={})=>{C("deletePersonalAccessToken","name",a);const n="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getPersonalAccessToken:async(a,s={})=>{C("getPersonalAccessToken","name",a);const n="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listPersonalAccessToken:async(a,s,n,l,r,t={})=>{const o="/apis/security.halo.run/v1alpha1/personalaccesstokens",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchPersonalAccessToken:async(a,s,n={})=>{C("patchPersonalAccessToken","name",a);const l="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updatePersonalAccessToken:async(a,s,n={})=>{C("updatePersonalAccessToken","name",a);const l="/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ve=function(e){const a=Qr(e);return{async createPersonalAccessToken(s,n){var o,c;const l=await a.createPersonalAccessToken(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1Api.createPersonalAccessToken"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deletePersonalAccessToken(s,n){var o,c;const l=await a.deletePersonalAccessToken(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1Api.deletePersonalAccessToken"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getPersonalAccessToken(s,n){var o,c;const l=await a.getPersonalAccessToken(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1Api.getPersonalAccessToken"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPersonalAccessToken(s,n,l,r,t,o){var i,d;const c=await a.listPersonalAccessToken(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["PersonalAccessTokenV1alpha1Api.listPersonalAccessToken"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchPersonalAccessToken(s,n,l){var c,p;const r=await a.patchPersonalAccessToken(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PersonalAccessTokenV1alpha1Api.patchPersonalAccessToken"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updatePersonalAccessToken(s,n,l){var c,p;const r=await a.updatePersonalAccessToken(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PersonalAccessTokenV1alpha1Api.updatePersonalAccessToken"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Kn=function(e,a,s){const n=Ve(e);return{createPersonalAccessToken(l={},r){return n.createPersonalAccessToken(l.personalAccessToken,r).then(t=>t(s,a))},deletePersonalAccessToken(l,r){return n.deletePersonalAccessToken(l.name,r).then(t=>t(s,a))},getPersonalAccessToken(l,r){return n.getPersonalAccessToken(l.name,r).then(t=>t(s,a))},listPersonalAccessToken(l={},r){return n.listPersonalAccessToken(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchPersonalAccessToken(l,r){return n.patchPersonalAccessToken(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updatePersonalAccessToken(l,r){return n.updatePersonalAccessToken(l.name,l.personalAccessToken,r).then(t=>t(s,a))}}};class kr extends I{createPersonalAccessToken(a={},s){return Ve(this.configuration).createPersonalAccessToken(a.personalAccessToken,s).then(n=>n(this.axios,this.basePath))}deletePersonalAccessToken(a,s){return Ve(this.configuration).deletePersonalAccessToken(a.name,s).then(n=>n(this.axios,this.basePath))}getPersonalAccessToken(a,s){return Ve(this.configuration).getPersonalAccessToken(a.name,s).then(n=>n(this.axios,this.basePath))}listPersonalAccessToken(a={},s){return Ve(this.configuration).listPersonalAccessToken(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchPersonalAccessToken(a,s){return Ve(this.configuration).patchPersonalAccessToken(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updatePersonalAccessToken(a,s){return Ve(this.configuration).updatePersonalAccessToken(a.name,a.personalAccessToken,s).then(n=>n(this.axios,this.basePath))}}const $r=function(e){return{deletePat:async(a,s={})=>{C("deletePat","name",a);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},generatePat:async(a,s={})=>{C("generatePat","personalAccessToken",a);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},obtainPat:async(a,s={})=>{C("obtainPat","name",a);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},obtainPats:async(a={})=>{const s="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},restorePat:async(a,s={})=>{C("restorePat","name",a);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/restoration".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},revokePat:async(a,s={})=>{C("revokePat","name",a);const n="/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/revocation".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}}}},me=function(e){const a=$r(e);return{async deletePat(s,n){var o,c;const l=await a.deletePat(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1UcApi.deletePat"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async generatePat(s,n){var o,c;const l=await a.generatePat(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1UcApi.generatePat"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async obtainPat(s,n){var o,c;const l=await a.obtainPat(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1UcApi.obtainPat"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async obtainPats(s){var t,o;const n=await a.obtainPats(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["PersonalAccessTokenV1alpha1UcApi.obtainPats"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async restorePat(s,n){var o,c;const l=await a.restorePat(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1UcApi.restorePat"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async revokePat(s,n){var o,c;const l=await a.revokePat(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PersonalAccessTokenV1alpha1UcApi.revokePat"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},Jn=function(e,a,s){const n=me(e);return{deletePat(l,r){return n.deletePat(l.name,r).then(t=>t(s,a))},generatePat(l,r){return n.generatePat(l.personalAccessToken,r).then(t=>t(s,a))},obtainPat(l,r){return n.obtainPat(l.name,r).then(t=>t(s,a))},obtainPats(l){return n.obtainPats(l).then(r=>r(s,a))},restorePat(l,r){return n.restorePat(l.name,r).then(t=>t(s,a))},revokePat(l,r){return n.revokePat(l.name,r).then(t=>t(s,a))}}};class Gr extends I{deletePat(a,s){return me(this.configuration).deletePat(a.name,s).then(n=>n(this.axios,this.basePath))}generatePat(a,s){return me(this.configuration).generatePat(a.personalAccessToken,s).then(n=>n(this.axios,this.basePath))}obtainPat(a,s){return me(this.configuration).obtainPat(a.name,s).then(n=>n(this.axios,this.basePath))}obtainPats(a){return me(this.configuration).obtainPats(a).then(s=>s(this.axios,this.basePath))}restorePat(a,s){return me(this.configuration).restorePat(a.name,s).then(n=>n(this.axios,this.basePath))}revokePat(a,s){return me(this.configuration).revokePat(a.name,s).then(n=>n(this.axios,this.basePath))}}const zr=function(e){return{createPlugin:async(a,s={})=>{const n="/apis/plugin.halo.run/v1alpha1/plugins",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deletePlugin:async(a,s={})=>{C("deletePlugin","name",a);const n="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getPlugin:async(a,s={})=>{C("getPlugin","name",a);const n="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listPlugin:async(a,s,n,l,r,t={})=>{const o="/apis/plugin.halo.run/v1alpha1/plugins",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchPlugin:async(a,s,n={})=>{C("patchPlugin","name",a);const l="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updatePlugin:async(a,s,n={})=>{C("updatePlugin","name",a);const l="/apis/plugin.halo.run/v1alpha1/plugins/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ye=function(e){const a=zr(e);return{async createPlugin(s,n){var o,c;const l=await a.createPlugin(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1Api.createPlugin"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deletePlugin(s,n){var o,c;const l=await a.deletePlugin(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1Api.deletePlugin"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getPlugin(s,n){var o,c;const l=await a.getPlugin(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1Api.getPlugin"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPlugin(s,n,l,r,t,o){var i,d;const c=await a.listPlugin(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["PluginV1alpha1Api.listPlugin"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchPlugin(s,n,l){var c,p;const r=await a.patchPlugin(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PluginV1alpha1Api.patchPlugin"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updatePlugin(s,n,l){var c,p;const r=await a.updatePlugin(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PluginV1alpha1Api.updatePlugin"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Xn=function(e,a,s){const n=ye(e);return{createPlugin(l={},r){return n.createPlugin(l.plugin,r).then(t=>t(s,a))},deletePlugin(l,r){return n.deletePlugin(l.name,r).then(t=>t(s,a))},getPlugin(l,r){return n.getPlugin(l.name,r).then(t=>t(s,a))},listPlugin(l={},r){return n.listPlugin(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchPlugin(l,r){return n.patchPlugin(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updatePlugin(l,r){return n.updatePlugin(l.name,l.plugin,r).then(t=>t(s,a))}}};class _r extends I{createPlugin(a={},s){return ye(this.configuration).createPlugin(a.plugin,s).then(n=>n(this.axios,this.basePath))}deletePlugin(a,s){return ye(this.configuration).deletePlugin(a.name,s).then(n=>n(this.axios,this.basePath))}getPlugin(a,s){return ye(this.configuration).getPlugin(a.name,s).then(n=>n(this.axios,this.basePath))}listPlugin(a={},s){return ye(this.configuration).listPlugin(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchPlugin(a,s){return ye(this.configuration).patchPlugin(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updatePlugin(a,s){return ye(this.configuration).updatePlugin(a.name,a.plugin,s).then(n=>n(this.axios,this.basePath))}}const Wr=function(e){return{changePluginRunningState:async(a,s,n={})=>{C("changePluginRunningState","name",a),C("changePluginRunningState","pluginRunningStateRequest",s);const l="/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},fetchCssBundle:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},fetchJsBundle:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},fetchPluginConfig:async(a,s={})=>{C("fetchPluginConfig","name",a);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/config".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},fetchPluginSetting:async(a,s={})=>{C("fetchPluginSetting","name",a);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},installPlugin:async(a,s,n,l={})=>{const r="/apis/api.console.halo.run/v1alpha1/plugins/install",t=new URL(r,P);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...l},p={},h={},i=new(e&&e.formDataCtor||FormData);O(c,e),await u(p,e),a!==void 0&&i.append("file",a),s!==void 0&&i.append("presetName",s),n!==void 0&&i.append("source",n),p["Content-Type"]="multipart/form-data",v(t,h);let d=o&&o.headers?o.headers:{};return c.headers={...p,...d,...l.headers},c.data=i,{url:S(t),options:c}},installPluginFromUri:async(a,s={})=>{C("installPluginFromUri","installFromUriRequest",a);const n="/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},listPluginPresets:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/plugin-presets",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},listPlugins:async(a,s,n,l,r,t,o,c={})=>{const p="/apis/api.console.halo.run/v1alpha1/plugins",h=new URL(p,P);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...c},R={},T={};O(d,e),await u(R,e),a!==void 0&&(T.page=a),s!==void 0&&(T.size=s),n&&(T.labelSelector=n),l&&(T.fieldSelector=l),r&&(T.sort=r),t!==void 0&&(T.keyword=t),o!==void 0&&(T.enabled=o),v(h,T);let U=i&&i.headers?i.headers:{};return d.headers={...R,...U,...c.headers},{url:S(h),options:d}},reloadPlugin:async(a,s={})=>{C("reloadPlugin","name",a);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},resetPluginConfig:async(a,s={})=>{C("resetPluginConfig","name",a);const n="/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},updatePluginConfig:async(a,s,n={})=>{C("updatePluginConfig","name",a),C("updatePluginConfig","configMap",s);const l="/apis/api.console.halo.run/v1alpha1/plugins/{name}/config".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},upgradePlugin:async(a,s,n,l,r={})=>{C("upgradePlugin","name",a);const t="/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade".replace("{name}",encodeURIComponent(String(a))),o=new URL(t,P);let c;e&&(c=e.baseOptions);const p={method:"POST",...c,...r},h={},i={},d=new(e&&e.formDataCtor||FormData);O(p,e),await u(h,e),s!==void 0&&d.append("file",s),n!==void 0&&d.append("presetName",n),l!==void 0&&d.append("source",l),h["Content-Type"]="multipart/form-data",v(o,i);let R=c&&c.headers?c.headers:{};return p.headers={...h,...R,...r.headers},p.data=d,{url:S(o),options:p}},upgradePluginFromUri:async(a,s,n={})=>{C("upgradePluginFromUri","name",a),C("upgradePluginFromUri","upgradeFromUriRequest",s);const l="/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade-from-uri".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},N=function(e){const a=Wr(e);return{async changePluginRunningState(s,n,l){var c,p;const r=await a.changePluginRunningState(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PluginV1alpha1ConsoleApi.changePluginRunningState"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async fetchCssBundle(s){var t,o;const n=await a.fetchCssBundle(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["PluginV1alpha1ConsoleApi.fetchCssBundle"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async fetchJsBundle(s){var t,o;const n=await a.fetchJsBundle(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["PluginV1alpha1ConsoleApi.fetchJsBundle"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async fetchPluginConfig(s,n){var o,c;const l=await a.fetchPluginConfig(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1ConsoleApi.fetchPluginConfig"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async fetchPluginSetting(s,n){var o,c;const l=await a.fetchPluginSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1ConsoleApi.fetchPluginSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async installPlugin(s,n,l,r){var p,h;const t=await a.installPlugin(s,n,l,r),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=y["PluginV1alpha1ConsoleApi.installPlugin"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>A(t,V,m,e)(i,c||d)},async installPluginFromUri(s,n){var o,c;const l=await a.installPluginFromUri(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1ConsoleApi.installPluginFromUri"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPluginPresets(s){var t,o;const n=await a.listPluginPresets(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["PluginV1alpha1ConsoleApi.listPluginPresets"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async listPlugins(s,n,l,r,t,o,c,p){var R,T;const h=await a.listPlugins(s,n,l,r,t,o,c,p),i=(e==null?void 0:e.serverIndex)??0,d=(T=(R=y["PluginV1alpha1ConsoleApi.listPlugins"])==null?void 0:R[i])==null?void 0:T.url;return(U,B)=>A(h,V,m,e)(U,d||B)},async reloadPlugin(s,n){var o,c;const l=await a.reloadPlugin(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1ConsoleApi.reloadPlugin"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async resetPluginConfig(s,n){var o,c;const l=await a.resetPluginConfig(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1ConsoleApi.resetPluginConfig"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async updatePluginConfig(s,n,l){var c,p;const r=await a.updatePluginConfig(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PluginV1alpha1ConsoleApi.updatePluginConfig"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async upgradePlugin(s,n,l,r,t){var h,i;const o=await a.upgradePlugin(s,n,l,r,t),c=(e==null?void 0:e.serverIndex)??0,p=(i=(h=y["PluginV1alpha1ConsoleApi.upgradePlugin"])==null?void 0:h[c])==null?void 0:i.url;return(d,R)=>A(o,V,m,e)(d,p||R)},async upgradePluginFromUri(s,n,l){var c,p;const r=await a.upgradePluginFromUri(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PluginV1alpha1ConsoleApi.upgradePluginFromUri"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Yn=function(e,a,s){const n=N(e);return{changePluginRunningState(l,r){return n.changePluginRunningState(l.name,l.pluginRunningStateRequest,r).then(t=>t(s,a))},fetchCssBundle(l){return n.fetchCssBundle(l).then(r=>r(s,a))},fetchJsBundle(l){return n.fetchJsBundle(l).then(r=>r(s,a))},fetchPluginConfig(l,r){return n.fetchPluginConfig(l.name,r).then(t=>t(s,a))},fetchPluginSetting(l,r){return n.fetchPluginSetting(l.name,r).then(t=>t(s,a))},installPlugin(l={},r){return n.installPlugin(l.file,l.presetName,l.source,r).then(t=>t(s,a))},installPluginFromUri(l,r){return n.installPluginFromUri(l.installFromUriRequest,r).then(t=>t(s,a))},listPluginPresets(l){return n.listPluginPresets(l).then(r=>r(s,a))},listPlugins(l={},r){return n.listPlugins(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,l.enabled,r).then(t=>t(s,a))},reloadPlugin(l,r){return n.reloadPlugin(l.name,r).then(t=>t(s,a))},resetPluginConfig(l,r){return n.resetPluginConfig(l.name,r).then(t=>t(s,a))},updatePluginConfig(l,r){return n.updatePluginConfig(l.name,l.configMap,r).then(t=>t(s,a))},upgradePlugin(l,r){return n.upgradePlugin(l.name,l.file,l.presetName,l.source,r).then(t=>t(s,a))},upgradePluginFromUri(l,r){return n.upgradePluginFromUri(l.name,l.upgradeFromUriRequest,r).then(t=>t(s,a))}}};class Kr extends I{changePluginRunningState(a,s){return N(this.configuration).changePluginRunningState(a.name,a.pluginRunningStateRequest,s).then(n=>n(this.axios,this.basePath))}fetchCssBundle(a){return N(this.configuration).fetchCssBundle(a).then(s=>s(this.axios,this.basePath))}fetchJsBundle(a){return N(this.configuration).fetchJsBundle(a).then(s=>s(this.axios,this.basePath))}fetchPluginConfig(a,s){return N(this.configuration).fetchPluginConfig(a.name,s).then(n=>n(this.axios,this.basePath))}fetchPluginSetting(a,s){return N(this.configuration).fetchPluginSetting(a.name,s).then(n=>n(this.axios,this.basePath))}installPlugin(a={},s){return N(this.configuration).installPlugin(a.file,a.presetName,a.source,s).then(n=>n(this.axios,this.basePath))}installPluginFromUri(a,s){return N(this.configuration).installPluginFromUri(a.installFromUriRequest,s).then(n=>n(this.axios,this.basePath))}listPluginPresets(a){return N(this.configuration).listPluginPresets(a).then(s=>s(this.axios,this.basePath))}listPlugins(a={},s){return N(this.configuration).listPlugins(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.keyword,a.enabled,s).then(n=>n(this.axios,this.basePath))}reloadPlugin(a,s){return N(this.configuration).reloadPlugin(a.name,s).then(n=>n(this.axios,this.basePath))}resetPluginConfig(a,s){return N(this.configuration).resetPluginConfig(a.name,s).then(n=>n(this.axios,this.basePath))}updatePluginConfig(a,s){return N(this.configuration).updatePluginConfig(a.name,a.configMap,s).then(n=>n(this.axios,this.basePath))}upgradePlugin(a,s){return N(this.configuration).upgradePlugin(a.name,a.file,a.presetName,a.source,s).then(n=>n(this.axios,this.basePath))}upgradePluginFromUri(a,s){return N(this.configuration).upgradePluginFromUri(a.name,a.upgradeFromUriRequest,s).then(n=>n(this.axios,this.basePath))}}const Zn={File:"FILE",Preset:"PRESET",Url:"URL"},qn={File:"FILE",Preset:"PRESET",Url:"URL"},Jr=function(e){return{queryPluginAvailableByName:async(a,s={})=>{C("queryPluginAvailableByName","name",a);const n="/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}}}},Ya=function(e){const a=Jr(e);return{async queryPluginAvailableByName(s,n){var o,c;const l=await a.queryPluginAvailableByName(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PluginV1alpha1PublicApi.queryPluginAvailableByName"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},fn=function(e,a,s){const n=Ya(e);return{queryPluginAvailableByName(l,r){return n.queryPluginAvailableByName(l.name,r).then(t=>t(s,a))}}};class gn extends I{queryPluginAvailableByName(a,s){return Ya(this.configuration).queryPluginAvailableByName(a.name,s).then(n=>n(this.axios,this.basePath))}}const Xr=function(e){return{createPolicyTemplate:async(a,s={})=>{const n="/apis/storage.halo.run/v1alpha1/policytemplates",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deletePolicyTemplate:async(a,s={})=>{C("deletePolicyTemplate","name",a);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getPolicyTemplate:async(a,s={})=>{C("getPolicyTemplate","name",a);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listPolicyTemplate:async(a,s,n,l,r,t={})=>{const o="/apis/storage.halo.run/v1alpha1/policytemplates",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchPolicyTemplate:async(a,s,n={})=>{C("patchPolicyTemplate","name",a);const l="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updatePolicyTemplate:async(a,s,n={})=>{C("updatePolicyTemplate","name",a);const l="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Pe=function(e){const a=Xr(e);return{async createPolicyTemplate(s,n){var o,c;const l=await a.createPolicyTemplate(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PolicyTemplateV1alpha1Api.createPolicyTemplate"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deletePolicyTemplate(s,n){var o,c;const l=await a.deletePolicyTemplate(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PolicyTemplateV1alpha1Api.deletePolicyTemplate"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getPolicyTemplate(s,n){var o,c;const l=await a.getPolicyTemplate(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PolicyTemplateV1alpha1Api.getPolicyTemplate"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPolicyTemplate(s,n,l,r,t,o){var i,d;const c=await a.listPolicyTemplate(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["PolicyTemplateV1alpha1Api.listPolicyTemplate"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchPolicyTemplate(s,n,l){var c,p;const r=await a.patchPolicyTemplate(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PolicyTemplateV1alpha1Api.patchPolicyTemplate"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updatePolicyTemplate(s,n,l){var c,p;const r=await a.updatePolicyTemplate(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PolicyTemplateV1alpha1Api.updatePolicyTemplate"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},eo=function(e,a,s){const n=Pe(e);return{createPolicyTemplate(l={},r){return n.createPolicyTemplate(l.policyTemplate,r).then(t=>t(s,a))},deletePolicyTemplate(l,r){return n.deletePolicyTemplate(l.name,r).then(t=>t(s,a))},getPolicyTemplate(l,r){return n.getPolicyTemplate(l.name,r).then(t=>t(s,a))},listPolicyTemplate(l={},r){return n.listPolicyTemplate(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchPolicyTemplate(l,r){return n.patchPolicyTemplate(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updatePolicyTemplate(l,r){return n.updatePolicyTemplate(l.name,l.policyTemplate,r).then(t=>t(s,a))}}};class Yr extends I{createPolicyTemplate(a={},s){return Pe(this.configuration).createPolicyTemplate(a.policyTemplate,s).then(n=>n(this.axios,this.basePath))}deletePolicyTemplate(a,s){return Pe(this.configuration).deletePolicyTemplate(a.name,s).then(n=>n(this.axios,this.basePath))}getPolicyTemplate(a,s){return Pe(this.configuration).getPolicyTemplate(a.name,s).then(n=>n(this.axios,this.basePath))}listPolicyTemplate(a={},s){return Pe(this.configuration).listPolicyTemplate(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchPolicyTemplate(a,s){return Pe(this.configuration).patchPolicyTemplate(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updatePolicyTemplate(a,s){return Pe(this.configuration).updatePolicyTemplate(a.name,a.policyTemplate,s).then(n=>n(this.axios,this.basePath))}}const Zr=function(e){return{createPolicy:async(a,s={})=>{const n="/apis/storage.halo.run/v1alpha1/policies",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deletePolicy:async(a,s={})=>{C("deletePolicy","name",a);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getPolicy:async(a,s={})=>{C("getPolicy","name",a);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listPolicy:async(a,s,n,l,r,t={})=>{const o="/apis/storage.halo.run/v1alpha1/policies",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchPolicy:async(a,s,n={})=>{C("patchPolicy","name",a);const l="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updatePolicy:async(a,s,n={})=>{C("updatePolicy","name",a);const l="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Oe=function(e){const a=Zr(e);return{async createPolicy(s,n){var o,c;const l=await a.createPolicy(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PolicyV1alpha1Api.createPolicy"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deletePolicy(s,n){var o,c;const l=await a.deletePolicy(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PolicyV1alpha1Api.deletePolicy"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getPolicy(s,n){var o,c;const l=await a.getPolicy(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PolicyV1alpha1Api.getPolicy"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPolicy(s,n,l,r,t,o){var i,d;const c=await a.listPolicy(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["PolicyV1alpha1Api.listPolicy"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchPolicy(s,n,l){var c,p;const r=await a.patchPolicy(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PolicyV1alpha1Api.patchPolicy"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updatePolicy(s,n,l){var c,p;const r=await a.updatePolicy(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PolicyV1alpha1Api.updatePolicy"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},ao=function(e,a,s){const n=Oe(e);return{createPolicy(l={},r){return n.createPolicy(l.policy,r).then(t=>t(s,a))},deletePolicy(l,r){return n.deletePolicy(l.name,r).then(t=>t(s,a))},getPolicy(l,r){return n.getPolicy(l.name,r).then(t=>t(s,a))},listPolicy(l={},r){return n.listPolicy(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchPolicy(l,r){return n.patchPolicy(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updatePolicy(l,r){return n.updatePolicy(l.name,l.policy,r).then(t=>t(s,a))}}};class qr extends I{createPolicy(a={},s){return Oe(this.configuration).createPolicy(a.policy,s).then(n=>n(this.axios,this.basePath))}deletePolicy(a,s){return Oe(this.configuration).deletePolicy(a.name,s).then(n=>n(this.axios,this.basePath))}getPolicy(a,s){return Oe(this.configuration).getPolicy(a.name,s).then(n=>n(this.axios,this.basePath))}listPolicy(a={},s){return Oe(this.configuration).listPolicy(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchPolicy(a,s){return Oe(this.configuration).patchPolicy(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updatePolicy(a,s){return Oe(this.configuration).updatePolicy(a.name,a.policy,s).then(n=>n(this.axios,this.basePath))}}const fr=function(e){return{createPost:async(a,s={})=>{const n="/apis/content.halo.run/v1alpha1/posts",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deletePost:async(a,s={})=>{C("deletePost","name",a);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getPost:async(a,s={})=>{C("getPost","name",a);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listPost:async(a,s,n,l,r,t={})=>{const o="/apis/content.halo.run/v1alpha1/posts",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchPost:async(a,s,n={})=>{C("patchPost","name",a);const l="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updatePost:async(a,s,n={})=>{C("updatePost","name",a);const l="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ue=function(e){const a=fr(e);return{async createPost(s,n){var o,c;const l=await a.createPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1Api.createPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deletePost(s,n){var o,c;const l=await a.deletePost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1Api.deletePost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getPost(s,n){var o,c;const l=await a.getPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1Api.getPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPost(s,n,l,r,t,o){var i,d;const c=await a.listPost(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["PostV1alpha1Api.listPost"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchPost(s,n,l){var c,p;const r=await a.patchPost(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1Api.patchPost"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updatePost(s,n,l){var c,p;const r=await a.updatePost(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1Api.updatePost"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},to=function(e,a,s){const n=ue(e);return{createPost(l={},r){return n.createPost(l.post,r).then(t=>t(s,a))},deletePost(l,r){return n.deletePost(l.name,r).then(t=>t(s,a))},getPost(l,r){return n.getPost(l.name,r).then(t=>t(s,a))},listPost(l={},r){return n.listPost(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchPost(l,r){return n.patchPost(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updatePost(l,r){return n.updatePost(l.name,l.post,r).then(t=>t(s,a))}}};class gr extends I{createPost(a={},s){return ue(this.configuration).createPost(a.post,s).then(n=>n(this.axios,this.basePath))}deletePost(a,s){return ue(this.configuration).deletePost(a.name,s).then(n=>n(this.axios,this.basePath))}getPost(a,s){return ue(this.configuration).getPost(a.name,s).then(n=>n(this.axios,this.basePath))}listPost(a={},s){return ue(this.configuration).listPost(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchPost(a,s){return ue(this.configuration).patchPost(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updatePost(a,s){return ue(this.configuration).updatePost(a.name,a.post,s).then(n=>n(this.axios,this.basePath))}}const es=function(e){return{deletePostContent:async(a,s,n={})=>{C("deletePostContent","name",a),C("deletePostContent","snapshotName",s);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"DELETE",...t,...n},c={},p={};O(o,e),await u(c,e),s!==void 0&&(p.snapshotName=s),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},draftPost:async(a,s={})=>{C("draftPost","postRequest",a);const n="/apis/api.console.halo.run/v1alpha1/posts",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},fetchPostContent:async(a,s,n={})=>{C("fetchPostContent","name",a),C("fetchPostContent","snapshotName",s);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"GET",...t,...n},c={},p={};O(o,e),await u(c,e),s!==void 0&&(p.snapshotName=s),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},fetchPostHeadContent:async(a,s={})=>{C("fetchPostHeadContent","name",a);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},fetchPostReleaseContent:async(a,s={})=>{C("fetchPostReleaseContent","name",a);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listPostSnapshots:async(a,s={})=>{C("listPostSnapshots","name",a);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/snapshot".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listPosts:async(a,s,n,l,r,t,o,c,p={})=>{const h="/apis/api.console.halo.run/v1alpha1/posts",i=new URL(h,P);let d;e&&(d=e.baseOptions);const R={method:"GET",...d,...p},T={},U={};O(R,e),await u(T,e),a!==void 0&&(U.page=a),s!==void 0&&(U.size=s),n&&(U.labelSelector=n),l&&(U.fieldSelector=l),r&&(U.sort=r),t!==void 0&&(U.publishPhase=t),o!==void 0&&(U.keyword=o),c!==void 0&&(U.categoryWithChildren=c),v(i,U);let B=d&&d.headers?d.headers:{};return R.headers={...T,...B,...p.headers},{url:S(i),options:R}},publishPost:async(a,s,n,l={})=>{C("publishPost","name",a);const r="/apis/api.console.halo.run/v1alpha1/posts/{name}/publish".replace("{name}",encodeURIComponent(String(a))),t=new URL(r,P);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...l},p={},h={};O(c,e),await u(p,e),s!==void 0&&(h.headSnapshot=s),n!==void 0&&(h.async=n),v(t,h);let i=o&&o.headers?o.headers:{};return c.headers={...p,...i,...l.headers},{url:S(t),options:c}},recyclePost:async(a,s={})=>{C("recyclePost","name",a);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},revertToSpecifiedSnapshotForPost:async(a,s,n={})=>{C("revertToSpecifiedSnapshotForPost","name",a),C("revertToSpecifiedSnapshotForPost","revertSnapshotForPostParam",s);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/revert-content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},unpublishPost:async(a,s={})=>{C("unpublishPost","name",a);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},updateDraftPost:async(a,s,n={})=>{C("updateDraftPost","name",a),C("updateDraftPost","postRequest",s);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updatePostContent:async(a,s,n={})=>{C("updatePostContent","name",a),C("updatePostContent","content",s);const l="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},M=function(e){const a=es(e);return{async deletePostContent(s,n,l){var c,p;const r=await a.deletePostContent(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1ConsoleApi.deletePostContent"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async draftPost(s,n){var o,c;const l=await a.draftPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1ConsoleApi.draftPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async fetchPostContent(s,n,l){var c,p;const r=await a.fetchPostContent(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1ConsoleApi.fetchPostContent"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async fetchPostHeadContent(s,n){var o,c;const l=await a.fetchPostHeadContent(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1ConsoleApi.fetchPostHeadContent"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async fetchPostReleaseContent(s,n){var o,c;const l=await a.fetchPostReleaseContent(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1ConsoleApi.fetchPostReleaseContent"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPostSnapshots(s,n){var o,c;const l=await a.listPostSnapshots(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1ConsoleApi.listPostSnapshots"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listPosts(s,n,l,r,t,o,c,p,h){var T,U;const i=await a.listPosts(s,n,l,r,t,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,R=(U=(T=y["PostV1alpha1ConsoleApi.listPosts"])==null?void 0:T[d])==null?void 0:U.url;return(B,E)=>A(i,V,m,e)(B,R||E)},async publishPost(s,n,l,r){var p,h;const t=await a.publishPost(s,n,l,r),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=y["PostV1alpha1ConsoleApi.publishPost"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>A(t,V,m,e)(i,c||d)},async recyclePost(s,n){var o,c;const l=await a.recyclePost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1ConsoleApi.recyclePost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async revertToSpecifiedSnapshotForPost(s,n,l){var c,p;const r=await a.revertToSpecifiedSnapshotForPost(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1ConsoleApi.revertToSpecifiedSnapshotForPost"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async unpublishPost(s,n){var o,c;const l=await a.unpublishPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1ConsoleApi.unpublishPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async updateDraftPost(s,n,l){var c,p;const r=await a.updateDraftPost(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1ConsoleApi.updateDraftPost"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updatePostContent(s,n,l){var c,p;const r=await a.updatePostContent(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1ConsoleApi.updatePostContent"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},ro=function(e,a,s){const n=M(e);return{deletePostContent(l,r){return n.deletePostContent(l.name,l.snapshotName,r).then(t=>t(s,a))},draftPost(l,r){return n.draftPost(l.postRequest,r).then(t=>t(s,a))},fetchPostContent(l,r){return n.fetchPostContent(l.name,l.snapshotName,r).then(t=>t(s,a))},fetchPostHeadContent(l,r){return n.fetchPostHeadContent(l.name,r).then(t=>t(s,a))},fetchPostReleaseContent(l,r){return n.fetchPostReleaseContent(l.name,r).then(t=>t(s,a))},listPostSnapshots(l,r){return n.listPostSnapshots(l.name,r).then(t=>t(s,a))},listPosts(l={},r){return n.listPosts(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.publishPhase,l.keyword,l.categoryWithChildren,r).then(t=>t(s,a))},publishPost(l,r){return n.publishPost(l.name,l.headSnapshot,l.async,r).then(t=>t(s,a))},recyclePost(l,r){return n.recyclePost(l.name,r).then(t=>t(s,a))},revertToSpecifiedSnapshotForPost(l,r){return n.revertToSpecifiedSnapshotForPost(l.name,l.revertSnapshotForPostParam,r).then(t=>t(s,a))},unpublishPost(l,r){return n.unpublishPost(l.name,r).then(t=>t(s,a))},updateDraftPost(l,r){return n.updateDraftPost(l.name,l.postRequest,r).then(t=>t(s,a))},updatePostContent(l,r){return n.updatePostContent(l.name,l.content,r).then(t=>t(s,a))}}};class as extends I{deletePostContent(a,s){return M(this.configuration).deletePostContent(a.name,a.snapshotName,s).then(n=>n(this.axios,this.basePath))}draftPost(a,s){return M(this.configuration).draftPost(a.postRequest,s).then(n=>n(this.axios,this.basePath))}fetchPostContent(a,s){return M(this.configuration).fetchPostContent(a.name,a.snapshotName,s).then(n=>n(this.axios,this.basePath))}fetchPostHeadContent(a,s){return M(this.configuration).fetchPostHeadContent(a.name,s).then(n=>n(this.axios,this.basePath))}fetchPostReleaseContent(a,s){return M(this.configuration).fetchPostReleaseContent(a.name,s).then(n=>n(this.axios,this.basePath))}listPostSnapshots(a,s){return M(this.configuration).listPostSnapshots(a.name,s).then(n=>n(this.axios,this.basePath))}listPosts(a={},s){return M(this.configuration).listPosts(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.publishPhase,a.keyword,a.categoryWithChildren,s).then(n=>n(this.axios,this.basePath))}publishPost(a,s){return M(this.configuration).publishPost(a.name,a.headSnapshot,a.async,s).then(n=>n(this.axios,this.basePath))}recyclePost(a,s){return M(this.configuration).recyclePost(a.name,s).then(n=>n(this.axios,this.basePath))}revertToSpecifiedSnapshotForPost(a,s){return M(this.configuration).revertToSpecifiedSnapshotForPost(a.name,a.revertSnapshotForPostParam,s).then(n=>n(this.axios,this.basePath))}unpublishPost(a,s){return M(this.configuration).unpublishPost(a.name,s).then(n=>n(this.axios,this.basePath))}updateDraftPost(a,s){return M(this.configuration).updateDraftPost(a.name,a.postRequest,s).then(n=>n(this.axios,this.basePath))}updatePostContent(a,s){return M(this.configuration).updatePostContent(a.name,a.content,s).then(n=>n(this.axios,this.basePath))}}const so={Draft:"DRAFT",PendingApproval:"PENDING_APPROVAL",Published:"PUBLISHED",Failed:"FAILED"},ts=function(e){return{queryPostByName:async(a,s={})=>{C("queryPostByName","name",a);const n="/apis/api.content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},queryPostNavigationByName:async(a,s={})=>{C("queryPostNavigationByName","name",a);const n="/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},queryPosts:async(a,s,n,l,r,t={})=>{const o="/apis/api.content.halo.run/v1alpha1/posts",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}}}},Oa=function(e){const a=ts(e);return{async queryPostByName(s,n){var o,c;const l=await a.queryPostByName(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1PublicApi.queryPostByName"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async queryPostNavigationByName(s,n){var o,c;const l=await a.queryPostNavigationByName(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1PublicApi.queryPostNavigationByName"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async queryPosts(s,n,l,r,t,o){var i,d;const c=await a.queryPosts(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["PostV1alpha1PublicApi.queryPosts"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)}}},lo=function(e,a,s){const n=Oa(e);return{queryPostByName(l,r){return n.queryPostByName(l.name,r).then(t=>t(s,a))},queryPostNavigationByName(l,r){return n.queryPostNavigationByName(l.name,r).then(t=>t(s,a))},queryPosts(l={},r){return n.queryPosts(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))}}};class rs extends I{queryPostByName(a,s){return Oa(this.configuration).queryPostByName(a.name,s).then(n=>n(this.axios,this.basePath))}queryPostNavigationByName(a,s){return Oa(this.configuration).queryPostNavigationByName(a.name,s).then(n=>n(this.axios,this.basePath))}queryPosts(a={},s){return Oa(this.configuration).queryPosts(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}}const ss=function(e){return{createMyPost:async(a,s={})=>{const n="/apis/uc.api.content.halo.run/v1alpha1/posts",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},getMyPost:async(a,s={})=>{C("getMyPost","name",a);const n="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getMyPostDraft:async(a,s,n={})=>{C("getMyPostDraft","name",a);const l="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"GET",...t,...n},c={},p={};O(o,e),await u(c,e),s!==void 0&&(p.patched=s),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},listMyPosts:async(a,s,n,l,r,t,o,c,p={})=>{const h="/apis/uc.api.content.halo.run/v1alpha1/posts",i=new URL(h,P);let d;e&&(d=e.baseOptions);const R={method:"GET",...d,...p},T={},U={};O(R,e),await u(T,e),a!==void 0&&(U.page=a),s!==void 0&&(U.size=s),n&&(U.labelSelector=n),l&&(U.fieldSelector=l),r&&(U.sort=r),t!==void 0&&(U.publishPhase=t),o!==void 0&&(U.keyword=o),c!==void 0&&(U.categoryWithChildren=c),v(i,U);let B=d&&d.headers?d.headers:{};return R.headers={...T,...B,...p.headers},{url:S(i),options:R}},publishMyPost:async(a,s={})=>{C("publishMyPost","name",a);const n="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},unpublishMyPost:async(a,s={})=>{C("unpublishMyPost","name",a);const n="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},updateMyPost:async(a,s,n={})=>{C("updateMyPost","name",a);const l="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateMyPostDraft:async(a,s,n={})=>{C("updateMyPostDraft","name",a);const l="/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},_=function(e){const a=ss(e);return{async createMyPost(s,n){var o,c;const l=await a.createMyPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1UcApi.createMyPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getMyPost(s,n){var o,c;const l=await a.getMyPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1UcApi.getMyPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getMyPostDraft(s,n,l){var c,p;const r=await a.getMyPostDraft(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1UcApi.getMyPostDraft"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async listMyPosts(s,n,l,r,t,o,c,p,h){var T,U;const i=await a.listMyPosts(s,n,l,r,t,o,c,p,h),d=(e==null?void 0:e.serverIndex)??0,R=(U=(T=y["PostV1alpha1UcApi.listMyPosts"])==null?void 0:T[d])==null?void 0:U.url;return(B,E)=>A(i,V,m,e)(B,R||E)},async publishMyPost(s,n){var o,c;const l=await a.publishMyPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1UcApi.publishMyPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async unpublishMyPost(s,n){var o,c;const l=await a.unpublishMyPost(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["PostV1alpha1UcApi.unpublishMyPost"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async updateMyPost(s,n,l){var c,p;const r=await a.updateMyPost(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1UcApi.updateMyPost"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateMyPostDraft(s,n,l){var c,p;const r=await a.updateMyPostDraft(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["PostV1alpha1UcApi.updateMyPostDraft"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},no=function(e,a,s){const n=_(e);return{createMyPost(l={},r){return n.createMyPost(l.post,r).then(t=>t(s,a))},getMyPost(l,r){return n.getMyPost(l.name,r).then(t=>t(s,a))},getMyPostDraft(l,r){return n.getMyPostDraft(l.name,l.patched,r).then(t=>t(s,a))},listMyPosts(l={},r){return n.listMyPosts(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.publishPhase,l.keyword,l.categoryWithChildren,r).then(t=>t(s,a))},publishMyPost(l,r){return n.publishMyPost(l.name,r).then(t=>t(s,a))},unpublishMyPost(l,r){return n.unpublishMyPost(l.name,r).then(t=>t(s,a))},updateMyPost(l,r){return n.updateMyPost(l.name,l.post,r).then(t=>t(s,a))},updateMyPostDraft(l,r){return n.updateMyPostDraft(l.name,l.snapshot,r).then(t=>t(s,a))}}};class ls extends I{createMyPost(a={},s){return _(this.configuration).createMyPost(a.post,s).then(n=>n(this.axios,this.basePath))}getMyPost(a,s){return _(this.configuration).getMyPost(a.name,s).then(n=>n(this.axios,this.basePath))}getMyPostDraft(a,s){return _(this.configuration).getMyPostDraft(a.name,a.patched,s).then(n=>n(this.axios,this.basePath))}listMyPosts(a={},s){return _(this.configuration).listMyPosts(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.publishPhase,a.keyword,a.categoryWithChildren,s).then(n=>n(this.axios,this.basePath))}publishMyPost(a,s){return _(this.configuration).publishMyPost(a.name,s).then(n=>n(this.axios,this.basePath))}unpublishMyPost(a,s){return _(this.configuration).unpublishMyPost(a.name,s).then(n=>n(this.axios,this.basePath))}updateMyPost(a,s){return _(this.configuration).updateMyPost(a.name,a.post,s).then(n=>n(this.axios,this.basePath))}updateMyPostDraft(a,s){return _(this.configuration).updateMyPostDraft(a.name,a.snapshot,s).then(n=>n(this.axios,this.basePath))}}const oo={Draft:"DRAFT",PendingApproval:"PENDING_APPROVAL",Published:"PUBLISHED",Failed:"FAILED"},ns=function(e){return{createReasonType:async(a,s={})=>{const n="/apis/notification.halo.run/v1alpha1/reasontypes",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteReasonType:async(a,s={})=>{C("deleteReasonType","name",a);const n="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getReasonType:async(a,s={})=>{C("getReasonType","name",a);const n="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listReasonType:async(a,s,n,l,r,t={})=>{const o="/apis/notification.halo.run/v1alpha1/reasontypes",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchReasonType:async(a,s,n={})=>{C("patchReasonType","name",a);const l="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateReasonType:async(a,s,n={})=>{C("updateReasonType","name",a);const l="/apis/notification.halo.run/v1alpha1/reasontypes/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},ve=function(e){const a=ns(e);return{async createReasonType(s,n){var o,c;const l=await a.createReasonType(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReasonTypeV1alpha1Api.createReasonType"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteReasonType(s,n){var o,c;const l=await a.deleteReasonType(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReasonTypeV1alpha1Api.deleteReasonType"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getReasonType(s,n){var o,c;const l=await a.getReasonType(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReasonTypeV1alpha1Api.getReasonType"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listReasonType(s,n,l,r,t,o){var i,d;const c=await a.listReasonType(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ReasonTypeV1alpha1Api.listReasonType"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchReasonType(s,n,l){var c,p;const r=await a.patchReasonType(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReasonTypeV1alpha1Api.patchReasonType"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateReasonType(s,n,l){var c,p;const r=await a.updateReasonType(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReasonTypeV1alpha1Api.updateReasonType"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},co=function(e,a,s){const n=ve(e);return{createReasonType(l={},r){return n.createReasonType(l.reasonType,r).then(t=>t(s,a))},deleteReasonType(l,r){return n.deleteReasonType(l.name,r).then(t=>t(s,a))},getReasonType(l,r){return n.getReasonType(l.name,r).then(t=>t(s,a))},listReasonType(l={},r){return n.listReasonType(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchReasonType(l,r){return n.patchReasonType(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateReasonType(l,r){return n.updateReasonType(l.name,l.reasonType,r).then(t=>t(s,a))}}};class os extends I{createReasonType(a={},s){return ve(this.configuration).createReasonType(a.reasonType,s).then(n=>n(this.axios,this.basePath))}deleteReasonType(a,s){return ve(this.configuration).deleteReasonType(a.name,s).then(n=>n(this.axios,this.basePath))}getReasonType(a,s){return ve(this.configuration).getReasonType(a.name,s).then(n=>n(this.axios,this.basePath))}listReasonType(a={},s){return ve(this.configuration).listReasonType(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchReasonType(a,s){return ve(this.configuration).patchReasonType(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateReasonType(a,s){return ve(this.configuration).updateReasonType(a.name,a.reasonType,s).then(n=>n(this.axios,this.basePath))}}const cs=function(e){return{createReason:async(a,s={})=>{const n="/apis/notification.halo.run/v1alpha1/reasons",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteReason:async(a,s={})=>{C("deleteReason","name",a);const n="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getReason:async(a,s={})=>{C("getReason","name",a);const n="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listReason:async(a,s,n,l,r,t={})=>{const o="/apis/notification.halo.run/v1alpha1/reasons",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchReason:async(a,s,n={})=>{C("patchReason","name",a);const l="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateReason:async(a,s,n={})=>{C("updateReason","name",a);const l="/apis/notification.halo.run/v1alpha1/reasons/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Se=function(e){const a=cs(e);return{async createReason(s,n){var o,c;const l=await a.createReason(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReasonV1alpha1Api.createReason"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteReason(s,n){var o,c;const l=await a.deleteReason(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReasonV1alpha1Api.deleteReason"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getReason(s,n){var o,c;const l=await a.getReason(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReasonV1alpha1Api.getReason"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listReason(s,n,l,r,t,o){var i,d;const c=await a.listReason(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ReasonV1alpha1Api.listReason"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchReason(s,n,l){var c,p;const r=await a.patchReason(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReasonV1alpha1Api.patchReason"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateReason(s,n,l){var c,p;const r=await a.updateReason(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReasonV1alpha1Api.updateReason"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},po=function(e,a,s){const n=Se(e);return{createReason(l={},r){return n.createReason(l.reason,r).then(t=>t(s,a))},deleteReason(l,r){return n.deleteReason(l.name,r).then(t=>t(s,a))},getReason(l,r){return n.getReason(l.name,r).then(t=>t(s,a))},listReason(l={},r){return n.listReason(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchReason(l,r){return n.patchReason(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateReason(l,r){return n.updateReason(l.name,l.reason,r).then(t=>t(s,a))}}};class ps extends I{createReason(a={},s){return Se(this.configuration).createReason(a.reason,s).then(n=>n(this.axios,this.basePath))}deleteReason(a,s){return Se(this.configuration).deleteReason(a.name,s).then(n=>n(this.axios,this.basePath))}getReason(a,s){return Se(this.configuration).getReason(a.name,s).then(n=>n(this.axios,this.basePath))}listReason(a={},s){return Se(this.configuration).listReason(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchReason(a,s){return Se(this.configuration).patchReason(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateReason(a,s){return Se(this.configuration).updateReason(a.name,a.reason,s).then(n=>n(this.axios,this.basePath))}}const hs=function(e){return{createRememberMeToken:async(a,s={})=>{const n="/apis/security.halo.run/v1alpha1/remembermetokens",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteRememberMeToken:async(a,s={})=>{C("deleteRememberMeToken","name",a);const n="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getRememberMeToken:async(a,s={})=>{C("getRememberMeToken","name",a);const n="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listRememberMeToken:async(a,s,n,l,r,t={})=>{const o="/apis/security.halo.run/v1alpha1/remembermetokens",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchRememberMeToken:async(a,s,n={})=>{C("patchRememberMeToken","name",a);const l="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateRememberMeToken:async(a,s,n={})=>{C("updateRememberMeToken","name",a);const l="/apis/security.halo.run/v1alpha1/remembermetokens/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ae=function(e){const a=hs(e);return{async createRememberMeToken(s,n){var o,c;const l=await a.createRememberMeToken(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RememberMeTokenV1alpha1Api.createRememberMeToken"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteRememberMeToken(s,n){var o,c;const l=await a.deleteRememberMeToken(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RememberMeTokenV1alpha1Api.deleteRememberMeToken"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getRememberMeToken(s,n){var o,c;const l=await a.getRememberMeToken(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RememberMeTokenV1alpha1Api.getRememberMeToken"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listRememberMeToken(s,n,l,r,t,o){var i,d;const c=await a.listRememberMeToken(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["RememberMeTokenV1alpha1Api.listRememberMeToken"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchRememberMeToken(s,n,l){var c,p;const r=await a.patchRememberMeToken(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["RememberMeTokenV1alpha1Api.patchRememberMeToken"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateRememberMeToken(s,n,l){var c,p;const r=await a.updateRememberMeToken(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["RememberMeTokenV1alpha1Api.updateRememberMeToken"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},ho=function(e,a,s){const n=Ae(e);return{createRememberMeToken(l={},r){return n.createRememberMeToken(l.rememberMeToken,r).then(t=>t(s,a))},deleteRememberMeToken(l,r){return n.deleteRememberMeToken(l.name,r).then(t=>t(s,a))},getRememberMeToken(l,r){return n.getRememberMeToken(l.name,r).then(t=>t(s,a))},listRememberMeToken(l={},r){return n.listRememberMeToken(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchRememberMeToken(l,r){return n.patchRememberMeToken(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateRememberMeToken(l,r){return n.updateRememberMeToken(l.name,l.rememberMeToken,r).then(t=>t(s,a))}}};class io extends I{createRememberMeToken(a={},s){return Ae(this.configuration).createRememberMeToken(a.rememberMeToken,s).then(n=>n(this.axios,this.basePath))}deleteRememberMeToken(a,s){return Ae(this.configuration).deleteRememberMeToken(a.name,s).then(n=>n(this.axios,this.basePath))}getRememberMeToken(a,s){return Ae(this.configuration).getRememberMeToken(a.name,s).then(n=>n(this.axios,this.basePath))}listRememberMeToken(a={},s){return Ae(this.configuration).listRememberMeToken(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchRememberMeToken(a,s){return Ae(this.configuration).patchRememberMeToken(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateRememberMeToken(a,s){return Ae(this.configuration).updateRememberMeToken(a.name,a.rememberMeToken,s).then(n=>n(this.axios,this.basePath))}}const is=function(e){return{createReply:async(a,s={})=>{const n="/apis/content.halo.run/v1alpha1/replies",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteReply:async(a,s={})=>{C("deleteReply","name",a);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getReply:async(a,s={})=>{C("getReply","name",a);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listReply:async(a,s,n,l,r,t={})=>{const o="/apis/content.halo.run/v1alpha1/replies",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchReply:async(a,s,n={})=>{C("patchReply","name",a);const l="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateReply:async(a,s,n={})=>{C("updateReply","name",a);const l="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},be=function(e){const a=is(e);return{async createReply(s,n){var o,c;const l=await a.createReply(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReplyV1alpha1Api.createReply"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteReply(s,n){var o,c;const l=await a.deleteReply(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReplyV1alpha1Api.deleteReply"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getReply(s,n){var o,c;const l=await a.getReply(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReplyV1alpha1Api.getReply"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listReply(s,n,l,r,t,o){var i,d;const c=await a.listReply(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ReplyV1alpha1Api.listReply"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchReply(s,n,l){var c,p;const r=await a.patchReply(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReplyV1alpha1Api.patchReply"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateReply(s,n,l){var c,p;const r=await a.updateReply(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReplyV1alpha1Api.updateReply"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Vo=function(e,a,s){const n=be(e);return{createReply(l={},r){return n.createReply(l.reply,r).then(t=>t(s,a))},deleteReply(l,r){return n.deleteReply(l.name,r).then(t=>t(s,a))},getReply(l,r){return n.getReply(l.name,r).then(t=>t(s,a))},listReply(l={},r){return n.listReply(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchReply(l,r){return n.patchReply(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateReply(l,r){return n.updateReply(l.name,l.reply,r).then(t=>t(s,a))}}};class ds extends I{createReply(a={},s){return be(this.configuration).createReply(a.reply,s).then(n=>n(this.axios,this.basePath))}deleteReply(a,s){return be(this.configuration).deleteReply(a.name,s).then(n=>n(this.axios,this.basePath))}getReply(a,s){return be(this.configuration).getReply(a.name,s).then(n=>n(this.axios,this.basePath))}listReply(a={},s){return be(this.configuration).listReply(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchReply(a,s){return be(this.configuration).patchReply(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateReply(a,s){return be(this.configuration).updateReply(a.name,a.reply,s).then(n=>n(this.axios,this.basePath))}}const Vs=function(e){return{listReplies:async(a,s,n,l,r,t,o={})=>{C("listReplies","commentName",a);const c="/apis/api.console.halo.run/v1alpha1/replies",p=new URL(c,P);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},R={};O(i,e),await u(d,e),s!==void 0&&(R.page=s),n!==void 0&&(R.size=n),l&&(R.labelSelector=l),r&&(R.fieldSelector=r),t&&(R.sort=t),a!==void 0&&(R.commentName=a),v(p,R);let T=h&&h.headers?h.headers:{};return i.headers={...d,...T,...o.headers},{url:S(p),options:i}}}},Za=function(e){const a=Vs(e);return{async listReplies(s,n,l,r,t,o,c){var d,R;const p=await a.listReplies(s,n,l,r,t,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(R=(d=y["ReplyV1alpha1ConsoleApi.listReplies"])==null?void 0:d[h])==null?void 0:R.url;return(T,U)=>A(p,V,m,e)(T,i||U)}}},mo=function(e,a,s){const n=Za(e);return{listReplies(l,r){return n.listReplies(l.commentName,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))}}};class ms extends I{listReplies(a,s){return Za(this.configuration).listReplies(a.commentName,a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}}const ys=function(e){return{createReverseProxy:async(a,s={})=>{const n="/apis/plugin.halo.run/v1alpha1/reverseproxies",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteReverseProxy:async(a,s={})=>{C("deleteReverseProxy","name",a);const n="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getReverseProxy:async(a,s={})=>{C("getReverseProxy","name",a);const n="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listReverseProxy:async(a,s,n,l,r,t={})=>{const o="/apis/plugin.halo.run/v1alpha1/reverseproxies",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchReverseProxy:async(a,s,n={})=>{C("patchReverseProxy","name",a);const l="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateReverseProxy:async(a,s,n={})=>{C("updateReverseProxy","name",a);const l="/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Re=function(e){const a=ys(e);return{async createReverseProxy(s,n){var o,c;const l=await a.createReverseProxy(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReverseProxyV1alpha1Api.createReverseProxy"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteReverseProxy(s,n){var o,c;const l=await a.deleteReverseProxy(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReverseProxyV1alpha1Api.deleteReverseProxy"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getReverseProxy(s,n){var o,c;const l=await a.getReverseProxy(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ReverseProxyV1alpha1Api.getReverseProxy"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listReverseProxy(s,n,l,r,t,o){var i,d;const c=await a.listReverseProxy(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ReverseProxyV1alpha1Api.listReverseProxy"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchReverseProxy(s,n,l){var c,p;const r=await a.patchReverseProxy(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReverseProxyV1alpha1Api.patchReverseProxy"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateReverseProxy(s,n,l){var c,p;const r=await a.updateReverseProxy(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ReverseProxyV1alpha1Api.updateReverseProxy"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},yo=function(e,a,s){const n=Re(e);return{createReverseProxy(l={},r){return n.createReverseProxy(l.reverseProxy,r).then(t=>t(s,a))},deleteReverseProxy(l,r){return n.deleteReverseProxy(l.name,r).then(t=>t(s,a))},getReverseProxy(l,r){return n.getReverseProxy(l.name,r).then(t=>t(s,a))},listReverseProxy(l={},r){return n.listReverseProxy(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchReverseProxy(l,r){return n.patchReverseProxy(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateReverseProxy(l,r){return n.updateReverseProxy(l.name,l.reverseProxy,r).then(t=>t(s,a))}}};class Ps extends I{createReverseProxy(a={},s){return Re(this.configuration).createReverseProxy(a.reverseProxy,s).then(n=>n(this.axios,this.basePath))}deleteReverseProxy(a,s){return Re(this.configuration).deleteReverseProxy(a.name,s).then(n=>n(this.axios,this.basePath))}getReverseProxy(a,s){return Re(this.configuration).getReverseProxy(a.name,s).then(n=>n(this.axios,this.basePath))}listReverseProxy(a={},s){return Re(this.configuration).listReverseProxy(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchReverseProxy(a,s){return Re(this.configuration).patchReverseProxy(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateReverseProxy(a,s){return Re(this.configuration).updateReverseProxy(a.name,a.reverseProxy,s).then(n=>n(this.axios,this.basePath))}}const Os=function(e){return{createRoleBinding:async(a,s={})=>{const n="/api/v1alpha1/rolebindings",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteRoleBinding:async(a,s={})=>{C("deleteRoleBinding","name",a);const n="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getRoleBinding:async(a,s={})=>{C("getRoleBinding","name",a);const n="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listRoleBinding:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/rolebindings",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchRoleBinding:async(a,s,n={})=>{C("patchRoleBinding","name",a);const l="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateRoleBinding:async(a,s,n={})=>{C("updateRoleBinding","name",a);const l="/api/v1alpha1/rolebindings/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ce=function(e){const a=Os(e);return{async createRoleBinding(s,n){var o,c;const l=await a.createRoleBinding(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RoleBindingV1alpha1Api.createRoleBinding"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteRoleBinding(s,n){var o,c;const l=await a.deleteRoleBinding(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RoleBindingV1alpha1Api.deleteRoleBinding"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getRoleBinding(s,n){var o,c;const l=await a.getRoleBinding(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RoleBindingV1alpha1Api.getRoleBinding"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listRoleBinding(s,n,l,r,t,o){var i,d;const c=await a.listRoleBinding(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["RoleBindingV1alpha1Api.listRoleBinding"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchRoleBinding(s,n,l){var c,p;const r=await a.patchRoleBinding(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["RoleBindingV1alpha1Api.patchRoleBinding"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateRoleBinding(s,n,l){var c,p;const r=await a.updateRoleBinding(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["RoleBindingV1alpha1Api.updateRoleBinding"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Po=function(e,a,s){const n=Ce(e);return{createRoleBinding(l={},r){return n.createRoleBinding(l.roleBinding,r).then(t=>t(s,a))},deleteRoleBinding(l,r){return n.deleteRoleBinding(l.name,r).then(t=>t(s,a))},getRoleBinding(l,r){return n.getRoleBinding(l.name,r).then(t=>t(s,a))},listRoleBinding(l={},r){return n.listRoleBinding(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchRoleBinding(l,r){return n.patchRoleBinding(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateRoleBinding(l,r){return n.updateRoleBinding(l.name,l.roleBinding,r).then(t=>t(s,a))}}};class us extends I{createRoleBinding(a={},s){return Ce(this.configuration).createRoleBinding(a.roleBinding,s).then(n=>n(this.axios,this.basePath))}deleteRoleBinding(a,s){return Ce(this.configuration).deleteRoleBinding(a.name,s).then(n=>n(this.axios,this.basePath))}getRoleBinding(a,s){return Ce(this.configuration).getRoleBinding(a.name,s).then(n=>n(this.axios,this.basePath))}listRoleBinding(a={},s){return Ce(this.configuration).listRoleBinding(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchRoleBinding(a,s){return Ce(this.configuration).patchRoleBinding(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateRoleBinding(a,s){return Ce(this.configuration).updateRoleBinding(a.name,a.roleBinding,s).then(n=>n(this.axios,this.basePath))}}const vs=function(e){return{createRole:async(a,s={})=>{const n="/api/v1alpha1/roles",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteRole:async(a,s={})=>{C("deleteRole","name",a);const n="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getRole:async(a,s={})=>{C("getRole","name",a);const n="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listRole:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/roles",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchRole:async(a,s,n={})=>{C("patchRole","name",a);const l="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateRole:async(a,s,n={})=>{C("updateRole","name",a);const l="/api/v1alpha1/roles/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Te=function(e){const a=vs(e);return{async createRole(s,n){var o,c;const l=await a.createRole(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RoleV1alpha1Api.createRole"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteRole(s,n){var o,c;const l=await a.deleteRole(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RoleV1alpha1Api.deleteRole"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getRole(s,n){var o,c;const l=await a.getRole(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["RoleV1alpha1Api.getRole"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listRole(s,n,l,r,t,o){var i,d;const c=await a.listRole(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["RoleV1alpha1Api.listRole"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchRole(s,n,l){var c,p;const r=await a.patchRole(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["RoleV1alpha1Api.patchRole"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateRole(s,n,l){var c,p;const r=await a.updateRole(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["RoleV1alpha1Api.updateRole"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Oo=function(e,a,s){const n=Te(e);return{createRole(l={},r){return n.createRole(l.role,r).then(t=>t(s,a))},deleteRole(l,r){return n.deleteRole(l.name,r).then(t=>t(s,a))},getRole(l,r){return n.getRole(l.name,r).then(t=>t(s,a))},listRole(l={},r){return n.listRole(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchRole(l,r){return n.patchRole(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateRole(l,r){return n.updateRole(l.name,l.role,r).then(t=>t(s,a))}}};class Ss extends I{createRole(a={},s){return Te(this.configuration).createRole(a.role,s).then(n=>n(this.axios,this.basePath))}deleteRole(a,s){return Te(this.configuration).deleteRole(a.name,s).then(n=>n(this.axios,this.basePath))}getRole(a,s){return Te(this.configuration).getRole(a.name,s).then(n=>n(this.axios,this.basePath))}listRole(a={},s){return Te(this.configuration).listRole(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchRole(a,s){return Te(this.configuration).patchRole(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateRole(a,s){return Te(this.configuration).updateRole(a.name,a.role,s).then(n=>n(this.axios,this.basePath))}}const As=function(e){return{createSearchEngine:async(a,s={})=>{const n="/apis/plugin.halo.run/v1alpha1/searchengines",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteSearchEngine:async(a,s={})=>{C("deleteSearchEngine","name",a);const n="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getSearchEngine:async(a,s={})=>{C("getSearchEngine","name",a);const n="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSearchEngine:async(a,s,n,l,r,t={})=>{const o="/apis/plugin.halo.run/v1alpha1/searchengines",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchSearchEngine:async(a,s,n={})=>{C("patchSearchEngine","name",a);const l="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateSearchEngine:async(a,s,n={})=>{C("updateSearchEngine","name",a);const l="/apis/plugin.halo.run/v1alpha1/searchengines/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},we=function(e){const a=As(e);return{async createSearchEngine(s,n){var o,c;const l=await a.createSearchEngine(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SearchEngineV1alpha1Api.createSearchEngine"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteSearchEngine(s,n){var o,c;const l=await a.deleteSearchEngine(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SearchEngineV1alpha1Api.deleteSearchEngine"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getSearchEngine(s,n){var o,c;const l=await a.getSearchEngine(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SearchEngineV1alpha1Api.getSearchEngine"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSearchEngine(s,n,l,r,t,o){var i,d;const c=await a.listSearchEngine(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["SearchEngineV1alpha1Api.listSearchEngine"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchSearchEngine(s,n,l){var c,p;const r=await a.patchSearchEngine(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SearchEngineV1alpha1Api.patchSearchEngine"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateSearchEngine(s,n,l){var c,p;const r=await a.updateSearchEngine(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SearchEngineV1alpha1Api.updateSearchEngine"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},uo=function(e,a,s){const n=we(e);return{createSearchEngine(l={},r){return n.createSearchEngine(l.searchEngine,r).then(t=>t(s,a))},deleteSearchEngine(l,r){return n.deleteSearchEngine(l.name,r).then(t=>t(s,a))},getSearchEngine(l,r){return n.getSearchEngine(l.name,r).then(t=>t(s,a))},listSearchEngine(l={},r){return n.listSearchEngine(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchSearchEngine(l,r){return n.patchSearchEngine(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateSearchEngine(l,r){return n.updateSearchEngine(l.name,l.searchEngine,r).then(t=>t(s,a))}}};class bs extends I{createSearchEngine(a={},s){return we(this.configuration).createSearchEngine(a.searchEngine,s).then(n=>n(this.axios,this.basePath))}deleteSearchEngine(a,s){return we(this.configuration).deleteSearchEngine(a.name,s).then(n=>n(this.axios,this.basePath))}getSearchEngine(a,s){return we(this.configuration).getSearchEngine(a.name,s).then(n=>n(this.axios,this.basePath))}listSearchEngine(a={},s){return we(this.configuration).listSearchEngine(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchSearchEngine(a,s){return we(this.configuration).patchSearchEngine(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateSearchEngine(a,s){return we(this.configuration).updateSearchEngine(a.name,a.searchEngine,s).then(n=>n(this.axios,this.basePath))}}const Rs=function(e){return{createSecret:async(a,s={})=>{const n="/api/v1alpha1/secrets",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteSecret:async(a,s={})=>{C("deleteSecret","name",a);const n="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getSecret:async(a,s={})=>{C("getSecret","name",a);const n="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSecret:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/secrets",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchSecret:async(a,s,n={})=>{C("patchSecret","name",a);const l="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateSecret:async(a,s,n={})=>{C("updateSecret","name",a);const l="/api/v1alpha1/secrets/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ue=function(e){const a=Rs(e);return{async createSecret(s,n){var o,c;const l=await a.createSecret(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SecretV1alpha1Api.createSecret"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteSecret(s,n){var o,c;const l=await a.deleteSecret(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SecretV1alpha1Api.deleteSecret"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getSecret(s,n){var o,c;const l=await a.getSecret(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SecretV1alpha1Api.getSecret"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSecret(s,n,l,r,t,o){var i,d;const c=await a.listSecret(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["SecretV1alpha1Api.listSecret"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchSecret(s,n,l){var c,p;const r=await a.patchSecret(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SecretV1alpha1Api.patchSecret"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateSecret(s,n,l){var c,p;const r=await a.updateSecret(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SecretV1alpha1Api.updateSecret"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},vo=function(e,a,s){const n=Ue(e);return{createSecret(l={},r){return n.createSecret(l.secret,r).then(t=>t(s,a))},deleteSecret(l,r){return n.deleteSecret(l.name,r).then(t=>t(s,a))},getSecret(l,r){return n.getSecret(l.name,r).then(t=>t(s,a))},listSecret(l={},r){return n.listSecret(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchSecret(l,r){return n.patchSecret(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateSecret(l,r){return n.updateSecret(l.name,l.secret,r).then(t=>t(s,a))}}};class Cs extends I{createSecret(a={},s){return Ue(this.configuration).createSecret(a.secret,s).then(n=>n(this.axios,this.basePath))}deleteSecret(a,s){return Ue(this.configuration).deleteSecret(a.name,s).then(n=>n(this.axios,this.basePath))}getSecret(a,s){return Ue(this.configuration).getSecret(a.name,s).then(n=>n(this.axios,this.basePath))}listSecret(a={},s){return Ue(this.configuration).listSecret(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchSecret(a,s){return Ue(this.configuration).patchSecret(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateSecret(a,s){return Ue(this.configuration).updateSecret(a.name,a.secret,s).then(n=>n(this.axios,this.basePath))}}const Ts=function(e){return{createSetting:async(a,s={})=>{const n="/api/v1alpha1/settings",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteSetting:async(a,s={})=>{C("deleteSetting","name",a);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getSetting:async(a,s={})=>{C("getSetting","name",a);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSetting:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/settings",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchSetting:async(a,s,n={})=>{C("patchSetting","name",a);const l="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateSetting:async(a,s,n={})=>{C("updateSetting","name",a);const l="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ie=function(e){const a=Ts(e);return{async createSetting(s,n){var o,c;const l=await a.createSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SettingV1alpha1Api.createSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteSetting(s,n){var o,c;const l=await a.deleteSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SettingV1alpha1Api.deleteSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getSetting(s,n){var o,c;const l=await a.getSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SettingV1alpha1Api.getSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSetting(s,n,l,r,t,o){var i,d;const c=await a.listSetting(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["SettingV1alpha1Api.listSetting"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchSetting(s,n,l){var c,p;const r=await a.patchSetting(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SettingV1alpha1Api.patchSetting"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateSetting(s,n,l){var c,p;const r=await a.updateSetting(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SettingV1alpha1Api.updateSetting"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},So=function(e,a,s){const n=Ie(e);return{createSetting(l={},r){return n.createSetting(l.setting,r).then(t=>t(s,a))},deleteSetting(l,r){return n.deleteSetting(l.name,r).then(t=>t(s,a))},getSetting(l,r){return n.getSetting(l.name,r).then(t=>t(s,a))},listSetting(l={},r){return n.listSetting(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchSetting(l,r){return n.patchSetting(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateSetting(l,r){return n.updateSetting(l.name,l.setting,r).then(t=>t(s,a))}}};class ws extends I{createSetting(a={},s){return Ie(this.configuration).createSetting(a.setting,s).then(n=>n(this.axios,this.basePath))}deleteSetting(a,s){return Ie(this.configuration).deleteSetting(a.name,s).then(n=>n(this.axios,this.basePath))}getSetting(a,s){return Ie(this.configuration).getSetting(a.name,s).then(n=>n(this.axios,this.basePath))}listSetting(a={},s){return Ie(this.configuration).listSetting(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchSetting(a,s){return Ie(this.configuration).patchSetting(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateSetting(a,s){return Ie(this.configuration).updateSetting(a.name,a.setting,s).then(n=>n(this.axios,this.basePath))}}const Us=function(e){return{createSinglePage:async(a,s={})=>{const n="/apis/content.halo.run/v1alpha1/singlepages",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteSinglePage:async(a,s={})=>{C("deleteSinglePage","name",a);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getSinglePage:async(a,s={})=>{C("getSinglePage","name",a);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSinglePage:async(a,s,n,l,r,t={})=>{const o="/apis/content.halo.run/v1alpha1/singlepages",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchSinglePage:async(a,s,n={})=>{C("patchSinglePage","name",a);const l="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateSinglePage:async(a,s,n={})=>{C("updateSinglePage","name",a);const l="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Be=function(e){const a=Us(e);return{async createSinglePage(s,n){var o,c;const l=await a.createSinglePage(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1Api.createSinglePage"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteSinglePage(s,n){var o,c;const l=await a.deleteSinglePage(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1Api.deleteSinglePage"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getSinglePage(s,n){var o,c;const l=await a.getSinglePage(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1Api.getSinglePage"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSinglePage(s,n,l,r,t,o){var i,d;const c=await a.listSinglePage(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["SinglePageV1alpha1Api.listSinglePage"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchSinglePage(s,n,l){var c,p;const r=await a.patchSinglePage(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SinglePageV1alpha1Api.patchSinglePage"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateSinglePage(s,n,l){var c,p;const r=await a.updateSinglePage(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SinglePageV1alpha1Api.updateSinglePage"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Ao=function(e,a,s){const n=Be(e);return{createSinglePage(l={},r){return n.createSinglePage(l.singlePage,r).then(t=>t(s,a))},deleteSinglePage(l,r){return n.deleteSinglePage(l.name,r).then(t=>t(s,a))},getSinglePage(l,r){return n.getSinglePage(l.name,r).then(t=>t(s,a))},listSinglePage(l={},r){return n.listSinglePage(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchSinglePage(l,r){return n.patchSinglePage(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateSinglePage(l,r){return n.updateSinglePage(l.name,l.singlePage,r).then(t=>t(s,a))}}};class Is extends I{createSinglePage(a={},s){return Be(this.configuration).createSinglePage(a.singlePage,s).then(n=>n(this.axios,this.basePath))}deleteSinglePage(a,s){return Be(this.configuration).deleteSinglePage(a.name,s).then(n=>n(this.axios,this.basePath))}getSinglePage(a,s){return Be(this.configuration).getSinglePage(a.name,s).then(n=>n(this.axios,this.basePath))}listSinglePage(a={},s){return Be(this.configuration).listSinglePage(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchSinglePage(a,s){return Be(this.configuration).patchSinglePage(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateSinglePage(a,s){return Be(this.configuration).updateSinglePage(a.name,a.singlePage,s).then(n=>n(this.axios,this.basePath))}}const Bs=function(e){return{deleteSinglePageContent:async(a,s,n={})=>{C("deleteSinglePageContent","name",a),C("deleteSinglePageContent","snapshotName",s);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"DELETE",...t,...n},c={},p={};O(o,e),await u(c,e),s!==void 0&&(p.snapshotName=s),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},draftSinglePage:async(a,s={})=>{C("draftSinglePage","singlePageRequest",a);const n="/apis/api.console.halo.run/v1alpha1/singlepages",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},fetchSinglePageContent:async(a,s,n={})=>{C("fetchSinglePageContent","name",a),C("fetchSinglePageContent","snapshotName",s);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"GET",...t,...n},c={},p={};O(o,e),await u(c,e),s!==void 0&&(p.snapshotName=s),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}},fetchSinglePageHeadContent:async(a,s={})=>{C("fetchSinglePageHeadContent","name",a);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},fetchSinglePageReleaseContent:async(a,s={})=>{C("fetchSinglePageReleaseContent","name",a);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSinglePageSnapshots:async(a,s={})=>{C("listSinglePageSnapshots","name",a);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/snapshot".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSinglePages:async(a,s,n,l,r,t,o,c,p,h={})=>{const i="/apis/api.console.halo.run/v1alpha1/singlepages",d=new URL(i,P);let R;e&&(R=e.baseOptions);const T={method:"GET",...R,...h},U={},B={};O(T,e),await u(U,e),a!==void 0&&(B.page=a),s!==void 0&&(B.size=s),n&&(B.labelSelector=n),l&&(B.fieldSelector=l),r&&(B.sort=r),t&&(B.contributor=t),o!==void 0&&(B.publishPhase=o),c!==void 0&&(B.visible=c),p!==void 0&&(B.keyword=p),v(d,B);let E=R&&R.headers?R.headers:{};return T.headers={...U,...E,...h.headers},{url:S(d),options:T}},publishSinglePage:async(a,s={})=>{C("publishSinglePage","name",a);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},revertToSpecifiedSnapshotForSinglePage:async(a,s,n={})=>{C("revertToSpecifiedSnapshotForSinglePage","name",a),C("revertToSpecifiedSnapshotForSinglePage","revertSnapshotForSingleParam",s);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/revert-content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateDraftSinglePage:async(a,s,n={})=>{C("updateDraftSinglePage","name",a),C("updateDraftSinglePage","singlePageRequest",s);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateSinglePageContent:async(a,s,n={})=>{C("updateSinglePageContent","name",a),C("updateSinglePageContent","content",s);const l="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},$=function(e){const a=Bs(e);return{async deleteSinglePageContent(s,n,l){var c,p;const r=await a.deleteSinglePageContent(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SinglePageV1alpha1ConsoleApi.deleteSinglePageContent"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async draftSinglePage(s,n){var o,c;const l=await a.draftSinglePage(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1ConsoleApi.draftSinglePage"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async fetchSinglePageContent(s,n,l){var c,p;const r=await a.fetchSinglePageContent(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SinglePageV1alpha1ConsoleApi.fetchSinglePageContent"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async fetchSinglePageHeadContent(s,n){var o,c;const l=await a.fetchSinglePageHeadContent(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1ConsoleApi.fetchSinglePageHeadContent"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async fetchSinglePageReleaseContent(s,n){var o,c;const l=await a.fetchSinglePageReleaseContent(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1ConsoleApi.fetchSinglePageReleaseContent"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSinglePageSnapshots(s,n){var o,c;const l=await a.listSinglePageSnapshots(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1ConsoleApi.listSinglePageSnapshots"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSinglePages(s,n,l,r,t,o,c,p,h,i){var U,B;const d=await a.listSinglePages(s,n,l,r,t,o,c,p,h,i),R=(e==null?void 0:e.serverIndex)??0,T=(B=(U=y["SinglePageV1alpha1ConsoleApi.listSinglePages"])==null?void 0:U[R])==null?void 0:B.url;return(E,G)=>A(d,V,m,e)(E,T||G)},async publishSinglePage(s,n){var o,c;const l=await a.publishSinglePage(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1ConsoleApi.publishSinglePage"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async revertToSpecifiedSnapshotForSinglePage(s,n,l){var c,p;const r=await a.revertToSpecifiedSnapshotForSinglePage(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SinglePageV1alpha1ConsoleApi.revertToSpecifiedSnapshotForSinglePage"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateDraftSinglePage(s,n,l){var c,p;const r=await a.updateDraftSinglePage(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SinglePageV1alpha1ConsoleApi.updateDraftSinglePage"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateSinglePageContent(s,n,l){var c,p;const r=await a.updateSinglePageContent(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SinglePageV1alpha1ConsoleApi.updateSinglePageContent"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},bo=function(e,a,s){const n=$(e);return{deleteSinglePageContent(l,r){return n.deleteSinglePageContent(l.name,l.snapshotName,r).then(t=>t(s,a))},draftSinglePage(l,r){return n.draftSinglePage(l.singlePageRequest,r).then(t=>t(s,a))},fetchSinglePageContent(l,r){return n.fetchSinglePageContent(l.name,l.snapshotName,r).then(t=>t(s,a))},fetchSinglePageHeadContent(l,r){return n.fetchSinglePageHeadContent(l.name,r).then(t=>t(s,a))},fetchSinglePageReleaseContent(l,r){return n.fetchSinglePageReleaseContent(l.name,r).then(t=>t(s,a))},listSinglePageSnapshots(l,r){return n.listSinglePageSnapshots(l.name,r).then(t=>t(s,a))},listSinglePages(l={},r){return n.listSinglePages(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.contributor,l.publishPhase,l.visible,l.keyword,r).then(t=>t(s,a))},publishSinglePage(l,r){return n.publishSinglePage(l.name,r).then(t=>t(s,a))},revertToSpecifiedSnapshotForSinglePage(l,r){return n.revertToSpecifiedSnapshotForSinglePage(l.name,l.revertSnapshotForSingleParam,r).then(t=>t(s,a))},updateDraftSinglePage(l,r){return n.updateDraftSinglePage(l.name,l.singlePageRequest,r).then(t=>t(s,a))},updateSinglePageContent(l,r){return n.updateSinglePageContent(l.name,l.content,r).then(t=>t(s,a))}}};class xs extends I{deleteSinglePageContent(a,s){return $(this.configuration).deleteSinglePageContent(a.name,a.snapshotName,s).then(n=>n(this.axios,this.basePath))}draftSinglePage(a,s){return $(this.configuration).draftSinglePage(a.singlePageRequest,s).then(n=>n(this.axios,this.basePath))}fetchSinglePageContent(a,s){return $(this.configuration).fetchSinglePageContent(a.name,a.snapshotName,s).then(n=>n(this.axios,this.basePath))}fetchSinglePageHeadContent(a,s){return $(this.configuration).fetchSinglePageHeadContent(a.name,s).then(n=>n(this.axios,this.basePath))}fetchSinglePageReleaseContent(a,s){return $(this.configuration).fetchSinglePageReleaseContent(a.name,s).then(n=>n(this.axios,this.basePath))}listSinglePageSnapshots(a,s){return $(this.configuration).listSinglePageSnapshots(a.name,s).then(n=>n(this.axios,this.basePath))}listSinglePages(a={},s){return $(this.configuration).listSinglePages(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.contributor,a.publishPhase,a.visible,a.keyword,s).then(n=>n(this.axios,this.basePath))}publishSinglePage(a,s){return $(this.configuration).publishSinglePage(a.name,s).then(n=>n(this.axios,this.basePath))}revertToSpecifiedSnapshotForSinglePage(a,s){return $(this.configuration).revertToSpecifiedSnapshotForSinglePage(a.name,a.revertSnapshotForSingleParam,s).then(n=>n(this.axios,this.basePath))}updateDraftSinglePage(a,s){return $(this.configuration).updateDraftSinglePage(a.name,a.singlePageRequest,s).then(n=>n(this.axios,this.basePath))}updateSinglePageContent(a,s){return $(this.configuration).updateSinglePageContent(a.name,a.content,s).then(n=>n(this.axios,this.basePath))}}const Ro={Draft:"DRAFT",PendingApproval:"PENDING_APPROVAL",Published:"PUBLISHED",Failed:"FAILED"},Co={Public:"PUBLIC",Internal:"INTERNAL",Private:"PRIVATE"},Fs=function(e){return{querySinglePageByName:async(a,s={})=>{C("querySinglePageByName","name",a);const n="/apis/api.content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},querySinglePages:async(a,s,n,l,r,t={})=>{const o="/apis/api.content.halo.run/v1alpha1/singlepages",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}}}},ja=function(e){const a=Fs(e);return{async querySinglePageByName(s,n){var o,c;const l=await a.querySinglePageByName(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SinglePageV1alpha1PublicApi.querySinglePageByName"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async querySinglePages(s,n,l,r,t,o){var i,d;const c=await a.querySinglePages(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["SinglePageV1alpha1PublicApi.querySinglePages"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)}}},To=function(e,a,s){const n=ja(e);return{querySinglePageByName(l,r){return n.querySinglePageByName(l.name,r).then(t=>t(s,a))},querySinglePages(l={},r){return n.querySinglePages(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))}}};class wo extends I{querySinglePageByName(a,s){return ja(this.configuration).querySinglePageByName(a.name,s).then(n=>n(this.axios,this.basePath))}querySinglePages(a={},s){return ja(this.configuration).querySinglePages(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}}const Es=function(e){return{createSnapshot:async(a,s={})=>{const n="/apis/content.halo.run/v1alpha1/snapshots",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteSnapshot:async(a,s={})=>{C("deleteSnapshot","name",a);const n="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getSnapshot:async(a,s={})=>{C("getSnapshot","name",a);const n="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSnapshot:async(a,s,n,l,r,t={})=>{const o="/apis/content.halo.run/v1alpha1/snapshots",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchSnapshot:async(a,s,n={})=>{C("patchSnapshot","name",a);const l="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateSnapshot:async(a,s,n={})=>{C("updateSnapshot","name",a);const l="/apis/content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},xe=function(e){const a=Es(e);return{async createSnapshot(s,n){var o,c;const l=await a.createSnapshot(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SnapshotV1alpha1Api.createSnapshot"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteSnapshot(s,n){var o,c;const l=await a.deleteSnapshot(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SnapshotV1alpha1Api.deleteSnapshot"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getSnapshot(s,n){var o,c;const l=await a.getSnapshot(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SnapshotV1alpha1Api.getSnapshot"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSnapshot(s,n,l,r,t,o){var i,d;const c=await a.listSnapshot(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["SnapshotV1alpha1Api.listSnapshot"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchSnapshot(s,n,l){var c,p;const r=await a.patchSnapshot(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SnapshotV1alpha1Api.patchSnapshot"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateSnapshot(s,n,l){var c,p;const r=await a.updateSnapshot(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SnapshotV1alpha1Api.updateSnapshot"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Uo=function(e,a,s){const n=xe(e);return{createSnapshot(l={},r){return n.createSnapshot(l.snapshot,r).then(t=>t(s,a))},deleteSnapshot(l,r){return n.deleteSnapshot(l.name,r).then(t=>t(s,a))},getSnapshot(l,r){return n.getSnapshot(l.name,r).then(t=>t(s,a))},listSnapshot(l={},r){return n.listSnapshot(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchSnapshot(l,r){return n.patchSnapshot(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateSnapshot(l,r){return n.updateSnapshot(l.name,l.snapshot,r).then(t=>t(s,a))}}};class js extends I{createSnapshot(a={},s){return xe(this.configuration).createSnapshot(a.snapshot,s).then(n=>n(this.axios,this.basePath))}deleteSnapshot(a,s){return xe(this.configuration).deleteSnapshot(a.name,s).then(n=>n(this.axios,this.basePath))}getSnapshot(a,s){return xe(this.configuration).getSnapshot(a.name,s).then(n=>n(this.axios,this.basePath))}listSnapshot(a={},s){return xe(this.configuration).listSnapshot(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchSnapshot(a,s){return xe(this.configuration).patchSnapshot(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateSnapshot(a,s){return xe(this.configuration).updateSnapshot(a.name,a.snapshot,s).then(n=>n(this.axios,this.basePath))}}const Ls=function(e){return{getSnapshotForPost:async(a,s,n,l={})=>{C("getSnapshotForPost","name",a),C("getSnapshotForPost","postName",s);const r="/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}".replace("{name}",encodeURIComponent(String(a))),t=new URL(r,P);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...l},p={},h={};O(c,e),await u(p,e),s!==void 0&&(h.postName=s),n!==void 0&&(h.patched=n),v(t,h);let i=o&&o.headers?o.headers:{};return c.headers={...p,...i,...l.headers},{url:S(t),options:c}}}},qa=function(e){const a=Ls(e);return{async getSnapshotForPost(s,n,l,r){var p,h;const t=await a.getSnapshotForPost(s,n,l,r),o=(e==null?void 0:e.serverIndex)??0,c=(h=(p=y["SnapshotV1alpha1UcApi.getSnapshotForPost"])==null?void 0:p[o])==null?void 0:h.url;return(i,d)=>A(t,V,m,e)(i,c||d)}}},Io=function(e,a,s){const n=qa(e);return{getSnapshotForPost(l,r){return n.getSnapshotForPost(l.name,l.postName,l.patched,r).then(t=>t(s,a))}}};class Ds extends I{getSnapshotForPost(a,s){return qa(this.configuration).getSnapshotForPost(a.name,a.postName,a.patched,s).then(n=>n(this.axios,this.basePath))}}const Ns=function(e){return{createSubscription:async(a,s={})=>{const n="/apis/notification.halo.run/v1alpha1/subscriptions",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteSubscription:async(a,s={})=>{C("deleteSubscription","name",a);const n="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getSubscription:async(a,s={})=>{C("getSubscription","name",a);const n="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listSubscription:async(a,s,n,l,r,t={})=>{const o="/apis/notification.halo.run/v1alpha1/subscriptions",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchSubscription:async(a,s,n={})=>{C("patchSubscription","name",a);const l="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateSubscription:async(a,s,n={})=>{C("updateSubscription","name",a);const l="/apis/notification.halo.run/v1alpha1/subscriptions/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Fe=function(e){const a=Ns(e);return{async createSubscription(s,n){var o,c;const l=await a.createSubscription(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SubscriptionV1alpha1Api.createSubscription"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteSubscription(s,n){var o,c;const l=await a.deleteSubscription(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SubscriptionV1alpha1Api.deleteSubscription"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getSubscription(s,n){var o,c;const l=await a.getSubscription(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SubscriptionV1alpha1Api.getSubscription"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listSubscription(s,n,l,r,t,o){var i,d;const c=await a.listSubscription(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["SubscriptionV1alpha1Api.listSubscription"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchSubscription(s,n,l){var c,p;const r=await a.patchSubscription(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SubscriptionV1alpha1Api.patchSubscription"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateSubscription(s,n,l){var c,p;const r=await a.updateSubscription(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["SubscriptionV1alpha1Api.updateSubscription"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Bo=function(e,a,s){const n=Fe(e);return{createSubscription(l={},r){return n.createSubscription(l.subscription,r).then(t=>t(s,a))},deleteSubscription(l,r){return n.deleteSubscription(l.name,r).then(t=>t(s,a))},getSubscription(l,r){return n.getSubscription(l.name,r).then(t=>t(s,a))},listSubscription(l={},r){return n.listSubscription(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchSubscription(l,r){return n.patchSubscription(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateSubscription(l,r){return n.updateSubscription(l.name,l.subscription,r).then(t=>t(s,a))}}};class Hs extends I{createSubscription(a={},s){return Fe(this.configuration).createSubscription(a.subscription,s).then(n=>n(this.axios,this.basePath))}deleteSubscription(a,s){return Fe(this.configuration).deleteSubscription(a.name,s).then(n=>n(this.axios,this.basePath))}getSubscription(a,s){return Fe(this.configuration).getSubscription(a.name,s).then(n=>n(this.axios,this.basePath))}listSubscription(a={},s){return Fe(this.configuration).listSubscription(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchSubscription(a,s){return Fe(this.configuration).patchSubscription(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateSubscription(a,s){return Fe(this.configuration).updateSubscription(a.name,a.subscription,s).then(n=>n(this.axios,this.basePath))}}const Ms=function(e){return{getStats:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/stats",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},initialize:async(a,s={})=>{const n="/apis/api.console.halo.run/v1alpha1/system/initialize",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}}}},La=function(e){const a=Ms(e);return{async getStats(s){var t,o;const n=await a.getStats(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["SystemV1alpha1ConsoleApi.getStats"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async initialize(s,n){var o,c;const l=await a.initialize(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["SystemV1alpha1ConsoleApi.initialize"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},xo=function(e,a,s){const n=La(e);return{getStats(l){return n.getStats(l).then(r=>r(s,a))},initialize(l={},r){return n.initialize(l.systemInitializationRequest,r).then(t=>t(s,a))}}};class Qs extends I{getStats(a){return La(this.configuration).getStats(a).then(s=>s(this.axios,this.basePath))}initialize(a={},s){return La(this.configuration).initialize(a.systemInitializationRequest,s).then(n=>n(this.axios,this.basePath))}}const ks=function(e){return{queryStats:async(a={})=>{const s="/apis/api.halo.run/v1alpha1/stats/-",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}}}},fa=function(e){const a=ks(e);return{async queryStats(s){var t,o;const n=await a.queryStats(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["SystemV1alpha1PublicApi.queryStats"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)}}},Fo=function(e,a,s){const n=fa(e);return{queryStats(l){return n.queryStats(l).then(r=>r(s,a))}}};class $s extends I{queryStats(a){return fa(this.configuration).queryStats(a).then(s=>s(this.axios,this.basePath))}}const Gs=function(e){return{createTag:async(a,s={})=>{const n="/apis/content.halo.run/v1alpha1/tags",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteTag:async(a,s={})=>{C("deleteTag","name",a);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getTag:async(a,s={})=>{C("getTag","name",a);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listTag:async(a,s,n,l,r,t={})=>{const o="/apis/content.halo.run/v1alpha1/tags",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchTag:async(a,s,n={})=>{C("patchTag","name",a);const l="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateTag:async(a,s,n={})=>{C("updateTag","name",a);const l="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ee=function(e){const a=Gs(e);return{async createTag(s,n){var o,c;const l=await a.createTag(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TagV1alpha1Api.createTag"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteTag(s,n){var o,c;const l=await a.deleteTag(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TagV1alpha1Api.deleteTag"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getTag(s,n){var o,c;const l=await a.getTag(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TagV1alpha1Api.getTag"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listTag(s,n,l,r,t,o){var i,d;const c=await a.listTag(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["TagV1alpha1Api.listTag"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchTag(s,n,l){var c,p;const r=await a.patchTag(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["TagV1alpha1Api.patchTag"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateTag(s,n,l){var c,p;const r=await a.updateTag(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["TagV1alpha1Api.updateTag"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Eo=function(e,a,s){const n=Ee(e);return{createTag(l={},r){return n.createTag(l.tag,r).then(t=>t(s,a))},deleteTag(l,r){return n.deleteTag(l.name,r).then(t=>t(s,a))},getTag(l,r){return n.getTag(l.name,r).then(t=>t(s,a))},listTag(l={},r){return n.listTag(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchTag(l,r){return n.patchTag(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateTag(l,r){return n.updateTag(l.name,l.tag,r).then(t=>t(s,a))}}};class zs extends I{createTag(a={},s){return Ee(this.configuration).createTag(a.tag,s).then(n=>n(this.axios,this.basePath))}deleteTag(a,s){return Ee(this.configuration).deleteTag(a.name,s).then(n=>n(this.axios,this.basePath))}getTag(a,s){return Ee(this.configuration).getTag(a.name,s).then(n=>n(this.axios,this.basePath))}listTag(a={},s){return Ee(this.configuration).listTag(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchTag(a,s){return Ee(this.configuration).patchTag(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateTag(a,s){return Ee(this.configuration).updateTag(a.name,a.tag,s).then(n=>n(this.axios,this.basePath))}}const _s=function(e){return{listPostTags:async(a,s,n,l,r,t,o={})=>{const c="/apis/api.console.halo.run/v1alpha1/tags",p=new URL(c,P);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},R={};O(i,e),await u(d,e),a!==void 0&&(R.page=a),s!==void 0&&(R.size=s),n&&(R.labelSelector=n),l&&(R.fieldSelector=l),r&&(R.sort=r),t!==void 0&&(R.keyword=t),v(p,R);let T=h&&h.headers?h.headers:{};return i.headers={...d,...T,...o.headers},{url:S(p),options:i}}}},ga=function(e){const a=_s(e);return{async listPostTags(s,n,l,r,t,o,c){var d,R;const p=await a.listPostTags(s,n,l,r,t,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(R=(d=y["TagV1alpha1ConsoleApi.listPostTags"])==null?void 0:d[h])==null?void 0:R.url;return(T,U)=>A(p,V,m,e)(T,i||U)}}},jo=function(e,a,s){const n=ga(e);return{listPostTags(l={},r){return n.listPostTags(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,r).then(t=>t(s,a))}}};class Ws extends I{listPostTags(a={},s){return ga(this.configuration).listPostTags(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.keyword,s).then(n=>n(this.axios,this.basePath))}}const Ks=function(e){return{queryPostsByTagName:async(a,s,n,l,r,t,o={})=>{C("queryPostsByTagName","name",a);const c="/apis/api.content.halo.run/v1alpha1/tags/{name}/posts".replace("{name}",encodeURIComponent(String(a))),p=new URL(c,P);let h;e&&(h=e.baseOptions);const i={method:"GET",...h,...o},d={},R={};O(i,e),await u(d,e),s!==void 0&&(R.page=s),n!==void 0&&(R.size=n),l&&(R.labelSelector=l),r&&(R.fieldSelector=r),t&&(R.sort=t),v(p,R);let T=h&&h.headers?h.headers:{};return i.headers={...d,...T,...o.headers},{url:S(p),options:i}},queryTagByName:async(a,s={})=>{C("queryTagByName","name",a);const n="/apis/api.content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},queryTags:async(a,s,n,l,r,t={})=>{const o="/apis/api.content.halo.run/v1alpha1/tags",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}}}},ua=function(e){const a=Ks(e);return{async queryPostsByTagName(s,n,l,r,t,o,c){var d,R;const p=await a.queryPostsByTagName(s,n,l,r,t,o,c),h=(e==null?void 0:e.serverIndex)??0,i=(R=(d=y["TagV1alpha1PublicApi.queryPostsByTagName"])==null?void 0:d[h])==null?void 0:R.url;return(T,U)=>A(p,V,m,e)(T,i||U)},async queryTagByName(s,n){var o,c;const l=await a.queryTagByName(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TagV1alpha1PublicApi.queryTagByName"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async queryTags(s,n,l,r,t,o){var i,d;const c=await a.queryTags(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["TagV1alpha1PublicApi.queryTags"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)}}},Lo=function(e,a,s){const n=ua(e);return{queryPostsByTagName(l,r){return n.queryPostsByTagName(l.name,l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},queryTagByName(l,r){return n.queryTagByName(l.name,r).then(t=>t(s,a))},queryTags(l={},r){return n.queryTags(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))}}};class Do extends I{queryPostsByTagName(a,s){return ua(this.configuration).queryPostsByTagName(a.name,a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}queryTagByName(a,s){return ua(this.configuration).queryTagByName(a.name,s).then(n=>n(this.axios,this.basePath))}queryTags(a={},s){return ua(this.configuration).queryTags(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}}const Js=function(e){return{createTheme:async(a,s={})=>{const n="/apis/theme.halo.run/v1alpha1/themes",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteTheme:async(a,s={})=>{C("deleteTheme","name",a);const n="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getTheme:async(a,s={})=>{C("getTheme","name",a);const n="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listTheme:async(a,s,n,l,r,t={})=>{const o="/apis/theme.halo.run/v1alpha1/themes",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchTheme:async(a,s,n={})=>{C("patchTheme","name",a);const l="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateTheme:async(a,s,n={})=>{C("updateTheme","name",a);const l="/apis/theme.halo.run/v1alpha1/themes/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},je=function(e){const a=Js(e);return{async createTheme(s,n){var o,c;const l=await a.createTheme(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1Api.createTheme"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteTheme(s,n){var o,c;const l=await a.deleteTheme(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1Api.deleteTheme"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getTheme(s,n){var o,c;const l=await a.getTheme(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1Api.getTheme"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listTheme(s,n,l,r,t,o){var i,d;const c=await a.listTheme(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ThemeV1alpha1Api.listTheme"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchTheme(s,n,l){var c,p;const r=await a.patchTheme(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThemeV1alpha1Api.patchTheme"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateTheme(s,n,l){var c,p;const r=await a.updateTheme(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThemeV1alpha1Api.updateTheme"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},No=function(e,a,s){const n=je(e);return{createTheme(l={},r){return n.createTheme(l.theme,r).then(t=>t(s,a))},deleteTheme(l,r){return n.deleteTheme(l.name,r).then(t=>t(s,a))},getTheme(l,r){return n.getTheme(l.name,r).then(t=>t(s,a))},listTheme(l={},r){return n.listTheme(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchTheme(l,r){return n.patchTheme(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateTheme(l,r){return n.updateTheme(l.name,l.theme,r).then(t=>t(s,a))}}};class Xs extends I{createTheme(a={},s){return je(this.configuration).createTheme(a.theme,s).then(n=>n(this.axios,this.basePath))}deleteTheme(a,s){return je(this.configuration).deleteTheme(a.name,s).then(n=>n(this.axios,this.basePath))}getTheme(a,s){return je(this.configuration).getTheme(a.name,s).then(n=>n(this.axios,this.basePath))}listTheme(a={},s){return je(this.configuration).listTheme(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchTheme(a,s){return je(this.configuration).patchTheme(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateTheme(a,s){return je(this.configuration).updateTheme(a.name,a.theme,s).then(n=>n(this.axios,this.basePath))}}const Ys=function(e){return{activateTheme:async(a,s={})=>{C("activateTheme","name",a);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/activation".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},fetchActivatedTheme:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/themes/-/activation",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},fetchThemeConfig:async(a,s={})=>{C("fetchThemeConfig","name",a);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/config".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},fetchThemeSetting:async(a,s={})=>{C("fetchThemeSetting","name",a);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/setting".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},installTheme:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/themes/install",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"POST",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},installThemeFromUri:async(a,s={})=>{C("installThemeFromUri","installFromUriRequest",a);const n="/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},invalidateCache:async(a,s={})=>{C("invalidateCache","name",a);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/invalidate-cache".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listThemes:async(a,s,n,l,r,t={})=>{const o="/apis/api.console.halo.run/v1alpha1/themes",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r!==void 0&&(d.uninstalled=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},reload:async(a,s={})=>{C("reload","name",a);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/reload".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},resetThemeConfig:async(a,s={})=>{C("resetThemeConfig","name",a);const n="/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},updateThemeConfig:async(a,s,n={})=>{C("updateThemeConfig","name",a),C("updateThemeConfig","configMap",s);const l="/apis/api.console.halo.run/v1alpha1/themes/{name}/config".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},upgradeTheme:async(a,s,n={})=>{C("upgradeTheme","name",a),C("upgradeTheme","file",s);const l="/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={},h=new(e&&e.formDataCtor||FormData);O(o,e),await u(c,e),s!==void 0&&h.append("file",s),c["Content-Type"]="multipart/form-data",v(r,p);let i=t&&t.headers?t.headers:{};return o.headers={...c,...i,...n.headers},o.data=h,{url:S(r),options:o}},upgradeThemeFromUri:async(a,s,n={})=>{C("upgradeThemeFromUri","name",a),C("upgradeThemeFromUri","upgradeFromUriRequest",s);const l="/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade-from-uri".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Q=function(e){const a=Ys(e);return{async activateTheme(s,n){var o,c;const l=await a.activateTheme(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1ConsoleApi.activateTheme"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async fetchActivatedTheme(s){var t,o;const n=await a.fetchActivatedTheme(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["ThemeV1alpha1ConsoleApi.fetchActivatedTheme"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async fetchThemeConfig(s,n){var o,c;const l=await a.fetchThemeConfig(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1ConsoleApi.fetchThemeConfig"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async fetchThemeSetting(s,n){var o,c;const l=await a.fetchThemeSetting(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1ConsoleApi.fetchThemeSetting"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async installTheme(s){var t,o;const n=await a.installTheme(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["ThemeV1alpha1ConsoleApi.installTheme"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async installThemeFromUri(s,n){var o,c;const l=await a.installThemeFromUri(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1ConsoleApi.installThemeFromUri"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async invalidateCache(s,n){var o,c;const l=await a.invalidateCache(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1ConsoleApi.invalidateCache"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listThemes(s,n,l,r,t,o){var i,d;const c=await a.listThemes(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ThemeV1alpha1ConsoleApi.listThemes"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async reload(s,n){var o,c;const l=await a.reload(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1ConsoleApi.reload"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async resetThemeConfig(s,n){var o,c;const l=await a.resetThemeConfig(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThemeV1alpha1ConsoleApi.resetThemeConfig"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async updateThemeConfig(s,n,l){var c,p;const r=await a.updateThemeConfig(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThemeV1alpha1ConsoleApi.updateThemeConfig"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async upgradeTheme(s,n,l){var c,p;const r=await a.upgradeTheme(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThemeV1alpha1ConsoleApi.upgradeTheme"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async upgradeThemeFromUri(s,n,l){var c,p;const r=await a.upgradeThemeFromUri(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThemeV1alpha1ConsoleApi.upgradeThemeFromUri"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Ho=function(e,a,s){const n=Q(e);return{activateTheme(l,r){return n.activateTheme(l.name,r).then(t=>t(s,a))},fetchActivatedTheme(l){return n.fetchActivatedTheme(l).then(r=>r(s,a))},fetchThemeConfig(l,r){return n.fetchThemeConfig(l.name,r).then(t=>t(s,a))},fetchThemeSetting(l,r){return n.fetchThemeSetting(l.name,r).then(t=>t(s,a))},installTheme(l){return n.installTheme(l).then(r=>r(s,a))},installThemeFromUri(l,r){return n.installThemeFromUri(l.installFromUriRequest,r).then(t=>t(s,a))},invalidateCache(l,r){return n.invalidateCache(l.name,r).then(t=>t(s,a))},listThemes(l={},r){return n.listThemes(l.page,l.size,l.labelSelector,l.fieldSelector,l.uninstalled,r).then(t=>t(s,a))},reload(l,r){return n.reload(l.name,r).then(t=>t(s,a))},resetThemeConfig(l,r){return n.resetThemeConfig(l.name,r).then(t=>t(s,a))},updateThemeConfig(l,r){return n.updateThemeConfig(l.name,l.configMap,r).then(t=>t(s,a))},upgradeTheme(l,r){return n.upgradeTheme(l.name,l.file,r).then(t=>t(s,a))},upgradeThemeFromUri(l,r){return n.upgradeThemeFromUri(l.name,l.upgradeFromUriRequest,r).then(t=>t(s,a))}}};class Zs extends I{activateTheme(a,s){return Q(this.configuration).activateTheme(a.name,s).then(n=>n(this.axios,this.basePath))}fetchActivatedTheme(a){return Q(this.configuration).fetchActivatedTheme(a).then(s=>s(this.axios,this.basePath))}fetchThemeConfig(a,s){return Q(this.configuration).fetchThemeConfig(a.name,s).then(n=>n(this.axios,this.basePath))}fetchThemeSetting(a,s){return Q(this.configuration).fetchThemeSetting(a.name,s).then(n=>n(this.axios,this.basePath))}installTheme(a){return Q(this.configuration).installTheme(a).then(s=>s(this.axios,this.basePath))}installThemeFromUri(a,s){return Q(this.configuration).installThemeFromUri(a.installFromUriRequest,s).then(n=>n(this.axios,this.basePath))}invalidateCache(a,s){return Q(this.configuration).invalidateCache(a.name,s).then(n=>n(this.axios,this.basePath))}listThemes(a={},s){return Q(this.configuration).listThemes(a.page,a.size,a.labelSelector,a.fieldSelector,a.uninstalled,s).then(n=>n(this.axios,this.basePath))}reload(a,s){return Q(this.configuration).reload(a.name,s).then(n=>n(this.axios,this.basePath))}resetThemeConfig(a,s){return Q(this.configuration).resetThemeConfig(a.name,s).then(n=>n(this.axios,this.basePath))}updateThemeConfig(a,s){return Q(this.configuration).updateThemeConfig(a.name,a.configMap,s).then(n=>n(this.axios,this.basePath))}upgradeTheme(a,s){return Q(this.configuration).upgradeTheme(a.name,a.file,s).then(n=>n(this.axios,this.basePath))}upgradeThemeFromUri(a,s){return Q(this.configuration).upgradeThemeFromUri(a.name,a.upgradeFromUriRequest,s).then(n=>n(this.axios,this.basePath))}}const qs=function(e){return{createThumbnail:async(a,s={})=>{const n="/apis/storage.halo.run/v1alpha1/thumbnails",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteThumbnail:async(a,s={})=>{C("deleteThumbnail","name",a);const n="/apis/storage.halo.run/v1alpha1/thumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getThumbnail:async(a,s={})=>{C("getThumbnail","name",a);const n="/apis/storage.halo.run/v1alpha1/thumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listThumbnail:async(a,s,n,l,r,t={})=>{const o="/apis/storage.halo.run/v1alpha1/thumbnails",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchThumbnail:async(a,s,n={})=>{C("patchThumbnail","name",a);const l="/apis/storage.halo.run/v1alpha1/thumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateThumbnail:async(a,s,n={})=>{C("updateThumbnail","name",a);const l="/apis/storage.halo.run/v1alpha1/thumbnails/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Le=function(e){const a=qs(e);return{async createThumbnail(s,n){var o,c;const l=await a.createThumbnail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThumbnailV1alpha1Api.createThumbnail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteThumbnail(s,n){var o,c;const l=await a.deleteThumbnail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThumbnailV1alpha1Api.deleteThumbnail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getThumbnail(s,n){var o,c;const l=await a.getThumbnail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["ThumbnailV1alpha1Api.getThumbnail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listThumbnail(s,n,l,r,t,o){var i,d;const c=await a.listThumbnail(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["ThumbnailV1alpha1Api.listThumbnail"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchThumbnail(s,n,l){var c,p;const r=await a.patchThumbnail(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThumbnailV1alpha1Api.patchThumbnail"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateThumbnail(s,n,l){var c,p;const r=await a.updateThumbnail(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThumbnailV1alpha1Api.updateThumbnail"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},Mo=function(e,a,s){const n=Le(e);return{createThumbnail(l={},r){return n.createThumbnail(l.thumbnail,r).then(t=>t(s,a))},deleteThumbnail(l,r){return n.deleteThumbnail(l.name,r).then(t=>t(s,a))},getThumbnail(l,r){return n.getThumbnail(l.name,r).then(t=>t(s,a))},listThumbnail(l={},r){return n.listThumbnail(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchThumbnail(l,r){return n.patchThumbnail(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateThumbnail(l,r){return n.updateThumbnail(l.name,l.thumbnail,r).then(t=>t(s,a))}}};class Qo extends I{createThumbnail(a={},s){return Le(this.configuration).createThumbnail(a.thumbnail,s).then(n=>n(this.axios,this.basePath))}deleteThumbnail(a,s){return Le(this.configuration).deleteThumbnail(a.name,s).then(n=>n(this.axios,this.basePath))}getThumbnail(a,s){return Le(this.configuration).getThumbnail(a.name,s).then(n=>n(this.axios,this.basePath))}listThumbnail(a={},s){return Le(this.configuration).listThumbnail(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchThumbnail(a,s){return Le(this.configuration).patchThumbnail(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateThumbnail(a,s){return Le(this.configuration).updateThumbnail(a.name,a.thumbnail,s).then(n=>n(this.axios,this.basePath))}}const fs=function(e){return{getThumbnailByUri:async(a,s,n={})=>{C("getThumbnailByUri","uri",a),C("getThumbnailByUri","width",s);const l="/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri",r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"GET",...t,...n},c={},p={};O(o,e),await u(c,e),a!==void 0&&(p.uri=a),s!==void 0&&(p.width=s),v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},{url:S(r),options:o}}}},et=function(e){const a=fs(e);return{async getThumbnailByUri(s,n,l){var c,p;const r=await a.getThumbnailByUri(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["ThumbnailV1alpha1PublicApi.getThumbnailByUri"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},ko=function(e,a,s){const n=et(e);return{getThumbnailByUri(l,r){return n.getThumbnailByUri(l.uri,l.width,r).then(t=>t(s,a))}}};class $o extends I{getThumbnailByUri(a,s){return et(this.configuration).getThumbnailByUri(a.uri,a.width,s).then(n=>n(this.axios,this.basePath))}}const gs=function(e){return{configurerTotp:async(a,s={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteTotp:async(a,s={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/-",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},disableTwoFactor:async(a,s={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},enableTwoFactor:async(a,s={})=>{const n="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},getTotpAuthLink:async(a={})=>{const s="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},getTwoFactorAuthenticationSettings:async(a={})=>{const s="/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}}}},De=function(e){const a=gs(e);return{async configurerTotp(s,n){var o,c;const l=await a.configurerTotp(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TwoFactorAuthV1alpha1UcApi.configurerTotp"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteTotp(s,n){var o,c;const l=await a.deleteTotp(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TwoFactorAuthV1alpha1UcApi.deleteTotp"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async disableTwoFactor(s,n){var o,c;const l=await a.disableTwoFactor(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TwoFactorAuthV1alpha1UcApi.disableTwoFactor"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async enableTwoFactor(s,n){var o,c;const l=await a.enableTwoFactor(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["TwoFactorAuthV1alpha1UcApi.enableTwoFactor"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getTotpAuthLink(s){var t,o;const n=await a.getTotpAuthLink(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["TwoFactorAuthV1alpha1UcApi.getTotpAuthLink"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async getTwoFactorAuthenticationSettings(s){var t,o;const n=await a.getTwoFactorAuthenticationSettings(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["TwoFactorAuthV1alpha1UcApi.getTwoFactorAuthenticationSettings"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)}}},Go=function(e,a,s){const n=De(e);return{configurerTotp(l={},r){return n.configurerTotp(l.totpRequest,r).then(t=>t(s,a))},deleteTotp(l={},r){return n.deleteTotp(l.passwordRequest,r).then(t=>t(s,a))},disableTwoFactor(l={},r){return n.disableTwoFactor(l.passwordRequest,r).then(t=>t(s,a))},enableTwoFactor(l={},r){return n.enableTwoFactor(l.passwordRequest,r).then(t=>t(s,a))},getTotpAuthLink(l){return n.getTotpAuthLink(l).then(r=>r(s,a))},getTwoFactorAuthenticationSettings(l){return n.getTwoFactorAuthenticationSettings(l).then(r=>r(s,a))}}};class el extends I{configurerTotp(a={},s){return De(this.configuration).configurerTotp(a.totpRequest,s).then(n=>n(this.axios,this.basePath))}deleteTotp(a={},s){return De(this.configuration).deleteTotp(a.passwordRequest,s).then(n=>n(this.axios,this.basePath))}disableTwoFactor(a={},s){return De(this.configuration).disableTwoFactor(a.passwordRequest,s).then(n=>n(this.axios,this.basePath))}enableTwoFactor(a={},s){return De(this.configuration).enableTwoFactor(a.passwordRequest,s).then(n=>n(this.axios,this.basePath))}getTotpAuthLink(a){return De(this.configuration).getTotpAuthLink(a).then(s=>s(this.axios,this.basePath))}getTwoFactorAuthenticationSettings(a){return De(this.configuration).getTwoFactorAuthenticationSettings(a).then(s=>s(this.axios,this.basePath))}}const al=function(e){return{createUserConnection:async(a,s={})=>{const n="/apis/auth.halo.run/v1alpha1/userconnections",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteUserConnection:async(a,s={})=>{C("deleteUserConnection","name",a);const n="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getUserConnection:async(a,s={})=>{C("getUserConnection","name",a);const n="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listUserConnection:async(a,s,n,l,r,t={})=>{const o="/apis/auth.halo.run/v1alpha1/userconnections",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchUserConnection:async(a,s,n={})=>{C("patchUserConnection","name",a);const l="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateUserConnection:async(a,s,n={})=>{C("updateUserConnection","name",a);const l="/apis/auth.halo.run/v1alpha1/userconnections/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},Ne=function(e){const a=al(e);return{async createUserConnection(s,n){var o,c;const l=await a.createUserConnection(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserConnectionV1alpha1Api.createUserConnection"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteUserConnection(s,n){var o,c;const l=await a.deleteUserConnection(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserConnectionV1alpha1Api.deleteUserConnection"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getUserConnection(s,n){var o,c;const l=await a.getUserConnection(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserConnectionV1alpha1Api.getUserConnection"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listUserConnection(s,n,l,r,t,o){var i,d;const c=await a.listUserConnection(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["UserConnectionV1alpha1Api.listUserConnection"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchUserConnection(s,n,l){var c,p;const r=await a.patchUserConnection(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserConnectionV1alpha1Api.patchUserConnection"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateUserConnection(s,n,l){var c,p;const r=await a.updateUserConnection(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserConnectionV1alpha1Api.updateUserConnection"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},zo=function(e,a,s){const n=Ne(e);return{createUserConnection(l={},r){return n.createUserConnection(l.userConnection,r).then(t=>t(s,a))},deleteUserConnection(l,r){return n.deleteUserConnection(l.name,r).then(t=>t(s,a))},getUserConnection(l,r){return n.getUserConnection(l.name,r).then(t=>t(s,a))},listUserConnection(l={},r){return n.listUserConnection(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchUserConnection(l,r){return n.patchUserConnection(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateUserConnection(l,r){return n.updateUserConnection(l.name,l.userConnection,r).then(t=>t(s,a))}}};class tl extends I{createUserConnection(a={},s){return Ne(this.configuration).createUserConnection(a.userConnection,s).then(n=>n(this.axios,this.basePath))}deleteUserConnection(a,s){return Ne(this.configuration).deleteUserConnection(a.name,s).then(n=>n(this.axios,this.basePath))}getUserConnection(a,s){return Ne(this.configuration).getUserConnection(a.name,s).then(n=>n(this.axios,this.basePath))}listUserConnection(a={},s){return Ne(this.configuration).listUserConnection(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchUserConnection(a,s){return Ne(this.configuration).patchUserConnection(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateUserConnection(a,s){return Ne(this.configuration).updateUserConnection(a.name,a.userConnection,s).then(n=>n(this.axios,this.basePath))}}const rl=function(e){return{createUser:async(a,s={})=>{const n="/api/v1alpha1/users",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteUser:async(a,s={})=>{C("deleteUser","name",a);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getUser:async(a,s={})=>{C("getUser","name",a);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},listUser:async(a,s,n,l,r,t={})=>{const o="/api/v1alpha1/users",c=new URL(o,P);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...t},i={},d={};O(h,e),await u(i,e),a!==void 0&&(d.page=a),s!==void 0&&(d.size=s),n&&(d.labelSelector=n),l&&(d.fieldSelector=l),r&&(d.sort=r),v(c,d);let R=p&&p.headers?p.headers:{};return h.headers={...i,...R,...t.headers},{url:S(c),options:h}},patchUser:async(a,s,n={})=>{C("patchUser","name",a);const l="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PATCH",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json-patch+json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},updateUser:async(a,s,n={})=>{C("updateUser","name",a);const l="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}}}},He=function(e){const a=rl(e);return{async createUser(s,n){var o,c;const l=await a.createUser(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1Api.createUser"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteUser(s,n){var o,c;const l=await a.deleteUser(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1Api.deleteUser"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getUser(s,n){var o,c;const l=await a.getUser(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1Api.getUser"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async listUser(s,n,l,r,t,o){var i,d;const c=await a.listUser(s,n,l,r,t,o),p=(e==null?void 0:e.serverIndex)??0,h=(d=(i=y["UserV1alpha1Api.listUser"])==null?void 0:i[p])==null?void 0:d.url;return(R,T)=>A(c,V,m,e)(R,h||T)},async patchUser(s,n,l){var c,p;const r=await a.patchUser(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserV1alpha1Api.patchUser"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async updateUser(s,n,l){var c,p;const r=await a.updateUser(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserV1alpha1Api.updateUser"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)}}},_o=function(e,a,s){const n=He(e);return{createUser(l={},r){return n.createUser(l.user,r).then(t=>t(s,a))},deleteUser(l,r){return n.deleteUser(l.name,r).then(t=>t(s,a))},getUser(l,r){return n.getUser(l.name,r).then(t=>t(s,a))},listUser(l={},r){return n.listUser(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,r).then(t=>t(s,a))},patchUser(l,r){return n.patchUser(l.name,l.jsonPatchInner,r).then(t=>t(s,a))},updateUser(l,r){return n.updateUser(l.name,l.user,r).then(t=>t(s,a))}}};class sl extends I{createUser(a={},s){return He(this.configuration).createUser(a.user,s).then(n=>n(this.axios,this.basePath))}deleteUser(a,s){return He(this.configuration).deleteUser(a.name,s).then(n=>n(this.axios,this.basePath))}getUser(a,s){return He(this.configuration).getUser(a.name,s).then(n=>n(this.axios,this.basePath))}listUser(a={},s){return He(this.configuration).listUser(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,s).then(n=>n(this.axios,this.basePath))}patchUser(a,s){return He(this.configuration).patchUser(a.name,a.jsonPatchInner,s).then(n=>n(this.axios,this.basePath))}updateUser(a,s){return He(this.configuration).updateUser(a.name,a.user,s).then(n=>n(this.axios,this.basePath))}}const ll=function(e){return{changeAnyonePassword:async(a,s,n={})=>{C("changeAnyonePassword","name",a),C("changeAnyonePassword","changePasswordRequest",s);const l="/apis/api.console.halo.run/v1alpha1/users/{name}/password".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},changeOwnPassword:async(a,s={})=>{C("changeOwnPassword","changeOwnPasswordRequest",a);const n="/apis/api.console.halo.run/v1alpha1/users/-/password",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},createUser:async(a,s={})=>{C("createUser","createUserRequest",a);const n="/apis/api.console.halo.run/v1alpha1/users",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},deleteUserAvatar:async(a,s={})=>{C("deleteUserAvatar","name",a);const n="/apis/api.console.halo.run/v1alpha1/users/{name}/avatar".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"DELETE",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getCurrentUserDetail:async(a={})=>{const s="/apis/api.console.halo.run/v1alpha1/users/-",n=new URL(s,P);let l;e&&(l=e.baseOptions);const r={method:"GET",...l,...a},t={},o={};O(r,e),await u(t,e),v(n,o);let c=l&&l.headers?l.headers:{};return r.headers={...t,...c,...a.headers},{url:S(n),options:r}},getPermissions:async(a,s={})=>{C("getPermissions","name",a);const n="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},getUserDetail:async(a,s={})=>{C("getUserDetail","name",a);const n="/apis/api.console.halo.run/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(a))),l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"GET",...r,...s},o={},c={};O(t,e),await u(o,e),v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},{url:S(l),options:t}},grantPermission:async(a,s,n={})=>{C("grantPermission","name",a),C("grantPermission","grantRequest",s);const l="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},listUsers:async(a,s,n,l,r,t,o,c={})=>{const p="/apis/api.console.halo.run/v1alpha1/users",h=new URL(p,P);let i;e&&(i=e.baseOptions);const d={method:"GET",...i,...c},R={},T={};O(d,e),await u(R,e),a!==void 0&&(T.page=a),s!==void 0&&(T.size=s),n&&(T.labelSelector=n),l&&(T.fieldSelector=l),r&&(T.sort=r),t!==void 0&&(T.keyword=t),o!==void 0&&(T.role=o),v(h,T);let U=i&&i.headers?i.headers:{};return d.headers={...R,...U,...c.headers},{url:S(h),options:d}},sendEmailVerificationCode:async(a,s={})=>{C("sendEmailVerificationCode","emailVerifyRequest",a);const n="/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},updateCurrentUser:async(a,s={})=>{C("updateCurrentUser","user",a);const n="/apis/api.console.halo.run/v1alpha1/users/-",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"PUT",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},uploadUserAvatar:async(a,s,n={})=>{C("uploadUserAvatar","name",a),C("uploadUserAvatar","file",s);const l="/apis/api.console.halo.run/v1alpha1/users/{name}/avatar".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"POST",...t,...n},c={},p={},h=new(e&&e.formDataCtor||FormData);O(o,e),await u(c,e),s!==void 0&&h.append("file",s),c["Content-Type"]="multipart/form-data",v(r,p);let i=t&&t.headers?t.headers:{};return o.headers={...c,...i,...n.headers},o.data=h,{url:S(r),options:o}},verifyEmail:async(a,s={})=>{C("verifyEmail","verifyCodeRequest",a);const n="/apis/api.console.halo.run/v1alpha1/users/-/verify-email",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}}}},k=function(e){const a=ll(e);return{async changeAnyonePassword(s,n,l){var c,p;const r=await a.changeAnyonePassword(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserV1alpha1ConsoleApi.changeAnyonePassword"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async changeOwnPassword(s,n){var o,c;const l=await a.changeOwnPassword(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.changeOwnPassword"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async createUser(s,n){var o,c;const l=await a.createUser(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.createUser"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async deleteUserAvatar(s,n){var o,c;const l=await a.deleteUserAvatar(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.deleteUserAvatar"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getCurrentUserDetail(s){var t,o;const n=await a.getCurrentUserDetail(s),l=(e==null?void 0:e.serverIndex)??0,r=(o=(t=y["UserV1alpha1ConsoleApi.getCurrentUserDetail"])==null?void 0:t[l])==null?void 0:o.url;return(c,p)=>A(n,V,m,e)(c,r||p)},async getPermissions(s,n){var o,c;const l=await a.getPermissions(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.getPermissions"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async getUserDetail(s,n){var o,c;const l=await a.getUserDetail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.getUserDetail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async grantPermission(s,n,l){var c,p;const r=await a.grantPermission(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserV1alpha1ConsoleApi.grantPermission"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async listUsers(s,n,l,r,t,o,c,p){var R,T;const h=await a.listUsers(s,n,l,r,t,o,c,p),i=(e==null?void 0:e.serverIndex)??0,d=(T=(R=y["UserV1alpha1ConsoleApi.listUsers"])==null?void 0:R[i])==null?void 0:T.url;return(U,B)=>A(h,V,m,e)(U,d||B)},async sendEmailVerificationCode(s,n){var o,c;const l=await a.sendEmailVerificationCode(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.sendEmailVerificationCode"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async updateCurrentUser(s,n){var o,c;const l=await a.updateCurrentUser(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.updateCurrentUser"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async uploadUserAvatar(s,n,l){var c,p;const r=await a.uploadUserAvatar(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserV1alpha1ConsoleApi.uploadUserAvatar"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async verifyEmail(s,n){var o,c;const l=await a.verifyEmail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1ConsoleApi.verifyEmail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},Wo=function(e,a,s){const n=k(e);return{changeAnyonePassword(l,r){return n.changeAnyonePassword(l.name,l.changePasswordRequest,r).then(t=>t(s,a))},changeOwnPassword(l,r){return n.changeOwnPassword(l.changeOwnPasswordRequest,r).then(t=>t(s,a))},createUser(l,r){return n.createUser(l.createUserRequest,r).then(t=>t(s,a))},deleteUserAvatar(l,r){return n.deleteUserAvatar(l.name,r).then(t=>t(s,a))},getCurrentUserDetail(l){return n.getCurrentUserDetail(l).then(r=>r(s,a))},getPermissions(l,r){return n.getPermissions(l.name,r).then(t=>t(s,a))},getUserDetail(l,r){return n.getUserDetail(l.name,r).then(t=>t(s,a))},grantPermission(l,r){return n.grantPermission(l.name,l.grantRequest,r).then(t=>t(s,a))},listUsers(l={},r){return n.listUsers(l.page,l.size,l.labelSelector,l.fieldSelector,l.sort,l.keyword,l.role,r).then(t=>t(s,a))},sendEmailVerificationCode(l,r){return n.sendEmailVerificationCode(l.emailVerifyRequest,r).then(t=>t(s,a))},updateCurrentUser(l,r){return n.updateCurrentUser(l.user,r).then(t=>t(s,a))},uploadUserAvatar(l,r){return n.uploadUserAvatar(l.name,l.file,r).then(t=>t(s,a))},verifyEmail(l,r){return n.verifyEmail(l.verifyCodeRequest,r).then(t=>t(s,a))}}};class nl extends I{changeAnyonePassword(a,s){return k(this.configuration).changeAnyonePassword(a.name,a.changePasswordRequest,s).then(n=>n(this.axios,this.basePath))}changeOwnPassword(a,s){return k(this.configuration).changeOwnPassword(a.changeOwnPasswordRequest,s).then(n=>n(this.axios,this.basePath))}createUser(a,s){return k(this.configuration).createUser(a.createUserRequest,s).then(n=>n(this.axios,this.basePath))}deleteUserAvatar(a,s){return k(this.configuration).deleteUserAvatar(a.name,s).then(n=>n(this.axios,this.basePath))}getCurrentUserDetail(a){return k(this.configuration).getCurrentUserDetail(a).then(s=>s(this.axios,this.basePath))}getPermissions(a,s){return k(this.configuration).getPermissions(a.name,s).then(n=>n(this.axios,this.basePath))}getUserDetail(a,s){return k(this.configuration).getUserDetail(a.name,s).then(n=>n(this.axios,this.basePath))}grantPermission(a,s){return k(this.configuration).grantPermission(a.name,a.grantRequest,s).then(n=>n(this.axios,this.basePath))}listUsers(a={},s){return k(this.configuration).listUsers(a.page,a.size,a.labelSelector,a.fieldSelector,a.sort,a.keyword,a.role,s).then(n=>n(this.axios,this.basePath))}sendEmailVerificationCode(a,s){return k(this.configuration).sendEmailVerificationCode(a.emailVerifyRequest,s).then(n=>n(this.axios,this.basePath))}updateCurrentUser(a,s){return k(this.configuration).updateCurrentUser(a.user,s).then(n=>n(this.axios,this.basePath))}uploadUserAvatar(a,s){return k(this.configuration).uploadUserAvatar(a.name,a.file,s).then(n=>n(this.axios,this.basePath))}verifyEmail(a,s){return k(this.configuration).verifyEmail(a.verifyCodeRequest,s).then(n=>n(this.axios,this.basePath))}}const ol=function(e){return{resetPasswordByToken:async(a,s,n={})=>{C("resetPasswordByToken","name",a),C("resetPasswordByToken","resetPasswordRequest",s);const l="/apis/api.halo.run/v1alpha1/users/{name}/reset-password".replace("{name}",encodeURIComponent(String(a))),r=new URL(l,P);let t;e&&(t=e.baseOptions);const o={method:"PUT",...t,...n},c={},p={};O(o,e),await u(c,e),c["Content-Type"]="application/json",v(r,p);let h=t&&t.headers?t.headers:{};return o.headers={...c,...h,...n.headers},o.data=w(s,o,e),{url:S(r),options:o}},sendPasswordResetEmail:async(a,s={})=>{C("sendPasswordResetEmail","passwordResetEmailRequest",a);const n="/apis/api.halo.run/v1alpha1/users/-/send-password-reset-email",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},sendRegisterVerifyEmail:async(a,s={})=>{C("sendRegisterVerifyEmail","registerVerifyEmailRequest",a);const n="/apis/api.halo.run/v1alpha1/users/-/send-register-verify-email",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}},signUp:async(a,s={})=>{C("signUp","signUpRequest",a);const n="/apis/api.halo.run/v1alpha1/users/-/signup",l=new URL(n,P);let r;e&&(r=e.baseOptions);const t={method:"POST",...r,...s},o={},c={};O(t,e),await u(o,e),o["Content-Type"]="application/json",v(l,c);let p=r&&r.headers?r.headers:{};return t.headers={...o,...p,...s.headers},t.data=w(a,t,e),{url:S(l),options:t}}}},qe=function(e){const a=ol(e);return{async resetPasswordByToken(s,n,l){var c,p;const r=await a.resetPasswordByToken(s,n,l),t=(e==null?void 0:e.serverIndex)??0,o=(p=(c=y["UserV1alpha1PublicApi.resetPasswordByToken"])==null?void 0:c[t])==null?void 0:p.url;return(h,i)=>A(r,V,m,e)(h,o||i)},async sendPasswordResetEmail(s,n){var o,c;const l=await a.sendPasswordResetEmail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1PublicApi.sendPasswordResetEmail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async sendRegisterVerifyEmail(s,n){var o,c;const l=await a.sendRegisterVerifyEmail(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1PublicApi.sendRegisterVerifyEmail"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)},async signUp(s,n){var o,c;const l=await a.signUp(s,n),r=(e==null?void 0:e.serverIndex)??0,t=(c=(o=y["UserV1alpha1PublicApi.signUp"])==null?void 0:o[r])==null?void 0:c.url;return(p,h)=>A(l,V,m,e)(p,t||h)}}},Ko=function(e,a,s){const n=qe(e);return{resetPasswordByToken(l,r){return n.resetPasswordByToken(l.name,l.resetPasswordRequest,r).then(t=>t(s,a))},sendPasswordResetEmail(l,r){return n.sendPasswordResetEmail(l.passwordResetEmailRequest,r).then(t=>t(s,a))},sendRegisterVerifyEmail(l,r){return n.sendRegisterVerifyEmail(l.registerVerifyEmailRequest,r).then(t=>t(s,a))},signUp(l,r){return n.signUp(l.signUpRequest,r).then(t=>t(s,a))}}};class cl extends I{resetPasswordByToken(a,s){return qe(this.configuration).resetPasswordByToken(a.name,a.resetPasswordRequest,s).then(n=>n(this.axios,this.basePath))}sendPasswordResetEmail(a,s){return qe(this.configuration).sendPasswordResetEmail(a.passwordResetEmailRequest,s).then(n=>n(this.axios,this.basePath))}sendRegisterVerifyEmail(a,s){return qe(this.configuration).sendRegisterVerifyEmail(a.registerVerifyEmailRequest,s).then(n=>n(this.axios,this.basePath))}signUp(a,s){return qe(this.configuration).signUp(a.signUpRequest,s).then(n=>n(this.axios,this.basePath))}}class Jo{constructor(a={}){this.apiKey=a.apiKey,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.serverIndex=a.serverIndex,this.baseOptions=a.baseOptions,this.formDataCtor=a.formDataCtor}isJsonMime(a){const s=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return a!==null&&(s.test(a)||a.toLowerCase()==="application/json-patch+json")}}const Xo={Add:"add"},Yo={Pending:"PENDING",Running:"RUNNING",Succeeded:"SUCCEEDED",Failed:"FAILED"},Zo={True:"TRUE",False:"FALSE",Unknown:"UNKNOWN"},qo={Copy:"copy"},fo={Singleton:"SINGLETON",MultiInstance:"MULTI_INSTANCE"},go={S:"S",M:"M",L:"L",Xl:"XL"},ec={Pending:"PENDING",Succeeded:"SUCCEEDED",Failed:"FAILED"},ac={Blank:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},tc={Move:"move"},rc={Created:"CREATED",Disabled:"DISABLED",Resolved:"RESOLVED",Started:"STARTED",Stopped:"STOPPED",Failed:"FAILED",Unloaded:"UNLOADED"},sc={Pending:"PENDING",Starting:"STARTING",Created:"CREATED",Disabling:"DISABLING",Disabled:"DISABLED",Resolved:"RESOLVED",Started:"STARTED",Stopped:"STOPPED",Failed:"FAILED",Unknown:"UNKNOWN"},lc={Public:"PUBLIC",Internal:"INTERNAL",Private:"PRIVATE"},nc={Remove:"remove"},oc={Replace:"replace"},cc={Public:"PUBLIC",Internal:"INTERNAL",Private:"PRIVATE"},pc={Test:"test"},hc={Ready:"READY",Failed:"FAILED",Unknown:"UNKNOWN"},ic={S:"S",M:"M",L:"L",Xl:"XL"};var dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mc(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var s=function n(){return this instanceof n?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};s.prototype=a.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),s}var yc=Error,Pc=EvalError,Oc=RangeError,uc=ReferenceError,pl=SyntaxError,va=TypeError,vc=URIError,Sc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},s=Symbol("test"),n=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var l=42;a[s]=l;for(s in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var r=Object.getOwnPropertySymbols(a);if(r.length!==1||r[0]!==s||!Object.prototype.propertyIsEnumerable.call(a,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var t=Object.getOwnPropertyDescriptor(a,s);if(t.value!==l||t.enumerable!==!0)return!1}return!0},hl=typeof Symbol<"u"&&Symbol,Ac=Sc,bc=function(){return typeof hl!="function"||typeof Symbol!="function"||typeof hl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ac()},at={__proto__:null,foo:{}},Rc=Object,Cc=function(){return{__proto__:at}.foo===at.foo&&!(at instanceof Rc)},Tc="Function.prototype.bind called on incompatible ",wc=Object.prototype.toString,Uc=Math.max,Ic="[object Function]",il=function(a,s){for(var n=[],l=0;l<a.length;l+=1)n[l]=a[l];for(var r=0;r<s.length;r+=1)n[r+a.length]=s[r];return n},Bc=function(a,s){for(var n=[],l=s,r=0;l<a.length;l+=1,r+=1)n[r]=a[l];return n},xc=function(e,a){for(var s="",n=0;n<e.length;n+=1)s+=e[n],n+1<e.length&&(s+=a);return s},Fc=function(a){var s=this;if(typeof s!="function"||wc.apply(s)!==Ic)throw new TypeError(Tc+s);for(var n=Bc(arguments,1),l,r=function(){if(this instanceof l){var h=s.apply(this,il(n,arguments));return Object(h)===h?h:this}return s.apply(a,il(n,arguments))},t=Uc(0,s.length-n.length),o=[],c=0;c<t;c++)o[c]="$"+c;if(l=Function("binder","return function ("+xc(o,",")+"){ return binder.apply(this,arguments); }")(r),s.prototype){var p=function(){};p.prototype=s.prototype,l.prototype=new p,p.prototype=null}return l},Ec=Fc,tt=Function.prototype.bind||Ec,jc=Function.prototype.call,Lc=Object.prototype.hasOwnProperty,Dc=tt,Nc=Dc.call(jc,Lc),x,Hc=yc,Mc=Pc,Qc=Oc,kc=uc,fe=pl,ge=va,$c=vc,dl=Function,rt=function(e){try{return dl('"use strict"; return ('+e+").constructor;")()}catch{}},Ke=Object.getOwnPropertyDescriptor;if(Ke)try{Ke({},"")}catch{Ke=null}var st=function(){throw new ge},Gc=Ke?function(){try{return arguments.callee,st}catch{try{return Ke(arguments,"callee").get}catch{return st}}}():st,ea=bc(),zc=Cc(),D=Object.getPrototypeOf||(zc?function(e){return e.__proto__}:null),aa={},_c=typeof Uint8Array>"u"||!D?x:D(Uint8Array),Je={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?x:ArrayBuffer,"%ArrayIteratorPrototype%":ea&&D?D([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":aa,"%AsyncGenerator%":aa,"%AsyncGeneratorFunction%":aa,"%AsyncIteratorPrototype%":aa,"%Atomics%":typeof Atomics>"u"?x:Atomics,"%BigInt%":typeof BigInt>"u"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Hc,"%eval%":eval,"%EvalError%":Mc,"%Float32Array%":typeof Float32Array>"u"?x:Float32Array,"%Float64Array%":typeof Float64Array>"u"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?x:FinalizationRegistry,"%Function%":dl,"%GeneratorFunction%":aa,"%Int8Array%":typeof Int8Array>"u"?x:Int8Array,"%Int16Array%":typeof Int16Array>"u"?x:Int16Array,"%Int32Array%":typeof Int32Array>"u"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ea&&D?D(D([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map>"u"?x:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ea||!D?x:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?x:Promise,"%Proxy%":typeof Proxy>"u"?x:Proxy,"%RangeError%":Qc,"%ReferenceError%":kc,"%Reflect%":typeof Reflect>"u"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?x:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ea||!D?x:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ea&&D?D(""[Symbol.iterator]()):x,"%Symbol%":ea?Symbol:x,"%SyntaxError%":fe,"%ThrowTypeError%":Gc,"%TypedArray%":_c,"%TypeError%":ge,"%Uint8Array%":typeof Uint8Array>"u"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?x:Uint32Array,"%URIError%":$c,"%WeakMap%":typeof WeakMap>"u"?x:WeakMap,"%WeakRef%":typeof WeakRef>"u"?x:WeakRef,"%WeakSet%":typeof WeakSet>"u"?x:WeakSet};if(D)try{null.error}catch(e){var Wc=D(D(e));Je["%Error.prototype%"]=Wc}var Kc=function e(a){var s;if(a==="%AsyncFunction%")s=rt("async function () {}");else if(a==="%GeneratorFunction%")s=rt("function* () {}");else if(a==="%AsyncGeneratorFunction%")s=rt("async function* () {}");else if(a==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(s=n.prototype)}else if(a==="%AsyncIteratorPrototype%"){var l=e("%AsyncGenerator%");l&&D&&(s=D(l.prototype))}return Je[a]=s,s},Vl={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Sa=tt,Da=Nc,Jc=Sa.call(Function.call,Array.prototype.concat),Xc=Sa.call(Function.apply,Array.prototype.splice),ml=Sa.call(Function.call,String.prototype.replace),Na=Sa.call(Function.call,String.prototype.slice),Yc=Sa.call(Function.call,RegExp.prototype.exec),Zc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qc=/\\(\\)?/g,fc=function(a){var s=Na(a,0,1),n=Na(a,-1);if(s==="%"&&n!=="%")throw new fe("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&s!=="%")throw new fe("invalid intrinsic syntax, expected opening `%`");var l=[];return ml(a,Zc,function(r,t,o,c){l[l.length]=o?ml(c,qc,"$1"):t||r}),l},gc=function(a,s){var n=a,l;if(Da(Vl,n)&&(l=Vl[n],n="%"+l[0]+"%"),Da(Je,n)){var r=Je[n];if(r===aa&&(r=Kc(n)),typeof r>"u"&&!s)throw new ge("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:l,name:n,value:r}}throw new fe("intrinsic "+a+" does not exist!")},ta=function(a,s){if(typeof a!="string"||a.length===0)throw new ge("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ge('"allowMissing" argument must be a boolean');if(Yc(/^%?[^%]*%?$/,a)===null)throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fc(a),l=n.length>0?n[0]:"",r=gc("%"+l+"%",s),t=r.name,o=r.value,c=!1,p=r.alias;p&&(l=p[0],Xc(n,Jc([0,1],p)));for(var h=1,i=!0;h<n.length;h+=1){var d=n[h],R=Na(d,0,1),T=Na(d,-1);if((R==='"'||R==="'"||R==="`"||T==='"'||T==="'"||T==="`")&&R!==T)throw new fe("property names with quotes must have matching quotes");if((d==="constructor"||!i)&&(c=!0),l+="."+d,t="%"+l+"%",Da(Je,t))o=Je[t];else if(o!=null){if(!(d in o)){if(!s)throw new ge("base intrinsic for "+a+" exists, but the property is not available.");return}if(Ke&&h+1>=n.length){var U=Ke(o,d);i=!!U,i&&"get"in U&&!("originalValue"in U.get)?o=U.get:o=o[d]}else i=Da(o,d),o=o[d];i&&!c&&(Je[t]=o)}}return o},yl={exports:{}},lt,Pl;function nt(){if(Pl)return lt;Pl=1;var e=ta,a=e("%Object.defineProperty%",!0)||!1;if(a)try{a({},"a",{value:1})}catch{a=!1}return lt=a,lt}var ep=ta,Ha=ep("%Object.getOwnPropertyDescriptor%",!0);if(Ha)try{Ha([],"length")}catch{Ha=null}var Ol=Ha,ul=nt(),ap=pl,ra=va,vl=Ol,tp=function(a,s,n){if(!a||typeof a!="object"&&typeof a!="function")throw new ra("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new ra("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ra("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ra("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ra("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ra("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,r=arguments.length>4?arguments[4]:null,t=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,c=!!vl&&vl(a,s);if(ul)ul(a,s,{configurable:t===null&&c?c.configurable:!t,enumerable:l===null&&c?c.enumerable:!l,value:n,writable:r===null&&c?c.writable:!r});else if(o||!l&&!r&&!t)a[s]=n;else throw new ap("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ot=nt(),Sl=function(){return!!ot};Sl.hasArrayLengthDefineBug=function(){if(!ot)return null;try{return ot([],"length",{value:1}).length!==1}catch{return!0}};var rp=Sl,sp=ta,Al=tp,lp=rp(),bl=Ol,Rl=va,np=sp("%Math.floor%"),op=function(a,s){if(typeof a!="function")throw new Rl("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||np(s)!==s)throw new Rl("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],l=!0,r=!0;if("length"in a&&bl){var t=bl(a,"length");t&&!t.configurable&&(l=!1),t&&!t.writable&&(r=!1)}return(l||r||!n)&&(lp?Al(a,"length",s,!0,!0):Al(a,"length",s)),a};(function(e){var a=tt,s=ta,n=op,l=va,r=s("%Function.prototype.apply%"),t=s("%Function.prototype.call%"),o=s("%Reflect.apply%",!0)||a.call(t,r),c=nt(),p=s("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new l("a function is required");var R=o(a,t,arguments);return n(R,1+p(0,d.length-(arguments.length-1)),!0)};var h=function(){return o(a,r,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h})(yl);var cp=yl.exports,Cl=ta,Tl=cp,pp=Tl(Cl("String.prototype.indexOf")),hp=function(a,s){var n=Cl(a,!!s);return typeof n=="function"&&pp(a,".prototype.")>-1?Tl(n):n};const ip=mc(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ct=typeof Map=="function"&&Map.prototype,pt=Object.getOwnPropertyDescriptor&&ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ma=ct&&pt&&typeof pt.get=="function"?pt.get:null,wl=ct&&Map.prototype.forEach,ht=typeof Set=="function"&&Set.prototype,it=Object.getOwnPropertyDescriptor&&ht?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Qa=ht&&it&&typeof it.get=="function"?it.get:null,Ul=ht&&Set.prototype.forEach,dp=typeof WeakMap=="function"&&WeakMap.prototype,Aa=dp?WeakMap.prototype.has:null,Vp=typeof WeakSet=="function"&&WeakSet.prototype,ba=Vp?WeakSet.prototype.has:null,mp=typeof WeakRef=="function"&&WeakRef.prototype,Il=mp?WeakRef.prototype.deref:null,yp=Boolean.prototype.valueOf,Pp=Object.prototype.toString,Op=Function.prototype.toString,up=String.prototype.match,dt=String.prototype.slice,Me=String.prototype.replace,vp=String.prototype.toUpperCase,Bl=String.prototype.toLowerCase,xl=RegExp.prototype.test,Fl=Array.prototype.concat,W=Array.prototype.join,Sp=Array.prototype.slice,El=Math.floor,Vt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mt=Object.getOwnPropertySymbols,yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sa=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sa||!0)?Symbol.toStringTag:null,jl=Object.prototype.propertyIsEnumerable,Ll=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Dl(e,a){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||xl.call(/e/,a))return a;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-El(-e):El(e);if(n!==e){var l=String(n),r=dt.call(a,l.length+1);return Me.call(l,s,"$&_")+"."+Me.call(Me.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Me.call(a,s,"$&_")}var Pt=ip,Nl=Pt.custom,Hl=kl(Nl)?Nl:null,Ap=function e(a,s,n,l){var r=s||{};if(Qe(r,"quoteStyle")&&r.quoteStyle!=="single"&&r.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Qe(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var t=Qe(r,"customInspect")?r.customInspect:!0;if(typeof t!="boolean"&&t!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Qe(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Qe(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof a>"u")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return Gl(a,r);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var c=String(a);return o?Dl(a,c):c}if(typeof a=="bigint"){var p=String(a)+"n";return o?Dl(a,p):p}var h=typeof r.depth>"u"?5:r.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof a=="object")return Ot(a)?"[Array]":"[Object]";var i=Qp(r,n);if(typeof l>"u")l=[];else if($l(l,a)>=0)return"[Circular]";function d(z,ze,_e){if(ze&&(l=Sp.call(l),l.push(ze)),_e){var wa={depth:r.depth};return Qe(r,"quoteStyle")&&(wa.quoteStyle=r.quoteStyle),e(z,wa,n+1,l)}return e(z,r,n+1,l)}if(typeof a=="function"&&!Ql(a)){var R=xp(a),T=ka(a,d);return"[Function"+(R?": "+R:" (anonymous)")+"]"+(T.length>0?" { "+W.call(T,", ")+" }":"")}if(kl(a)){var U=sa?Me.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):yt.call(a);return typeof a=="object"&&!sa?Ra(U):U}if(Np(a)){for(var B="<"+Bl.call(String(a.nodeName)),E=a.attributes||[],G=0;G<E.length;G++)B+=" "+E[G].name+"="+Ml(bp(E[G].value),"double",r);return B+=">",a.childNodes&&a.childNodes.length&&(B+="..."),B+="</"+Bl.call(String(a.nodeName))+">",B}if(Ot(a)){if(a.length===0)return"[]";var F=ka(a,d);return i&&!Mp(F)?"["+vt(F,i)+"]":"[ "+W.call(F,", ")+" ]"}if(Cp(a)){var $e=ka(a,d);return!("cause"in Error.prototype)&&"cause"in a&&!jl.call(a,"cause")?"{ ["+String(a)+"] "+W.call(Fl.call("[cause]: "+d(a.cause),$e),", ")+" }":$e.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+W.call($e,", ")+" }"}if(typeof a=="object"&&t){if(Hl&&typeof a[Hl]=="function"&&Pt)return Pt(a,{depth:h-n});if(t!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(Fp(a)){var Ye=[];return wl&&wl.call(a,function(z,ze){Ye.push(d(ze,a,!0)+" => "+d(z,a))}),zl("Map",Ma.call(a),Ye,i)}if(Lp(a)){var Ta=[];return Ul&&Ul.call(a,function(z){Ta.push(d(z,a))}),zl("Set",Qa.call(a),Ta,i)}if(Ep(a))return ut("WeakMap");if(Dp(a))return ut("WeakSet");if(jp(a))return ut("WeakRef");if(wp(a))return Ra(d(Number(a)));if(Ip(a))return Ra(d(Vt.call(a)));if(Up(a))return Ra(yp.call(a));if(Tp(a))return Ra(d(String(a)));if(typeof window<"u"&&a===window)return"{ [object Window] }";if(a===dc)return"{ [object globalThis] }";if(!Rp(a)&&!Ql(a)){var ca=ka(a,d),_a=Ll?Ll(a)===Object.prototype:a instanceof Object||a.constructor===Object,Ze=a instanceof Object?"":"null prototype",Ge=!_a&&H&&Object(a)===a&&H in a?dt.call(ke(a),8,-1):Ze?"Object":"",Wa=_a||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",pa=Wa+(Ge||Ze?"["+W.call(Fl.call([],Ge||[],Ze||[]),": ")+"] ":"");return ca.length===0?pa+"{}":i?pa+"{"+vt(ca,i)+"}":pa+"{ "+W.call(ca,", ")+" }"}return String(a)};function Ml(e,a,s){var n=(s.quoteStyle||a)==="double"?'"':"'";return n+e+n}function bp(e){return Me.call(String(e),/"/g,""")}function Ot(e){return ke(e)==="[object Array]"&&(!H||!(typeof e=="object"&&H in e))}function Rp(e){return ke(e)==="[object Date]"&&(!H||!(typeof e=="object"&&H in e))}function Ql(e){return ke(e)==="[object RegExp]"&&(!H||!(typeof e=="object"&&H in e))}function Cp(e){return ke(e)==="[object Error]"&&(!H||!(typeof e=="object"&&H in e))}function Tp(e){return ke(e)==="[object String]"&&(!H||!(typeof e=="object"&&H in e))}function wp(e){return ke(e)==="[object Number]"&&(!H||!(typeof e=="object"&&H in e))}function Up(e){return ke(e)==="[object Boolean]"&&(!H||!(typeof e=="object"&&H in e))}function kl(e){if(sa)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!yt)return!1;try{return yt.call(e),!0}catch{}return!1}function Ip(e){if(!e||typeof e!="object"||!Vt)return!1;try{return Vt.call(e),!0}catch{}return!1}var Bp=Object.prototype.hasOwnProperty||function(e){return e in this};function Qe(e,a){return Bp.call(e,a)}function ke(e){return Pp.call(e)}function xp(e){if(e.name)return e.name;var a=up.call(Op.call(e),/^function\s*([\w$]+)/);return a?a[1]:null}function $l(e,a){if(e.indexOf)return e.indexOf(a);for(var s=0,n=e.length;s<n;s++)if(e[s]===a)return s;return-1}function Fp(e){if(!Ma||!e||typeof e!="object")return!1;try{Ma.call(e);try{Qa.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ep(e){if(!Aa||!e||typeof e!="object")return!1;try{Aa.call(e,Aa);try{ba.call(e,ba)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function jp(e){if(!Il||!e||typeof e!="object")return!1;try{return Il.call(e),!0}catch{}return!1}function Lp(e){if(!Qa||!e||typeof e!="object")return!1;try{Qa.call(e);try{Ma.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Dp(e){if(!ba||!e||typeof e!="object")return!1;try{ba.call(e,ba);try{Aa.call(e,Aa)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Np(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Gl(e,a){if(e.length>a.maxStringLength){var s=e.length-a.maxStringLength,n="... "+s+" more character"+(s>1?"s":"");return Gl(dt.call(e,0,a.maxStringLength),a)+n}var l=Me.call(Me.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Hp);return Ml(l,"single",a)}function Hp(e){var a=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return s?"\\"+s:"\\x"+(a<16?"0":"")+vp.call(a.toString(16))}function Ra(e){return"Object("+e+")"}function ut(e){return e+" { ? }"}function zl(e,a,s,n){var l=n?vt(s,n):W.call(s,", ");return e+" ("+a+") {"+l+"}"}function Mp(e){for(var a=0;a<e.length;a++)if($l(e[a],`
|
|
2
|
+
`)>=0)return!1;return!0}function Qp(e,a){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=W.call(Array(e.indent+1)," ");else return null;return{base:s,prev:W.call(Array(a+1),s)}}function vt(e,a){if(e.length===0)return"";var s=`
|
|
3
|
+
`+a.prev+a.base;return s+W.call(e,","+s)+`
|
|
4
|
+
`+a.prev}function ka(e,a){var s=Ot(e),n=[];if(s){n.length=e.length;for(var l=0;l<e.length;l++)n[l]=Qe(e,l)?a(e[l],e):""}var r=typeof mt=="function"?mt(e):[],t;if(sa){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=r[o]}for(var c in e)Qe(e,c)&&(s&&String(Number(c))===c&&c<e.length||sa&&t["$"+c]instanceof Symbol||(xl.call(/[^\w$]/,c)?n.push(a(c,e)+": "+a(e[c],e)):n.push(c+": "+a(e[c],e))));if(typeof mt=="function")for(var p=0;p<r.length;p++)jl.call(e,r[p])&&n.push("["+a(r[p])+"]: "+a(e[r[p]],e));return n}var _l=ta,la=hp,kp=Ap,$p=va,$a=_l("%WeakMap%",!0),Ga=_l("%Map%",!0),Gp=la("WeakMap.prototype.get",!0),zp=la("WeakMap.prototype.set",!0),_p=la("WeakMap.prototype.has",!0),Wp=la("Map.prototype.get",!0),Kp=la("Map.prototype.set",!0),Jp=la("Map.prototype.has",!0),St=function(e,a){for(var s=e,n;(n=s.next)!==null;s=n)if(n.key===a)return s.next=n.next,n.next=e.next,e.next=n,n},Xp=function(e,a){var s=St(e,a);return s&&s.value},Yp=function(e,a,s){var n=St(e,a);n?n.value=s:e.next={key:a,next:e.next,value:s}},Zp=function(e,a){return!!St(e,a)},qp=function(){var a,s,n,l={assert:function(r){if(!l.has(r))throw new $p("Side channel does not contain "+kp(r))},get:function(r){if($a&&r&&(typeof r=="object"||typeof r=="function")){if(a)return Gp(a,r)}else if(Ga){if(s)return Wp(s,r)}else if(n)return Xp(n,r)},has:function(r){if($a&&r&&(typeof r=="object"||typeof r=="function")){if(a)return _p(a,r)}else if(Ga){if(s)return Jp(s,r)}else if(n)return Zp(n,r);return!1},set:function(r,t){$a&&r&&(typeof r=="object"||typeof r=="function")?(a||(a=new $a),zp(a,r,t)):Ga?(s||(s=new Ga),Kp(s,r,t)):(n||(n={key:{},next:null}),Yp(n,r,t))}};return l},fp=String.prototype.replace,gp=/%20/g,At={RFC1738:"RFC1738",RFC3986:"RFC3986"},bt={default:At.RFC3986,formatters:{RFC1738:function(e){return fp.call(e,gp,"+")},RFC3986:function(e){return String(e)}},RFC1738:At.RFC1738,RFC3986:At.RFC3986},eh=bt,Rt=Object.prototype.hasOwnProperty,Xe=Array.isArray,K=function(){for(var e=[],a=0;a<256;++a)e.push("%"+((a<16?"0":"")+a.toString(16)).toUpperCase());return e}(),ah=function(a){for(;a.length>1;){var s=a.pop(),n=s.obj[s.prop];if(Xe(n)){for(var l=[],r=0;r<n.length;++r)typeof n[r]<"u"&&l.push(n[r]);s.obj[s.prop]=l}}},Wl=function(a,s){for(var n=s&&s.plainObjects?Object.create(null):{},l=0;l<a.length;++l)typeof a[l]<"u"&&(n[l]=a[l]);return n},th=function e(a,s,n){if(!s)return a;if(typeof s!="object"){if(Xe(a))a.push(s);else if(a&&typeof a=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Rt.call(Object.prototype,s))&&(a[s]=!0);else return[a,s];return a}if(!a||typeof a!="object")return[a].concat(s);var l=a;return Xe(a)&&!Xe(s)&&(l=Wl(a,n)),Xe(a)&&Xe(s)?(s.forEach(function(r,t){if(Rt.call(a,t)){var o=a[t];o&&typeof o=="object"&&r&&typeof r=="object"?a[t]=e(o,r,n):a.push(r)}else a[t]=r}),a):Object.keys(s).reduce(function(r,t){var o=s[t];return Rt.call(r,t)?r[t]=e(r[t],o,n):r[t]=o,r},l)},rh=function(a,s){return Object.keys(s).reduce(function(n,l){return n[l]=s[l],n},a)},sh=function(e,a,s){var n=e.replace(/\+/g," ");if(s==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Ct=1024,lh=function(a,s,n,l,r){if(a.length===0)return a;var t=a;if(typeof a=="symbol"?t=Symbol.prototype.toString.call(a):typeof a!="string"&&(t=String(a)),n==="iso-8859-1")return escape(t).replace(/%u[0-9a-f]{4}/gi,function(R){return"%26%23"+parseInt(R.slice(2),16)+"%3B"});for(var o="",c=0;c<t.length;c+=Ct){for(var p=t.length>=Ct?t.slice(c,c+Ct):t,h=[],i=0;i<p.length;++i){var d=p.charCodeAt(i);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===eh.RFC1738&&(d===40||d===41)){h[h.length]=p.charAt(i);continue}if(d<128){h[h.length]=K[d];continue}if(d<2048){h[h.length]=K[192|d>>6]+K[128|d&63];continue}if(d<55296||d>=57344){h[h.length]=K[224|d>>12]+K[128|d>>6&63]+K[128|d&63];continue}i+=1,d=65536+((d&1023)<<10|p.charCodeAt(i)&1023),h[h.length]=K[240|d>>18]+K[128|d>>12&63]+K[128|d>>6&63]+K[128|d&63]}o+=h.join("")}return o},nh=function(a){for(var s=[{obj:{o:a},prop:"o"}],n=[],l=0;l<s.length;++l)for(var r=s[l],t=r.obj[r.prop],o=Object.keys(t),c=0;c<o.length;++c){var p=o[c],h=t[p];typeof h=="object"&&h!==null&&n.indexOf(h)===-1&&(s.push({obj:t,prop:p}),n.push(h))}return ah(s),a},oh=function(a){return Object.prototype.toString.call(a)==="[object RegExp]"},ch=function(a){return!a||typeof a!="object"?!1:!!(a.constructor&&a.constructor.isBuffer&&a.constructor.isBuffer(a))},ph=function(a,s){return[].concat(a,s)},hh=function(a,s){if(Xe(a)){for(var n=[],l=0;l<a.length;l+=1)n.push(s(a[l]));return n}return s(a)},Kl={arrayToObject:Wl,assign:rh,combine:ph,compact:nh,decode:sh,encode:lh,isBuffer:ch,isRegExp:oh,maybeMap:hh,merge:th},Jl=qp,za=Kl,Ca=bt,ih=Object.prototype.hasOwnProperty,Xl={brackets:function(a){return a+"[]"},comma:"comma",indices:function(a,s){return a+"["+s+"]"},repeat:function(a){return a}},J=Array.isArray,dh=Array.prototype.push,Yl=function(e,a){dh.apply(e,J(a)?a:[a])},Vh=Date.prototype.toISOString,Zl=Ca.default,L={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:za.encode,encodeValuesOnly:!1,format:Zl,formatter:Ca.formatters[Zl],indices:!1,serializeDate:function(a){return Vh.call(a)},skipNulls:!1,strictNullHandling:!1},mh=function(a){return typeof a=="string"||typeof a=="number"||typeof a=="boolean"||typeof a=="symbol"||typeof a=="bigint"},Tt={},yh=function e(a,s,n,l,r,t,o,c,p,h,i,d,R,T,U,B,E,G){for(var F=a,$e=G,Ye=0,Ta=!1;($e=$e.get(Tt))!==void 0&&!Ta;){var ca=$e.get(a);if(Ye+=1,typeof ca<"u"){if(ca===Ye)throw new RangeError("Cyclic object value");Ta=!0}typeof $e.get(Tt)>"u"&&(Ye=0)}if(typeof h=="function"?F=h(s,F):F instanceof Date?F=R(F):n==="comma"&&J(F)&&(F=za.maybeMap(F,function(It){return It instanceof Date?R(It):It})),F===null){if(t)return p&&!B?p(s,L.encoder,E,"key",T):s;F=""}if(mh(F)||za.isBuffer(F)){if(p){var _a=B?s:p(s,L.encoder,E,"key",T);return[U(_a)+"="+U(p(F,L.encoder,E,"value",T))]}return[U(s)+"="+U(String(F))]}var Ze=[];if(typeof F>"u")return Ze;var Ge;if(n==="comma"&&J(F))B&&p&&(F=za.maybeMap(F,p)),Ge=[{value:F.length>0?F.join(",")||null:void 0}];else if(J(h))Ge=h;else{var Wa=Object.keys(F);Ge=i?Wa.sort(i):Wa}var pa=c?s.replace(/\./g,"%2E"):s,z=l&&J(F)&&F.length===1?pa+"[]":pa;if(r&&J(F)&&F.length===0)return z+"[]";for(var ze=0;ze<Ge.length;++ze){var _e=Ge[ze],wa=typeof _e=="object"&&typeof _e.value<"u"?_e.value:F[_e];if(!(o&&wa===null)){var Ut=d&&c?_e.replace(/\./g,"%2E"):_e,Nh=J(F)?typeof n=="function"?n(z,Ut):z:z+(d?"."+Ut:"["+Ut+"]");G.set(a,Ye);var tn=Jl();tn.set(Tt,G),Yl(Ze,e(wa,Nh,n,l,r,t,o,c,n==="comma"&&B&&J(F)?null:p,h,i,d,R,T,U,B,E,tn))}}return Ze},Ph=function(a){if(!a)return L;if(typeof a.allowEmptyArrays<"u"&&typeof a.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof a.encodeDotInKeys<"u"&&typeof a.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(a.encoder!==null&&typeof a.encoder<"u"&&typeof a.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=a.charset||L.charset;if(typeof a.charset<"u"&&a.charset!=="utf-8"&&a.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Ca.default;if(typeof a.format<"u"){if(!ih.call(Ca.formatters,a.format))throw new TypeError("Unknown format option provided.");n=a.format}var l=Ca.formatters[n],r=L.filter;(typeof a.filter=="function"||J(a.filter))&&(r=a.filter);var t;if(a.arrayFormat in Xl?t=a.arrayFormat:"indices"in a?t=a.indices?"indices":"repeat":t=L.arrayFormat,"commaRoundTrip"in a&&typeof a.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var o=typeof a.allowDots>"u"?a.encodeDotInKeys===!0?!0:L.allowDots:!!a.allowDots;return{addQueryPrefix:typeof a.addQueryPrefix=="boolean"?a.addQueryPrefix:L.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof a.allowEmptyArrays=="boolean"?!!a.allowEmptyArrays:L.allowEmptyArrays,arrayFormat:t,charset:s,charsetSentinel:typeof a.charsetSentinel=="boolean"?a.charsetSentinel:L.charsetSentinel,commaRoundTrip:a.commaRoundTrip,delimiter:typeof a.delimiter>"u"?L.delimiter:a.delimiter,encode:typeof a.encode=="boolean"?a.encode:L.encode,encodeDotInKeys:typeof a.encodeDotInKeys=="boolean"?a.encodeDotInKeys:L.encodeDotInKeys,encoder:typeof a.encoder=="function"?a.encoder:L.encoder,encodeValuesOnly:typeof a.encodeValuesOnly=="boolean"?a.encodeValuesOnly:L.encodeValuesOnly,filter:r,format:n,formatter:l,serializeDate:typeof a.serializeDate=="function"?a.serializeDate:L.serializeDate,skipNulls:typeof a.skipNulls=="boolean"?a.skipNulls:L.skipNulls,sort:typeof a.sort=="function"?a.sort:null,strictNullHandling:typeof a.strictNullHandling=="boolean"?a.strictNullHandling:L.strictNullHandling}},Oh=function(e,a){var s=e,n=Ph(a),l,r;typeof n.filter=="function"?(r=n.filter,s=r("",s)):J(n.filter)&&(r=n.filter,l=r);var t=[];if(typeof s!="object"||s===null)return"";var o=Xl[n.arrayFormat],c=o==="comma"&&n.commaRoundTrip;l||(l=Object.keys(s)),n.sort&&l.sort(n.sort);for(var p=Jl(),h=0;h<l.length;++h){var i=l[h];n.skipNulls&&s[i]===null||Yl(t,yh(s[i],i,o,c,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var d=t.join(n.delimiter),R=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),d.length>0?R+d:""},na=Kl,wt=Object.prototype.hasOwnProperty,uh=Array.isArray,j={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:na.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},vh=function(e){return e.replace(/&#(\d+);/g,function(a,s){return String.fromCharCode(parseInt(s,10))})},ql=function(e,a){return e&&typeof e=="string"&&a.comma&&e.indexOf(",")>-1?e.split(","):e},Sh="utf8=%26%2310003%3B",Ah="utf8=%E2%9C%93",bh=function(a,s){var n={__proto__:null},l=s.ignoreQueryPrefix?a.replace(/^\?/,""):a;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=s.parameterLimit===1/0?void 0:s.parameterLimit,t=l.split(s.delimiter,r),o=-1,c,p=s.charset;if(s.charsetSentinel)for(c=0;c<t.length;++c)t[c].indexOf("utf8=")===0&&(t[c]===Ah?p="utf-8":t[c]===Sh&&(p="iso-8859-1"),o=c,c=t.length);for(c=0;c<t.length;++c)if(c!==o){var h=t[c],i=h.indexOf("]="),d=i===-1?h.indexOf("="):i+1,R,T;d===-1?(R=s.decoder(h,j.decoder,p,"key"),T=s.strictNullHandling?null:""):(R=s.decoder(h.slice(0,d),j.decoder,p,"key"),T=na.maybeMap(ql(h.slice(d+1),s),function(B){return s.decoder(B,j.decoder,p,"value")})),T&&s.interpretNumericEntities&&p==="iso-8859-1"&&(T=vh(T)),h.indexOf("[]=")>-1&&(T=uh(T)?[T]:T);var U=wt.call(n,R);U&&s.duplicates==="combine"?n[R]=na.combine(n[R],T):(!U||s.duplicates==="last")&&(n[R]=T)}return n},Rh=function(e,a,s,n){for(var l=n?a:ql(a,s),r=e.length-1;r>=0;--r){var t,o=e[r];if(o==="[]"&&s.parseArrays)t=s.allowEmptyArrays&&(l===""||s.strictNullHandling&&l===null)?[]:[].concat(l);else{t=s.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,p=s.decodeDotInKeys?c.replace(/%2E/g,"."):c,h=parseInt(p,10);!s.parseArrays&&p===""?t={0:l}:!isNaN(h)&&o!==p&&String(h)===p&&h>=0&&s.parseArrays&&h<=s.arrayLimit?(t=[],t[h]=l):p!=="__proto__"&&(t[p]=l)}l=t}return l},Ch=function(a,s,n,l){if(a){var r=n.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a,t=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&t.exec(r),p=c?r.slice(0,c.index):r,h=[];if(p){if(!n.plainObjects&&wt.call(Object.prototype,p)&&!n.allowPrototypes)return;h.push(p)}for(var i=0;n.depth>0&&(c=o.exec(r))!==null&&i<n.depth;){if(i+=1,!n.plainObjects&&wt.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;h.push(c[1])}if(c){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");h.push("["+r.slice(c.index)+"]")}return Rh(h,s,n,l)}},Th=function(a){if(!a)return j;if(typeof a.allowEmptyArrays<"u"&&typeof a.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof a.decodeDotInKeys<"u"&&typeof a.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(a.decoder!==null&&typeof a.decoder<"u"&&typeof a.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof a.charset<"u"&&a.charset!=="utf-8"&&a.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof a.charset>"u"?j.charset:a.charset,n=typeof a.duplicates>"u"?j.duplicates:a.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof a.allowDots>"u"?a.decodeDotInKeys===!0?!0:j.allowDots:!!a.allowDots;return{allowDots:l,allowEmptyArrays:typeof a.allowEmptyArrays=="boolean"?!!a.allowEmptyArrays:j.allowEmptyArrays,allowPrototypes:typeof a.allowPrototypes=="boolean"?a.allowPrototypes:j.allowPrototypes,allowSparse:typeof a.allowSparse=="boolean"?a.allowSparse:j.allowSparse,arrayLimit:typeof a.arrayLimit=="number"?a.arrayLimit:j.arrayLimit,charset:s,charsetSentinel:typeof a.charsetSentinel=="boolean"?a.charsetSentinel:j.charsetSentinel,comma:typeof a.comma=="boolean"?a.comma:j.comma,decodeDotInKeys:typeof a.decodeDotInKeys=="boolean"?a.decodeDotInKeys:j.decodeDotInKeys,decoder:typeof a.decoder=="function"?a.decoder:j.decoder,delimiter:typeof a.delimiter=="string"||na.isRegExp(a.delimiter)?a.delimiter:j.delimiter,depth:typeof a.depth=="number"||a.depth===!1?+a.depth:j.depth,duplicates:n,ignoreQueryPrefix:a.ignoreQueryPrefix===!0,interpretNumericEntities:typeof a.interpretNumericEntities=="boolean"?a.interpretNumericEntities:j.interpretNumericEntities,parameterLimit:typeof a.parameterLimit=="number"?a.parameterLimit:j.parameterLimit,parseArrays:a.parseArrays!==!1,plainObjects:typeof a.plainObjects=="boolean"?a.plainObjects:j.plainObjects,strictDepth:typeof a.strictDepth=="boolean"?!!a.strictDepth:j.strictDepth,strictNullHandling:typeof a.strictNullHandling=="boolean"?a.strictNullHandling:j.strictNullHandling}},wh=function(e,a){var s=Th(a);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?bh(e,s):e,l=s.plainObjects?Object.create(null):{},r=Object.keys(n),t=0;t<r.length;++t){var o=r[t],c=Ch(o,n[o],s,typeof e=="string");l=na.merge(l,c,s)}return s.allowSparse===!0?l:na.compact(l)},Uh=Oh,Ih=wh,Bh=bt,xh={formats:Bh,parse:Ih,stringify:Uh};const Fh=Vc(xh),oa=V.create({baseURL:"",withCredentials:!0,paramsSerializer:e=>Fh.stringify(e,{arrayFormat:"repeat"})});oa.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";function fl(e){const a=e.defaults.baseURL;return{annotationSetting:new xt(void 0,a,e),menu:new Ar(void 0,a,e),menuItem:new vr(void 0,a,e),setting:new ws(void 0,a,e),configMap:new er(void 0,a,e),secret:new Cs(void 0,a,e),user:new sl(void 0,a,e),role:new Ss(void 0,a,e),roleBinding:new us(void 0,a,e),content:{category:new Wt(void 0,a,e),comment:new Xt(void 0,a,e),post:new gr(void 0,a,e),reply:new ds(void 0,a,e),singlePage:new Is(void 0,a,e),snapshot:new js(void 0,a,e),tag:new zs(void 0,a,e)},auth:{authProvider:new Qt(void 0,a,e),userConnection:new tl(void 0,a,e)},storage:{attachment:new jt(void 0,a,e),group:new ir(void 0,a,e),policy:new qr(void 0,a,e),policyTemplate:new Yr(void 0,a,e)},plugin:{extensionDefinition:new or(void 0,a,e),extensionPointDefinition:new pr(void 0,a,e),plugin:new _r(void 0,a,e),reverseProxy:new Ps(void 0,a,e),searchEngine:new bs(void 0,a,e)},metrics:{counter:new tr(void 0,a,e)},theme:{theme:new Xs(void 0,a,e)},notification:{notification:new Fr(void 0,a,e),notificationTemplate:new Br(void 0,a,e),notifierDescriptor:new Dr(void 0,a,e),reason:new ps(void 0,a,e),reasonType:new os(void 0,a,e),subscription:new Hs(void 0,a,e)},migration:{backup:new zt(void 0,a,e)},security:{personalAccessToken:new kr(void 0,a,e)}}}function gl(e){const a=e.defaults.baseURL;return{user:new nl(void 0,a,e),system:new Qs(void 0,a,e),migration:new Ur(void 0,a,e),login:new Or(void 0,a,e),storage:{attachment:new Dt(void 0,a,e)},auth:{authProvider:new $t(void 0,a,e)},content:{comment:new Zt(void 0,a,e),reply:new ms(void 0,a,e),indices:new mr(void 0,a,e),post:new as(void 0,a,e),singlePage:new xs(void 0,a,e),tag:new Ws(void 0,a,e)},notification:{notifier:new Hr(void 0,a,e)},plugin:{plugin:new Kr(void 0,a,e)},theme:{theme:new Zs(void 0,a,e)}}}function en(e){const a=e.defaults.baseURL;return{storage:{attachment:new Ht(void 0,a,e)},content:{post:new ls(void 0,a,e),snapshot:new Ds(void 0,a,e)},security:{twoFactor:new el(void 0,a,e),personalAccessToken:new Gr(void 0,a,e),device:new lr(void 0,a,e)},notification:{notification:new jr(void 0,a,e)}}}function an(e){const a=e.defaults.baseURL;return{menu:new Rr(void 0,a,e),stats:new $s(void 0,a,e),user:new cl(void 0,a,e),content:{post:new rs(void 0,a,e),comment:new ft(void 0,a,e)},metrics:{metrics:new Tr(void 0,a,e)}}}const Eh=fl(oa),jh=gl(oa),Lh=en(oa),Dh=an(oa);return b.AddOperationOpEnum=Xo,b.AnnotationSettingV1alpha1Api=xt,b.AnnotationSettingV1alpha1ApiAxiosParamCreator=Bt,b.AnnotationSettingV1alpha1ApiFactory=sn,b.AnnotationSettingV1alpha1ApiFp=X,b.ApiNotificationHaloRunV1alpha1SubscriptionApi=nn,b.ApiNotificationHaloRunV1alpha1SubscriptionApiAxiosParamCreator=Ft,b.ApiNotificationHaloRunV1alpha1SubscriptionApiFactory=ln,b.ApiNotificationHaloRunV1alpha1SubscriptionApiFp=Ja,b.AttachmentV1alpha1Api=jt,b.AttachmentV1alpha1ApiAxiosParamCreator=Et,b.AttachmentV1alpha1ApiFactory=on,b.AttachmentV1alpha1ApiFp=Y,b.AttachmentV1alpha1ConsoleApi=Dt,b.AttachmentV1alpha1ConsoleApiAxiosParamCreator=Lt,b.AttachmentV1alpha1ConsoleApiFactory=cn,b.AttachmentV1alpha1ConsoleApiFp=ha,b.AttachmentV1alpha1UcApi=Ht,b.AttachmentV1alpha1UcApiAxiosParamCreator=Nt,b.AttachmentV1alpha1UcApiFactory=pn,b.AttachmentV1alpha1UcApiFp=Ua,b.AuthProviderV1alpha1Api=Qt,b.AuthProviderV1alpha1ApiAxiosParamCreator=Mt,b.AuthProviderV1alpha1ApiFactory=hn,b.AuthProviderV1alpha1ApiFp=Z,b.AuthProviderV1alpha1ConsoleApi=$t,b.AuthProviderV1alpha1ConsoleApiAxiosParamCreator=kt,b.AuthProviderV1alpha1ConsoleApiFactory=dn,b.AuthProviderV1alpha1ConsoleApiFp=ia,b.BackupStatusPhaseEnum=Yo,b.BackupV1alpha1Api=zt,b.BackupV1alpha1ApiAxiosParamCreator=Gt,b.BackupV1alpha1ApiFactory=Vn,b.BackupV1alpha1ApiFp=q,b.CategoryV1alpha1Api=Wt,b.CategoryV1alpha1ApiAxiosParamCreator=_t,b.CategoryV1alpha1ApiFactory=mn,b.CategoryV1alpha1ApiFp=f,b.CategoryV1alpha1PublicApi=Pn,b.CategoryV1alpha1PublicApiAxiosParamCreator=Kt,b.CategoryV1alpha1PublicApiFactory=yn,b.CategoryV1alpha1PublicApiFp=da,b.CommentV1alpha1Api=Xt,b.CommentV1alpha1ApiAxiosParamCreator=Jt,b.CommentV1alpha1ApiFactory=On,b.CommentV1alpha1ApiFp=g,b.CommentV1alpha1ConsoleApi=Zt,b.CommentV1alpha1ConsoleApiAxiosParamCreator=Yt,b.CommentV1alpha1ConsoleApiFactory=un,b.CommentV1alpha1ConsoleApiFp=Va,b.CommentV1alpha1PublicApi=ft,b.CommentV1alpha1PublicApiAxiosParamCreator=qt,b.CommentV1alpha1PublicApiFactory=vn,b.CommentV1alpha1PublicApiFp=We,b.ConditionStatusEnum=Zo,b.ConfigMapV1alpha1Api=er,b.ConfigMapV1alpha1ApiAxiosParamCreator=gt,b.ConfigMapV1alpha1ApiFactory=Sn,b.ConfigMapV1alpha1ApiFp=ee,b.Configuration=Jo,b.CopyOperationOpEnum=qo,b.CounterV1alpha1Api=tr,b.CounterV1alpha1ApiAxiosParamCreator=ar,b.CounterV1alpha1ApiFactory=An,b.CounterV1alpha1ApiFp=ae,b.DeviceV1alpha1Api=Rn,b.DeviceV1alpha1ApiAxiosParamCreator=rr,b.DeviceV1alpha1ApiFactory=bn,b.DeviceV1alpha1ApiFp=te,b.DeviceV1alpha1UcApi=lr,b.DeviceV1alpha1UcApiAxiosParamCreator=sr,b.DeviceV1alpha1UcApiFactory=Cn,b.DeviceV1alpha1UcApiFp=Ia,b.ExtensionDefinitionV1alpha1Api=or,b.ExtensionDefinitionV1alpha1ApiAxiosParamCreator=nr,b.ExtensionDefinitionV1alpha1ApiFactory=Tn,b.ExtensionDefinitionV1alpha1ApiFp=re,b.ExtensionPointDefinitionV1alpha1Api=pr,b.ExtensionPointDefinitionV1alpha1ApiAxiosParamCreator=cr,b.ExtensionPointDefinitionV1alpha1ApiFactory=wn,b.ExtensionPointDefinitionV1alpha1ApiFp=se,b.ExtensionPointSpecTypeEnum=fo,b.GroupV1alpha1Api=ir,b.GroupV1alpha1ApiAxiosParamCreator=hr,b.GroupV1alpha1ApiFactory=Un,b.GroupV1alpha1ApiFp=le,b.IndexV1alpha1PublicApi=Bn,b.IndexV1alpha1PublicApiAxiosParamCreator=dr,b.IndexV1alpha1PublicApiFactory=In,b.IndexV1alpha1PublicApiFp=Ba,b.IndicesV1alpha1ConsoleApi=mr,b.IndicesV1alpha1ConsoleApiAxiosParamCreator=Vr,b.IndicesV1alpha1ConsoleApiFactory=xn,b.IndicesV1alpha1ConsoleApiFp=xa,b.InstallPluginSourceEnum=Zn,b.ListMyPostsPublishPhaseEnum=oo,b.ListPostsPublishPhaseEnum=so,b.ListSinglePagesPublishPhaseEnum=Ro,b.ListSinglePagesVisibleEnum=Co,b.LocalThumbnailSpecSizeEnum=go,b.LocalThumbnailStatusPhaseEnum=ec,b.LocalThumbnailV1alpha1Api=En,b.LocalThumbnailV1alpha1ApiAxiosParamCreator=yr,b.LocalThumbnailV1alpha1ApiFactory=Fn,b.LocalThumbnailV1alpha1ApiFp=ne,b.LoginApi=Or,b.LoginApiAxiosParamCreator=Pr,b.LoginApiFactory=jn,b.LoginApiFp=Xa,b.MenuItemSpecTargetEnum=ac,b.MenuItemV1alpha1Api=vr,b.MenuItemV1alpha1ApiAxiosParamCreator=ur,b.MenuItemV1alpha1ApiFactory=Ln,b.MenuItemV1alpha1ApiFp=oe,b.MenuV1alpha1Api=Ar,b.MenuV1alpha1ApiAxiosParamCreator=Sr,b.MenuV1alpha1ApiFactory=Dn,b.MenuV1alpha1ApiFp=ce,b.MenuV1alpha1PublicApi=Rr,b.MenuV1alpha1PublicApiAxiosParamCreator=br,b.MenuV1alpha1PublicApiFactory=Nn,b.MenuV1alpha1PublicApiFp=Fa,b.MetricsV1alpha1PublicApi=Tr,b.MetricsV1alpha1PublicApiAxiosParamCreator=Cr,b.MetricsV1alpha1PublicApiFactory=Hn,b.MetricsV1alpha1PublicApiFp=ma,b.MigrationV1alpha1ConsoleApi=Ur,b.MigrationV1alpha1ConsoleApiAxiosParamCreator=wr,b.MigrationV1alpha1ConsoleApiFactory=Mn,b.MigrationV1alpha1ConsoleApiFp=ya,b.MoveOperationOpEnum=tc,b.NotificationTemplateV1alpha1Api=Br,b.NotificationTemplateV1alpha1ApiAxiosParamCreator=Ir,b.NotificationTemplateV1alpha1ApiFactory=Qn,b.NotificationTemplateV1alpha1ApiFp=pe,b.NotificationV1alpha1Api=Fr,b.NotificationV1alpha1ApiAxiosParamCreator=xr,b.NotificationV1alpha1ApiFactory=kn,b.NotificationV1alpha1ApiFp=he,b.NotificationV1alpha1UcApi=jr,b.NotificationV1alpha1UcApiAxiosParamCreator=Er,b.NotificationV1alpha1UcApiFactory=$n,b.NotificationV1alpha1UcApiFp=ie,b.NotifierDescriptorV1alpha1Api=Dr,b.NotifierDescriptorV1alpha1ApiAxiosParamCreator=Lr,b.NotifierDescriptorV1alpha1ApiFactory=Gn,b.NotifierDescriptorV1alpha1ApiFp=de,b.NotifierV1alpha1ConsoleApi=Hr,b.NotifierV1alpha1ConsoleApiAxiosParamCreator=Nr,b.NotifierV1alpha1ConsoleApiFactory=zn,b.NotifierV1alpha1ConsoleApiFp=Pa,b.NotifierV1alpha1UcApi=Wn,b.NotifierV1alpha1UcApiAxiosParamCreator=Mr,b.NotifierV1alpha1UcApiFactory=_n,b.NotifierV1alpha1UcApiFp=Ea,b.PersonalAccessTokenV1alpha1Api=kr,b.PersonalAccessTokenV1alpha1ApiAxiosParamCreator=Qr,b.PersonalAccessTokenV1alpha1ApiFactory=Kn,b.PersonalAccessTokenV1alpha1ApiFp=Ve,b.PersonalAccessTokenV1alpha1UcApi=Gr,b.PersonalAccessTokenV1alpha1UcApiAxiosParamCreator=$r,b.PersonalAccessTokenV1alpha1UcApiFactory=Jn,b.PersonalAccessTokenV1alpha1UcApiFp=me,b.PluginStatusLastProbeStateEnum=rc,b.PluginStatusPhaseEnum=sc,b.PluginV1alpha1Api=_r,b.PluginV1alpha1ApiAxiosParamCreator=zr,b.PluginV1alpha1ApiFactory=Xn,b.PluginV1alpha1ApiFp=ye,b.PluginV1alpha1ConsoleApi=Kr,b.PluginV1alpha1ConsoleApiAxiosParamCreator=Wr,b.PluginV1alpha1ConsoleApiFactory=Yn,b.PluginV1alpha1ConsoleApiFp=N,b.PluginV1alpha1PublicApi=gn,b.PluginV1alpha1PublicApiAxiosParamCreator=Jr,b.PluginV1alpha1PublicApiFactory=fn,b.PluginV1alpha1PublicApiFp=Ya,b.PolicyTemplateV1alpha1Api=Yr,b.PolicyTemplateV1alpha1ApiAxiosParamCreator=Xr,b.PolicyTemplateV1alpha1ApiFactory=eo,b.PolicyTemplateV1alpha1ApiFp=Pe,b.PolicyV1alpha1Api=qr,b.PolicyV1alpha1ApiAxiosParamCreator=Zr,b.PolicyV1alpha1ApiFactory=ao,b.PolicyV1alpha1ApiFp=Oe,b.PostSpecVisibleEnum=lc,b.PostV1alpha1Api=gr,b.PostV1alpha1ApiAxiosParamCreator=fr,b.PostV1alpha1ApiFactory=to,b.PostV1alpha1ApiFp=ue,b.PostV1alpha1ConsoleApi=as,b.PostV1alpha1ConsoleApiAxiosParamCreator=es,b.PostV1alpha1ConsoleApiFactory=ro,b.PostV1alpha1ConsoleApiFp=M,b.PostV1alpha1PublicApi=rs,b.PostV1alpha1PublicApiAxiosParamCreator=ts,b.PostV1alpha1PublicApiFactory=lo,b.PostV1alpha1PublicApiFp=Oa,b.PostV1alpha1UcApi=ls,b.PostV1alpha1UcApiAxiosParamCreator=ss,b.PostV1alpha1UcApiFactory=no,b.PostV1alpha1UcApiFp=_,b.ReasonTypeV1alpha1Api=os,b.ReasonTypeV1alpha1ApiAxiosParamCreator=ns,b.ReasonTypeV1alpha1ApiFactory=co,b.ReasonTypeV1alpha1ApiFp=ve,b.ReasonV1alpha1Api=ps,b.ReasonV1alpha1ApiAxiosParamCreator=cs,b.ReasonV1alpha1ApiFactory=po,b.ReasonV1alpha1ApiFp=Se,b.RememberMeTokenV1alpha1Api=io,b.RememberMeTokenV1alpha1ApiAxiosParamCreator=hs,b.RememberMeTokenV1alpha1ApiFactory=ho,b.RememberMeTokenV1alpha1ApiFp=Ae,b.RemoveOperationOpEnum=nc,b.ReplaceOperationOpEnum=oc,b.ReplyV1alpha1Api=ds,b.ReplyV1alpha1ApiAxiosParamCreator=is,b.ReplyV1alpha1ApiFactory=Vo,b.ReplyV1alpha1ApiFp=be,b.ReplyV1alpha1ConsoleApi=ms,b.ReplyV1alpha1ConsoleApiAxiosParamCreator=Vs,b.ReplyV1alpha1ConsoleApiFactory=mo,b.ReplyV1alpha1ConsoleApiFp=Za,b.ReverseProxyV1alpha1Api=Ps,b.ReverseProxyV1alpha1ApiAxiosParamCreator=ys,b.ReverseProxyV1alpha1ApiFactory=yo,b.ReverseProxyV1alpha1ApiFp=Re,b.RoleBindingV1alpha1Api=us,b.RoleBindingV1alpha1ApiAxiosParamCreator=Os,b.RoleBindingV1alpha1ApiFactory=Po,b.RoleBindingV1alpha1ApiFp=Ce,b.RoleV1alpha1Api=Ss,b.RoleV1alpha1ApiAxiosParamCreator=vs,b.RoleV1alpha1ApiFactory=Oo,b.RoleV1alpha1ApiFp=Te,b.SearchEngineV1alpha1Api=bs,b.SearchEngineV1alpha1ApiAxiosParamCreator=As,b.SearchEngineV1alpha1ApiFactory=uo,b.SearchEngineV1alpha1ApiFp=we,b.SecretV1alpha1Api=Cs,b.SecretV1alpha1ApiAxiosParamCreator=Rs,b.SecretV1alpha1ApiFactory=vo,b.SecretV1alpha1ApiFp=Ue,b.SettingV1alpha1Api=ws,b.SettingV1alpha1ApiAxiosParamCreator=Ts,b.SettingV1alpha1ApiFactory=So,b.SettingV1alpha1ApiFp=Ie,b.SinglePageSpecVisibleEnum=cc,b.SinglePageV1alpha1Api=Is,b.SinglePageV1alpha1ApiAxiosParamCreator=Us,b.SinglePageV1alpha1ApiFactory=Ao,b.SinglePageV1alpha1ApiFp=Be,b.SinglePageV1alpha1ConsoleApi=xs,b.SinglePageV1alpha1ConsoleApiAxiosParamCreator=Bs,b.SinglePageV1alpha1ConsoleApiFactory=bo,b.SinglePageV1alpha1ConsoleApiFp=$,b.SinglePageV1alpha1PublicApi=wo,b.SinglePageV1alpha1PublicApiAxiosParamCreator=Fs,b.SinglePageV1alpha1PublicApiFactory=To,b.SinglePageV1alpha1PublicApiFp=ja,b.SnapshotV1alpha1Api=js,b.SnapshotV1alpha1ApiAxiosParamCreator=Es,b.SnapshotV1alpha1ApiFactory=Uo,b.SnapshotV1alpha1ApiFp=xe,b.SnapshotV1alpha1UcApi=Ds,b.SnapshotV1alpha1UcApiAxiosParamCreator=Ls,b.SnapshotV1alpha1UcApiFactory=Io,b.SnapshotV1alpha1UcApiFp=qa,b.SubscriptionV1alpha1Api=Hs,b.SubscriptionV1alpha1ApiAxiosParamCreator=Ns,b.SubscriptionV1alpha1ApiFactory=Bo,b.SubscriptionV1alpha1ApiFp=Fe,b.SystemV1alpha1ConsoleApi=Qs,b.SystemV1alpha1ConsoleApiAxiosParamCreator=Ms,b.SystemV1alpha1ConsoleApiFactory=xo,b.SystemV1alpha1ConsoleApiFp=La,b.SystemV1alpha1PublicApi=$s,b.SystemV1alpha1PublicApiAxiosParamCreator=ks,b.SystemV1alpha1PublicApiFactory=Fo,b.SystemV1alpha1PublicApiFp=fa,b.TagV1alpha1Api=zs,b.TagV1alpha1ApiAxiosParamCreator=Gs,b.TagV1alpha1ApiFactory=Eo,b.TagV1alpha1ApiFp=Ee,b.TagV1alpha1ConsoleApi=Ws,b.TagV1alpha1ConsoleApiAxiosParamCreator=_s,b.TagV1alpha1ConsoleApiFactory=jo,b.TagV1alpha1ConsoleApiFp=ga,b.TagV1alpha1PublicApi=Do,b.TagV1alpha1PublicApiAxiosParamCreator=Ks,b.TagV1alpha1PublicApiFactory=Lo,b.TagV1alpha1PublicApiFp=ua,b.TestOperationOpEnum=pc,b.ThemeStatusPhaseEnum=hc,b.ThemeV1alpha1Api=Xs,b.ThemeV1alpha1ApiAxiosParamCreator=Js,b.ThemeV1alpha1ApiFactory=No,b.ThemeV1alpha1ApiFp=je,b.ThemeV1alpha1ConsoleApi=Zs,b.ThemeV1alpha1ConsoleApiAxiosParamCreator=Ys,b.ThemeV1alpha1ConsoleApiFactory=Ho,b.ThemeV1alpha1ConsoleApiFp=Q,b.ThumbnailSpecSizeEnum=ic,b.ThumbnailV1alpha1Api=Qo,b.ThumbnailV1alpha1ApiAxiosParamCreator=qs,b.ThumbnailV1alpha1ApiFactory=Mo,b.ThumbnailV1alpha1ApiFp=Le,b.ThumbnailV1alpha1PublicApi=$o,b.ThumbnailV1alpha1PublicApiAxiosParamCreator=fs,b.ThumbnailV1alpha1PublicApiFactory=ko,b.ThumbnailV1alpha1PublicApiFp=et,b.TwoFactorAuthV1alpha1UcApi=el,b.TwoFactorAuthV1alpha1UcApiAxiosParamCreator=gs,b.TwoFactorAuthV1alpha1UcApiFactory=Go,b.TwoFactorAuthV1alpha1UcApiFp=De,b.UpgradePluginSourceEnum=qn,b.UserConnectionV1alpha1Api=tl,b.UserConnectionV1alpha1ApiAxiosParamCreator=al,b.UserConnectionV1alpha1ApiFactory=zo,b.UserConnectionV1alpha1ApiFp=Ne,b.UserV1alpha1Api=sl,b.UserV1alpha1ApiAxiosParamCreator=rl,b.UserV1alpha1ApiFactory=_o,b.UserV1alpha1ApiFp=He,b.UserV1alpha1ConsoleApi=nl,b.UserV1alpha1ConsoleApiAxiosParamCreator=ll,b.UserV1alpha1ConsoleApiFactory=Wo,b.UserV1alpha1ConsoleApiFp=k,b.UserV1alpha1PublicApi=cl,b.UserV1alpha1PublicApiAxiosParamCreator=ol,b.UserV1alpha1PublicApiFactory=Ko,b.UserV1alpha1PublicApiFp=qe,b.axiosInstance=oa,b.consoleApiClient=jh,b.coreApiClient=Eh,b.createConsoleApiClient=gl,b.createCoreApiClient=fl,b.createPublicApiClient=an,b.createUcApiClient=en,b.publicApiClient=Dh,b.ucApiClient=Lh,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({},axios);
|
|
2
5
|
//# sourceMappingURL=halo-api-client.iife.js.map
|