@spatialwalk/avatarkit 1.0.0-beta.4 → 1.0.0-beta.40
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 +369 -2
- package/README.md +261 -283
- package/dist/StreamingAudioPlayer-hJgaKVC3.js +506 -0
- package/dist/animation/AnimationWebSocketClient.d.ts +9 -24
- package/dist/animation/utils/eventEmitter.d.ts +0 -4
- package/dist/animation/utils/flameConverter.d.ts +3 -11
- package/dist/audio/AnimationPlayer.d.ts +4 -32
- package/dist/audio/StreamingAudioPlayer.d.ts +12 -75
- package/dist/avatar_core_wasm-i0Ocpx6q.js +2693 -0
- package/dist/avatar_core_wasm.wasm +0 -0
- package/dist/config/app-config.d.ts +1 -6
- package/dist/config/constants.d.ts +10 -25
- package/dist/config/sdk-config-loader.d.ts +2 -9
- package/dist/core/Avatar.d.ts +0 -15
- package/dist/core/AvatarController.d.ts +35 -116
- package/dist/core/AvatarDownloader.d.ts +0 -95
- package/dist/core/AvatarManager.d.ts +10 -18
- package/dist/core/AvatarSDK.d.ts +21 -0
- package/dist/core/AvatarView.d.ts +28 -110
- package/dist/core/NetworkLayer.d.ts +1 -59
- package/dist/generated/common/v1/models.d.ts +29 -0
- package/dist/generated/driveningress/v1/driveningress.d.ts +1 -12
- package/dist/generated/driveningress/v2/driveningress.d.ts +81 -3
- package/dist/generated/google/protobuf/struct.d.ts +5 -39
- package/dist/generated/google/protobuf/timestamp.d.ts +1 -103
- package/dist/index-BxhQDfJ7.js +14340 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.js +17 -18
- package/dist/playground/apps/web/src/api/auth.d.ts +3 -0
- package/dist/playground/apps/web/src/api/character.d.ts +13 -0
- package/dist/playground/apps/web/src/api/index.d.ts +3 -0
- package/dist/playground/apps/web/src/api/redeem.d.ts +3 -0
- package/dist/playground/apps/web/src/composables/useDebugDataCollector.d.ts +377 -0
- package/dist/playground/apps/web/src/composables/useRealtimeAvatar.d.ts +452 -0
- package/dist/playground/apps/web/src/composables/useSubtitle.d.ts +19 -0
- package/dist/playground/apps/web/src/composables/useVAD.d.ts +49 -0
- package/dist/playground/apps/web/src/composables/useVideoCapture.d.ts +57 -0
- package/dist/playground/apps/web/src/config/app-config.d.ts +29 -0
- package/dist/playground/apps/web/src/config/realtime-config.d.ts +47 -0
- package/dist/playground/apps/web/src/config/region-config.d.ts +13 -0
- package/dist/playground/apps/web/src/constants.d.ts +14 -0
- package/dist/playground/apps/web/src/libs/vad/manager.d.ts +37 -0
- package/dist/playground/apps/web/src/libs/vad/process.worklet.d.ts +22 -0
- package/dist/playground/apps/web/src/libs/vad/simpleVad.d.ts +35 -0
- package/dist/playground/apps/web/src/libs/vad/vad.d.ts +56 -0
- package/dist/playground/apps/web/src/libs/vad/wav.d.ts +1 -0
- package/dist/playground/apps/web/src/locales/index.d.ts +2 -0
- package/dist/playground/apps/web/src/main.d.ts +0 -0
- package/dist/playground/apps/web/src/modules/i18n.d.ts +3 -0
- package/dist/playground/apps/web/src/modules/pwa.d.ts +1 -0
- package/dist/playground/apps/web/src/realtime/RealtimeWebSocketClient.d.ts +18 -0
- package/dist/playground/apps/web/src/realtime/index.d.ts +1 -0
- package/dist/playground/apps/web/src/realtime/utils/eventEmitter.d.ts +9 -0
- package/dist/playground/apps/web/src/stores/call.d.ts +173 -0
- package/dist/playground/apps/web/src/stores/character.d.ts +188 -0
- package/dist/playground/apps/web/src/stores/pwa.d.ts +7 -0
- package/dist/playground/apps/web/src/stores/region.d.ts +14 -0
- package/dist/playground/apps/web/src/stores/user.d.ts +22 -0
- package/dist/playground/apps/web/src/stores/vad.d.ts +73 -0
- package/dist/playground/apps/web/src/types/avatar.d.ts +17 -0
- package/dist/playground/apps/web/src/types/character-settings.d.ts +18 -0
- package/dist/playground/apps/web/src/types/character.d.ts +34 -0
- package/dist/playground/apps/web/src/utils/animation-interpolation.d.ts +7 -0
- package/dist/playground/apps/web/src/utils/api-client.d.ts +7 -0
- package/dist/playground/apps/web/src/utils/api-error.d.ts +13 -0
- package/dist/playground/apps/web/src/utils/dynamic-resource-loader.d.ts +43 -0
- package/dist/playground/apps/web/src/utils/error-utils.d.ts +7 -0
- package/dist/playground/apps/web/src/utils/image-optimizer.d.ts +17 -0
- package/dist/playground/apps/web/src/utils/logger.d.ts +1 -0
- package/dist/playground/apps/web/src/utils/memory-tracker.d.ts +23 -0
- package/dist/playground/apps/web/src/utils/nanoid.d.ts +1 -0
- package/dist/playground/apps/web/src/utils/posthog-tracker.d.ts +74 -0
- package/dist/playground/apps/web/src/utils/resource-cache.d.ts +25 -0
- package/dist/playground/apps/web/src/utils/sdk-preinit.d.ts +3 -0
- package/dist/playground/apps/web/src/utils/toast.d.ts +31 -0
- package/dist/playground/apps/web/vite.config.d.ts +2 -0
- package/dist/playground/bump.config.d.ts +2 -0
- package/dist/playground/eslint.config.d.ts +2 -0
- package/dist/playground/generated/buf/validate/validate.d.ts +397 -0
- package/dist/playground/generated/console/v1/collection_task.d.ts +183 -0
- package/dist/playground/generated/console/v1/console.d.ts +162 -0
- package/dist/playground/generated/console/v1/instance_management.d.ts +131 -0
- package/dist/playground/generated/console/v1/material.d.ts +163 -0
- package/dist/playground/generated/console/v1/pipetemplate.d.ts +106 -0
- package/dist/playground/generated/console/v1/task.d.ts +280 -0
- package/dist/playground/generated/driveningress/v1/driveningress.d.ts +69 -0
- package/dist/playground/generated/driveningress/v2/driveningress.d.ts +78 -0
- package/dist/playground/generated/google/api/annotations.d.ts +1 -0
- package/dist/playground/generated/google/api/http.d.ts +47 -0
- package/dist/playground/generated/google/protobuf/any.d.ts +27 -0
- package/dist/playground/generated/google/protobuf/descriptor.d.ts +513 -0
- package/dist/playground/generated/google/protobuf/duration.d.ts +27 -0
- package/dist/playground/generated/google/protobuf/struct.d.ts +74 -0
- package/dist/playground/generated/google/protobuf/timestamp.d.ts +27 -0
- package/dist/playground/generated/jsonapi/v1/base.d.ts +108 -0
- package/dist/playground/generated/platform/v1/asset_groups.d.ts +199 -0
- package/dist/playground/generated/platform/v1/assets.d.ts +141 -0
- package/dist/playground/generated/platform/v1/auth.d.ts +79 -0
- package/dist/playground/generated/platform/v1/character.d.ts +378 -0
- package/dist/playground/generated/platform/v1/character_template.d.ts +124 -0
- package/dist/playground/generated/platform/v1/collection_task.d.ts +60 -0
- package/dist/playground/generated/platform/v1/configkv.d.ts +101 -0
- package/dist/playground/generated/platform/v1/console.d.ts +29 -0
- package/dist/playground/generated/platform/v1/instance_management.d.ts +131 -0
- package/dist/playground/generated/platform/v1/material.d.ts +27 -0
- package/dist/playground/generated/platform/v1/oss.d.ts +53 -0
- package/dist/playground/generated/platform/v1/pipetemplate.d.ts +106 -0
- package/dist/playground/generated/platform/v1/provider.d.ts +141 -0
- package/dist/playground/generated/platform/v1/redeem.d.ts +83 -0
- package/dist/playground/generated/platform/v1/task.d.ts +39 -0
- package/dist/playground/generated/platform/v1/user.d.ts +142 -0
- package/dist/playground/generated/platform/v1/voice.d.ts +141 -0
- package/dist/playground/generated/realtime/v1/auth.d.ts +77 -0
- package/dist/playground/generated/realtime/v1/customized.d.ts +60 -0
- package/dist/playground/generated/realtime/v1/messages.d.ts +156 -0
- package/dist/playground/generated/realtime/v1/realtime.d.ts +67 -0
- package/dist/playground/generated/realtime/v1/redeem.d.ts +44 -0
- package/dist/playground/generated/realtime/v1/user.d.ts +150 -0
- package/dist/playground/generated/realtime/v2/realtime.d.ts +70 -0
- package/dist/playground/packages/sdk/src/index.d.ts +1 -0
- package/dist/playground/packages/sdk/tsdown.config.d.ts +2 -0
- package/dist/playground/unocss.config.d.ts +3 -0
- package/dist/renderer/RenderSystem.d.ts +1 -79
- package/dist/renderer/covariance.d.ts +0 -12
- package/dist/renderer/renderer.d.ts +6 -2
- package/dist/renderer/sortSplats.d.ts +0 -11
- package/dist/renderer/webgl/reorderData.d.ts +0 -13
- package/dist/renderer/webgl/webglRenderer.d.ts +19 -42
- package/dist/renderer/webgpu/webgpuRenderer.d.ts +18 -31
- package/dist/types/character-settings.d.ts +0 -5
- package/dist/types/character.d.ts +3 -21
- package/dist/types/index.d.ts +72 -36
- package/dist/utils/animation-interpolation.d.ts +3 -13
- package/dist/utils/client-id.d.ts +1 -0
- package/dist/utils/conversationId.d.ts +1 -0
- package/dist/utils/error-utils.d.ts +1 -25
- package/dist/utils/heartbeat-manager.d.ts +18 -0
- package/dist/utils/id-manager.d.ts +38 -0
- package/dist/utils/logger.d.ts +5 -11
- package/dist/utils/posthog-tracker.d.ts +11 -0
- package/dist/utils/usage-tracker.d.ts +5 -0
- package/dist/vanilla/vite.config.d.ts +2 -0
- package/dist/wasm/avatarCoreAdapter.d.ts +11 -97
- package/dist/wasm/avatarCoreMemory.d.ts +5 -54
- package/dist/withJoi/admin/eslint.config.d.ts +2 -0
- package/dist/withJoi/admin/generated/buf/validate/validate.d.ts +397 -0
- package/dist/withJoi/admin/generated/common/v1/models.d.ts +29 -0
- package/dist/withJoi/admin/generated/console/v1/admin_app.d.ts +77 -0
- package/dist/withJoi/admin/generated/console/v1/admin_auth.d.ts +69 -0
- package/dist/withJoi/admin/generated/console/v1/admin_config.d.ts +157 -0
- package/dist/withJoi/admin/generated/console/v1/admin_user.d.ts +84 -0
- package/dist/withJoi/admin/generated/console/v1/admin_user_character.d.ts +107 -0
- package/dist/withJoi/admin/generated/console/v1/app.d.ts +116 -0
- package/dist/withJoi/admin/generated/console/v1/auth.d.ts +199 -0
- package/dist/withJoi/admin/generated/console/v1/character.d.ts +74 -0
- package/dist/withJoi/admin/generated/console/v1/collection_task.d.ts +183 -0
- package/dist/withJoi/admin/generated/console/v1/console.d.ts +163 -0
- package/dist/withJoi/admin/generated/console/v1/instance_management.d.ts +156 -0
- package/dist/withJoi/admin/generated/console/v1/material.d.ts +180 -0
- package/dist/withJoi/admin/generated/console/v1/pipetemplate.d.ts +106 -0
- package/dist/withJoi/admin/generated/console/v1/task.d.ts +292 -0
- package/dist/withJoi/admin/generated/console/v2/async_processing.d.ts +85 -0
- package/dist/withJoi/admin/generated/google/api/annotations.d.ts +1 -0
- package/dist/withJoi/admin/generated/google/api/http.d.ts +47 -0
- package/dist/withJoi/admin/generated/google/protobuf/any.d.ts +27 -0
- package/dist/withJoi/admin/generated/google/protobuf/descriptor.d.ts +552 -0
- package/dist/withJoi/admin/generated/google/protobuf/duration.d.ts +27 -0
- package/dist/withJoi/admin/generated/google/protobuf/empty.d.ts +25 -0
- package/dist/withJoi/admin/generated/google/protobuf/struct.d.ts +74 -0
- package/dist/withJoi/admin/generated/google/protobuf/timestamp.d.ts +27 -0
- package/dist/withJoi/admin/generated/jsonapi/v1/base.d.ts +108 -0
- package/dist/withJoi/admin/generated/platform/v1/asset_groups.d.ts +204 -0
- package/dist/withJoi/admin/generated/platform/v1/assets.d.ts +141 -0
- package/dist/withJoi/admin/generated/platform/v1/auth.d.ts +79 -0
- package/dist/withJoi/admin/generated/platform/v1/character.d.ts +382 -0
- package/dist/withJoi/admin/generated/platform/v1/character_template.d.ts +124 -0
- package/dist/withJoi/admin/generated/platform/v1/christmas_characters.d.ts +118 -0
- package/dist/withJoi/admin/generated/platform/v1/collection_task.d.ts +60 -0
- package/dist/withJoi/admin/generated/platform/v1/config.d.ts +130 -0
- package/dist/withJoi/admin/generated/platform/v1/configkv.d.ts +105 -0
- package/dist/withJoi/admin/generated/platform/v1/console.d.ts +29 -0
- package/dist/withJoi/admin/generated/platform/v1/instance_management.d.ts +156 -0
- package/dist/withJoi/admin/generated/platform/v1/joi_model_apply.d.ts +100 -0
- package/dist/withJoi/admin/generated/platform/v1/material.d.ts +29 -0
- package/dist/withJoi/admin/generated/platform/v1/model_evaluation.d.ts +57 -0
- package/dist/withJoi/admin/generated/platform/v1/oss.d.ts +53 -0
- package/dist/withJoi/admin/generated/platform/v1/pipetemplate.d.ts +106 -0
- package/dist/withJoi/admin/generated/platform/v1/provider.d.ts +141 -0
- package/dist/withJoi/admin/generated/platform/v1/redeem.d.ts +83 -0
- package/dist/withJoi/admin/generated/platform/v1/sms_send_log.d.ts +95 -0
- package/dist/withJoi/admin/generated/platform/v1/task.d.ts +39 -0
- package/dist/withJoi/admin/generated/platform/v1/user.d.ts +142 -0
- package/dist/withJoi/admin/generated/platform/v1/voice.d.ts +141 -0
- package/dist/withJoi/admin/generated/realtime/v1/auth.d.ts +77 -0
- package/dist/withJoi/admin/generated/realtime/v1/customized.d.ts +60 -0
- package/dist/withJoi/admin/generated/realtime/v1/messages.d.ts +156 -0
- package/dist/withJoi/admin/generated/realtime/v1/realtime.d.ts +67 -0
- package/dist/withJoi/admin/generated/realtime/v1/redeem.d.ts +44 -0
- package/dist/withJoi/admin/generated/realtime/v1/user.d.ts +150 -0
- package/dist/withJoi/admin/generated/realtime/v2/auth.d.ts +68 -0
- package/dist/withJoi/admin/generated/realtime/v2/callback.d.ts +56 -0
- package/dist/withJoi/admin/generated/realtime/v2/joi_avatar.d.ts +204 -0
- package/dist/withJoi/admin/generated/realtime/v2/model_apply.d.ts +138 -0
- package/dist/withJoi/admin/generated/realtime/v2/realtime.d.ts +70 -0
- package/dist/withJoi/admin/generated/realtime/v2/user.d.ts +96 -0
- package/dist/withJoi/admin/openapi-ts.config.d.ts +8 -0
- package/dist/withJoi/admin/src/apis/useAssetApi.d.ts +17 -0
- package/dist/withJoi/admin/src/apis/useAssetGroupApi.d.ts +26 -0
- package/dist/withJoi/admin/src/apis/useCharacterApi.d.ts +21 -0
- package/dist/withJoi/admin/src/apis/useCharacterTemplateApi.d.ts +20 -0
- package/dist/withJoi/admin/src/apis/useChristmasCharactersApi.d.ts +40 -0
- package/dist/withJoi/admin/src/apis/useCollectionTaskApi.d.ts +64 -0
- package/dist/withJoi/admin/src/apis/useConfigApi.d.ts +16 -0
- package/dist/withJoi/admin/src/apis/useConsoleApi.d.ts +24 -0
- package/dist/withJoi/admin/src/apis/useInstanceManagementApi.d.ts +19 -0
- package/dist/withJoi/admin/src/apis/useJoiModelApplyApi.d.ts +11 -0
- package/dist/withJoi/admin/src/apis/useMaterialApi.d.ts +1 -0
- package/dist/withJoi/admin/src/apis/useOssApi.d.ts +15 -0
- package/dist/withJoi/admin/src/apis/usePipelineTemplateApi.d.ts +8 -0
- package/dist/withJoi/admin/src/apis/useProviderApi.d.ts +16 -0
- package/dist/withJoi/admin/src/apis/useRedeemApi.d.ts +5 -0
- package/dist/withJoi/admin/src/apis/useSmsSendLogApi.d.ts +14 -0
- package/dist/withJoi/admin/src/apis/useTaskApi.d.ts +66 -0
- package/dist/withJoi/admin/src/apis/useUserApi.d.ts +17 -0
- package/dist/withJoi/admin/src/apis/useVoiceApi.d.ts +15 -0
- package/dist/withJoi/admin/src/client/client/client.gen.d.ts +2 -0
- package/dist/withJoi/admin/src/client/client/index.d.ts +8 -0
- package/dist/withJoi/admin/src/client/client/types.gen.d.ts +70 -0
- package/dist/withJoi/admin/src/client/client/utils.gen.d.ts +31 -0
- package/dist/withJoi/admin/src/client/client.gen.d.ts +5 -0
- package/dist/withJoi/admin/src/client/core/auth.gen.d.ts +8 -0
- package/dist/withJoi/admin/src/client/core/bodySerializer.gen.d.ts +21 -0
- package/dist/withJoi/admin/src/client/core/params.gen.d.ts +27 -0
- package/dist/withJoi/admin/src/client/core/pathSerializer.gen.d.ts +30 -0
- package/dist/withJoi/admin/src/client/core/queryKeySerializer.gen.d.ts +9 -0
- package/dist/withJoi/admin/src/client/core/serverSentEvents.gen.d.ts +23 -0
- package/dist/withJoi/admin/src/client/core/types.gen.d.ts +32 -0
- package/dist/withJoi/admin/src/client/core/utils.gen.d.ts +19 -0
- package/dist/withJoi/admin/src/client/index.d.ts +2 -0
- package/dist/withJoi/admin/src/client/sdk.gen.d.ts +245 -0
- package/dist/withJoi/admin/src/client/types.gen.d.ts +4009 -0
- package/dist/withJoi/admin/src/client/valibot.gen.d.ts +7814 -0
- package/dist/withJoi/admin/src/components/ui/alert/index.d.ts +8 -0
- package/dist/withJoi/admin/src/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/withJoi/admin/src/components/ui/avatar/index.d.ts +9 -0
- package/dist/withJoi/admin/src/components/ui/badge/index.d.ts +6 -0
- package/dist/withJoi/admin/src/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/withJoi/admin/src/components/ui/button/index.d.ts +7 -0
- package/dist/withJoi/admin/src/components/ui/card/index.d.ts +6 -0
- package/dist/withJoi/admin/src/components/ui/checkbox/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/collapsible/index.d.ts +3 -0
- package/dist/withJoi/admin/src/components/ui/combobox/index.d.ts +9 -0
- package/dist/withJoi/admin/src/components/ui/dialog/index.d.ts +9 -0
- package/dist/withJoi/admin/src/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/withJoi/admin/src/components/ui/filter-popover/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/form/index.d.ts +7 -0
- package/dist/withJoi/admin/src/components/ui/form/injectionKeys.d.ts +2 -0
- package/dist/withJoi/admin/src/components/ui/form/useFormField.d.ts +11 -0
- package/dist/withJoi/admin/src/components/ui/input/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/label/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/popover/index.d.ts +4 -0
- package/dist/withJoi/admin/src/components/ui/progress/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/select/index.d.ts +11 -0
- package/dist/withJoi/admin/src/components/ui/separator/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/sheet/index.d.ts +13 -0
- package/dist/withJoi/admin/src/components/ui/sidebar/index.d.ts +37 -0
- package/dist/withJoi/admin/src/components/ui/sidebar/utils.d.ts +54 -0
- package/dist/withJoi/admin/src/components/ui/skeleton/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/slider/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/switch/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/tabs/index.d.ts +4 -0
- package/dist/withJoi/admin/src/components/ui/tags-input/index.d.ts +5 -0
- package/dist/withJoi/admin/src/components/ui/textarea/index.d.ts +1 -0
- package/dist/withJoi/admin/src/components/ui/tooltip/index.d.ts +4 -0
- package/dist/withJoi/admin/src/composables/useApi.d.ts +21 -0
- package/dist/withJoi/admin/src/composables/useAppStorage.d.ts +9 -0
- package/dist/withJoi/admin/src/composables/useAssetUpload.d.ts +31 -0
- package/dist/withJoi/admin/src/composables/useCharacterForm.d.ts +139 -0
- package/dist/withJoi/admin/src/composables/useCharacterSettings.d.ts +27 -0
- package/dist/withJoi/admin/src/composables/useCharacterTemplateForm.d.ts +47 -0
- package/dist/withJoi/admin/src/composables/useCollectionTaskFilters.d.ts +12 -0
- package/dist/withJoi/admin/src/composables/useFileUpload.d.ts +26 -0
- package/dist/withJoi/admin/src/composables/useMaterialFilters.d.ts +14 -0
- package/dist/withJoi/admin/src/composables/useModelEvaluation.d.ts +11 -0
- package/dist/withJoi/admin/src/composables/useModelEvaluationWebSocket.d.ts +111 -0
- package/dist/withJoi/admin/src/composables/useModelSettings.d.ts +12 -0
- package/dist/withJoi/admin/src/composables/usePageScrollLock.d.ts +6 -0
- package/dist/withJoi/admin/src/composables/useTaskFilters.d.ts +11 -0
- package/dist/withJoi/admin/src/constants/character.d.ts +4 -0
- package/dist/withJoi/admin/src/constants/collection-task.d.ts +5 -0
- package/dist/withJoi/admin/src/constants/config-previews.d.ts +8 -0
- package/dist/withJoi/admin/src/constants/container.d.ts +1 -0
- package/dist/withJoi/admin/src/constants/links.d.ts +5 -0
- package/dist/withJoi/admin/src/constants/nav.d.ts +17 -0
- package/dist/withJoi/admin/src/constants/providers.d.ts +17 -0
- package/dist/withJoi/admin/src/constants/regions.d.ts +10 -0
- package/dist/withJoi/admin/src/constants/test-ground-voices.d.ts +19 -0
- package/dist/withJoi/admin/src/constants/ui.d.ts +4 -0
- package/dist/withJoi/admin/src/constants/voice.d.ts +12 -0
- package/dist/withJoi/admin/src/constants/volc.d.ts +135 -0
- package/dist/withJoi/admin/src/lib/cos/constants.d.ts +6 -0
- package/dist/withJoi/admin/src/lib/cos/useCosDownload.d.ts +39 -0
- package/dist/withJoi/admin/src/lib/cos/useCosUpload.d.ts +47 -0
- package/dist/withJoi/admin/src/lib/cos/useVideoInfoExtractor.d.ts +12 -0
- package/dist/withJoi/admin/src/lib/cos/utils.d.ts +4 -0
- package/dist/withJoi/admin/src/lib/utils.d.ts +49 -0
- package/dist/withJoi/admin/src/main.d.ts +0 -0
- package/dist/withJoi/admin/src/renderSystem/animation/utils/eventEmitter.d.ts +9 -0
- package/dist/withJoi/admin/src/renderSystem/animation/utils/flameConverter.d.ts +18 -0
- package/dist/withJoi/admin/src/renderSystem/audio/AnimationPlayer.d.ts +29 -0
- package/dist/withJoi/admin/src/renderSystem/audio/StreamingAudioPlayer.d.ts +57 -0
- package/dist/withJoi/admin/src/renderSystem/config/app-config.d.ts +39 -0
- package/dist/withJoi/admin/src/renderSystem/config/constants.d.ts +3 -0
- package/dist/withJoi/admin/src/renderSystem/config/sdk-config-loader.d.ts +5 -0
- package/dist/withJoi/admin/src/renderSystem/core/Avatar.d.ts +8 -0
- package/dist/withJoi/admin/src/renderSystem/core/AvatarController.d.ts +60 -0
- package/dist/withJoi/admin/src/renderSystem/core/AvatarDownloader.d.ts +38 -0
- package/dist/withJoi/admin/src/renderSystem/core/AvatarKit.d.ts +9 -0
- package/dist/withJoi/admin/src/renderSystem/core/AvatarView.d.ts +64 -0
- package/dist/withJoi/admin/src/renderSystem/generated/driveningress/v1/driveningress.d.ts +68 -0
- package/dist/withJoi/admin/src/renderSystem/generated/driveningress/v2/driveningress.d.ts +3 -0
- package/dist/withJoi/admin/src/renderSystem/generated/google/protobuf/struct.d.ts +74 -0
- package/dist/withJoi/admin/src/renderSystem/generated/google/protobuf/timestamp.d.ts +27 -0
- package/dist/withJoi/admin/src/renderSystem/renderer/RenderSystem.d.ts +1 -0
- package/dist/withJoi/admin/src/renderSystem/renderer/covariance.d.ts +1 -0
- package/dist/withJoi/admin/src/renderSystem/renderer/renderer.d.ts +7 -0
- package/dist/withJoi/admin/src/renderSystem/renderer/sortSplats.d.ts +1 -0
- package/dist/withJoi/admin/src/renderSystem/renderer/webgl/reorderData.d.ts +1 -0
- package/dist/withJoi/admin/src/renderSystem/renderer/webgl/webglRenderer.d.ts +27 -0
- package/dist/withJoi/admin/src/renderSystem/renderer/webgpu/webgpuRenderer.d.ts +27 -0
- package/dist/withJoi/admin/src/renderSystem/types/character-settings.d.ts +18 -0
- package/dist/withJoi/admin/src/renderSystem/types/character.d.ts +22 -0
- package/dist/withJoi/admin/src/renderSystem/types/index.d.ts +62 -0
- package/dist/withJoi/admin/src/renderSystem/utils/animation-interpolation.d.ts +7 -0
- package/dist/withJoi/admin/src/renderSystem/utils/conversationId.d.ts +1 -0
- package/dist/withJoi/admin/src/renderSystem/utils/error-utils.d.ts +3 -0
- package/dist/withJoi/admin/src/renderSystem/utils/id-manager.d.ts +12 -0
- package/dist/withJoi/admin/src/renderSystem/utils/logger.d.ts +14 -0
- package/dist/withJoi/admin/src/renderSystem/wasm/avatarCoreAdapter.d.ts +101 -0
- package/dist/withJoi/admin/src/renderSystem/wasm/avatarCoreMemory.d.ts +92 -0
- package/dist/withJoi/admin/src/stores/providers.d.ts +336 -0
- package/dist/withJoi/admin/src/stores/region.d.ts +19 -0
- package/dist/withJoi/admin/src/stores/user.d.ts +112 -0
- package/dist/withJoi/admin/src/types/character-settings.d.ts +18 -0
- package/dist/withJoi/admin/src/types/character.d.ts +117 -0
- package/dist/withJoi/admin/src/types/collection-task.d.ts +11 -0
- package/dist/withJoi/admin/src/types/config.d.ts +36 -0
- package/dist/withJoi/admin/src/types/doubao-voice.d.ts +42 -0
- package/dist/withJoi/admin/src/types/error.d.ts +5 -0
- package/dist/withJoi/admin/src/types/model-settings.d.ts +41 -0
- package/dist/withJoi/admin/src/types/task.d.ts +45 -0
- package/dist/withJoi/admin/src/types/test-ground.d.ts +36 -0
- package/dist/withJoi/admin/src/types/video-material.d.ts +130 -0
- package/dist/withJoi/admin/src/types/voice.d.ts +58 -0
- package/dist/withJoi/admin/src/utils/collection-task.d.ts +3 -0
- package/dist/withJoi/admin/src/utils/error.d.ts +1 -0
- package/dist/withJoi/admin/src/utils/hash.d.ts +20 -0
- package/dist/withJoi/admin/src/utils/model-settings.d.ts +9 -0
- package/dist/withJoi/admin/src/utils/monad.d.ts +13 -0
- package/dist/withJoi/admin/src/utils/task.d.ts +8 -0
- package/dist/withJoi/admin/unocss.config.d.ts +2 -0
- package/dist/withJoi/admin/vite.config.d.ts +2 -0
- package/dist/withJoi/admin/vue-macros.config.d.ts +2 -0
- package/dist/withJoi/bump.config.d.ts +2 -0
- package/dist/withJoi/eslint.config.d.ts +2 -0
- package/dist/withJoi/generated/buf/validate/validate.d.ts +397 -0
- package/dist/withJoi/generated/common/v1/models.d.ts +29 -0
- package/dist/withJoi/generated/console/v1/admin_app.d.ts +77 -0
- package/dist/withJoi/generated/console/v1/admin_auth.d.ts +69 -0
- package/dist/withJoi/generated/console/v1/admin_config.d.ts +157 -0
- package/dist/withJoi/generated/console/v1/admin_user.d.ts +84 -0
- package/dist/withJoi/generated/console/v1/admin_user_character.d.ts +107 -0
- package/dist/withJoi/generated/console/v1/app.d.ts +116 -0
- package/dist/withJoi/generated/console/v1/auth.d.ts +199 -0
- package/dist/withJoi/generated/console/v1/character.d.ts +74 -0
- package/dist/withJoi/generated/console/v1/collection_task.d.ts +183 -0
- package/dist/withJoi/generated/console/v1/console.d.ts +163 -0
- package/dist/withJoi/generated/console/v1/instance_management.d.ts +156 -0
- package/dist/withJoi/generated/console/v1/material.d.ts +180 -0
- package/dist/withJoi/generated/console/v1/pipetemplate.d.ts +106 -0
- package/dist/withJoi/generated/console/v1/task.d.ts +292 -0
- package/dist/withJoi/generated/console/v2/async_processing.d.ts +85 -0
- package/dist/withJoi/generated/driveningress/v1/driveningress.d.ts +69 -0
- package/dist/withJoi/generated/driveningress/v2/driveningress.d.ts +159 -0
- package/dist/withJoi/generated/google/api/annotations.d.ts +1 -0
- package/dist/withJoi/generated/google/api/http.d.ts +47 -0
- package/dist/withJoi/generated/google/protobuf/any.d.ts +27 -0
- package/dist/withJoi/generated/google/protobuf/descriptor.d.ts +552 -0
- package/dist/withJoi/generated/google/protobuf/duration.d.ts +27 -0
- package/dist/withJoi/generated/google/protobuf/empty.d.ts +25 -0
- package/dist/withJoi/generated/google/protobuf/struct.d.ts +74 -0
- package/dist/withJoi/generated/google/protobuf/timestamp.d.ts +27 -0
- package/dist/withJoi/generated/jsonapi/v1/base.d.ts +108 -0
- package/dist/withJoi/generated/platform/v1/asset_groups.d.ts +204 -0
- package/dist/withJoi/generated/platform/v1/assets.d.ts +141 -0
- package/dist/withJoi/generated/platform/v1/auth.d.ts +79 -0
- package/dist/withJoi/generated/platform/v1/character.d.ts +382 -0
- package/dist/withJoi/generated/platform/v1/character_template.d.ts +124 -0
- package/dist/withJoi/generated/platform/v1/christmas_characters.d.ts +118 -0
- package/dist/withJoi/generated/platform/v1/collection_task.d.ts +60 -0
- package/dist/withJoi/generated/platform/v1/configkv.d.ts +105 -0
- package/dist/withJoi/generated/platform/v1/console.d.ts +29 -0
- package/dist/withJoi/generated/platform/v1/instance_management.d.ts +156 -0
- package/dist/withJoi/generated/platform/v1/joi_model_apply.d.ts +100 -0
- package/dist/withJoi/generated/platform/v1/material.d.ts +29 -0
- package/dist/withJoi/generated/platform/v1/model_evaluation.d.ts +100 -0
- package/dist/withJoi/generated/platform/v1/oss.d.ts +53 -0
- package/dist/withJoi/generated/platform/v1/pipetemplate.d.ts +106 -0
- package/dist/withJoi/generated/platform/v1/provider.d.ts +141 -0
- package/dist/withJoi/generated/platform/v1/redeem.d.ts +83 -0
- package/dist/withJoi/generated/platform/v1/sms_send_log.d.ts +95 -0
- package/dist/withJoi/generated/platform/v1/task.d.ts +39 -0
- package/dist/withJoi/generated/platform/v1/user.d.ts +142 -0
- package/dist/withJoi/generated/platform/v1/voice.d.ts +141 -0
- package/dist/withJoi/generated/realtime/v1/auth.d.ts +77 -0
- package/dist/withJoi/generated/realtime/v1/customized.d.ts +60 -0
- package/dist/withJoi/generated/realtime/v1/messages.d.ts +156 -0
- package/dist/withJoi/generated/realtime/v1/realtime.d.ts +67 -0
- package/dist/withJoi/generated/realtime/v1/redeem.d.ts +44 -0
- package/dist/withJoi/generated/realtime/v1/user.d.ts +151 -0
- package/dist/withJoi/generated/realtime/v2/auth.d.ts +84 -0
- package/dist/withJoi/generated/realtime/v2/callback.d.ts +56 -0
- package/dist/withJoi/generated/realtime/v2/christmas.d.ts +146 -0
- package/dist/withJoi/generated/realtime/v2/joi_avatar.d.ts +198 -0
- package/dist/withJoi/generated/realtime/v2/model_apply.d.ts +194 -0
- package/dist/withJoi/generated/realtime/v2/realtime.d.ts +140 -0
- package/dist/withJoi/generated/realtime/v2/user.d.ts +96 -0
- package/dist/withJoi/generated/shared-proto/syncdb/v1/syncdb.d.ts +54 -0
- package/dist/withJoi/generated/syncdb/v1/syncdb.d.ts +54 -0
- package/dist/withJoi/legacy/unocss.shared.d.ts +3 -0
- package/dist/withJoi/openapi-ts.config.d.ts +8 -0
- package/dist/withJoi/packages/sdk/src/index.d.ts +1 -0
- package/dist/withJoi/packages/sdk/tsdown.config.d.ts +2 -0
- package/dist/withJoi/src/api/appearance.d.ts +5 -0
- package/dist/withJoi/src/api/auth.d.ts +7 -0
- package/dist/withJoi/src/api/character.d.ts +20 -0
- package/dist/withJoi/src/api/index.d.ts +8 -0
- package/dist/withJoi/src/api/joi-avatar.d.ts +26 -0
- package/dist/withJoi/src/api/model-apply.d.ts +21 -0
- package/dist/withJoi/src/api/oss.d.ts +13 -0
- package/dist/withJoi/src/api/provider.d.ts +11 -0
- package/dist/withJoi/src/api/redeem.d.ts +3 -0
- package/dist/withJoi/src/api/user.d.ts +9 -0
- package/dist/withJoi/src/audio/AnimationPlayer.d.ts +22 -0
- package/dist/withJoi/src/audio/StreamingAudioPlayer.d.ts +58 -0
- package/dist/withJoi/src/client/client/client.gen.d.ts +2 -0
- package/dist/withJoi/src/client/client/index.d.ts +8 -0
- package/dist/withJoi/src/client/client/types.gen.d.ts +70 -0
- package/dist/withJoi/src/client/client/utils.gen.d.ts +31 -0
- package/dist/withJoi/src/client/client.gen.d.ts +5 -0
- package/dist/withJoi/src/client/core/auth.gen.d.ts +8 -0
- package/dist/withJoi/src/client/core/bodySerializer.gen.d.ts +21 -0
- package/dist/withJoi/src/client/core/params.gen.d.ts +27 -0
- package/dist/withJoi/src/client/core/pathSerializer.gen.d.ts +30 -0
- package/dist/withJoi/src/client/core/queryKeySerializer.gen.d.ts +9 -0
- package/dist/withJoi/src/client/core/serverSentEvents.gen.d.ts +23 -0
- package/dist/withJoi/src/client/core/types.gen.d.ts +32 -0
- package/dist/withJoi/src/client/core/utils.gen.d.ts +19 -0
- package/dist/withJoi/src/client/index.d.ts +2 -0
- package/dist/withJoi/src/client/sdk.gen.d.ts +303 -0
- package/dist/withJoi/src/client/types.gen.d.ts +4988 -0
- package/dist/withJoi/src/client/valibot.gen.d.ts +10015 -0
- package/dist/withJoi/src/components/ui/avatar/index.d.ts +9 -0
- package/dist/withJoi/src/components/ui/badge/index.d.ts +6 -0
- package/dist/withJoi/src/components/ui/button/index.d.ts +7 -0
- package/dist/withJoi/src/components/ui/popover/index.d.ts +4 -0
- package/dist/withJoi/src/components/ui/select/index.d.ts +11 -0
- package/dist/withJoi/src/composables/useCameraConfig.d.ts +48 -0
- package/dist/withJoi/src/composables/useDebugDataCollector.d.ts +377 -0
- package/dist/withJoi/src/composables/usePreviewWebSocketManager.d.ts +25 -0
- package/dist/withJoi/src/composables/useRealtimeAvatar.d.ts +462 -0
- package/dist/withJoi/src/composables/useSubtitle.d.ts +19 -0
- package/dist/withJoi/src/composables/useVAD.d.ts +49 -0
- package/dist/withJoi/src/composables/useVideoCapture.d.ts +57 -0
- package/dist/withJoi/src/config/app-config.d.ts +29 -0
- package/dist/withJoi/src/config/realtime-config.d.ts +46 -0
- package/dist/withJoi/src/config/region-config.d.ts +15 -0
- package/dist/withJoi/src/constants.d.ts +22 -0
- package/dist/withJoi/src/lib/utils.d.ts +2 -0
- package/dist/withJoi/src/libs/vad/manager.d.ts +37 -0
- package/dist/withJoi/src/libs/vad/process.worklet.d.ts +22 -0
- package/dist/withJoi/src/libs/vad/simpleVad.d.ts +35 -0
- package/dist/withJoi/src/libs/vad/vad.d.ts +56 -0
- package/dist/withJoi/src/libs/vad/wav.d.ts +1 -0
- package/dist/withJoi/src/locales/index.d.ts +2 -0
- package/dist/withJoi/src/main.d.ts +0 -0
- package/dist/withJoi/src/modules/i18n.d.ts +3 -0
- package/dist/withJoi/src/modules/pwa.d.ts +1 -0
- package/dist/withJoi/src/realtime/PreviewWebSocketClient.d.ts +18 -0
- package/dist/withJoi/src/realtime/RealtimeSyncManager.d.ts +34 -0
- package/dist/withJoi/src/realtime/RealtimeWebSocketClient.d.ts +18 -0
- package/dist/withJoi/src/realtime/index.d.ts +3 -0
- package/dist/withJoi/src/realtime/types.d.ts +29 -0
- package/dist/withJoi/src/realtime/utils/audioDebug.d.ts +3 -0
- package/dist/withJoi/src/realtime/utils/audioUtils.d.ts +11 -0
- package/dist/withJoi/src/realtime/utils/eventEmitter.d.ts +9 -0
- package/dist/withJoi/src/renderer/RenderSystem.d.ts +34 -0
- package/dist/withJoi/src/renderer/covariance.d.ts +1 -0
- package/dist/withJoi/src/renderer/renderer.d.ts +7 -0
- package/dist/withJoi/src/renderer/sortSplats.d.ts +1 -0
- package/dist/withJoi/src/renderer/webgl/reorderData.d.ts +1 -0
- package/dist/withJoi/src/renderer/webgl/webglRenderer.d.ts +27 -0
- package/dist/withJoi/src/renderer/webgpu/webgpuRenderer.d.ts +26 -0
- package/dist/withJoi/src/stores/call.d.ts +176 -0
- package/dist/withJoi/src/stores/character.d.ts +188 -0
- package/dist/withJoi/src/stores/config.d.ts +59 -0
- package/dist/withJoi/src/stores/pwa.d.ts +7 -0
- package/dist/withJoi/src/stores/region.d.ts +14 -0
- package/dist/withJoi/src/stores/user.d.ts +52 -0
- package/dist/withJoi/src/stores/vad.d.ts +73 -0
- package/dist/withJoi/src/types/appearance.d.ts +30 -0
- package/dist/withJoi/src/types/avatar.d.ts +17 -0
- package/dist/withJoi/src/types/character-settings.d.ts +18 -0
- package/dist/withJoi/src/types/character.d.ts +34 -0
- package/dist/withJoi/src/types/doubao-voice.d.ts +42 -0
- package/dist/withJoi/src/utils/animation-interpolation.d.ts +7 -0
- package/dist/withJoi/src/utils/api-client.d.ts +7 -0
- package/dist/withJoi/src/utils/api-error.d.ts +13 -0
- package/dist/withJoi/src/utils/avatar-converter.d.ts +1 -0
- package/dist/withJoi/src/utils/error-utils.d.ts +3 -0
- package/dist/withJoi/src/utils/hash.d.ts +5 -0
- package/dist/withJoi/src/utils/helpers.d.ts +15 -0
- package/dist/withJoi/src/utils/image-optimizer.d.ts +17 -0
- package/dist/withJoi/src/utils/logger.d.ts +1 -0
- package/dist/withJoi/src/utils/memory-tracker.d.ts +23 -0
- package/dist/withJoi/src/utils/model-settings-utils.d.ts +29 -0
- package/dist/withJoi/src/utils/nanoid.d.ts +1 -0
- package/dist/withJoi/src/utils/posthog-tracker.d.ts +74 -0
- package/dist/withJoi/src/utils/postprocess-sdk-converter.d.ts +4 -0
- package/dist/withJoi/src/utils/postprocess-transform.d.ts +25 -0
- package/dist/withJoi/src/utils/r2-upload.d.ts +8 -0
- package/dist/withJoi/src/utils/resource-cache.d.ts +25 -0
- package/dist/withJoi/src/utils/sdk-preinit.d.ts +3 -0
- package/dist/withJoi/src/utils/toast.d.ts +30 -0
- package/dist/withJoi/src/wasm/avatarCoreAdapter.d.ts +101 -0
- package/dist/withJoi/src/wasm/avatarCoreMemory.d.ts +72 -0
- package/dist/withJoi/unocss.config.d.ts +2 -0
- package/dist/withJoi/vite.config.d.ts +2 -0
- package/package.json +15 -13
- package/dist/StreamingAudioPlayer-L87IFoao.js +0 -319
- package/dist/StreamingAudioPlayer-L87IFoao.js.map +0 -1
- package/dist/animation/AnimationWebSocketClient.d.ts.map +0 -1
- package/dist/animation/utils/eventEmitter.d.ts.map +0 -1
- package/dist/animation/utils/flameConverter.d.ts.map +0 -1
- package/dist/audio/AnimationPlayer.d.ts.map +0 -1
- package/dist/audio/StreamingAudioPlayer.d.ts.map +0 -1
- package/dist/avatar_core_wasm-D4eEi7Eh.js +0 -1666
- package/dist/avatar_core_wasm-D4eEi7Eh.js.map +0 -1
- package/dist/config/app-config.d.ts.map +0 -1
- package/dist/config/constants.d.ts.map +0 -1
- package/dist/config/sdk-config-loader.d.ts.map +0 -1
- package/dist/core/Avatar.d.ts.map +0 -1
- package/dist/core/AvatarController.d.ts.map +0 -1
- package/dist/core/AvatarDownloader.d.ts.map +0 -1
- package/dist/core/AvatarKit.d.ts +0 -66
- package/dist/core/AvatarKit.d.ts.map +0 -1
- package/dist/core/AvatarManager.d.ts.map +0 -1
- package/dist/core/AvatarView.d.ts.map +0 -1
- package/dist/core/NetworkLayer.d.ts.map +0 -1
- package/dist/generated/driveningress/v1/driveningress.d.ts.map +0 -1
- package/dist/generated/driveningress/v2/driveningress.d.ts.map +0 -1
- package/dist/generated/google/protobuf/struct.d.ts.map +0 -1
- package/dist/generated/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/index-BDxVrKwm.js +0 -5942
- package/dist/index-BDxVrKwm.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/renderer/RenderSystem.d.ts.map +0 -1
- package/dist/renderer/covariance.d.ts.map +0 -1
- package/dist/renderer/renderer.d.ts.map +0 -1
- package/dist/renderer/sortSplats.d.ts.map +0 -1
- package/dist/renderer/webgl/reorderData.d.ts.map +0 -1
- package/dist/renderer/webgl/webglRenderer.d.ts.map +0 -1
- package/dist/renderer/webgpu/webgpuRenderer.d.ts.map +0 -1
- package/dist/types/character-settings.d.ts.map +0 -1
- package/dist/types/character.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/animation-interpolation.d.ts.map +0 -1
- package/dist/utils/cls-tracker.d.ts +0 -17
- package/dist/utils/cls-tracker.d.ts.map +0 -1
- package/dist/utils/error-utils.d.ts.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/reqId.d.ts +0 -20
- package/dist/utils/reqId.d.ts.map +0 -1
- package/dist/wasm/avatarCoreAdapter.d.ts.map +0 -1
- package/dist/wasm/avatarCoreMemory.d.ts.map +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
|
|
4
|
+
export interface Timestamp {
|
|
5
|
+
seconds: string;
|
|
6
|
+
nanos: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const Timestamp: MessageFns<Timestamp>;
|
|
9
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
10
|
+
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 {} ? {
|
|
11
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
12
|
+
} : Partial<T>;
|
|
13
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
14
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
15
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
16
|
+
} & {
|
|
17
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
18
|
+
};
|
|
19
|
+
export interface MessageFns<T> {
|
|
20
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
21
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
22
|
+
fromJSON(object: any): T;
|
|
23
|
+
toJSON(message: T): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import { Any } from '../../google/protobuf/any';
|
|
3
|
+
import { Timestamp } from '../../google/protobuf/timestamp';
|
|
4
|
+
export declare const protobufPackage = "jsonapi.v1";
|
|
5
|
+
|
|
6
|
+
export interface Links {
|
|
7
|
+
href: string;
|
|
8
|
+
rel?: string | undefined;
|
|
9
|
+
describedby?: string | undefined;
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
type?: string | undefined;
|
|
12
|
+
hreflang?: string | undefined;
|
|
13
|
+
meta: {
|
|
14
|
+
[key: string]: Any;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface Links_MetaEntry {
|
|
18
|
+
key: string;
|
|
19
|
+
value?: Any | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
data: Any[];
|
|
23
|
+
errors: ErrorObject[];
|
|
24
|
+
}
|
|
25
|
+
export interface ErrorObjectSource {
|
|
26
|
+
pointer: string;
|
|
27
|
+
parameter: string;
|
|
28
|
+
header: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ErrorObject {
|
|
31
|
+
id: string;
|
|
32
|
+
links?: Links | undefined;
|
|
33
|
+
status: number;
|
|
34
|
+
code: string;
|
|
35
|
+
title: string;
|
|
36
|
+
detail: string;
|
|
37
|
+
source?: ErrorObjectSource | undefined;
|
|
38
|
+
meta: {
|
|
39
|
+
[key: string]: Any;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface ErrorObject_MetaEntry {
|
|
43
|
+
key: string;
|
|
44
|
+
value?: Any | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface ErrorCaller {
|
|
47
|
+
file: string;
|
|
48
|
+
line: number;
|
|
49
|
+
function: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface PaginationRequest {
|
|
53
|
+
pageSize: number;
|
|
54
|
+
pageToken: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface PaginationResponse {
|
|
58
|
+
nextPageToken: string;
|
|
59
|
+
totalCount: number;
|
|
60
|
+
}
|
|
61
|
+
export interface TimeRange {
|
|
62
|
+
start?: Timestamp | undefined;
|
|
63
|
+
end?: Timestamp | undefined;
|
|
64
|
+
}
|
|
65
|
+
export declare const Links: MessageFns<Links>;
|
|
66
|
+
export declare const Links_MetaEntry: MessageFns<Links_MetaEntry>;
|
|
67
|
+
export declare const Response: MessageFns<Response>;
|
|
68
|
+
export declare const ErrorObjectSource: MessageFns<ErrorObjectSource>;
|
|
69
|
+
export declare const ErrorObject: MessageFns<ErrorObject>;
|
|
70
|
+
export declare const ErrorObject_MetaEntry: MessageFns<ErrorObject_MetaEntry>;
|
|
71
|
+
export declare const ErrorCaller: MessageFns<ErrorCaller>;
|
|
72
|
+
export declare const PaginationRequest: MessageFns<PaginationRequest>;
|
|
73
|
+
export declare const PaginationResponse: MessageFns<PaginationResponse>;
|
|
74
|
+
export declare const TimeRange: MessageFns<TimeRange>;
|
|
75
|
+
export interface ErrorService {
|
|
76
|
+
Error(request: Response): Promise<Response>;
|
|
77
|
+
}
|
|
78
|
+
export declare const ErrorServiceServiceName = "jsonapi.v1.ErrorService";
|
|
79
|
+
export declare class ErrorServiceClientImpl implements ErrorService {
|
|
80
|
+
private readonly rpc;
|
|
81
|
+
private readonly service;
|
|
82
|
+
constructor(rpc: Rpc, opts?: {
|
|
83
|
+
service?: string;
|
|
84
|
+
});
|
|
85
|
+
Error(request: Response): Promise<Response>;
|
|
86
|
+
}
|
|
87
|
+
interface Rpc {
|
|
88
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
89
|
+
}
|
|
90
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
91
|
+
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 {} ? {
|
|
92
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
93
|
+
} : Partial<T>;
|
|
94
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
95
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
96
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
97
|
+
} & {
|
|
98
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
99
|
+
};
|
|
100
|
+
export interface MessageFns<T> {
|
|
101
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
102
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
103
|
+
fromJSON(object: any): T;
|
|
104
|
+
toJSON(message: T): unknown;
|
|
105
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
106
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import { CustomAnimation } from '../../common/v1/models';
|
|
3
|
+
import { Timestamp } from '../../google/protobuf/timestamp';
|
|
4
|
+
import { PaginationRequest, PaginationResponse } from '../../jsonapi/v1/base';
|
|
5
|
+
import { Asset, CreateAssetRequest, PutAssetRequest } from './assets';
|
|
6
|
+
import { SortOrder } from './character';
|
|
7
|
+
export declare const protobufPackage = "platform.v1";
|
|
8
|
+
export declare enum AssetBindingType {
|
|
9
|
+
ASSET_BINDING_TYPE_UNSPECIFIED = 0,
|
|
10
|
+
ASSET_BINDING_TYPE_CHARACTER = 1,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
|
+
}
|
|
13
|
+
export declare function assetBindingTypeFromJSON(object: any): AssetBindingType;
|
|
14
|
+
export declare function assetBindingTypeToJSON(object: AssetBindingType): string;
|
|
15
|
+
export declare enum AssetGroupSortField {
|
|
16
|
+
ASSET_GROUP_SORT_FIELD_UNSPECIFIED = 0,
|
|
17
|
+
ASSET_GROUP_SORT_FIELD_UPDATED_AT = 1,
|
|
18
|
+
UNRECOGNIZED = -1
|
|
19
|
+
}
|
|
20
|
+
export declare function assetGroupSortFieldFromJSON(object: any): AssetGroupSortField;
|
|
21
|
+
export declare function assetGroupSortFieldToJSON(object: AssetGroupSortField): string;
|
|
22
|
+
export interface AssetsBinding {
|
|
23
|
+
type: AssetBindingType;
|
|
24
|
+
bindingId: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface CharacterAssetGroup {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
coverUrl: string;
|
|
31
|
+
assets: Asset[];
|
|
32
|
+
version: string;
|
|
33
|
+
debugInfo?: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
} | undefined;
|
|
36
|
+
taskId?: string | undefined;
|
|
37
|
+
shapeNpy?: Uint8Array | undefined;
|
|
38
|
+
materialId?: string | undefined;
|
|
39
|
+
customAnimations: CustomAnimation[];
|
|
40
|
+
updatedAt?: Timestamp | undefined;
|
|
41
|
+
createdBy?: string | undefined;
|
|
42
|
+
}
|
|
43
|
+
export interface AssetGroup {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
coverUrl: string;
|
|
47
|
+
assets: Asset[];
|
|
48
|
+
bindings: AssetsBinding[];
|
|
49
|
+
metadata?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
} | undefined;
|
|
52
|
+
version: string;
|
|
53
|
+
debugInfo?: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
} | undefined;
|
|
56
|
+
taskId?: string | undefined;
|
|
57
|
+
shapeNpy?: Uint8Array | undefined;
|
|
58
|
+
materialId?: string | undefined;
|
|
59
|
+
customAnimations: CustomAnimation[];
|
|
60
|
+
updatedAt?: Timestamp | undefined;
|
|
61
|
+
createdBy?: string | undefined;
|
|
62
|
+
}
|
|
63
|
+
export interface CreateAssetGroupRequest {
|
|
64
|
+
name: string;
|
|
65
|
+
bindings: AssetsBinding[];
|
|
66
|
+
assets: CreateAssetRequest[];
|
|
67
|
+
metadata?: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
} | undefined;
|
|
70
|
+
version: string;
|
|
71
|
+
debugInfo?: {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
} | undefined;
|
|
74
|
+
taskId?: string | undefined;
|
|
75
|
+
shapeNpy?: Uint8Array | undefined;
|
|
76
|
+
customAnimations: CustomAnimation[];
|
|
77
|
+
}
|
|
78
|
+
export interface CreateAssetGroupResponse {
|
|
79
|
+
assetGroup?: AssetGroup | undefined;
|
|
80
|
+
}
|
|
81
|
+
export interface GetAssetGroupRequest {
|
|
82
|
+
id: string;
|
|
83
|
+
}
|
|
84
|
+
export interface GetAssetGroupResponse {
|
|
85
|
+
assetGroup?: AssetGroup | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface UpdateAssetGroupRequest {
|
|
88
|
+
id: string;
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
assets: PutAssetRequest[];
|
|
91
|
+
bindings: AssetsBinding[];
|
|
92
|
+
metadata?: {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
} | undefined;
|
|
95
|
+
debugInfo?: {
|
|
96
|
+
[key: string]: any;
|
|
97
|
+
} | undefined;
|
|
98
|
+
taskId?: string | undefined;
|
|
99
|
+
shapeNpy?: Uint8Array | undefined;
|
|
100
|
+
customAnimations: CustomAnimation[];
|
|
101
|
+
}
|
|
102
|
+
export interface UpdateAssetGroupResponse {
|
|
103
|
+
assetGroup?: AssetGroup | undefined;
|
|
104
|
+
}
|
|
105
|
+
export interface DeleteAssetGroupRequest {
|
|
106
|
+
id: string;
|
|
107
|
+
}
|
|
108
|
+
export interface DeleteAssetGroupResponse {
|
|
109
|
+
}
|
|
110
|
+
export interface ListAssetGroupsRequest {
|
|
111
|
+
pagination?: PaginationRequest | undefined;
|
|
112
|
+
name?: string | undefined;
|
|
113
|
+
id?: string | undefined;
|
|
114
|
+
createdBy?: string | undefined;
|
|
115
|
+
version?: string | undefined;
|
|
116
|
+
taskId?: string | undefined;
|
|
117
|
+
materialId?: string | undefined;
|
|
118
|
+
sortBy?: AssetGroupSortField | undefined;
|
|
119
|
+
sortOrder?: SortOrder | undefined;
|
|
120
|
+
}
|
|
121
|
+
export interface ListAssetGroupsResponse {
|
|
122
|
+
assetGroups: AssetGroup[];
|
|
123
|
+
pagination?: PaginationResponse | undefined;
|
|
124
|
+
}
|
|
125
|
+
export interface SyncAssetGroupRequest {
|
|
126
|
+
id: string;
|
|
127
|
+
targetRegion: string;
|
|
128
|
+
}
|
|
129
|
+
export interface SyncAssetGroupResponse {
|
|
130
|
+
assetGroup?: AssetGroup | undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface CreateAssetGroupFromZipRequest {
|
|
133
|
+
zipUrl: string;
|
|
134
|
+
name: string;
|
|
135
|
+
userId: string;
|
|
136
|
+
taskId?: string | undefined;
|
|
137
|
+
materialId?: string | undefined;
|
|
138
|
+
}
|
|
139
|
+
export interface CreateAssetGroupFromZipResponse {
|
|
140
|
+
assetGroup?: AssetGroup | undefined;
|
|
141
|
+
}
|
|
142
|
+
export declare const AssetsBinding: MessageFns<AssetsBinding>;
|
|
143
|
+
export declare const CharacterAssetGroup: MessageFns<CharacterAssetGroup>;
|
|
144
|
+
export declare const AssetGroup: MessageFns<AssetGroup>;
|
|
145
|
+
export declare const CreateAssetGroupRequest: MessageFns<CreateAssetGroupRequest>;
|
|
146
|
+
export declare const CreateAssetGroupResponse: MessageFns<CreateAssetGroupResponse>;
|
|
147
|
+
export declare const GetAssetGroupRequest: MessageFns<GetAssetGroupRequest>;
|
|
148
|
+
export declare const GetAssetGroupResponse: MessageFns<GetAssetGroupResponse>;
|
|
149
|
+
export declare const UpdateAssetGroupRequest: MessageFns<UpdateAssetGroupRequest>;
|
|
150
|
+
export declare const UpdateAssetGroupResponse: MessageFns<UpdateAssetGroupResponse>;
|
|
151
|
+
export declare const DeleteAssetGroupRequest: MessageFns<DeleteAssetGroupRequest>;
|
|
152
|
+
export declare const DeleteAssetGroupResponse: MessageFns<DeleteAssetGroupResponse>;
|
|
153
|
+
export declare const ListAssetGroupsRequest: MessageFns<ListAssetGroupsRequest>;
|
|
154
|
+
export declare const ListAssetGroupsResponse: MessageFns<ListAssetGroupsResponse>;
|
|
155
|
+
export declare const SyncAssetGroupRequest: MessageFns<SyncAssetGroupRequest>;
|
|
156
|
+
export declare const SyncAssetGroupResponse: MessageFns<SyncAssetGroupResponse>;
|
|
157
|
+
export declare const CreateAssetGroupFromZipRequest: MessageFns<CreateAssetGroupFromZipRequest>;
|
|
158
|
+
export declare const CreateAssetGroupFromZipResponse: MessageFns<CreateAssetGroupFromZipResponse>;
|
|
159
|
+
export interface AssetGroupService {
|
|
160
|
+
CreateAssetGroup(request: CreateAssetGroupRequest): Promise<CreateAssetGroupResponse>;
|
|
161
|
+
GetAssetGroup(request: GetAssetGroupRequest): Promise<GetAssetGroupResponse>;
|
|
162
|
+
UpdateAssetGroup(request: UpdateAssetGroupRequest): Promise<UpdateAssetGroupResponse>;
|
|
163
|
+
DeleteAssetGroup(request: DeleteAssetGroupRequest): Promise<DeleteAssetGroupResponse>;
|
|
164
|
+
ListAssetGroups(request: ListAssetGroupsRequest): Promise<ListAssetGroupsResponse>;
|
|
165
|
+
SyncAssetGroup(request: SyncAssetGroupRequest): Promise<SyncAssetGroupResponse>;
|
|
166
|
+
CreateAssetGroupFromZip(request: CreateAssetGroupFromZipRequest): Promise<CreateAssetGroupFromZipResponse>;
|
|
167
|
+
}
|
|
168
|
+
export declare const AssetGroupServiceServiceName = "platform.v1.AssetGroupService";
|
|
169
|
+
export declare class AssetGroupServiceClientImpl implements AssetGroupService {
|
|
170
|
+
private readonly rpc;
|
|
171
|
+
private readonly service;
|
|
172
|
+
constructor(rpc: Rpc, opts?: {
|
|
173
|
+
service?: string;
|
|
174
|
+
});
|
|
175
|
+
CreateAssetGroup(request: CreateAssetGroupRequest): Promise<CreateAssetGroupResponse>;
|
|
176
|
+
GetAssetGroup(request: GetAssetGroupRequest): Promise<GetAssetGroupResponse>;
|
|
177
|
+
UpdateAssetGroup(request: UpdateAssetGroupRequest): Promise<UpdateAssetGroupResponse>;
|
|
178
|
+
DeleteAssetGroup(request: DeleteAssetGroupRequest): Promise<DeleteAssetGroupResponse>;
|
|
179
|
+
ListAssetGroups(request: ListAssetGroupsRequest): Promise<ListAssetGroupsResponse>;
|
|
180
|
+
SyncAssetGroup(request: SyncAssetGroupRequest): Promise<SyncAssetGroupResponse>;
|
|
181
|
+
CreateAssetGroupFromZip(request: CreateAssetGroupFromZipRequest): Promise<CreateAssetGroupFromZipResponse>;
|
|
182
|
+
}
|
|
183
|
+
interface Rpc {
|
|
184
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
185
|
+
}
|
|
186
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
187
|
+
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 {} ? {
|
|
188
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
189
|
+
} : Partial<T>;
|
|
190
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
191
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
192
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
193
|
+
} & {
|
|
194
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
195
|
+
};
|
|
196
|
+
export interface MessageFns<T> {
|
|
197
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
198
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
199
|
+
fromJSON(object: any): T;
|
|
200
|
+
toJSON(message: T): unknown;
|
|
201
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
202
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
203
|
+
}
|
|
204
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import { Timestamp } from '../../google/protobuf/timestamp';
|
|
3
|
+
import { PaginationRequest, PaginationResponse } from '../../jsonapi/v1/base';
|
|
4
|
+
export declare const protobufPackage = "platform.v1";
|
|
5
|
+
export declare enum AssetType {
|
|
6
|
+
ASSET_TYPE_UNSPECIFIED = 0,
|
|
7
|
+
ASSET_TYPE_COMPRESS_ANIMATION = 1,
|
|
8
|
+
ASSET_TYPE_COMPRESS_MODEL = 2,
|
|
9
|
+
ASSET_TYPE_COVER = 3,
|
|
10
|
+
ASSET_TYPE_CHARACTER_AUDIO = 4,
|
|
11
|
+
|
|
12
|
+
ASSET_TYPE_SHAPE = 5,
|
|
13
|
+
ASSET_TYPE_ANIMATION_IDLE = 6,
|
|
14
|
+
ASSET_TYPE_ANIMATION_MONO = 7,
|
|
15
|
+
ASSET_TYPE_AUDIO_MONO = 8,
|
|
16
|
+
ASSET_TYPE_BACKGROUND = 9,
|
|
17
|
+
ASSET_TYPE_CAMERA = 10,
|
|
18
|
+
ASSET_TYPE_POINT_CLOUD_STANDARD = 11,
|
|
19
|
+
ASSET_TYPE_POINT_CLOUD_HIGH = 12,
|
|
20
|
+
ASSET_TYPE_POINT_CLOUD_ULTRA = 13,
|
|
21
|
+
ASSET_TYPE_SHAPE_NPY = 14,
|
|
22
|
+
ASSET_TYPE_MODEL_SETTINGS = 15,
|
|
23
|
+
ASSET_TYPE_ANIMATION_DATA = 16,
|
|
24
|
+
UNRECOGNIZED = -1
|
|
25
|
+
}
|
|
26
|
+
export declare function assetTypeFromJSON(object: any): AssetType;
|
|
27
|
+
export declare function assetTypeToJSON(object: AssetType): string;
|
|
28
|
+
export interface Asset {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
type: AssetType;
|
|
32
|
+
url: string;
|
|
33
|
+
filename: string;
|
|
34
|
+
updatedAt?: Timestamp | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface CreateAssetRequest {
|
|
37
|
+
name: string;
|
|
38
|
+
type: AssetType;
|
|
39
|
+
metadata?: {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
} | undefined;
|
|
42
|
+
data: Uint8Array;
|
|
43
|
+
}
|
|
44
|
+
export interface CreateAssetResponse {
|
|
45
|
+
asset?: Asset | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface GetAssetRequest {
|
|
48
|
+
id: string;
|
|
49
|
+
}
|
|
50
|
+
export interface GetAssetResponse {
|
|
51
|
+
asset?: Asset | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface PutAssetRequest {
|
|
54
|
+
id?: string | undefined;
|
|
55
|
+
name?: string | undefined;
|
|
56
|
+
type?: AssetType | undefined;
|
|
57
|
+
metadata?: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
} | undefined;
|
|
60
|
+
createdBy?: string | undefined;
|
|
61
|
+
data?: Uint8Array | undefined;
|
|
62
|
+
}
|
|
63
|
+
export interface UpdateAssetRequest {
|
|
64
|
+
id: string;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
type?: AssetType | undefined;
|
|
67
|
+
metadata?: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
} | undefined;
|
|
70
|
+
createdBy?: string | undefined;
|
|
71
|
+
data?: Uint8Array | undefined;
|
|
72
|
+
}
|
|
73
|
+
export interface UpdateAssetResponse {
|
|
74
|
+
asset?: Asset | undefined;
|
|
75
|
+
}
|
|
76
|
+
export interface DeleteAssetRequest {
|
|
77
|
+
id: string;
|
|
78
|
+
}
|
|
79
|
+
export interface DeleteAssetResponse {
|
|
80
|
+
}
|
|
81
|
+
export interface ListAssetsRequest {
|
|
82
|
+
pagination?: PaginationRequest | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface ListAssetsResponse {
|
|
85
|
+
assets: Asset[];
|
|
86
|
+
pagination?: PaginationResponse | undefined;
|
|
87
|
+
}
|
|
88
|
+
export declare const Asset: MessageFns<Asset>;
|
|
89
|
+
export declare const CreateAssetRequest: MessageFns<CreateAssetRequest>;
|
|
90
|
+
export declare const CreateAssetResponse: MessageFns<CreateAssetResponse>;
|
|
91
|
+
export declare const GetAssetRequest: MessageFns<GetAssetRequest>;
|
|
92
|
+
export declare const GetAssetResponse: MessageFns<GetAssetResponse>;
|
|
93
|
+
export declare const PutAssetRequest: MessageFns<PutAssetRequest>;
|
|
94
|
+
export declare const UpdateAssetRequest: MessageFns<UpdateAssetRequest>;
|
|
95
|
+
export declare const UpdateAssetResponse: MessageFns<UpdateAssetResponse>;
|
|
96
|
+
export declare const DeleteAssetRequest: MessageFns<DeleteAssetRequest>;
|
|
97
|
+
export declare const DeleteAssetResponse: MessageFns<DeleteAssetResponse>;
|
|
98
|
+
export declare const ListAssetsRequest: MessageFns<ListAssetsRequest>;
|
|
99
|
+
export declare const ListAssetsResponse: MessageFns<ListAssetsResponse>;
|
|
100
|
+
export interface AssetService {
|
|
101
|
+
CreateAsset(request: CreateAssetRequest): Promise<CreateAssetResponse>;
|
|
102
|
+
GetAsset(request: GetAssetRequest): Promise<GetAssetResponse>;
|
|
103
|
+
UpdateAsset(request: UpdateAssetRequest): Promise<UpdateAssetResponse>;
|
|
104
|
+
DeleteAsset(request: DeleteAssetRequest): Promise<DeleteAssetResponse>;
|
|
105
|
+
ListAssets(request: ListAssetsRequest): Promise<ListAssetsResponse>;
|
|
106
|
+
}
|
|
107
|
+
export declare const AssetServiceServiceName = "platform.v1.AssetService";
|
|
108
|
+
export declare class AssetServiceClientImpl implements AssetService {
|
|
109
|
+
private readonly rpc;
|
|
110
|
+
private readonly service;
|
|
111
|
+
constructor(rpc: Rpc, opts?: {
|
|
112
|
+
service?: string;
|
|
113
|
+
});
|
|
114
|
+
CreateAsset(request: CreateAssetRequest): Promise<CreateAssetResponse>;
|
|
115
|
+
GetAsset(request: GetAssetRequest): Promise<GetAssetResponse>;
|
|
116
|
+
UpdateAsset(request: UpdateAssetRequest): Promise<UpdateAssetResponse>;
|
|
117
|
+
DeleteAsset(request: DeleteAssetRequest): Promise<DeleteAssetResponse>;
|
|
118
|
+
ListAssets(request: ListAssetsRequest): Promise<ListAssetsResponse>;
|
|
119
|
+
}
|
|
120
|
+
interface Rpc {
|
|
121
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
122
|
+
}
|
|
123
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
124
|
+
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 {} ? {
|
|
125
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
126
|
+
} : Partial<T>;
|
|
127
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
128
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
129
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
130
|
+
} & {
|
|
131
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
132
|
+
};
|
|
133
|
+
export interface MessageFns<T> {
|
|
134
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
135
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
136
|
+
fromJSON(object: any): T;
|
|
137
|
+
toJSON(message: T): unknown;
|
|
138
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
139
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
140
|
+
}
|
|
141
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import { Language, User } from './user';
|
|
3
|
+
export declare const protobufPackage = "platform.v1";
|
|
4
|
+
export interface LoginRequest {
|
|
5
|
+
username: string;
|
|
6
|
+
password: string;
|
|
7
|
+
}
|
|
8
|
+
export interface LoginResponse {
|
|
9
|
+
token: string;
|
|
10
|
+
user?: User | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface LogoutRequest {
|
|
13
|
+
}
|
|
14
|
+
export interface MeRequest {
|
|
15
|
+
}
|
|
16
|
+
export interface MeResponse {
|
|
17
|
+
user?: User | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface LogoutResponse {
|
|
20
|
+
}
|
|
21
|
+
export interface RegisterRequest {
|
|
22
|
+
email: string;
|
|
23
|
+
username: string;
|
|
24
|
+
password: string;
|
|
25
|
+
language: Language;
|
|
26
|
+
invitationCode?: string | undefined;
|
|
27
|
+
phone?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface RegisterResponse {
|
|
30
|
+
user?: User | undefined;
|
|
31
|
+
}
|
|
32
|
+
export declare const LoginRequest: MessageFns<LoginRequest>;
|
|
33
|
+
export declare const LoginResponse: MessageFns<LoginResponse>;
|
|
34
|
+
export declare const LogoutRequest: MessageFns<LogoutRequest>;
|
|
35
|
+
export declare const MeRequest: MessageFns<MeRequest>;
|
|
36
|
+
export declare const MeResponse: MessageFns<MeResponse>;
|
|
37
|
+
export declare const LogoutResponse: MessageFns<LogoutResponse>;
|
|
38
|
+
export declare const RegisterRequest: MessageFns<RegisterRequest>;
|
|
39
|
+
export declare const RegisterResponse: MessageFns<RegisterResponse>;
|
|
40
|
+
export interface AuthService {
|
|
41
|
+
Login(request: LoginRequest): Promise<LoginResponse>;
|
|
42
|
+
Me(request: MeRequest): Promise<MeResponse>;
|
|
43
|
+
Logout(request: LogoutRequest): Promise<LogoutResponse>;
|
|
44
|
+
Register(request: RegisterRequest): Promise<RegisterResponse>;
|
|
45
|
+
}
|
|
46
|
+
export declare const AuthServiceServiceName = "platform.v1.AuthService";
|
|
47
|
+
export declare class AuthServiceClientImpl implements AuthService {
|
|
48
|
+
private readonly rpc;
|
|
49
|
+
private readonly service;
|
|
50
|
+
constructor(rpc: Rpc, opts?: {
|
|
51
|
+
service?: string;
|
|
52
|
+
});
|
|
53
|
+
Login(request: LoginRequest): Promise<LoginResponse>;
|
|
54
|
+
Me(request: MeRequest): Promise<MeResponse>;
|
|
55
|
+
Logout(request: LogoutRequest): Promise<LogoutResponse>;
|
|
56
|
+
Register(request: RegisterRequest): Promise<RegisterResponse>;
|
|
57
|
+
}
|
|
58
|
+
interface Rpc {
|
|
59
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
60
|
+
}
|
|
61
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
62
|
+
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 {} ? {
|
|
63
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
64
|
+
} : Partial<T>;
|
|
65
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
66
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
67
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
68
|
+
} & {
|
|
69
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
70
|
+
};
|
|
71
|
+
export interface MessageFns<T> {
|
|
72
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
73
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
74
|
+
fromJSON(object: any): T;
|
|
75
|
+
toJSON(message: T): unknown;
|
|
76
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
77
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
78
|
+
}
|
|
79
|
+
export {};
|