@spatialwalk/avatarkit 1.0.0-beta.40 → 1.0.0-beta.42
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/CHANGELOG.md +17 -0
- package/README.md +3 -0
- package/dist/{StreamingAudioPlayer-hJgaKVC3.js → StreamingAudioPlayer-C2x7CaOj.js} +1 -1
- package/dist/config/constants.d.ts +1 -0
- package/dist/core/AvatarView.d.ts +0 -4
- package/dist/{index-BxhQDfJ7.js → index-Bgw-52f-.js} +28 -68
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/playground/apps/web/src/api/auth.d.ts +0 -3
- package/dist/playground/apps/web/src/api/character.d.ts +0 -13
- package/dist/playground/apps/web/src/api/index.d.ts +0 -3
- package/dist/playground/apps/web/src/api/redeem.d.ts +0 -3
- package/dist/playground/apps/web/src/composables/useDebugDataCollector.d.ts +0 -377
- package/dist/playground/apps/web/src/composables/useRealtimeAvatar.d.ts +0 -452
- package/dist/playground/apps/web/src/composables/useSubtitle.d.ts +0 -19
- package/dist/playground/apps/web/src/composables/useVAD.d.ts +0 -49
- package/dist/playground/apps/web/src/composables/useVideoCapture.d.ts +0 -57
- package/dist/playground/apps/web/src/config/app-config.d.ts +0 -29
- package/dist/playground/apps/web/src/config/realtime-config.d.ts +0 -47
- package/dist/playground/apps/web/src/config/region-config.d.ts +0 -13
- package/dist/playground/apps/web/src/constants.d.ts +0 -14
- package/dist/playground/apps/web/src/libs/vad/manager.d.ts +0 -37
- package/dist/playground/apps/web/src/libs/vad/process.worklet.d.ts +0 -22
- package/dist/playground/apps/web/src/libs/vad/simpleVad.d.ts +0 -35
- package/dist/playground/apps/web/src/libs/vad/vad.d.ts +0 -56
- package/dist/playground/apps/web/src/libs/vad/wav.d.ts +0 -1
- package/dist/playground/apps/web/src/locales/index.d.ts +0 -2
- package/dist/playground/apps/web/src/main.d.ts +0 -0
- package/dist/playground/apps/web/src/modules/i18n.d.ts +0 -3
- package/dist/playground/apps/web/src/modules/pwa.d.ts +0 -1
- package/dist/playground/apps/web/src/realtime/RealtimeWebSocketClient.d.ts +0 -18
- package/dist/playground/apps/web/src/realtime/index.d.ts +0 -1
- package/dist/playground/apps/web/src/realtime/utils/eventEmitter.d.ts +0 -9
- package/dist/playground/apps/web/src/stores/call.d.ts +0 -173
- package/dist/playground/apps/web/src/stores/character.d.ts +0 -188
- package/dist/playground/apps/web/src/stores/pwa.d.ts +0 -7
- package/dist/playground/apps/web/src/stores/region.d.ts +0 -14
- package/dist/playground/apps/web/src/stores/user.d.ts +0 -22
- package/dist/playground/apps/web/src/stores/vad.d.ts +0 -73
- package/dist/playground/apps/web/src/types/avatar.d.ts +0 -17
- package/dist/playground/apps/web/src/types/character-settings.d.ts +0 -18
- package/dist/playground/apps/web/src/types/character.d.ts +0 -34
- package/dist/playground/apps/web/src/utils/animation-interpolation.d.ts +0 -7
- package/dist/playground/apps/web/src/utils/api-client.d.ts +0 -7
- package/dist/playground/apps/web/src/utils/api-error.d.ts +0 -13
- package/dist/playground/apps/web/src/utils/dynamic-resource-loader.d.ts +0 -43
- package/dist/playground/apps/web/src/utils/error-utils.d.ts +0 -7
- package/dist/playground/apps/web/src/utils/image-optimizer.d.ts +0 -17
- package/dist/playground/apps/web/src/utils/logger.d.ts +0 -1
- package/dist/playground/apps/web/src/utils/memory-tracker.d.ts +0 -23
- package/dist/playground/apps/web/src/utils/nanoid.d.ts +0 -1
- package/dist/playground/apps/web/src/utils/posthog-tracker.d.ts +0 -74
- package/dist/playground/apps/web/src/utils/resource-cache.d.ts +0 -25
- package/dist/playground/apps/web/src/utils/sdk-preinit.d.ts +0 -3
- package/dist/playground/apps/web/src/utils/toast.d.ts +0 -31
- package/dist/playground/apps/web/vite.config.d.ts +0 -2
- package/dist/playground/bump.config.d.ts +0 -2
- package/dist/playground/eslint.config.d.ts +0 -2
- package/dist/playground/generated/buf/validate/validate.d.ts +0 -397
- package/dist/playground/generated/console/v1/collection_task.d.ts +0 -183
- package/dist/playground/generated/console/v1/console.d.ts +0 -162
- package/dist/playground/generated/console/v1/instance_management.d.ts +0 -131
- package/dist/playground/generated/console/v1/material.d.ts +0 -163
- package/dist/playground/generated/console/v1/pipetemplate.d.ts +0 -106
- package/dist/playground/generated/console/v1/task.d.ts +0 -280
- package/dist/playground/generated/driveningress/v1/driveningress.d.ts +0 -69
- package/dist/playground/generated/driveningress/v2/driveningress.d.ts +0 -78
- package/dist/playground/generated/google/api/annotations.d.ts +0 -1
- package/dist/playground/generated/google/api/http.d.ts +0 -47
- package/dist/playground/generated/google/protobuf/any.d.ts +0 -27
- package/dist/playground/generated/google/protobuf/descriptor.d.ts +0 -513
- package/dist/playground/generated/google/protobuf/duration.d.ts +0 -27
- package/dist/playground/generated/google/protobuf/struct.d.ts +0 -74
- package/dist/playground/generated/google/protobuf/timestamp.d.ts +0 -27
- package/dist/playground/generated/jsonapi/v1/base.d.ts +0 -108
- package/dist/playground/generated/platform/v1/asset_groups.d.ts +0 -199
- package/dist/playground/generated/platform/v1/assets.d.ts +0 -141
- package/dist/playground/generated/platform/v1/auth.d.ts +0 -79
- package/dist/playground/generated/platform/v1/character.d.ts +0 -378
- package/dist/playground/generated/platform/v1/character_template.d.ts +0 -124
- package/dist/playground/generated/platform/v1/collection_task.d.ts +0 -60
- package/dist/playground/generated/platform/v1/configkv.d.ts +0 -101
- package/dist/playground/generated/platform/v1/console.d.ts +0 -29
- package/dist/playground/generated/platform/v1/instance_management.d.ts +0 -131
- package/dist/playground/generated/platform/v1/material.d.ts +0 -27
- package/dist/playground/generated/platform/v1/oss.d.ts +0 -53
- package/dist/playground/generated/platform/v1/pipetemplate.d.ts +0 -106
- package/dist/playground/generated/platform/v1/provider.d.ts +0 -141
- package/dist/playground/generated/platform/v1/redeem.d.ts +0 -83
- package/dist/playground/generated/platform/v1/task.d.ts +0 -39
- package/dist/playground/generated/platform/v1/user.d.ts +0 -142
- package/dist/playground/generated/platform/v1/voice.d.ts +0 -141
- package/dist/playground/generated/realtime/v1/auth.d.ts +0 -77
- package/dist/playground/generated/realtime/v1/customized.d.ts +0 -60
- package/dist/playground/generated/realtime/v1/messages.d.ts +0 -156
- package/dist/playground/generated/realtime/v1/realtime.d.ts +0 -67
- package/dist/playground/generated/realtime/v1/redeem.d.ts +0 -44
- package/dist/playground/generated/realtime/v1/user.d.ts +0 -150
- package/dist/playground/generated/realtime/v2/realtime.d.ts +0 -70
- package/dist/playground/packages/sdk/src/index.d.ts +0 -1
- package/dist/playground/packages/sdk/tsdown.config.d.ts +0 -2
- package/dist/playground/unocss.config.d.ts +0 -3
- package/dist/withJoi/admin/eslint.config.d.ts +0 -2
- package/dist/withJoi/admin/generated/buf/validate/validate.d.ts +0 -397
- package/dist/withJoi/admin/generated/common/v1/models.d.ts +0 -29
- package/dist/withJoi/admin/generated/console/v1/admin_app.d.ts +0 -77
- package/dist/withJoi/admin/generated/console/v1/admin_auth.d.ts +0 -69
- package/dist/withJoi/admin/generated/console/v1/admin_config.d.ts +0 -157
- package/dist/withJoi/admin/generated/console/v1/admin_user.d.ts +0 -84
- package/dist/withJoi/admin/generated/console/v1/admin_user_character.d.ts +0 -107
- package/dist/withJoi/admin/generated/console/v1/app.d.ts +0 -116
- package/dist/withJoi/admin/generated/console/v1/auth.d.ts +0 -199
- package/dist/withJoi/admin/generated/console/v1/character.d.ts +0 -74
- package/dist/withJoi/admin/generated/console/v1/collection_task.d.ts +0 -183
- package/dist/withJoi/admin/generated/console/v1/console.d.ts +0 -163
- package/dist/withJoi/admin/generated/console/v1/instance_management.d.ts +0 -156
- package/dist/withJoi/admin/generated/console/v1/material.d.ts +0 -180
- package/dist/withJoi/admin/generated/console/v1/pipetemplate.d.ts +0 -106
- package/dist/withJoi/admin/generated/console/v1/task.d.ts +0 -292
- package/dist/withJoi/admin/generated/console/v2/async_processing.d.ts +0 -85
- package/dist/withJoi/admin/generated/google/api/annotations.d.ts +0 -1
- package/dist/withJoi/admin/generated/google/api/http.d.ts +0 -47
- package/dist/withJoi/admin/generated/google/protobuf/any.d.ts +0 -27
- package/dist/withJoi/admin/generated/google/protobuf/descriptor.d.ts +0 -552
- package/dist/withJoi/admin/generated/google/protobuf/duration.d.ts +0 -27
- package/dist/withJoi/admin/generated/google/protobuf/empty.d.ts +0 -25
- package/dist/withJoi/admin/generated/google/protobuf/struct.d.ts +0 -74
- package/dist/withJoi/admin/generated/google/protobuf/timestamp.d.ts +0 -27
- package/dist/withJoi/admin/generated/jsonapi/v1/base.d.ts +0 -108
- package/dist/withJoi/admin/generated/platform/v1/asset_groups.d.ts +0 -204
- package/dist/withJoi/admin/generated/platform/v1/assets.d.ts +0 -141
- package/dist/withJoi/admin/generated/platform/v1/auth.d.ts +0 -79
- package/dist/withJoi/admin/generated/platform/v1/character.d.ts +0 -382
- package/dist/withJoi/admin/generated/platform/v1/character_template.d.ts +0 -124
- package/dist/withJoi/admin/generated/platform/v1/christmas_characters.d.ts +0 -118
- package/dist/withJoi/admin/generated/platform/v1/collection_task.d.ts +0 -60
- package/dist/withJoi/admin/generated/platform/v1/config.d.ts +0 -130
- package/dist/withJoi/admin/generated/platform/v1/configkv.d.ts +0 -105
- package/dist/withJoi/admin/generated/platform/v1/console.d.ts +0 -29
- package/dist/withJoi/admin/generated/platform/v1/instance_management.d.ts +0 -156
- package/dist/withJoi/admin/generated/platform/v1/joi_model_apply.d.ts +0 -100
- package/dist/withJoi/admin/generated/platform/v1/material.d.ts +0 -29
- package/dist/withJoi/admin/generated/platform/v1/model_evaluation.d.ts +0 -57
- package/dist/withJoi/admin/generated/platform/v1/oss.d.ts +0 -53
- package/dist/withJoi/admin/generated/platform/v1/pipetemplate.d.ts +0 -106
- package/dist/withJoi/admin/generated/platform/v1/provider.d.ts +0 -141
- package/dist/withJoi/admin/generated/platform/v1/redeem.d.ts +0 -83
- package/dist/withJoi/admin/generated/platform/v1/sms_send_log.d.ts +0 -95
- package/dist/withJoi/admin/generated/platform/v1/task.d.ts +0 -39
- package/dist/withJoi/admin/generated/platform/v1/user.d.ts +0 -142
- package/dist/withJoi/admin/generated/platform/v1/voice.d.ts +0 -141
- package/dist/withJoi/admin/generated/realtime/v1/auth.d.ts +0 -77
- package/dist/withJoi/admin/generated/realtime/v1/customized.d.ts +0 -60
- package/dist/withJoi/admin/generated/realtime/v1/messages.d.ts +0 -156
- package/dist/withJoi/admin/generated/realtime/v1/realtime.d.ts +0 -67
- package/dist/withJoi/admin/generated/realtime/v1/redeem.d.ts +0 -44
- package/dist/withJoi/admin/generated/realtime/v1/user.d.ts +0 -150
- package/dist/withJoi/admin/generated/realtime/v2/auth.d.ts +0 -68
- package/dist/withJoi/admin/generated/realtime/v2/callback.d.ts +0 -56
- package/dist/withJoi/admin/generated/realtime/v2/joi_avatar.d.ts +0 -204
- package/dist/withJoi/admin/generated/realtime/v2/model_apply.d.ts +0 -138
- package/dist/withJoi/admin/generated/realtime/v2/realtime.d.ts +0 -70
- package/dist/withJoi/admin/generated/realtime/v2/user.d.ts +0 -96
- package/dist/withJoi/admin/openapi-ts.config.d.ts +0 -8
- package/dist/withJoi/admin/src/apis/useAssetApi.d.ts +0 -17
- package/dist/withJoi/admin/src/apis/useAssetGroupApi.d.ts +0 -26
- package/dist/withJoi/admin/src/apis/useCharacterApi.d.ts +0 -21
- package/dist/withJoi/admin/src/apis/useCharacterTemplateApi.d.ts +0 -20
- package/dist/withJoi/admin/src/apis/useChristmasCharactersApi.d.ts +0 -40
- package/dist/withJoi/admin/src/apis/useCollectionTaskApi.d.ts +0 -64
- package/dist/withJoi/admin/src/apis/useConfigApi.d.ts +0 -16
- package/dist/withJoi/admin/src/apis/useConsoleApi.d.ts +0 -24
- package/dist/withJoi/admin/src/apis/useInstanceManagementApi.d.ts +0 -19
- package/dist/withJoi/admin/src/apis/useJoiModelApplyApi.d.ts +0 -11
- package/dist/withJoi/admin/src/apis/useMaterialApi.d.ts +0 -1
- package/dist/withJoi/admin/src/apis/useOssApi.d.ts +0 -15
- package/dist/withJoi/admin/src/apis/usePipelineTemplateApi.d.ts +0 -8
- package/dist/withJoi/admin/src/apis/useProviderApi.d.ts +0 -16
- package/dist/withJoi/admin/src/apis/useRedeemApi.d.ts +0 -5
- package/dist/withJoi/admin/src/apis/useSmsSendLogApi.d.ts +0 -14
- package/dist/withJoi/admin/src/apis/useTaskApi.d.ts +0 -66
- package/dist/withJoi/admin/src/apis/useUserApi.d.ts +0 -17
- package/dist/withJoi/admin/src/apis/useVoiceApi.d.ts +0 -15
- package/dist/withJoi/admin/src/client/client/client.gen.d.ts +0 -2
- package/dist/withJoi/admin/src/client/client/index.d.ts +0 -8
- package/dist/withJoi/admin/src/client/client/types.gen.d.ts +0 -70
- package/dist/withJoi/admin/src/client/client/utils.gen.d.ts +0 -31
- package/dist/withJoi/admin/src/client/client.gen.d.ts +0 -5
- package/dist/withJoi/admin/src/client/core/auth.gen.d.ts +0 -8
- package/dist/withJoi/admin/src/client/core/bodySerializer.gen.d.ts +0 -21
- package/dist/withJoi/admin/src/client/core/params.gen.d.ts +0 -27
- package/dist/withJoi/admin/src/client/core/pathSerializer.gen.d.ts +0 -30
- package/dist/withJoi/admin/src/client/core/queryKeySerializer.gen.d.ts +0 -9
- package/dist/withJoi/admin/src/client/core/serverSentEvents.gen.d.ts +0 -23
- package/dist/withJoi/admin/src/client/core/types.gen.d.ts +0 -32
- package/dist/withJoi/admin/src/client/core/utils.gen.d.ts +0 -19
- package/dist/withJoi/admin/src/client/index.d.ts +0 -2
- package/dist/withJoi/admin/src/client/sdk.gen.d.ts +0 -245
- package/dist/withJoi/admin/src/client/types.gen.d.ts +0 -4009
- package/dist/withJoi/admin/src/client/valibot.gen.d.ts +0 -7814
- package/dist/withJoi/admin/src/components/ui/alert/index.d.ts +0 -8
- package/dist/withJoi/admin/src/components/ui/alert-dialog/index.d.ts +0 -9
- package/dist/withJoi/admin/src/components/ui/avatar/index.d.ts +0 -9
- package/dist/withJoi/admin/src/components/ui/badge/index.d.ts +0 -6
- package/dist/withJoi/admin/src/components/ui/breadcrumb/index.d.ts +0 -7
- package/dist/withJoi/admin/src/components/ui/button/index.d.ts +0 -7
- package/dist/withJoi/admin/src/components/ui/card/index.d.ts +0 -6
- package/dist/withJoi/admin/src/components/ui/checkbox/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/collapsible/index.d.ts +0 -3
- package/dist/withJoi/admin/src/components/ui/combobox/index.d.ts +0 -9
- package/dist/withJoi/admin/src/components/ui/dialog/index.d.ts +0 -9
- package/dist/withJoi/admin/src/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/withJoi/admin/src/components/ui/filter-popover/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/form/index.d.ts +0 -7
- package/dist/withJoi/admin/src/components/ui/form/injectionKeys.d.ts +0 -2
- package/dist/withJoi/admin/src/components/ui/form/useFormField.d.ts +0 -11
- package/dist/withJoi/admin/src/components/ui/input/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/label/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/popover/index.d.ts +0 -4
- package/dist/withJoi/admin/src/components/ui/progress/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/select/index.d.ts +0 -11
- package/dist/withJoi/admin/src/components/ui/separator/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/sheet/index.d.ts +0 -13
- package/dist/withJoi/admin/src/components/ui/sidebar/index.d.ts +0 -37
- package/dist/withJoi/admin/src/components/ui/sidebar/utils.d.ts +0 -54
- package/dist/withJoi/admin/src/components/ui/skeleton/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/slider/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/switch/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/tabs/index.d.ts +0 -4
- package/dist/withJoi/admin/src/components/ui/tags-input/index.d.ts +0 -5
- package/dist/withJoi/admin/src/components/ui/textarea/index.d.ts +0 -1
- package/dist/withJoi/admin/src/components/ui/tooltip/index.d.ts +0 -4
- package/dist/withJoi/admin/src/composables/useApi.d.ts +0 -21
- package/dist/withJoi/admin/src/composables/useAppStorage.d.ts +0 -9
- package/dist/withJoi/admin/src/composables/useAssetUpload.d.ts +0 -31
- package/dist/withJoi/admin/src/composables/useCharacterForm.d.ts +0 -139
- package/dist/withJoi/admin/src/composables/useCharacterSettings.d.ts +0 -27
- package/dist/withJoi/admin/src/composables/useCharacterTemplateForm.d.ts +0 -47
- package/dist/withJoi/admin/src/composables/useCollectionTaskFilters.d.ts +0 -12
- package/dist/withJoi/admin/src/composables/useFileUpload.d.ts +0 -26
- package/dist/withJoi/admin/src/composables/useMaterialFilters.d.ts +0 -14
- package/dist/withJoi/admin/src/composables/useModelEvaluation.d.ts +0 -11
- package/dist/withJoi/admin/src/composables/useModelEvaluationWebSocket.d.ts +0 -111
- package/dist/withJoi/admin/src/composables/useModelSettings.d.ts +0 -12
- package/dist/withJoi/admin/src/composables/usePageScrollLock.d.ts +0 -6
- package/dist/withJoi/admin/src/composables/useTaskFilters.d.ts +0 -11
- package/dist/withJoi/admin/src/constants/character.d.ts +0 -4
- package/dist/withJoi/admin/src/constants/collection-task.d.ts +0 -5
- package/dist/withJoi/admin/src/constants/config-previews.d.ts +0 -8
- package/dist/withJoi/admin/src/constants/container.d.ts +0 -1
- package/dist/withJoi/admin/src/constants/links.d.ts +0 -5
- package/dist/withJoi/admin/src/constants/nav.d.ts +0 -17
- package/dist/withJoi/admin/src/constants/providers.d.ts +0 -17
- package/dist/withJoi/admin/src/constants/regions.d.ts +0 -10
- package/dist/withJoi/admin/src/constants/test-ground-voices.d.ts +0 -19
- package/dist/withJoi/admin/src/constants/ui.d.ts +0 -4
- package/dist/withJoi/admin/src/constants/voice.d.ts +0 -12
- package/dist/withJoi/admin/src/constants/volc.d.ts +0 -135
- package/dist/withJoi/admin/src/lib/cos/constants.d.ts +0 -6
- package/dist/withJoi/admin/src/lib/cos/useCosDownload.d.ts +0 -39
- package/dist/withJoi/admin/src/lib/cos/useCosUpload.d.ts +0 -47
- package/dist/withJoi/admin/src/lib/cos/useVideoInfoExtractor.d.ts +0 -12
- package/dist/withJoi/admin/src/lib/cos/utils.d.ts +0 -4
- package/dist/withJoi/admin/src/lib/utils.d.ts +0 -49
- package/dist/withJoi/admin/src/main.d.ts +0 -0
- package/dist/withJoi/admin/src/renderSystem/animation/utils/eventEmitter.d.ts +0 -9
- package/dist/withJoi/admin/src/renderSystem/animation/utils/flameConverter.d.ts +0 -18
- package/dist/withJoi/admin/src/renderSystem/audio/AnimationPlayer.d.ts +0 -29
- package/dist/withJoi/admin/src/renderSystem/audio/StreamingAudioPlayer.d.ts +0 -57
- package/dist/withJoi/admin/src/renderSystem/config/app-config.d.ts +0 -39
- package/dist/withJoi/admin/src/renderSystem/config/constants.d.ts +0 -3
- package/dist/withJoi/admin/src/renderSystem/config/sdk-config-loader.d.ts +0 -5
- package/dist/withJoi/admin/src/renderSystem/core/Avatar.d.ts +0 -8
- package/dist/withJoi/admin/src/renderSystem/core/AvatarController.d.ts +0 -60
- package/dist/withJoi/admin/src/renderSystem/core/AvatarDownloader.d.ts +0 -38
- package/dist/withJoi/admin/src/renderSystem/core/AvatarKit.d.ts +0 -9
- package/dist/withJoi/admin/src/renderSystem/core/AvatarView.d.ts +0 -64
- package/dist/withJoi/admin/src/renderSystem/generated/driveningress/v1/driveningress.d.ts +0 -68
- package/dist/withJoi/admin/src/renderSystem/generated/driveningress/v2/driveningress.d.ts +0 -3
- package/dist/withJoi/admin/src/renderSystem/generated/google/protobuf/struct.d.ts +0 -74
- package/dist/withJoi/admin/src/renderSystem/generated/google/protobuf/timestamp.d.ts +0 -27
- package/dist/withJoi/admin/src/renderSystem/renderer/RenderSystem.d.ts +0 -1
- package/dist/withJoi/admin/src/renderSystem/renderer/covariance.d.ts +0 -1
- package/dist/withJoi/admin/src/renderSystem/renderer/renderer.d.ts +0 -7
- package/dist/withJoi/admin/src/renderSystem/renderer/sortSplats.d.ts +0 -1
- package/dist/withJoi/admin/src/renderSystem/renderer/webgl/reorderData.d.ts +0 -1
- package/dist/withJoi/admin/src/renderSystem/renderer/webgl/webglRenderer.d.ts +0 -27
- package/dist/withJoi/admin/src/renderSystem/renderer/webgpu/webgpuRenderer.d.ts +0 -27
- package/dist/withJoi/admin/src/renderSystem/types/character-settings.d.ts +0 -18
- package/dist/withJoi/admin/src/renderSystem/types/character.d.ts +0 -22
- package/dist/withJoi/admin/src/renderSystem/types/index.d.ts +0 -62
- package/dist/withJoi/admin/src/renderSystem/utils/animation-interpolation.d.ts +0 -7
- package/dist/withJoi/admin/src/renderSystem/utils/conversationId.d.ts +0 -1
- package/dist/withJoi/admin/src/renderSystem/utils/error-utils.d.ts +0 -3
- package/dist/withJoi/admin/src/renderSystem/utils/id-manager.d.ts +0 -12
- package/dist/withJoi/admin/src/renderSystem/utils/logger.d.ts +0 -14
- package/dist/withJoi/admin/src/renderSystem/wasm/avatarCoreAdapter.d.ts +0 -101
- package/dist/withJoi/admin/src/renderSystem/wasm/avatarCoreMemory.d.ts +0 -92
- package/dist/withJoi/admin/src/stores/providers.d.ts +0 -336
- package/dist/withJoi/admin/src/stores/region.d.ts +0 -19
- package/dist/withJoi/admin/src/stores/user.d.ts +0 -112
- package/dist/withJoi/admin/src/types/character-settings.d.ts +0 -18
- package/dist/withJoi/admin/src/types/character.d.ts +0 -117
- package/dist/withJoi/admin/src/types/collection-task.d.ts +0 -11
- package/dist/withJoi/admin/src/types/config.d.ts +0 -36
- package/dist/withJoi/admin/src/types/doubao-voice.d.ts +0 -42
- package/dist/withJoi/admin/src/types/error.d.ts +0 -5
- package/dist/withJoi/admin/src/types/model-settings.d.ts +0 -41
- package/dist/withJoi/admin/src/types/task.d.ts +0 -45
- package/dist/withJoi/admin/src/types/test-ground.d.ts +0 -36
- package/dist/withJoi/admin/src/types/video-material.d.ts +0 -130
- package/dist/withJoi/admin/src/types/voice.d.ts +0 -58
- package/dist/withJoi/admin/src/utils/collection-task.d.ts +0 -3
- package/dist/withJoi/admin/src/utils/error.d.ts +0 -1
- package/dist/withJoi/admin/src/utils/hash.d.ts +0 -20
- package/dist/withJoi/admin/src/utils/model-settings.d.ts +0 -9
- package/dist/withJoi/admin/src/utils/monad.d.ts +0 -13
- package/dist/withJoi/admin/src/utils/task.d.ts +0 -8
- package/dist/withJoi/admin/unocss.config.d.ts +0 -2
- package/dist/withJoi/admin/vite.config.d.ts +0 -2
- package/dist/withJoi/admin/vue-macros.config.d.ts +0 -2
- package/dist/withJoi/bump.config.d.ts +0 -2
- package/dist/withJoi/eslint.config.d.ts +0 -2
- package/dist/withJoi/generated/buf/validate/validate.d.ts +0 -397
- package/dist/withJoi/generated/common/v1/models.d.ts +0 -29
- package/dist/withJoi/generated/console/v1/admin_app.d.ts +0 -77
- package/dist/withJoi/generated/console/v1/admin_auth.d.ts +0 -69
- package/dist/withJoi/generated/console/v1/admin_config.d.ts +0 -157
- package/dist/withJoi/generated/console/v1/admin_user.d.ts +0 -84
- package/dist/withJoi/generated/console/v1/admin_user_character.d.ts +0 -107
- package/dist/withJoi/generated/console/v1/app.d.ts +0 -116
- package/dist/withJoi/generated/console/v1/auth.d.ts +0 -199
- package/dist/withJoi/generated/console/v1/character.d.ts +0 -74
- package/dist/withJoi/generated/console/v1/collection_task.d.ts +0 -183
- package/dist/withJoi/generated/console/v1/console.d.ts +0 -163
- package/dist/withJoi/generated/console/v1/instance_management.d.ts +0 -156
- package/dist/withJoi/generated/console/v1/material.d.ts +0 -180
- package/dist/withJoi/generated/console/v1/pipetemplate.d.ts +0 -106
- package/dist/withJoi/generated/console/v1/task.d.ts +0 -292
- package/dist/withJoi/generated/console/v2/async_processing.d.ts +0 -85
- package/dist/withJoi/generated/driveningress/v1/driveningress.d.ts +0 -69
- package/dist/withJoi/generated/driveningress/v2/driveningress.d.ts +0 -159
- package/dist/withJoi/generated/google/api/annotations.d.ts +0 -1
- package/dist/withJoi/generated/google/api/http.d.ts +0 -47
- package/dist/withJoi/generated/google/protobuf/any.d.ts +0 -27
- package/dist/withJoi/generated/google/protobuf/descriptor.d.ts +0 -552
- package/dist/withJoi/generated/google/protobuf/duration.d.ts +0 -27
- package/dist/withJoi/generated/google/protobuf/empty.d.ts +0 -25
- package/dist/withJoi/generated/google/protobuf/struct.d.ts +0 -74
- package/dist/withJoi/generated/google/protobuf/timestamp.d.ts +0 -27
- package/dist/withJoi/generated/jsonapi/v1/base.d.ts +0 -108
- package/dist/withJoi/generated/platform/v1/asset_groups.d.ts +0 -204
- package/dist/withJoi/generated/platform/v1/assets.d.ts +0 -141
- package/dist/withJoi/generated/platform/v1/auth.d.ts +0 -79
- package/dist/withJoi/generated/platform/v1/character.d.ts +0 -382
- package/dist/withJoi/generated/platform/v1/character_template.d.ts +0 -124
- package/dist/withJoi/generated/platform/v1/christmas_characters.d.ts +0 -118
- package/dist/withJoi/generated/platform/v1/collection_task.d.ts +0 -60
- package/dist/withJoi/generated/platform/v1/configkv.d.ts +0 -105
- package/dist/withJoi/generated/platform/v1/console.d.ts +0 -29
- package/dist/withJoi/generated/platform/v1/instance_management.d.ts +0 -156
- package/dist/withJoi/generated/platform/v1/joi_model_apply.d.ts +0 -100
- package/dist/withJoi/generated/platform/v1/material.d.ts +0 -29
- package/dist/withJoi/generated/platform/v1/model_evaluation.d.ts +0 -100
- package/dist/withJoi/generated/platform/v1/oss.d.ts +0 -53
- package/dist/withJoi/generated/platform/v1/pipetemplate.d.ts +0 -106
- package/dist/withJoi/generated/platform/v1/provider.d.ts +0 -141
- package/dist/withJoi/generated/platform/v1/redeem.d.ts +0 -83
- package/dist/withJoi/generated/platform/v1/sms_send_log.d.ts +0 -95
- package/dist/withJoi/generated/platform/v1/task.d.ts +0 -39
- package/dist/withJoi/generated/platform/v1/user.d.ts +0 -142
- package/dist/withJoi/generated/platform/v1/voice.d.ts +0 -141
- package/dist/withJoi/generated/realtime/v1/auth.d.ts +0 -77
- package/dist/withJoi/generated/realtime/v1/customized.d.ts +0 -60
- package/dist/withJoi/generated/realtime/v1/messages.d.ts +0 -156
- package/dist/withJoi/generated/realtime/v1/realtime.d.ts +0 -67
- package/dist/withJoi/generated/realtime/v1/redeem.d.ts +0 -44
- package/dist/withJoi/generated/realtime/v1/user.d.ts +0 -151
- package/dist/withJoi/generated/realtime/v2/auth.d.ts +0 -84
- package/dist/withJoi/generated/realtime/v2/callback.d.ts +0 -56
- package/dist/withJoi/generated/realtime/v2/christmas.d.ts +0 -146
- package/dist/withJoi/generated/realtime/v2/joi_avatar.d.ts +0 -198
- package/dist/withJoi/generated/realtime/v2/model_apply.d.ts +0 -194
- package/dist/withJoi/generated/realtime/v2/realtime.d.ts +0 -140
- package/dist/withJoi/generated/realtime/v2/user.d.ts +0 -96
- package/dist/withJoi/generated/shared-proto/syncdb/v1/syncdb.d.ts +0 -54
- package/dist/withJoi/generated/syncdb/v1/syncdb.d.ts +0 -54
- package/dist/withJoi/legacy/unocss.shared.d.ts +0 -3
- package/dist/withJoi/openapi-ts.config.d.ts +0 -8
- package/dist/withJoi/packages/sdk/src/index.d.ts +0 -1
- package/dist/withJoi/packages/sdk/tsdown.config.d.ts +0 -2
- package/dist/withJoi/src/api/appearance.d.ts +0 -5
- package/dist/withJoi/src/api/auth.d.ts +0 -7
- package/dist/withJoi/src/api/character.d.ts +0 -20
- package/dist/withJoi/src/api/index.d.ts +0 -8
- package/dist/withJoi/src/api/joi-avatar.d.ts +0 -26
- package/dist/withJoi/src/api/model-apply.d.ts +0 -21
- package/dist/withJoi/src/api/oss.d.ts +0 -13
- package/dist/withJoi/src/api/provider.d.ts +0 -11
- package/dist/withJoi/src/api/redeem.d.ts +0 -3
- package/dist/withJoi/src/api/user.d.ts +0 -9
- package/dist/withJoi/src/audio/AnimationPlayer.d.ts +0 -22
- package/dist/withJoi/src/audio/StreamingAudioPlayer.d.ts +0 -58
- package/dist/withJoi/src/client/client/client.gen.d.ts +0 -2
- package/dist/withJoi/src/client/client/index.d.ts +0 -8
- package/dist/withJoi/src/client/client/types.gen.d.ts +0 -70
- package/dist/withJoi/src/client/client/utils.gen.d.ts +0 -31
- package/dist/withJoi/src/client/client.gen.d.ts +0 -5
- package/dist/withJoi/src/client/core/auth.gen.d.ts +0 -8
- package/dist/withJoi/src/client/core/bodySerializer.gen.d.ts +0 -21
- package/dist/withJoi/src/client/core/params.gen.d.ts +0 -27
- package/dist/withJoi/src/client/core/pathSerializer.gen.d.ts +0 -30
- package/dist/withJoi/src/client/core/queryKeySerializer.gen.d.ts +0 -9
- package/dist/withJoi/src/client/core/serverSentEvents.gen.d.ts +0 -23
- package/dist/withJoi/src/client/core/types.gen.d.ts +0 -32
- package/dist/withJoi/src/client/core/utils.gen.d.ts +0 -19
- package/dist/withJoi/src/client/index.d.ts +0 -2
- package/dist/withJoi/src/client/sdk.gen.d.ts +0 -303
- package/dist/withJoi/src/client/types.gen.d.ts +0 -4988
- package/dist/withJoi/src/client/valibot.gen.d.ts +0 -10015
- package/dist/withJoi/src/components/ui/avatar/index.d.ts +0 -9
- package/dist/withJoi/src/components/ui/badge/index.d.ts +0 -6
- package/dist/withJoi/src/components/ui/button/index.d.ts +0 -7
- package/dist/withJoi/src/components/ui/popover/index.d.ts +0 -4
- package/dist/withJoi/src/components/ui/select/index.d.ts +0 -11
- package/dist/withJoi/src/composables/useCameraConfig.d.ts +0 -48
- package/dist/withJoi/src/composables/useDebugDataCollector.d.ts +0 -377
- package/dist/withJoi/src/composables/usePreviewWebSocketManager.d.ts +0 -25
- package/dist/withJoi/src/composables/useRealtimeAvatar.d.ts +0 -462
- package/dist/withJoi/src/composables/useSubtitle.d.ts +0 -19
- package/dist/withJoi/src/composables/useVAD.d.ts +0 -49
- package/dist/withJoi/src/composables/useVideoCapture.d.ts +0 -57
- package/dist/withJoi/src/config/app-config.d.ts +0 -29
- package/dist/withJoi/src/config/realtime-config.d.ts +0 -46
- package/dist/withJoi/src/config/region-config.d.ts +0 -15
- package/dist/withJoi/src/constants.d.ts +0 -22
- package/dist/withJoi/src/lib/utils.d.ts +0 -2
- package/dist/withJoi/src/libs/vad/manager.d.ts +0 -37
- package/dist/withJoi/src/libs/vad/process.worklet.d.ts +0 -22
- package/dist/withJoi/src/libs/vad/simpleVad.d.ts +0 -35
- package/dist/withJoi/src/libs/vad/vad.d.ts +0 -56
- package/dist/withJoi/src/libs/vad/wav.d.ts +0 -1
- package/dist/withJoi/src/locales/index.d.ts +0 -2
- package/dist/withJoi/src/main.d.ts +0 -0
- package/dist/withJoi/src/modules/i18n.d.ts +0 -3
- package/dist/withJoi/src/modules/pwa.d.ts +0 -1
- package/dist/withJoi/src/realtime/PreviewWebSocketClient.d.ts +0 -18
- package/dist/withJoi/src/realtime/RealtimeSyncManager.d.ts +0 -34
- package/dist/withJoi/src/realtime/RealtimeWebSocketClient.d.ts +0 -18
- package/dist/withJoi/src/realtime/index.d.ts +0 -3
- package/dist/withJoi/src/realtime/types.d.ts +0 -29
- package/dist/withJoi/src/realtime/utils/audioDebug.d.ts +0 -3
- package/dist/withJoi/src/realtime/utils/audioUtils.d.ts +0 -11
- package/dist/withJoi/src/realtime/utils/eventEmitter.d.ts +0 -9
- package/dist/withJoi/src/renderer/RenderSystem.d.ts +0 -34
- package/dist/withJoi/src/renderer/covariance.d.ts +0 -1
- package/dist/withJoi/src/renderer/renderer.d.ts +0 -7
- package/dist/withJoi/src/renderer/sortSplats.d.ts +0 -1
- package/dist/withJoi/src/renderer/webgl/reorderData.d.ts +0 -1
- package/dist/withJoi/src/renderer/webgl/webglRenderer.d.ts +0 -27
- package/dist/withJoi/src/renderer/webgpu/webgpuRenderer.d.ts +0 -26
- package/dist/withJoi/src/stores/call.d.ts +0 -176
- package/dist/withJoi/src/stores/character.d.ts +0 -188
- package/dist/withJoi/src/stores/config.d.ts +0 -59
- package/dist/withJoi/src/stores/pwa.d.ts +0 -7
- package/dist/withJoi/src/stores/region.d.ts +0 -14
- package/dist/withJoi/src/stores/user.d.ts +0 -52
- package/dist/withJoi/src/stores/vad.d.ts +0 -73
- package/dist/withJoi/src/types/appearance.d.ts +0 -30
- package/dist/withJoi/src/types/avatar.d.ts +0 -17
- package/dist/withJoi/src/types/character-settings.d.ts +0 -18
- package/dist/withJoi/src/types/character.d.ts +0 -34
- package/dist/withJoi/src/types/doubao-voice.d.ts +0 -42
- package/dist/withJoi/src/utils/animation-interpolation.d.ts +0 -7
- package/dist/withJoi/src/utils/api-client.d.ts +0 -7
- package/dist/withJoi/src/utils/api-error.d.ts +0 -13
- package/dist/withJoi/src/utils/avatar-converter.d.ts +0 -1
- package/dist/withJoi/src/utils/error-utils.d.ts +0 -3
- package/dist/withJoi/src/utils/hash.d.ts +0 -5
- package/dist/withJoi/src/utils/helpers.d.ts +0 -15
- package/dist/withJoi/src/utils/image-optimizer.d.ts +0 -17
- package/dist/withJoi/src/utils/logger.d.ts +0 -1
- package/dist/withJoi/src/utils/memory-tracker.d.ts +0 -23
- package/dist/withJoi/src/utils/model-settings-utils.d.ts +0 -29
- package/dist/withJoi/src/utils/nanoid.d.ts +0 -1
- package/dist/withJoi/src/utils/posthog-tracker.d.ts +0 -74
- package/dist/withJoi/src/utils/postprocess-sdk-converter.d.ts +0 -4
- package/dist/withJoi/src/utils/postprocess-transform.d.ts +0 -25
- package/dist/withJoi/src/utils/r2-upload.d.ts +0 -8
- package/dist/withJoi/src/utils/resource-cache.d.ts +0 -25
- package/dist/withJoi/src/utils/sdk-preinit.d.ts +0 -3
- package/dist/withJoi/src/utils/toast.d.ts +0 -30
- package/dist/withJoi/src/wasm/avatarCoreAdapter.d.ts +0 -101
- package/dist/withJoi/src/wasm/avatarCoreMemory.d.ts +0 -72
- package/dist/withJoi/unocss.config.d.ts +0 -2
- package/dist/withJoi/vite.config.d.ts +0 -2
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
-
export declare const protobufPackage = "realtime.v2";
|
|
3
|
-
export declare enum Gender {
|
|
4
|
-
GENDER_UNSPECIFIED = 0,
|
|
5
|
-
GENDER_MALE = 1,
|
|
6
|
-
GENDER_FEMALE = 2,
|
|
7
|
-
GENDER_OTHER = 3,
|
|
8
|
-
UNRECOGNIZED = -1
|
|
9
|
-
}
|
|
10
|
-
export declare function genderFromJSON(object: any): Gender;
|
|
11
|
-
export declare function genderToJSON(object: Gender): string;
|
|
12
|
-
export declare enum Language {
|
|
13
|
-
LANGUAGE_UNSPECIFIED = 0,
|
|
14
|
-
LANGUAGE_ZH_CN = 1,
|
|
15
|
-
LANGUAGE_EN_US = 2,
|
|
16
|
-
UNRECOGNIZED = -1
|
|
17
|
-
}
|
|
18
|
-
export declare function languageFromJSON(object: any): Language;
|
|
19
|
-
export declare function languageToJSON(object: Language): string;
|
|
20
|
-
export declare enum UserType {
|
|
21
|
-
USER_TYPE_UNSPECIFIED = 0,
|
|
22
|
-
USER_TYPE_NORMAL = 1,
|
|
23
|
-
USER_TYPE_ANONYMOUS = 2,
|
|
24
|
-
USER_TYPE_PAID = 3,
|
|
25
|
-
UNRECOGNIZED = -1
|
|
26
|
-
}
|
|
27
|
-
export declare function userTypeFromJSON(object: any): UserType;
|
|
28
|
-
export declare function userTypeToJSON(object: UserType): string;
|
|
29
|
-
|
|
30
|
-
export interface RealtimeUser {
|
|
31
|
-
id: string;
|
|
32
|
-
username: string;
|
|
33
|
-
nickname?: string | undefined;
|
|
34
|
-
email: string;
|
|
35
|
-
gender?: Gender | undefined;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface GetUserRequest {
|
|
39
|
-
id: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface GetUserResponse {
|
|
43
|
-
user?: RealtimeUser | undefined;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface UpdateUserRequest {
|
|
47
|
-
username?: string | undefined;
|
|
48
|
-
nickname?: string | undefined;
|
|
49
|
-
gender?: Gender | undefined;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface UpdateUserResponse {
|
|
53
|
-
user?: RealtimeUser | undefined;
|
|
54
|
-
}
|
|
55
|
-
export declare const RealtimeUser: MessageFns<RealtimeUser>;
|
|
56
|
-
export declare const GetUserRequest: MessageFns<GetUserRequest>;
|
|
57
|
-
export declare const GetUserResponse: MessageFns<GetUserResponse>;
|
|
58
|
-
export declare const UpdateUserRequest: MessageFns<UpdateUserRequest>;
|
|
59
|
-
export declare const UpdateUserResponse: MessageFns<UpdateUserResponse>;
|
|
60
|
-
|
|
61
|
-
export interface RealtimeUserService {
|
|
62
|
-
GetUser(request: GetUserRequest): Promise<GetUserResponse>;
|
|
63
|
-
UpdateUser(request: UpdateUserRequest): Promise<UpdateUserResponse>;
|
|
64
|
-
}
|
|
65
|
-
export declare const RealtimeUserServiceServiceName = "realtime.v2.RealtimeUserService";
|
|
66
|
-
export declare class RealtimeUserServiceClientImpl implements RealtimeUserService {
|
|
67
|
-
private readonly rpc;
|
|
68
|
-
private readonly service;
|
|
69
|
-
constructor(rpc: Rpc, opts?: {
|
|
70
|
-
service?: string;
|
|
71
|
-
});
|
|
72
|
-
GetUser(request: GetUserRequest): Promise<GetUserResponse>;
|
|
73
|
-
UpdateUser(request: UpdateUserRequest): Promise<UpdateUserResponse>;
|
|
74
|
-
}
|
|
75
|
-
interface Rpc {
|
|
76
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
77
|
-
}
|
|
78
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
79
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
80
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
81
|
-
} : Partial<T>;
|
|
82
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
83
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
84
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
85
|
-
} & {
|
|
86
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
87
|
-
};
|
|
88
|
-
export interface MessageFns<T> {
|
|
89
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
90
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
91
|
-
fromJSON(object: any): T;
|
|
92
|
-
toJSON(message: T): unknown;
|
|
93
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
94
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
95
|
-
}
|
|
96
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { V1Asset } from '../client';
|
|
2
|
-
|
|
3
|
-
export declare function useAssetApi(): {
|
|
4
|
-
listAssets: (options?: {
|
|
5
|
-
pageSize?: number;
|
|
6
|
-
pageToken?: string;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
assets: Array<V1Asset>;
|
|
9
|
-
pagination: import('../client').V1PaginationResponse;
|
|
10
|
-
}>;
|
|
11
|
-
getAsset: (id: string) => Promise<V1Asset>;
|
|
12
|
-
createAsset: (asset: V1Asset) => Promise<V1Asset>;
|
|
13
|
-
updateAsset: (id: string, asset: Partial<V1Asset>) => Promise<V1Asset>;
|
|
14
|
-
deleteAsset: (id: string) => Promise<{
|
|
15
|
-
[x: string]: unknown;
|
|
16
|
-
}>;
|
|
17
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AssetGroupServiceUpdateAssetGroupBody, V1AssetGroup, V1AssetGroupSortField, V1CreateAssetGroupRequest, V1SortOrder } from '../client';
|
|
2
|
-
|
|
3
|
-
export declare function useAssetGroupApi(): {
|
|
4
|
-
listAssetGroups: (params?: {
|
|
5
|
-
pageSize?: number;
|
|
6
|
-
pageToken?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
createdBy?: string;
|
|
10
|
-
version?: string;
|
|
11
|
-
taskId?: string;
|
|
12
|
-
materialId?: string;
|
|
13
|
-
sortBy?: V1AssetGroupSortField;
|
|
14
|
-
sortOrder?: V1SortOrder;
|
|
15
|
-
}) => Promise<{
|
|
16
|
-
assetGroups: V1AssetGroup[];
|
|
17
|
-
pagination?: {
|
|
18
|
-
nextPageToken?: string;
|
|
19
|
-
totalCount?: number;
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
22
|
-
getAssetGroup: (id: string) => Promise<V1AssetGroup | null>;
|
|
23
|
-
createAssetGroup: (assetGroup: V1CreateAssetGroupRequest) => Promise<V1AssetGroup>;
|
|
24
|
-
updateAssetGroup: (id: string, assetGroup: Partial<AssetGroupServiceUpdateAssetGroupBody>) => Promise<V1AssetGroup>;
|
|
25
|
-
deleteAssetGroup: (id: string) => Promise<void>;
|
|
26
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare function useCharacterApi(): {
|
|
2
|
-
listCharacters: (options?: {
|
|
3
|
-
pageSize?: number;
|
|
4
|
-
pageToken?: string;
|
|
5
|
-
characterStatus?: string[];
|
|
6
|
-
listName?: string;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
characters: Array<import('../client').V1Character>;
|
|
9
|
-
pagination: import('../client').V1PaginationResponse;
|
|
10
|
-
}>;
|
|
11
|
-
getCharacter: (id: string) => Promise<import('../client').V1FullCharacter>;
|
|
12
|
-
syncCharacter: (id: string, targetRegion: string) => Promise<import('../client').V1Character>;
|
|
13
|
-
getCharacterOptions: () => Promise<{
|
|
14
|
-
value: string;
|
|
15
|
-
label: string;
|
|
16
|
-
character: import('../client').V1Character;
|
|
17
|
-
}[]>;
|
|
18
|
-
processCoef: (coefNpz: string, startFrame: number, version: string) => Promise<string>;
|
|
19
|
-
setCharacterLists: (characterId: string, listNames: string[]) => Promise<void>;
|
|
20
|
-
listCharacterLists: () => Promise<string[]>;
|
|
21
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare function useCharacterTemplateApi(): {
|
|
2
|
-
listCharacterTemplates: (options?: {
|
|
3
|
-
pageSize?: number;
|
|
4
|
-
pageToken?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
createdBy?: string;
|
|
8
|
-
drivenProviderId?: string;
|
|
9
|
-
sortBy?: string;
|
|
10
|
-
sortOrder?: string;
|
|
11
|
-
}) => Promise<{
|
|
12
|
-
characterTemplates: Array<import('../client').V1CharacterTemplate>;
|
|
13
|
-
pagination: import('../client').V1PaginationResponse;
|
|
14
|
-
}>;
|
|
15
|
-
getCharacterTemplate: (id: string) => Promise<import('../client').V1CharacterTemplate>;
|
|
16
|
-
createCharacterTemplate: (templateData: any) => Promise<import('../client').V1CharacterTemplate>;
|
|
17
|
-
updateCharacterTemplate: (id: string, templateData: any) => Promise<import('../client').V1CharacterTemplate>;
|
|
18
|
-
deleteCharacterTemplate: (id: string) => Promise<boolean>;
|
|
19
|
-
getCharacterTemplateOptions: () => Promise<any>;
|
|
20
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare function useChristmasCharactersApi(): {
|
|
2
|
-
listChristmasCharacters: (options?: {
|
|
3
|
-
pagination?: {
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
pageToken?: string;
|
|
6
|
-
};
|
|
7
|
-
characterId?: string;
|
|
8
|
-
needCharge?: boolean;
|
|
9
|
-
}) => Promise<{
|
|
10
|
-
characters: Array<import('../client').V1ChristmasCharacterInfo>;
|
|
11
|
-
pagination: import('../client').V1PaginationResponse;
|
|
12
|
-
}>;
|
|
13
|
-
getChristmasCharacter: (id: string) => Promise<{
|
|
14
|
-
id: string;
|
|
15
|
-
characterId: string;
|
|
16
|
-
startedAt: string;
|
|
17
|
-
needCharge: boolean;
|
|
18
|
-
}>;
|
|
19
|
-
createChristmasCharacter: (character: {
|
|
20
|
-
characterId: string;
|
|
21
|
-
startedAt: Date;
|
|
22
|
-
needCharge: boolean;
|
|
23
|
-
}) => Promise<{
|
|
24
|
-
id: string;
|
|
25
|
-
characterId: string;
|
|
26
|
-
startedAt: string;
|
|
27
|
-
needCharge: boolean;
|
|
28
|
-
}>;
|
|
29
|
-
updateChristmasCharacter: (id: string, updates: {
|
|
30
|
-
characterId?: string;
|
|
31
|
-
startedAt?: Date;
|
|
32
|
-
needCharge?: boolean;
|
|
33
|
-
}) => Promise<{
|
|
34
|
-
id: string;
|
|
35
|
-
characterId: string;
|
|
36
|
-
startedAt: string;
|
|
37
|
-
needCharge: boolean;
|
|
38
|
-
}>;
|
|
39
|
-
deleteChristmasCharacter: (id: string) => Promise<void>;
|
|
40
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare function useCollectionTaskApi(): {
|
|
2
|
-
listCollectionTasks: (options?: {
|
|
3
|
-
pageSize?: number;
|
|
4
|
-
pageToken?: string;
|
|
5
|
-
collectionTaskStatuses?: number[];
|
|
6
|
-
nameSearch?: string;
|
|
7
|
-
creatorIds?: string[];
|
|
8
|
-
timeRangeStart?: string;
|
|
9
|
-
timeRangeEnd?: string;
|
|
10
|
-
expiresTimeRangeStart?: string;
|
|
11
|
-
expiresTimeRangeEnd?: string;
|
|
12
|
-
}) => Promise<{
|
|
13
|
-
collectionTasks: Array<import('../client').V1CollectionTask>;
|
|
14
|
-
pagination: import('../client').V1PaginationResponse;
|
|
15
|
-
}>;
|
|
16
|
-
getCollectionTask: (id: string) => Promise<{
|
|
17
|
-
collectionTask: import('../client').V1CollectionTask;
|
|
18
|
-
shareUrl: string;
|
|
19
|
-
}>;
|
|
20
|
-
createCollectionTask: (taskData: {
|
|
21
|
-
name: string;
|
|
22
|
-
description: string;
|
|
23
|
-
expiresAt?: string;
|
|
24
|
-
}) => Promise<{
|
|
25
|
-
collectionTask: import('../client').V1CollectionTask;
|
|
26
|
-
shareUrl: string;
|
|
27
|
-
}>;
|
|
28
|
-
updateCollectionTask: (id: string, taskData: {
|
|
29
|
-
name?: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
}) => Promise<{
|
|
32
|
-
collectionTask: import('../client').V1CollectionTask;
|
|
33
|
-
shareUrl: string;
|
|
34
|
-
}>;
|
|
35
|
-
deleteCollectionTask: (id: string) => Promise<{
|
|
36
|
-
[x: string]: unknown;
|
|
37
|
-
}>;
|
|
38
|
-
getCollectionTaskByToken: (token: string) => Promise<{
|
|
39
|
-
collectionTask: import('../client').V1CollectionTask;
|
|
40
|
-
}>;
|
|
41
|
-
getCollectionTaskOSSCredentials: (token: string, resourcePath: string) => Promise<{
|
|
42
|
-
accessKeyId: string;
|
|
43
|
-
secretAccessKey: string;
|
|
44
|
-
sessionToken: string;
|
|
45
|
-
expiration: string;
|
|
46
|
-
region: string;
|
|
47
|
-
bucketName: string;
|
|
48
|
-
provider: string;
|
|
49
|
-
baseUrl: string;
|
|
50
|
-
accountId: string;
|
|
51
|
-
}>;
|
|
52
|
-
submitCollectionFile: (params: {
|
|
53
|
-
token: string;
|
|
54
|
-
fileUrl: string;
|
|
55
|
-
fileType: string;
|
|
56
|
-
r2Key: string;
|
|
57
|
-
duration?: number;
|
|
58
|
-
resolution?: string;
|
|
59
|
-
fileSize?: number;
|
|
60
|
-
}) => Promise<{
|
|
61
|
-
materialId: string;
|
|
62
|
-
message: string;
|
|
63
|
-
}>;
|
|
64
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ConfigKV, CreateConfigKVRequest, ListConfigKVsParams, ListConfigKVsResponse, UpdateConfigKVRequest } from '../types/config';
|
|
2
|
-
|
|
3
|
-
export declare function useConfigApi(): {
|
|
4
|
-
isLoading: import('vue').Ref<boolean, boolean>;
|
|
5
|
-
createConfig: (request: CreateConfigKVRequest) => Promise<ConfigKV>;
|
|
6
|
-
getConfig: (id: string) => Promise<ConfigKV>;
|
|
7
|
-
getConfigByKey: (key: string) => Promise<ConfigKV | null>;
|
|
8
|
-
updateConfig: (request: UpdateConfigKVRequest) => Promise<ConfigKV>;
|
|
9
|
-
deleteConfig: (id: string) => Promise<void>;
|
|
10
|
-
listConfigs: (params?: ListConfigKVsParams) => Promise<ListConfigKVsResponse>;
|
|
11
|
-
getConfigOptions: () => Promise<Array<{
|
|
12
|
-
value: string;
|
|
13
|
-
label: string;
|
|
14
|
-
config: ConfigKV;
|
|
15
|
-
}>>;
|
|
16
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare function useConsoleApi(): {
|
|
2
|
-
listApps: (options?: {
|
|
3
|
-
pageSize?: number;
|
|
4
|
-
pageToken?: string;
|
|
5
|
-
}) => Promise<{
|
|
6
|
-
apps: Array<import('../client').V1App>;
|
|
7
|
-
pagination: import('../client').V1PaginationResponse;
|
|
8
|
-
}>;
|
|
9
|
-
getApp: (appId: string) => Promise<{
|
|
10
|
-
app: import('../client').V1App;
|
|
11
|
-
}>;
|
|
12
|
-
createApp: (name: string) => Promise<{
|
|
13
|
-
appId: string;
|
|
14
|
-
}>;
|
|
15
|
-
deleteApp: (appId: string) => Promise<{
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
}>;
|
|
18
|
-
createAPIKey: (appId: string) => Promise<{
|
|
19
|
-
apiKey: import('../client').V1ApiKey;
|
|
20
|
-
}>;
|
|
21
|
-
deleteAPIKey: (appId: string, apiKey: string) => Promise<{
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ContainerImage, LaunchTemplate, ListContainerImagesResponse, ListContainerImageTagsResponse, ListLaunchTemplatesResponse } from '../../generated/platform/v1/instance_management';
|
|
2
|
-
export interface LaunchTemplateOption {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
template: LaunchTemplate;
|
|
6
|
-
}
|
|
7
|
-
export interface ContainerImageOption {
|
|
8
|
-
value: string;
|
|
9
|
-
label: string;
|
|
10
|
-
image: ContainerImage;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export declare function useInstanceManagementApi(): {
|
|
14
|
-
fetchLaunchTemplates: (tagKey?: string) => Promise<ListLaunchTemplatesResponse>;
|
|
15
|
-
fetchContainerImages: (source?: string) => Promise<ListContainerImagesResponse>;
|
|
16
|
-
fetchContainerImageTags: (repositoryName: string, source?: string) => Promise<ListContainerImageTagsResponse>;
|
|
17
|
-
transformLaunchTemplatesToOptions: (templates?: LaunchTemplate[]) => LaunchTemplateOption[];
|
|
18
|
-
transformContainerImagesToOptions: (images?: ContainerImage[]) => ContainerImageOption[];
|
|
19
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { V1ListJoiModelAppliesResponse } from '../client';
|
|
2
|
-
export interface ListJoiModelAppliesParams {
|
|
3
|
-
pageSize?: number;
|
|
4
|
-
pageToken?: string;
|
|
5
|
-
appUserId?: string;
|
|
6
|
-
statuses?: Array<'JOI_MODEL_APPLY_STATUS_UNSPECIFIED' | 'JOI_MODEL_APPLY_STATUS_PENDING' | 'JOI_MODEL_APPLY_STATUS_GENERATING_AVATAR' | 'JOI_MODEL_APPLY_STATUS_AVATAR_READY' | 'JOI_MODEL_APPLY_STATUS_GENERATING_VIDEO' | 'JOI_MODEL_APPLY_STATUS_VIDEO_READY' | 'JOI_MODEL_APPLY_STATUS_TRAINING_MODEL' | 'JOI_MODEL_APPLY_STATUS_MODEL_READY' | 'JOI_MODEL_APPLY_STATUS_COMPLETED' | 'JOI_MODEL_APPLY_STATUS_FAILED'>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export declare function useJoiModelApplyApi(): {
|
|
10
|
-
listJoiModelApplies: (params?: ListJoiModelAppliesParams) => Promise<V1ListJoiModelAppliesResponse>;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useVideoMaterialApi as useMaterialApi } from './useVideoMaterialApi';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface OSSCredentials {
|
|
2
|
-
accessKeyId: string;
|
|
3
|
-
secretAccessKey: string;
|
|
4
|
-
sessionToken?: string;
|
|
5
|
-
expiration?: string;
|
|
6
|
-
region: string;
|
|
7
|
-
bucketName: string;
|
|
8
|
-
provider: string;
|
|
9
|
-
baseUrl: string;
|
|
10
|
-
accountId?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export declare function useOssApi(): {
|
|
14
|
-
getOSSCredentials: (resourcePath: string, durationSeconds?: number) => Promise<OSSCredentials>;
|
|
15
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CreatePipeTemplateRequest, CreatePipeTemplateResponse, DeletePipeTemplateRequest, DeletePipeTemplateResponse, GetPipeTemplateRequest, GetPipeTemplateResponse, ListPipeTemplatesRequest, ListPipeTemplatesResponse, UpdatePipeTemplateRequest, UpdatePipeTemplateResponse } from '../../generated/platform/v1/pipetemplate';
|
|
2
|
-
export declare function usePipelineTemplateApi(): {
|
|
3
|
-
listPipeTemplates: (params?: ListPipeTemplatesRequest) => Promise<ListPipeTemplatesResponse>;
|
|
4
|
-
createPipelineTemplate: (data: CreatePipeTemplateRequest) => Promise<CreatePipeTemplateResponse>;
|
|
5
|
-
getPipelineTemplate: (params: GetPipeTemplateRequest) => Promise<GetPipeTemplateResponse>;
|
|
6
|
-
updatePipelineTemplate: (data: UpdatePipeTemplateRequest) => Promise<UpdatePipeTemplateResponse>;
|
|
7
|
-
deletePipelineTemplate: (params: DeletePipeTemplateRequest) => Promise<DeletePipeTemplateResponse>;
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { V1Provider } from '../client';
|
|
2
|
-
|
|
3
|
-
export declare function useProviderApi(): {
|
|
4
|
-
listProviders: (params?: {
|
|
5
|
-
pageSize?: number;
|
|
6
|
-
pageToken?: string;
|
|
7
|
-
type?: string;
|
|
8
|
-
}) => Promise<{
|
|
9
|
-
providers: V1Provider[];
|
|
10
|
-
pagination?: {
|
|
11
|
-
nextPageToken?: string;
|
|
12
|
-
totalCount?: number;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
getProvider: (id: string) => Promise<V1Provider | null>;
|
|
16
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function useRedeemApi(): {
|
|
2
|
-
createRedeem: (characterId: string) => Promise<import('../client').V1Redeem>;
|
|
3
|
-
getRedeem: (characterId: string) => Promise<import('../client').V1Redeem | null>;
|
|
4
|
-
updateRedeem: (characterId: string, enabled: boolean) => Promise<import('../client').V1Redeem>;
|
|
5
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { V1ListSmsSendLogsResponse } from '../client';
|
|
2
|
-
export interface ListSmsSendLogsParams {
|
|
3
|
-
pageSize?: number;
|
|
4
|
-
pageToken?: string;
|
|
5
|
-
countryCode?: string;
|
|
6
|
-
phoneNumber?: string;
|
|
7
|
-
scenes?: Array<'SMS_SCENE_UNSPECIFIED' | 'SMS_SCENE_LOGIN' | 'SMS_SCENE_OTHER'>;
|
|
8
|
-
statuses?: Array<'SMS_STATUS_UNSPECIFIED' | 'SMS_STATUS_PENDING' | 'SMS_STATUS_SUCCESS' | 'SMS_STATUS_FAILED'>;
|
|
9
|
-
isUsed?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export declare function useSmsSendLogApi(): {
|
|
13
|
-
listSmsSendLogs: (params?: ListSmsSendLogsParams) => Promise<V1ListSmsSendLogsResponse>;
|
|
14
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { V1TaskResolution, V1TaskType } from '../client/types.gen';
|
|
2
|
-
|
|
3
|
-
export declare function useTaskApi(): {
|
|
4
|
-
listTasks: (options?: {
|
|
5
|
-
pageSize?: number;
|
|
6
|
-
pageToken?: string;
|
|
7
|
-
pipeTemplateId?: string;
|
|
8
|
-
materialId?: string;
|
|
9
|
-
taskStatuses?: number[];
|
|
10
|
-
taskTypes?: number[];
|
|
11
|
-
creatorSearch?: string;
|
|
12
|
-
timeRangeStart?: string;
|
|
13
|
-
timeRangeEnd?: string;
|
|
14
|
-
}) => Promise<{
|
|
15
|
-
tasks: Array<import('../client').V1Task>;
|
|
16
|
-
pagination: import('../client').V1PaginationResponse;
|
|
17
|
-
}>;
|
|
18
|
-
getTask: (id: string) => Promise<import('../client').V1Task>;
|
|
19
|
-
createTask: (taskData: {
|
|
20
|
-
name?: string;
|
|
21
|
-
taskType?: V1TaskType;
|
|
22
|
-
pipeTemplateId?: string;
|
|
23
|
-
materialId: string;
|
|
24
|
-
data?: Record<string, unknown>;
|
|
25
|
-
resolution?: V1TaskResolution;
|
|
26
|
-
}) => Promise<import('../client').V1Task>;
|
|
27
|
-
updateTask: (id: string, taskData: {
|
|
28
|
-
name?: string;
|
|
29
|
-
pipeTemplateId?: string;
|
|
30
|
-
materialId?: string;
|
|
31
|
-
data?: Record<string, unknown>;
|
|
32
|
-
}) => Promise<import('../client').V1Task>;
|
|
33
|
-
deleteTask: (id: string) => Promise<{
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
}>;
|
|
36
|
-
terminateTaskInstances: (id: string) => Promise<{
|
|
37
|
-
terminatedInstances: Array<string>;
|
|
38
|
-
failedInstances: Array<string>;
|
|
39
|
-
message: string;
|
|
40
|
-
}>;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export declare function useStatusApi(): {
|
|
44
|
-
listStatuses: (options?: {
|
|
45
|
-
pageSize?: number;
|
|
46
|
-
pageToken?: string;
|
|
47
|
-
taskId?: string;
|
|
48
|
-
status?: string;
|
|
49
|
-
}) => Promise<{
|
|
50
|
-
statuses: Array<import('../client').Consolev1Status>;
|
|
51
|
-
pagination: import('../client').V1PaginationResponse;
|
|
52
|
-
}>;
|
|
53
|
-
getStatus: (id: string) => Promise<import('../client').Consolev1Status>;
|
|
54
|
-
createStatus: (statusData: {
|
|
55
|
-
taskId: string;
|
|
56
|
-
status: string;
|
|
57
|
-
metadata?: Record<string, unknown>;
|
|
58
|
-
}) => Promise<import('../client').Consolev1Status>;
|
|
59
|
-
updateStatus: (id: string, statusData: {
|
|
60
|
-
status?: string;
|
|
61
|
-
metadata?: Record<string, unknown>;
|
|
62
|
-
}) => Promise<import('../client').Consolev1Status>;
|
|
63
|
-
deleteStatus: (id: string) => Promise<{
|
|
64
|
-
[x: string]: unknown;
|
|
65
|
-
}>;
|
|
66
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { UserServiceUpdateUserBody } from '../client/types.gen';
|
|
2
|
-
|
|
3
|
-
export declare function useUserApi(): {
|
|
4
|
-
listUsers: (options?: {
|
|
5
|
-
pageSize?: number;
|
|
6
|
-
pageToken?: string;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
users: Array<import('../client').V1User>;
|
|
9
|
-
pagination: import('../client').V1PaginationResponse;
|
|
10
|
-
}>;
|
|
11
|
-
getUser: (id: string) => Promise<{
|
|
12
|
-
user: import('../client').V1User;
|
|
13
|
-
}>;
|
|
14
|
-
updateUser: (id: string, userData: UserServiceUpdateUserBody) => Promise<{
|
|
15
|
-
user: import('../client').V1User;
|
|
16
|
-
}>;
|
|
17
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AudioData, ListVoicesParams, ListVoicesResponse, TrainVoiceRequest, Voice } from '../types/voice';
|
|
2
|
-
|
|
3
|
-
export declare function useVoiceApi(): {
|
|
4
|
-
isLoading: import('vue').Ref<boolean, boolean>;
|
|
5
|
-
fileToAudioData: (file: File, text: string) => Promise<AudioData>;
|
|
6
|
-
trainVoice: (request: TrainVoiceRequest) => Promise<Voice>;
|
|
7
|
-
getVoiceTrainingStatus: (id: string) => Promise<Voice>;
|
|
8
|
-
getVoice: (id: string) => Promise<Voice>;
|
|
9
|
-
listVoices: (params?: ListVoicesParams) => Promise<ListVoicesResponse>;
|
|
10
|
-
getVoiceOptions: () => Promise<Array<{
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
voice: Voice;
|
|
14
|
-
}>>;
|
|
15
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { Auth } from '../core/auth.gen';
|
|
2
|
-
export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
|
|
3
|
-
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen';
|
|
4
|
-
export { buildClientParams } from '../core/params.gen';
|
|
5
|
-
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
|
|
6
|
-
export { createClient } from './client.gen';
|
|
7
|
-
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from './types.gen';
|
|
8
|
-
export { createConfig, mergeHeaders } from './utils.gen';
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Auth } from '../core/auth.gen';
|
|
2
|
-
import { ServerSentEventsOptions, ServerSentEventsResult } from '../core/serverSentEvents.gen';
|
|
3
|
-
import { Client as CoreClient, Config as CoreConfig } from '../core/types.gen';
|
|
4
|
-
import { Middleware } from './utils.gen';
|
|
5
|
-
export type ResponseStyle = 'data' | 'fields';
|
|
6
|
-
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, CoreConfig {
|
|
7
|
-
baseUrl?: T['baseUrl'];
|
|
8
|
-
fetch?: typeof fetch;
|
|
9
|
-
next?: never;
|
|
10
|
-
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
11
|
-
responseStyle?: ResponseStyle;
|
|
12
|
-
throwOnError?: T['throwOnError'];
|
|
13
|
-
}
|
|
14
|
-
export interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
15
|
-
responseStyle: TResponseStyle;
|
|
16
|
-
throwOnError: ThrowOnError;
|
|
17
|
-
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
18
|
-
|
|
19
|
-
body?: unknown;
|
|
20
|
-
path?: Record<string, unknown>;
|
|
21
|
-
query?: Record<string, unknown>;
|
|
22
|
-
security?: ReadonlyArray<Auth>;
|
|
23
|
-
url: Url;
|
|
24
|
-
}
|
|
25
|
-
export interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
26
|
-
serializedBody?: string;
|
|
27
|
-
}
|
|
28
|
-
export type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
29
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
30
|
-
request: Request;
|
|
31
|
-
response: Response;
|
|
32
|
-
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
33
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
34
|
-
error: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
data: undefined;
|
|
37
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
38
|
-
}) & {
|
|
39
|
-
request: Request;
|
|
40
|
-
response: Response;
|
|
41
|
-
}>;
|
|
42
|
-
export interface ClientOptions {
|
|
43
|
-
baseUrl?: string;
|
|
44
|
-
responseStyle?: ResponseStyle;
|
|
45
|
-
throwOnError?: boolean;
|
|
46
|
-
}
|
|
47
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
48
|
-
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
49
|
-
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
50
|
-
type BuildUrlFn = <TData extends {
|
|
51
|
-
body?: unknown;
|
|
52
|
-
path?: Record<string, unknown>;
|
|
53
|
-
query?: Record<string, unknown>;
|
|
54
|
-
url: string;
|
|
55
|
-
}>(options: TData & Options<TData>) => string;
|
|
56
|
-
export type Client = CoreClient<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
57
|
-
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export type CreateClientConfig<T extends ClientOptions = ClientOptions> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
61
|
-
export interface TDataShape {
|
|
62
|
-
body?: unknown;
|
|
63
|
-
headers?: unknown;
|
|
64
|
-
path?: unknown;
|
|
65
|
-
query?: unknown;
|
|
66
|
-
url: string;
|
|
67
|
-
}
|
|
68
|
-
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
69
|
-
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
70
|
-
export {};
|