@halo-dev/api-client 2.21.0 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/index.d.ts +24654 -0
- package/dist/index.iife.js +4 -0
- package/dist/index.js +23142 -0
- package/package.json +17 -21
- package/dist/entry/api-client.d.ts +0 -357
- package/dist/entry/index.d.ts +0 -2
- package/dist/halo-api-client.es.js +0 -23283
- package/dist/halo-api-client.es.js.map +0 -1
- package/dist/halo-api-client.iife.js +0 -5
- package/dist/halo-api-client.iife.js.map +0 -1
- package/dist/src/api/annotation-setting-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/attachment-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/attachment-v1alpha1-console-api.d.ts +0 -228
- package/dist/src/api/attachment-v1alpha1-uc-api.d.ts +0 -294
- package/dist/src/api/auth-provider-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/auth-provider-v1alpha1-console-api.d.ts +0 -139
- package/dist/src/api/backup-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/category-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/category-v1alpha1-public-api.d.ts +0 -228
- package/dist/src/api/comment-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/comment-v1alpha1-console-api.d.ts +0 -220
- package/dist/src/api/comment-v1alpha1-public-api.d.ts +0 -328
- package/dist/src/api/config-map-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/counter-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/default-api.d.ts +0 -54
- package/dist/src/api/device-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/device-v1alpha1-uc-api.d.ts +0 -97
- package/dist/src/api/extension-definition-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/extension-point-definition-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/group-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/index-v1alpha1-public-api.d.ts +0 -72
- package/dist/src/api/indices-v1alpha1-console-api.d.ts +0 -54
- package/dist/src/api/local-thumbnail-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/menu-item-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/menu-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/menu-v1alpha1-public-api.d.ts +0 -97
- package/dist/src/api/metrics-v1alpha1-public-api.d.ts +0 -156
- package/dist/src/api/migration-v1alpha1-console-api.d.ts +0 -171
- package/dist/src/api/notification-template-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/notification-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/notification-v1alpha1-public-api.d.ts +0 -79
- package/dist/src/api/notification-v1alpha1-uc-api.d.ts +0 -354
- package/dist/src/api/notifier-descriptor-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/notifier-v1alpha1-console-api.d.ts +0 -164
- package/dist/src/api/notifier-v1alpha1-uc-api.d.ts +0 -121
- package/dist/src/api/personal-access-token-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/personal-access-token-v1alpha1-uc-api.d.ts +0 -265
- package/dist/src/api/plugin-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/plugin-v1alpha1-console-api.d.ts +0 -672
- package/dist/src/api/plugin-v1alpha1-public-api.d.ts +0 -71
- package/dist/src/api/policy-alpha1-console-api.d.ts +0 -137
- package/dist/src/api/policy-template-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/policy-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/post-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/post-v1alpha1-console-api.d.ts +0 -698
- package/dist/src/api/post-v1alpha1-public-api.d.ts +0 -188
- package/dist/src/api/post-v1alpha1-uc-api.d.ts +0 -498
- package/dist/src/api/reason-type-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/reason-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/remember-me-token-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/reply-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/reply-v1alpha1-console-api.d.ts +0 -112
- package/dist/src/api/reverse-proxy-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/role-binding-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/role-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/secret-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/setting-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/single-page-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/single-page-v1alpha1-console-api.d.ts +0 -615
- package/dist/src/api/single-page-v1alpha1-public-api.d.ts +0 -146
- package/dist/src/api/snapshot-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/snapshot-v1alpha1-uc-api.d.ts +0 -88
- package/dist/src/api/subscription-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/system-config-v1alpha1-console-api.d.ts +0 -121
- package/dist/src/api/system-v1alpha1-console-api.d.ts +0 -55
- package/dist/src/api/system-v1alpha1-public-api.d.ts +0 -80
- package/dist/src/api/tag-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/tag-v1alpha1-console-api.d.ts +0 -112
- package/dist/src/api/tag-v1alpha1-public-api.d.ts +0 -228
- package/dist/src/api/theme-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/theme-v1alpha1-console-api.d.ts +0 -598
- package/dist/src/api/thumbnail-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/thumbnail-v1alpha1-public-api.d.ts +0 -79
- package/dist/src/api/two-factor-auth-v1alpha1-uc-api.d.ts +0 -248
- package/dist/src/api/user-connection-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/user-connection-v1alpha1-uc-api.d.ts +0 -72
- package/dist/src/api/user-preference-v1alpha1-uc-api.d.ts +0 -121
- package/dist/src/api/user-v1alpha1-api.d.ts +0 -330
- package/dist/src/api/user-v1alpha1-console-api.d.ts +0 -715
- package/dist/src/api.d.ts +0 -90
- package/dist/src/base.d.ts +0 -55
- package/dist/src/common.d.ts +0 -54
- package/dist/src/configuration.d.ts +0 -91
- package/dist/src/index.d.ts +0 -14
- package/dist/src/models/add-operation.d.ts +0 -40
- package/dist/src/models/annotation-setting-list.d.ts +0 -62
- package/dist/src/models/annotation-setting-spec.d.ts +0 -20
- package/dist/src/models/annotation-setting.d.ts +0 -33
- package/dist/src/models/attachment-list.d.ts +0 -62
- package/dist/src/models/attachment-spec.d.ts +0 -60
- package/dist/src/models/attachment-status.d.ts +0 -32
- package/dist/src/models/attachment.d.ts +0 -40
- package/dist/src/models/auth-provider-list.d.ts +0 -62
- package/dist/src/models/auth-provider-spec.d.ts +0 -92
- package/dist/src/models/auth-provider.d.ts +0 -33
- package/dist/src/models/author.d.ts +0 -30
- package/dist/src/models/backup-file.d.ts +0 -36
- package/dist/src/models/backup-list.d.ts +0 -62
- package/dist/src/models/backup-spec.d.ts +0 -30
- package/dist/src/models/backup-status.d.ts +0 -67
- package/dist/src/models/backup.d.ts +0 -40
- package/dist/src/models/category-list.d.ts +0 -62
- package/dist/src/models/category-spec.d.ts +0 -78
- package/dist/src/models/category-status.d.ts +0 -36
- package/dist/src/models/category-vo-list.d.ts +0 -62
- package/dist/src/models/category-vo.d.ts +0 -34
- package/dist/src/models/category.d.ts +0 -40
- package/dist/src/models/change-own-password-request.d.ts +0 -30
- package/dist/src/models/change-password-request.d.ts +0 -24
- package/dist/src/models/comment-email-owner.d.ts +0 -42
- package/dist/src/models/comment-list.d.ts +0 -62
- package/dist/src/models/comment-owner.d.ts +0 -44
- package/dist/src/models/comment-request.d.ts +0 -39
- package/dist/src/models/comment-spec.d.ts +0 -93
- package/dist/src/models/comment-stats-vo.d.ts +0 -24
- package/dist/src/models/comment-stats.d.ts +0 -24
- package/dist/src/models/comment-status.d.ts +0 -54
- package/dist/src/models/comment-vo-list.d.ts +0 -62
- package/dist/src/models/comment-vo.d.ts +0 -42
- package/dist/src/models/comment-with-reply-vo-list.d.ts +0 -62
- package/dist/src/models/comment-with-reply-vo.d.ts +0 -49
- package/dist/src/models/comment.d.ts +0 -40
- package/dist/src/models/condition.d.ts +0 -54
- package/dist/src/models/config-map-list.d.ts +0 -62
- package/dist/src/models/config-map-ref.d.ts +0 -24
- package/dist/src/models/config-map.d.ts +0 -34
- package/dist/src/models/content-update-param.d.ts +0 -42
- package/dist/src/models/content-vo.d.ts +0 -30
- package/dist/src/models/content-wrapper.d.ts +0 -42
- package/dist/src/models/content.d.ts +0 -36
- package/dist/src/models/contributor-vo.d.ts +0 -44
- package/dist/src/models/contributor.d.ts +0 -36
- package/dist/src/models/copy-operation.d.ts +0 -40
- package/dist/src/models/counter-list.d.ts +0 -62
- package/dist/src/models/counter-request.d.ts +0 -60
- package/dist/src/models/counter.d.ts +0 -56
- package/dist/src/models/create-user-request.d.ts +0 -74
- package/dist/src/models/custom-templates.d.ts +0 -26
- package/dist/src/models/dashboard-stats.d.ts +0 -54
- package/dist/src/models/detailed-user.d.ts +0 -21
- package/dist/src/models/device-list.d.ts +0 -62
- package/dist/src/models/device-spec.d.ts +0 -60
- package/dist/src/models/device-status.d.ts +0 -30
- package/dist/src/models/device.d.ts +0 -40
- package/dist/src/models/email-config-validation-request.d.ts +0 -66
- package/dist/src/models/email-verify-request.d.ts +0 -24
- package/dist/src/models/excerpt.d.ts +0 -30
- package/dist/src/models/extension-definition-list.d.ts +0 -62
- package/dist/src/models/extension-definition.d.ts +0 -33
- package/dist/src/models/extension-point-definition-list.d.ts +0 -62
- package/dist/src/models/extension-point-definition.d.ts +0 -33
- package/dist/src/models/extension-point-spec.d.ts +0 -53
- package/dist/src/models/extension-spec.d.ts +0 -48
- package/dist/src/models/extension.d.ts +0 -26
- package/dist/src/models/file-reverse-proxy-provider.d.ts +0 -30
- package/dist/src/models/grant-request.d.ts +0 -24
- package/dist/src/models/group-kind.d.ts +0 -30
- package/dist/src/models/group-list.d.ts +0 -62
- package/dist/src/models/group-spec.d.ts +0 -24
- package/dist/src/models/group-status.d.ts +0 -30
- package/dist/src/models/group.d.ts +0 -40
- package/dist/src/models/halo-document.d.ts +0 -116
- package/dist/src/models/index.d.ts +0 -250
- package/dist/src/models/install-from-uri-request.d.ts +0 -24
- package/dist/src/models/interest-reason-subject.d.ts +0 -36
- package/dist/src/models/interest-reason.d.ts +0 -26
- package/dist/src/models/json-patch-inner.d.ts +0 -11
- package/dist/src/models/license.d.ts +0 -30
- package/dist/src/models/list-result-reply-vo.d.ts +0 -62
- package/dist/src/models/listed-auth-provider.d.ts +0 -113
- package/dist/src/models/listed-comment-list.d.ts +0 -62
- package/dist/src/models/listed-comment.d.ts +0 -35
- package/dist/src/models/listed-post-list.d.ts +0 -62
- package/dist/src/models/listed-post-vo-list.d.ts +0 -62
- package/dist/src/models/listed-post-vo.d.ts +0 -62
- package/dist/src/models/listed-post.d.ts +0 -48
- package/dist/src/models/listed-reply-list.d.ts +0 -62
- package/dist/src/models/listed-reply.d.ts +0 -28
- package/dist/src/models/listed-single-page-list.d.ts +0 -62
- package/dist/src/models/listed-single-page-vo-list.d.ts +0 -62
- package/dist/src/models/listed-single-page-vo.d.ts +0 -48
- package/dist/src/models/listed-single-page.d.ts +0 -34
- package/dist/src/models/listed-snapshot-dto.d.ts +0 -21
- package/dist/src/models/listed-snapshot-spec.d.ts +0 -30
- package/dist/src/models/listed-user.d.ts +0 -21
- package/dist/src/models/local-thumbnail-list.d.ts +0 -62
- package/dist/src/models/local-thumbnail-spec.d.ts +0 -61
- package/dist/src/models/local-thumbnail-status.d.ts +0 -30
- package/dist/src/models/local-thumbnail.d.ts +0 -40
- package/dist/src/models/login-history.d.ts +0 -48
- package/dist/src/models/mark-specified-request.d.ts +0 -24
- package/dist/src/models/menu-item-list.d.ts +0 -62
- package/dist/src/models/menu-item-spec.d.ts +0 -51
- package/dist/src/models/menu-item-status.d.ts +0 -30
- package/dist/src/models/menu-item-vo.d.ts +0 -40
- package/dist/src/models/menu-item.d.ts +0 -40
- package/dist/src/models/menu-list.d.ts +0 -62
- package/dist/src/models/menu-spec.d.ts +0 -30
- package/dist/src/models/menu-vo.d.ts +0 -28
- package/dist/src/models/menu.d.ts +0 -33
- package/dist/src/models/metadata.d.ts +0 -70
- package/dist/src/models/move-operation.d.ts +0 -40
- package/dist/src/models/navigation-post-vo.d.ts +0 -26
- package/dist/src/models/notification-list.d.ts +0 -62
- package/dist/src/models/notification-spec.d.ts +0 -60
- package/dist/src/models/notification-template-list.d.ts +0 -62
- package/dist/src/models/notification-template-spec.d.ts +0 -21
- package/dist/src/models/notification-template.d.ts +0 -33
- package/dist/src/models/notification.d.ts +0 -33
- package/dist/src/models/notifier-descriptor-list.d.ts +0 -62
- package/dist/src/models/notifier-descriptor-spec.d.ts +0 -38
- package/dist/src/models/notifier-descriptor.d.ts +0 -33
- package/dist/src/models/notifier-info.d.ts +0 -36
- package/dist/src/models/notifier-setting-ref.d.ts +0 -30
- package/dist/src/models/owner-info.d.ts +0 -48
- package/dist/src/models/password-request.d.ts +0 -24
- package/dist/src/models/pat-spec.d.ts +0 -78
- package/dist/src/models/personal-access-token-list.d.ts +0 -62
- package/dist/src/models/personal-access-token.d.ts +0 -33
- package/dist/src/models/plugin-author.d.ts +0 -30
- package/dist/src/models/plugin-list.d.ts +0 -62
- package/dist/src/models/plugin-running-state-request.d.ts +0 -30
- package/dist/src/models/plugin-spec.d.ts +0 -95
- package/dist/src/models/plugin-status.d.ts +0 -79
- package/dist/src/models/plugin.d.ts +0 -40
- package/dist/src/models/policy-list.d.ts +0 -62
- package/dist/src/models/policy-rule.d.ts +0 -48
- package/dist/src/models/policy-spec.d.ts +0 -36
- package/dist/src/models/policy-template-list.d.ts +0 -62
- package/dist/src/models/policy-template-spec.d.ts +0 -30
- package/dist/src/models/policy-template.d.ts +0 -33
- package/dist/src/models/policy.d.ts +0 -33
- package/dist/src/models/post-list.d.ts +0 -62
- package/dist/src/models/post-request.d.ts +0 -21
- package/dist/src/models/post-spec.d.ts +0 -130
- package/dist/src/models/post-status.d.ts +0 -68
- package/dist/src/models/post-vo.d.ts +0 -69
- package/dist/src/models/post.d.ts +0 -40
- package/dist/src/models/reason-attributes.d.ts +0 -24
- package/dist/src/models/reason-list.d.ts +0 -62
- package/dist/src/models/reason-property.d.ts +0 -42
- package/dist/src/models/reason-selector.d.ts +0 -30
- package/dist/src/models/reason-spec.d.ts +0 -33
- package/dist/src/models/reason-subject.d.ts +0 -48
- package/dist/src/models/reason-type-info.d.ts +0 -42
- package/dist/src/models/reason-type-list.d.ts +0 -62
- package/dist/src/models/reason-type-notifier-collection-request.d.ts +0 -14
- package/dist/src/models/reason-type-notifier-matrix.d.ts +0 -27
- package/dist/src/models/reason-type-notifier-request.d.ts +0 -30
- package/dist/src/models/reason-type-spec.d.ts +0 -26
- package/dist/src/models/reason-type.d.ts +0 -33
- package/dist/src/models/reason.d.ts +0 -33
- package/dist/src/models/ref.d.ts +0 -42
- package/dist/src/models/remember-me-token-list.d.ts +0 -62
- package/dist/src/models/remember-me-token-spec.d.ts +0 -42
- package/dist/src/models/remember-me-token.d.ts +0 -33
- package/dist/src/models/remove-operation.d.ts +0 -34
- package/dist/src/models/replace-operation.d.ts +0 -40
- package/dist/src/models/reply-list.d.ts +0 -62
- package/dist/src/models/reply-request.d.ts +0 -38
- package/dist/src/models/reply-spec.d.ts +0 -92
- package/dist/src/models/reply-status.d.ts +0 -24
- package/dist/src/models/reply-vo-list.d.ts +0 -62
- package/dist/src/models/reply-vo.d.ts +0 -35
- package/dist/src/models/reply.d.ts +0 -40
- package/dist/src/models/reverse-proxy-list.d.ts +0 -62
- package/dist/src/models/reverse-proxy-rule.d.ts +0 -20
- package/dist/src/models/reverse-proxy.d.ts +0 -33
- package/dist/src/models/revert-snapshot-for-post-param.d.ts +0 -24
- package/dist/src/models/revert-snapshot-for-single-param.d.ts +0 -24
- package/dist/src/models/role-binding-list.d.ts +0 -62
- package/dist/src/models/role-binding.d.ts +0 -40
- package/dist/src/models/role-list.d.ts +0 -62
- package/dist/src/models/role-ref.d.ts +0 -36
- package/dist/src/models/role.d.ts +0 -33
- package/dist/src/models/search-option.d.ts +0 -92
- package/dist/src/models/search-result.d.ts +0 -38
- package/dist/src/models/secret-list.d.ts +0 -62
- package/dist/src/models/secret.d.ts +0 -48
- package/dist/src/models/setting-form.d.ts +0 -36
- package/dist/src/models/setting-list.d.ts +0 -62
- package/dist/src/models/setting-ref.d.ts +0 -30
- package/dist/src/models/setting-spec.d.ts +0 -14
- package/dist/src/models/setting.d.ts +0 -33
- package/dist/src/models/single-page-list.d.ts +0 -62
- package/dist/src/models/single-page-request.d.ts +0 -21
- package/dist/src/models/single-page-spec.d.ts +0 -118
- package/dist/src/models/single-page-status.d.ts +0 -68
- package/dist/src/models/single-page-vo.d.ts +0 -55
- package/dist/src/models/single-page.d.ts +0 -40
- package/dist/src/models/site-stats-vo.d.ts +0 -48
- package/dist/src/models/snap-shot-spec.d.ts +0 -56
- package/dist/src/models/snapshot-list.d.ts +0 -62
- package/dist/src/models/snapshot.d.ts +0 -33
- package/dist/src/models/stats-vo.d.ts +0 -36
- package/dist/src/models/stats.d.ts +0 -42
- package/dist/src/models/subject.d.ts +0 -36
- package/dist/src/models/subscription-list.d.ts +0 -62
- package/dist/src/models/subscription-spec.d.ts +0 -33
- package/dist/src/models/subscription-subscriber.d.ts +0 -24
- package/dist/src/models/subscription.d.ts +0 -33
- package/dist/src/models/tag-list.d.ts +0 -62
- package/dist/src/models/tag-spec.d.ts +0 -42
- package/dist/src/models/tag-status.d.ts +0 -42
- package/dist/src/models/tag-vo-list.d.ts +0 -62
- package/dist/src/models/tag-vo.d.ts +0 -34
- package/dist/src/models/tag.d.ts +0 -40
- package/dist/src/models/template-content.d.ts +0 -36
- package/dist/src/models/template-descriptor.d.ts +0 -42
- package/dist/src/models/test-operation.d.ts +0 -40
- package/dist/src/models/theme-list.d.ts +0 -62
- package/dist/src/models/theme-spec.d.ts +0 -88
- package/dist/src/models/theme-status.d.ts +0 -32
- package/dist/src/models/theme.d.ts +0 -40
- package/dist/src/models/thumbnail-list.d.ts +0 -62
- package/dist/src/models/thumbnail-spec.d.ts +0 -49
- package/dist/src/models/thumbnail.d.ts +0 -33
- package/dist/src/models/totp-auth-link-response.d.ts +0 -30
- package/dist/src/models/totp-request.d.ts +0 -36
- package/dist/src/models/two-factor-auth-settings.d.ts +0 -42
- package/dist/src/models/uc-upload-request-form-data.d.ts +0 -33
- package/dist/src/models/upgrade-from-uri-request.d.ts +0 -24
- package/dist/src/models/upload-from-url-request.d.ts +0 -30
- package/dist/src/models/user-connection-list.d.ts +0 -62
- package/dist/src/models/user-connection-spec.d.ts +0 -42
- package/dist/src/models/user-connection.d.ts +0 -33
- package/dist/src/models/user-device.d.ts +0 -26
- package/dist/src/models/user-endpoint-listed-user-list.d.ts +0 -62
- package/dist/src/models/user-list.d.ts +0 -62
- package/dist/src/models/user-permission.d.ts +0 -26
- package/dist/src/models/user-spec.d.ts +0 -90
- package/dist/src/models/user-status.d.ts +0 -26
- package/dist/src/models/user.d.ts +0 -40
- package/dist/src/models/verify-code-request.d.ts +0 -30
- package/dist/src/models/vote-request.d.ts +0 -36
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halo-dev/api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "API Client for Halo 2",
|
|
5
5
|
"homepage": "https://github.com/halo-dev/halo/tree/main/ui/packages/api-client#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -19,15 +19,14 @@
|
|
|
19
19
|
"url": "https://github.com/ruibaby"
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
|
+
"type": "module",
|
|
22
23
|
"exports": {
|
|
23
|
-
".":
|
|
24
|
-
|
|
25
|
-
"import": "./dist/halo-api-client.es.js"
|
|
26
|
-
}
|
|
24
|
+
".": "./dist/index.js",
|
|
25
|
+
"./package.json": "./package.json"
|
|
27
26
|
},
|
|
28
|
-
"main": "./dist/
|
|
29
|
-
"module": "./dist/
|
|
30
|
-
"types": "./dist/
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
31
30
|
"typesVersions": {
|
|
32
31
|
"*": {
|
|
33
32
|
"*": [
|
|
@@ -36,26 +35,23 @@
|
|
|
36
35
|
]
|
|
37
36
|
}
|
|
38
37
|
},
|
|
38
|
+
"sideEffects": false,
|
|
39
39
|
"files": [
|
|
40
40
|
"dist"
|
|
41
41
|
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"qs": "^6.14.0"
|
|
44
|
+
},
|
|
42
45
|
"devDependencies": {
|
|
43
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
44
|
-
"@types/
|
|
45
|
-
"
|
|
46
|
-
"rimraf": "^5.0.7",
|
|
47
|
-
"typescript": "~5.5.4",
|
|
48
|
-
"unbuild": "^0.7.6",
|
|
49
|
-
"vite-plugin-dts": "^4.2.2"
|
|
46
|
+
"@openapitools/openapi-generator-cli": "^2.25.0",
|
|
47
|
+
"@types/qs": "^6.14.0",
|
|
48
|
+
"rimraf": "^5.0.10"
|
|
50
49
|
},
|
|
51
50
|
"peerDependencies": {
|
|
52
|
-
"axios": "^1.
|
|
53
|
-
},
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"qs": "^6.13.0"
|
|
51
|
+
"axios": "^1.12.*"
|
|
56
52
|
},
|
|
57
53
|
"scripts": {
|
|
58
|
-
"build": "
|
|
59
|
-
"gen": "rimraf --glob './src/**' && openapi-generator-cli generate -i ../../../api-docs/openapi/v3_0/aggregated.json -g typescript-axios -c ./.openapi_config.yaml -o ./src --type-mappings='set=Array'"
|
|
54
|
+
"build": "tsdown",
|
|
55
|
+
"gen": "rimraf --glob './src/**' && openapi-generator-cli generate -i ../../../api-docs/openapi/v3_0/aggregated.json -g typescript-axios -c ./.openapi_config.yaml -o ./src --type-mappings='set=Array' --global-property apiDocs=false,modelDocs=false"
|
|
60
56
|
}
|
|
61
57
|
}
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { AnnotationSettingV1alpha1Api, AttachmentV1alpha1Api, AttachmentV1alpha1ConsoleApi, AttachmentV1alpha1UcApi, AuthProviderV1alpha1Api, AuthProviderV1alpha1ConsoleApi, BackupV1alpha1Api, CategoryV1alpha1Api, CommentV1alpha1Api, CommentV1alpha1ConsoleApi, CommentV1alpha1PublicApi, ConfigMapV1alpha1Api, CounterV1alpha1Api, DeviceV1alpha1UcApi, ExtensionDefinitionV1alpha1Api, ExtensionPointDefinitionV1alpha1Api, GroupV1alpha1Api, IndicesV1alpha1ConsoleApi, MenuItemV1alpha1Api, MenuV1alpha1Api, MenuV1alpha1PublicApi, MetricsV1alpha1PublicApi, MigrationV1alpha1ConsoleApi, NotificationTemplateV1alpha1Api, NotificationV1alpha1Api, NotificationV1alpha1PublicApi, NotificationV1alpha1UcApi, NotifierDescriptorV1alpha1Api, NotifierV1alpha1ConsoleApi, PersonalAccessTokenV1alpha1Api, PersonalAccessTokenV1alpha1UcApi, PluginV1alpha1Api, PluginV1alpha1ConsoleApi, PolicyTemplateV1alpha1Api, PolicyV1alpha1Api, PostV1alpha1Api, PostV1alpha1ConsoleApi, PostV1alpha1PublicApi, PostV1alpha1UcApi, ReasonTypeV1alpha1Api, ReasonV1alpha1Api, ReplyV1alpha1Api, ReplyV1alpha1ConsoleApi, ReverseProxyV1alpha1Api, RoleBindingV1alpha1Api, RoleV1alpha1Api, SecretV1alpha1Api, SettingV1alpha1Api, SinglePageV1alpha1Api, SinglePageV1alpha1ConsoleApi, SnapshotV1alpha1Api, SnapshotV1alpha1UcApi, SubscriptionV1alpha1Api, SystemConfigV1alpha1ConsoleApi, SystemV1alpha1ConsoleApi, SystemV1alpha1PublicApi, TagV1alpha1Api, TagV1alpha1ConsoleApi, ThemeV1alpha1Api, ThemeV1alpha1ConsoleApi, TwoFactorAuthV1alpha1UcApi, UserConnectionV1alpha1Api, UserV1alpha1Api, UserV1alpha1ConsoleApi, UserPreferenceV1alpha1UcApi, PolicyAlpha1ConsoleApi } from '../src';
|
|
3
|
-
declare const defaultAxiosInstance: AxiosInstance;
|
|
4
|
-
/**
|
|
5
|
-
* Create a core api client
|
|
6
|
-
*
|
|
7
|
-
* This is the API client for the CRUD interface that is automatically generated for Halo's core extensions.
|
|
8
|
-
*
|
|
9
|
-
* @see <https://github.com/halo-dev/rfcs/tree/main/extension>
|
|
10
|
-
* @param baseURL Halo backend base URL
|
|
11
|
-
* @param axiosInstance Axios instance
|
|
12
|
-
* @returns Core api client
|
|
13
|
-
* @example
|
|
14
|
-
* const axiosInstance = axios.create({
|
|
15
|
-
* baseURL: "https://demo.halo.run",
|
|
16
|
-
* withCredentials: true,
|
|
17
|
-
* })
|
|
18
|
-
*
|
|
19
|
-
* axiosInstance.interceptors.request.use((config) => {
|
|
20
|
-
* // do something before request
|
|
21
|
-
* return config;
|
|
22
|
-
* }, (error) => {
|
|
23
|
-
* // do something with request error
|
|
24
|
-
* return Promise.reject(error);
|
|
25
|
-
* });
|
|
26
|
-
*
|
|
27
|
-
* const coreApiClient = createCoreApiClient(axiosInstance);
|
|
28
|
-
*
|
|
29
|
-
* coreApiClient.content.post.listContentHaloRunV1alpha1Post().then(response => {
|
|
30
|
-
* // handle response
|
|
31
|
-
* })
|
|
32
|
-
*/
|
|
33
|
-
declare function createCoreApiClient(axiosInstance: AxiosInstance): {
|
|
34
|
-
annotationSetting: AnnotationSettingV1alpha1Api;
|
|
35
|
-
menu: MenuV1alpha1Api;
|
|
36
|
-
menuItem: MenuItemV1alpha1Api;
|
|
37
|
-
setting: SettingV1alpha1Api;
|
|
38
|
-
configMap: ConfigMapV1alpha1Api;
|
|
39
|
-
secret: SecretV1alpha1Api;
|
|
40
|
-
user: UserV1alpha1Api;
|
|
41
|
-
role: RoleV1alpha1Api;
|
|
42
|
-
roleBinding: RoleBindingV1alpha1Api;
|
|
43
|
-
content: {
|
|
44
|
-
category: CategoryV1alpha1Api;
|
|
45
|
-
comment: CommentV1alpha1Api;
|
|
46
|
-
post: PostV1alpha1Api;
|
|
47
|
-
reply: ReplyV1alpha1Api;
|
|
48
|
-
singlePage: SinglePageV1alpha1Api;
|
|
49
|
-
snapshot: SnapshotV1alpha1Api;
|
|
50
|
-
tag: TagV1alpha1Api;
|
|
51
|
-
};
|
|
52
|
-
auth: {
|
|
53
|
-
authProvider: AuthProviderV1alpha1Api;
|
|
54
|
-
userConnection: UserConnectionV1alpha1Api;
|
|
55
|
-
};
|
|
56
|
-
storage: {
|
|
57
|
-
attachment: AttachmentV1alpha1Api;
|
|
58
|
-
group: GroupV1alpha1Api;
|
|
59
|
-
policy: PolicyV1alpha1Api;
|
|
60
|
-
policyTemplate: PolicyTemplateV1alpha1Api;
|
|
61
|
-
};
|
|
62
|
-
plugin: {
|
|
63
|
-
extensionDefinition: ExtensionDefinitionV1alpha1Api;
|
|
64
|
-
extensionPointDefinition: ExtensionPointDefinitionV1alpha1Api;
|
|
65
|
-
plugin: PluginV1alpha1Api;
|
|
66
|
-
reverseProxy: ReverseProxyV1alpha1Api;
|
|
67
|
-
};
|
|
68
|
-
metrics: {
|
|
69
|
-
counter: CounterV1alpha1Api;
|
|
70
|
-
};
|
|
71
|
-
theme: {
|
|
72
|
-
theme: ThemeV1alpha1Api;
|
|
73
|
-
};
|
|
74
|
-
notification: {
|
|
75
|
-
notification: NotificationV1alpha1Api;
|
|
76
|
-
notificationTemplate: NotificationTemplateV1alpha1Api;
|
|
77
|
-
notifierDescriptor: NotifierDescriptorV1alpha1Api;
|
|
78
|
-
reason: ReasonV1alpha1Api;
|
|
79
|
-
reasonType: ReasonTypeV1alpha1Api;
|
|
80
|
-
subscription: SubscriptionV1alpha1Api;
|
|
81
|
-
};
|
|
82
|
-
migration: {
|
|
83
|
-
backup: BackupV1alpha1Api;
|
|
84
|
-
};
|
|
85
|
-
security: {
|
|
86
|
-
personalAccessToken: PersonalAccessTokenV1alpha1Api;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Create a console api client
|
|
91
|
-
*
|
|
92
|
-
* Console api client is used for console related operations
|
|
93
|
-
*
|
|
94
|
-
* @param baseURL Halo backend base URL
|
|
95
|
-
* @param axiosInstance Axios instance
|
|
96
|
-
* @returns Console api client
|
|
97
|
-
* @example
|
|
98
|
-
* const axiosInstance = axios.create({
|
|
99
|
-
* baseURL: "https://demo.halo.run",
|
|
100
|
-
* withCredentials: true,
|
|
101
|
-
* })
|
|
102
|
-
*
|
|
103
|
-
* axiosInstance.interceptors.request.use((config) => {
|
|
104
|
-
* // do something before request
|
|
105
|
-
* return config;
|
|
106
|
-
* }, (error) => {
|
|
107
|
-
* // do something with request error
|
|
108
|
-
* return Promise.reject(error);
|
|
109
|
-
* });
|
|
110
|
-
*
|
|
111
|
-
* const consoleApiClient = createConsoleApiClient(axiosInstance);
|
|
112
|
-
*
|
|
113
|
-
* consoleApiClient.content.post.listPosts().then(response => {
|
|
114
|
-
* // handle response
|
|
115
|
-
* })
|
|
116
|
-
*/
|
|
117
|
-
declare function createConsoleApiClient(axiosInstance: AxiosInstance): {
|
|
118
|
-
user: UserV1alpha1ConsoleApi;
|
|
119
|
-
system: SystemV1alpha1ConsoleApi;
|
|
120
|
-
migration: MigrationV1alpha1ConsoleApi;
|
|
121
|
-
storage: {
|
|
122
|
-
attachment: AttachmentV1alpha1ConsoleApi;
|
|
123
|
-
policy: PolicyAlpha1ConsoleApi;
|
|
124
|
-
};
|
|
125
|
-
auth: {
|
|
126
|
-
authProvider: AuthProviderV1alpha1ConsoleApi;
|
|
127
|
-
};
|
|
128
|
-
content: {
|
|
129
|
-
comment: CommentV1alpha1ConsoleApi;
|
|
130
|
-
reply: ReplyV1alpha1ConsoleApi;
|
|
131
|
-
indices: IndicesV1alpha1ConsoleApi;
|
|
132
|
-
post: PostV1alpha1ConsoleApi;
|
|
133
|
-
singlePage: SinglePageV1alpha1ConsoleApi;
|
|
134
|
-
tag: TagV1alpha1ConsoleApi;
|
|
135
|
-
};
|
|
136
|
-
notification: {
|
|
137
|
-
notifier: NotifierV1alpha1ConsoleApi;
|
|
138
|
-
};
|
|
139
|
-
plugin: {
|
|
140
|
-
plugin: PluginV1alpha1ConsoleApi;
|
|
141
|
-
};
|
|
142
|
-
theme: {
|
|
143
|
-
theme: ThemeV1alpha1ConsoleApi;
|
|
144
|
-
};
|
|
145
|
-
configMap: {
|
|
146
|
-
system: SystemConfigV1alpha1ConsoleApi;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* Create a uc api client
|
|
151
|
-
*
|
|
152
|
-
* Uc api client is used for user content related operations
|
|
153
|
-
*
|
|
154
|
-
* @param baseURL Halo backend base URL
|
|
155
|
-
* @param axiosInstance Axios instance
|
|
156
|
-
* @returns Uc api client
|
|
157
|
-
* @example
|
|
158
|
-
* const axiosInstance = axios.create({
|
|
159
|
-
* baseURL: "https://demo.halo.run",
|
|
160
|
-
* withCredentials: true,
|
|
161
|
-
* })
|
|
162
|
-
*
|
|
163
|
-
* axiosInstance.interceptors.request.use((config) => {
|
|
164
|
-
* // do something before request
|
|
165
|
-
* return config;
|
|
166
|
-
* }, (error) => {
|
|
167
|
-
* // do something with request error
|
|
168
|
-
* return Promise.reject(error);
|
|
169
|
-
* });
|
|
170
|
-
*
|
|
171
|
-
* const ucApiClient = createUcApiClient(axiosInstance);
|
|
172
|
-
*
|
|
173
|
-
* ucApiClient.content.post.listMyPosts().then(response => {
|
|
174
|
-
* // handle response
|
|
175
|
-
* })
|
|
176
|
-
*/
|
|
177
|
-
declare function createUcApiClient(axiosInstance: AxiosInstance): {
|
|
178
|
-
storage: {
|
|
179
|
-
attachment: AttachmentV1alpha1UcApi;
|
|
180
|
-
};
|
|
181
|
-
content: {
|
|
182
|
-
post: PostV1alpha1UcApi;
|
|
183
|
-
snapshot: SnapshotV1alpha1UcApi;
|
|
184
|
-
};
|
|
185
|
-
security: {
|
|
186
|
-
twoFactor: TwoFactorAuthV1alpha1UcApi;
|
|
187
|
-
personalAccessToken: PersonalAccessTokenV1alpha1UcApi;
|
|
188
|
-
device: DeviceV1alpha1UcApi;
|
|
189
|
-
};
|
|
190
|
-
notification: {
|
|
191
|
-
notification: NotificationV1alpha1UcApi;
|
|
192
|
-
};
|
|
193
|
-
user: {
|
|
194
|
-
preference: UserPreferenceV1alpha1UcApi;
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* Create a public api client
|
|
199
|
-
*
|
|
200
|
-
* Public api client is used for public content related operations, no need authentication
|
|
201
|
-
*
|
|
202
|
-
* @param baseURL Halo backend base URL
|
|
203
|
-
* @param axiosInstance Axios instance
|
|
204
|
-
* @returns Public api client
|
|
205
|
-
* @example
|
|
206
|
-
* const axiosInstance = axios.create({
|
|
207
|
-
* baseURL: "https://demo.halo.run",
|
|
208
|
-
* withCredentials: true,
|
|
209
|
-
* })
|
|
210
|
-
*
|
|
211
|
-
* axiosInstance.interceptors.request.use((config) => {
|
|
212
|
-
* // do something before request
|
|
213
|
-
* return config;
|
|
214
|
-
* }, (error) => {
|
|
215
|
-
* // do something with request error
|
|
216
|
-
* return Promise.reject(error);
|
|
217
|
-
* });
|
|
218
|
-
*
|
|
219
|
-
* const publicApiClient = createPublicApiClient(axiosInstance);
|
|
220
|
-
*
|
|
221
|
-
* publicApiClient.content.post.searchPost({ keyword: "foo" }).then(response => {
|
|
222
|
-
* // handle response
|
|
223
|
-
* })
|
|
224
|
-
*/
|
|
225
|
-
declare function createPublicApiClient(axiosInstance: AxiosInstance): {
|
|
226
|
-
menu: MenuV1alpha1PublicApi;
|
|
227
|
-
stats: SystemV1alpha1PublicApi;
|
|
228
|
-
content: {
|
|
229
|
-
post: PostV1alpha1PublicApi;
|
|
230
|
-
comment: CommentV1alpha1PublicApi;
|
|
231
|
-
};
|
|
232
|
-
metrics: {
|
|
233
|
-
metrics: MetricsV1alpha1PublicApi;
|
|
234
|
-
};
|
|
235
|
-
notification: NotificationV1alpha1PublicApi;
|
|
236
|
-
};
|
|
237
|
-
declare const defaultCoreApiClient: {
|
|
238
|
-
annotationSetting: AnnotationSettingV1alpha1Api;
|
|
239
|
-
menu: MenuV1alpha1Api;
|
|
240
|
-
menuItem: MenuItemV1alpha1Api;
|
|
241
|
-
setting: SettingV1alpha1Api;
|
|
242
|
-
configMap: ConfigMapV1alpha1Api;
|
|
243
|
-
secret: SecretV1alpha1Api;
|
|
244
|
-
user: UserV1alpha1Api;
|
|
245
|
-
role: RoleV1alpha1Api;
|
|
246
|
-
roleBinding: RoleBindingV1alpha1Api;
|
|
247
|
-
content: {
|
|
248
|
-
category: CategoryV1alpha1Api;
|
|
249
|
-
comment: CommentV1alpha1Api;
|
|
250
|
-
post: PostV1alpha1Api;
|
|
251
|
-
reply: ReplyV1alpha1Api;
|
|
252
|
-
singlePage: SinglePageV1alpha1Api;
|
|
253
|
-
snapshot: SnapshotV1alpha1Api;
|
|
254
|
-
tag: TagV1alpha1Api;
|
|
255
|
-
};
|
|
256
|
-
auth: {
|
|
257
|
-
authProvider: AuthProviderV1alpha1Api;
|
|
258
|
-
userConnection: UserConnectionV1alpha1Api;
|
|
259
|
-
};
|
|
260
|
-
storage: {
|
|
261
|
-
attachment: AttachmentV1alpha1Api;
|
|
262
|
-
group: GroupV1alpha1Api;
|
|
263
|
-
policy: PolicyV1alpha1Api;
|
|
264
|
-
policyTemplate: PolicyTemplateV1alpha1Api;
|
|
265
|
-
};
|
|
266
|
-
plugin: {
|
|
267
|
-
extensionDefinition: ExtensionDefinitionV1alpha1Api;
|
|
268
|
-
extensionPointDefinition: ExtensionPointDefinitionV1alpha1Api;
|
|
269
|
-
plugin: PluginV1alpha1Api;
|
|
270
|
-
reverseProxy: ReverseProxyV1alpha1Api;
|
|
271
|
-
};
|
|
272
|
-
metrics: {
|
|
273
|
-
counter: CounterV1alpha1Api;
|
|
274
|
-
};
|
|
275
|
-
theme: {
|
|
276
|
-
theme: ThemeV1alpha1Api;
|
|
277
|
-
};
|
|
278
|
-
notification: {
|
|
279
|
-
notification: NotificationV1alpha1Api;
|
|
280
|
-
notificationTemplate: NotificationTemplateV1alpha1Api;
|
|
281
|
-
notifierDescriptor: NotifierDescriptorV1alpha1Api;
|
|
282
|
-
reason: ReasonV1alpha1Api;
|
|
283
|
-
reasonType: ReasonTypeV1alpha1Api;
|
|
284
|
-
subscription: SubscriptionV1alpha1Api;
|
|
285
|
-
};
|
|
286
|
-
migration: {
|
|
287
|
-
backup: BackupV1alpha1Api;
|
|
288
|
-
};
|
|
289
|
-
security: {
|
|
290
|
-
personalAccessToken: PersonalAccessTokenV1alpha1Api;
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
declare const defaultConsoleApiClient: {
|
|
294
|
-
user: UserV1alpha1ConsoleApi;
|
|
295
|
-
system: SystemV1alpha1ConsoleApi;
|
|
296
|
-
migration: MigrationV1alpha1ConsoleApi;
|
|
297
|
-
storage: {
|
|
298
|
-
attachment: AttachmentV1alpha1ConsoleApi;
|
|
299
|
-
policy: PolicyAlpha1ConsoleApi;
|
|
300
|
-
};
|
|
301
|
-
auth: {
|
|
302
|
-
authProvider: AuthProviderV1alpha1ConsoleApi;
|
|
303
|
-
};
|
|
304
|
-
content: {
|
|
305
|
-
comment: CommentV1alpha1ConsoleApi;
|
|
306
|
-
reply: ReplyV1alpha1ConsoleApi;
|
|
307
|
-
indices: IndicesV1alpha1ConsoleApi;
|
|
308
|
-
post: PostV1alpha1ConsoleApi;
|
|
309
|
-
singlePage: SinglePageV1alpha1ConsoleApi;
|
|
310
|
-
tag: TagV1alpha1ConsoleApi;
|
|
311
|
-
};
|
|
312
|
-
notification: {
|
|
313
|
-
notifier: NotifierV1alpha1ConsoleApi;
|
|
314
|
-
};
|
|
315
|
-
plugin: {
|
|
316
|
-
plugin: PluginV1alpha1ConsoleApi;
|
|
317
|
-
};
|
|
318
|
-
theme: {
|
|
319
|
-
theme: ThemeV1alpha1ConsoleApi;
|
|
320
|
-
};
|
|
321
|
-
configMap: {
|
|
322
|
-
system: SystemConfigV1alpha1ConsoleApi;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
declare const defaultUcApiClient: {
|
|
326
|
-
storage: {
|
|
327
|
-
attachment: AttachmentV1alpha1UcApi;
|
|
328
|
-
};
|
|
329
|
-
content: {
|
|
330
|
-
post: PostV1alpha1UcApi;
|
|
331
|
-
snapshot: SnapshotV1alpha1UcApi;
|
|
332
|
-
};
|
|
333
|
-
security: {
|
|
334
|
-
twoFactor: TwoFactorAuthV1alpha1UcApi;
|
|
335
|
-
personalAccessToken: PersonalAccessTokenV1alpha1UcApi;
|
|
336
|
-
device: DeviceV1alpha1UcApi;
|
|
337
|
-
};
|
|
338
|
-
notification: {
|
|
339
|
-
notification: NotificationV1alpha1UcApi;
|
|
340
|
-
};
|
|
341
|
-
user: {
|
|
342
|
-
preference: UserPreferenceV1alpha1UcApi;
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
declare const defaultPublicApiClient: {
|
|
346
|
-
menu: MenuV1alpha1PublicApi;
|
|
347
|
-
stats: SystemV1alpha1PublicApi;
|
|
348
|
-
content: {
|
|
349
|
-
post: PostV1alpha1PublicApi;
|
|
350
|
-
comment: CommentV1alpha1PublicApi;
|
|
351
|
-
};
|
|
352
|
-
metrics: {
|
|
353
|
-
metrics: MetricsV1alpha1PublicApi;
|
|
354
|
-
};
|
|
355
|
-
notification: NotificationV1alpha1PublicApi;
|
|
356
|
-
};
|
|
357
|
-
export { defaultAxiosInstance as axiosInstance, defaultConsoleApiClient as consoleApiClient, defaultCoreApiClient as coreApiClient, createConsoleApiClient, createCoreApiClient, createPublicApiClient, createUcApiClient, defaultPublicApiClient as publicApiClient, defaultUcApiClient as ucApiClient, };
|
package/dist/entry/index.d.ts
DELETED