hume 0.9.17 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/empathic-voice/__package__.yml +60 -48
- package/.mock/definition/empathic-voice/chatGroups.yml +6 -0
- package/.mock/definition/empathic-voice/configs.yml +14 -8
- package/.mock/definition/empathic-voice/customVoices.yml +3 -0
- package/.mock/definition/empathic-voice/tools.yml +3 -0
- package/.mock/definition/tts/__package__.yml +51 -17
- package/.mock/definition/tts/voices.yml +9 -0
- package/.mock/fern.config.json +1 -1
- package/api/resources/empathicVoice/errors/BadRequestError.js +17 -7
- package/api/resources/empathicVoice/resources/chat/client/Client.js +17 -7
- package/api/resources/empathicVoice/resources/chat/client/Socket.js +17 -7
- package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +6 -2
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +170 -136
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -0
- package/api/resources/empathicVoice/resources/chats/client/Client.js +33 -23
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +12 -8
- package/api/resources/empathicVoice/resources/configs/client/Client.js +194 -160
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +3 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -3
- package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +7 -3
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +108 -86
- package/api/resources/empathicVoice/resources/index.js +17 -7
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +4 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +59 -49
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +5 -1
- package/api/resources/empathicVoice/resources/tools/client/Client.js +122 -100
- package/api/resources/empathicVoice/types/BuiltInTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/ChatMessageToolResult.d.ts +1 -1
- package/api/resources/empathicVoice/types/ContextType.d.ts +1 -1
- package/api/resources/empathicVoice/types/Encoding.d.ts +1 -1
- package/api/resources/empathicVoice/types/ErrorLevel.d.ts +1 -1
- package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +6 -4
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +5 -3
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +18 -19
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +17 -18
- package/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +6 -4
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +5 -3
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +9 -4
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +8 -3
- package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
- package/api/resources/empathicVoice/types/Role.d.ts +1 -1
- package/api/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +1 -1
- package/api/resources/empathicVoice/types/ToolType.d.ts +1 -1
- package/api/resources/empathicVoice/types/ValidationErrorLocItem.d.ts +1 -1
- package/api/resources/empathicVoice/types/WebhookEvent.d.ts +1 -1
- package/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +1 -1
- package/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +1 -1
- package/api/resources/expressionMeasurement/client/Client.d.ts +3 -9
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -1
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +64 -41
- package/api/resources/expressionMeasurement/resources/batch/types/Alternative.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Classification.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/CustomModel.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Dataset.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Direction.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Granularity.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Null.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Regression.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/SortBy.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Source.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/StateInference.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/StateTlInference.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/StateTraining.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Status.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Target.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Task.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/TextSource.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Type.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/Unconfigurable.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/UnionJob.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/UnionPredictResult.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/batch/types/When.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/index.js +17 -7
- package/api/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/types/Sentiment.d.ts +1 -1
- package/api/resources/expressionMeasurement/resources/stream/types/Toxicity.d.ts +1 -1
- package/api/resources/index.js +17 -7
- package/api/resources/tts/client/Client.d.ts +6 -3
- package/api/resources/tts/client/Client.js +37 -27
- package/api/resources/tts/errors/BadRequestError.js +17 -7
- package/api/resources/tts/errors/UnprocessableEntityError.js +17 -7
- package/api/resources/tts/resources/index.js +17 -7
- package/api/resources/tts/resources/voices/client/Client.d.ts +6 -2
- package/api/resources/tts/resources/voices/client/Client.js +97 -73
- package/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
- package/api/resources/tts/types/AudioEncoding.d.ts +4 -1
- package/api/resources/tts/types/AudioFormatType.d.ts +1 -1
- package/api/resources/tts/types/Format.d.ts +1 -1
- package/api/resources/tts/types/PostedContext.d.ts +1 -1
- package/api/resources/tts/types/PostedTts.d.ts +5 -1
- package/api/resources/tts/types/PostedUtterance.d.ts +2 -4
- package/api/resources/tts/types/PostedUtteranceVoice.d.ts +1 -1
- package/api/resources/tts/types/ReturnGeneration.d.ts +1 -1
- package/api/resources/tts/types/ReturnPagedVoices.d.ts +12 -0
- package/api/resources/tts/types/ValidationErrorLocItem.d.ts +1 -1
- package/api/resources/tts/types/VoiceProvider.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +3 -3
- package/core/fetcher/Fetcher.js +6 -5
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +4 -2
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +17 -9
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/form-data-utils/FormDataWrapper.d.ts +4 -4
- package/core/form-data-utils/FormDataWrapper.js +27 -13
- package/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
- package/core/form-data-utils/encodeAsFormParameter.js +18 -0
- package/core/form-data-utils/index.d.ts +1 -0
- package/core/form-data-utils/index.js +3 -0
- package/core/index.js +17 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/pagination/Page.js +9 -6
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +8 -5
- package/core/schemas/Schema.js +3 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +53 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +31 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +16 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/core/streaming-fetcher/Stream.d.ts +0 -1
- package/core/streaming-fetcher/Stream.js +20 -21
- package/core/utils/setObjectProperty.js +1 -2
- package/core/websocket/ws.d.ts +7 -7
- package/core/websocket/ws.js +17 -7
- package/dist/api/resources/empathicVoice/errors/BadRequestError.js +17 -7
- package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +17 -7
- package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +17 -7
- package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +6 -2
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +170 -136
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +33 -23
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +12 -8
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +194 -160
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -3
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +108 -86
- package/dist/api/resources/empathicVoice/resources/index.js +17 -7
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +59 -49
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +5 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +122 -100
- package/dist/api/resources/empathicVoice/types/BuiltInTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ChatMessageToolResult.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ContextType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/Encoding.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ErrorLevel.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +6 -4
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +5 -3
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +18 -19
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +17 -18
- package/dist/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +6 -4
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +5 -3
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +9 -4
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +8 -3
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/Role.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ToolType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ValidationErrorLocItem.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/WebhookEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/client/Client.d.ts +3 -9
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +64 -41
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Alternative.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Classification.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/CustomModel.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Dataset.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Direction.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Granularity.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Null.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Regression.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/SortBy.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Source.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/StateInference.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/StateTlInference.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/StateTraining.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Status.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Target.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Task.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/TextSource.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Type.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/Unconfigurable.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/UnionJob.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/UnionPredictResult.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/types/When.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/index.js +17 -7
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/types/Sentiment.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/resources/stream/types/Toxicity.d.ts +1 -1
- package/dist/api/resources/index.js +17 -7
- package/dist/api/resources/tts/client/Client.d.ts +6 -3
- package/dist/api/resources/tts/client/Client.js +37 -27
- package/dist/api/resources/tts/errors/BadRequestError.js +17 -7
- package/dist/api/resources/tts/errors/UnprocessableEntityError.js +17 -7
- package/dist/api/resources/tts/resources/index.js +17 -7
- package/dist/api/resources/tts/resources/voices/client/Client.d.ts +6 -2
- package/dist/api/resources/tts/resources/voices/client/Client.js +97 -73
- package/dist/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
- package/dist/api/resources/tts/types/AudioEncoding.d.ts +4 -1
- package/dist/api/resources/tts/types/AudioFormatType.d.ts +1 -1
- package/dist/api/resources/tts/types/Format.d.ts +1 -1
- package/dist/api/resources/tts/types/PostedContext.d.ts +1 -1
- package/dist/api/resources/tts/types/PostedTts.d.ts +5 -1
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +2 -4
- package/dist/api/resources/tts/types/PostedUtteranceVoice.d.ts +1 -1
- package/dist/api/resources/tts/types/ReturnGeneration.d.ts +1 -1
- package/dist/api/resources/tts/types/ReturnPagedVoices.d.ts +12 -0
- package/dist/api/resources/tts/types/ValidationErrorLocItem.d.ts +1 -1
- package/dist/api/resources/tts/types/VoiceProvider.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +3 -3
- package/dist/core/fetcher/Fetcher.js +6 -5
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +4 -2
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +17 -9
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +4 -4
- package/dist/core/form-data-utils/FormDataWrapper.js +27 -13
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.js +18 -0
- package/dist/core/form-data-utils/index.d.ts +1 -0
- package/dist/core/form-data-utils/index.js +3 -0
- package/dist/core/index.js +17 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/pagination/Page.js +9 -6
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +8 -5
- package/dist/core/schemas/Schema.js +3 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +53 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +31 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +16 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -1
- package/dist/core/streaming-fetcher/Stream.js +20 -21
- package/dist/core/utils/setObjectProperty.js +1 -2
- package/dist/core/websocket/ws.d.ts +7 -7
- package/dist/core/websocket/ws.js +17 -7
- package/dist/environments.d.ts +1 -1
- package/dist/errors/HumeTimeoutError.d.ts +1 -1
- package/dist/errors/HumeTimeoutError.js +2 -2
- package/dist/index.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/index.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/tools/client/index.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +17 -7
- package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/AudioInput.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/BuiltInTool.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ChatMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ChatMessageToolResult.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/Context.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ContextType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/EmotionScores.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/Encoding.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ErrorLevel.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ErrorResponse.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/HttpValidationError.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/Inference.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/MillisecondInterval.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedBuiltinToolName.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoice.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +27 -8
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -25
- package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpecs.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedUserDefinedToolSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ProsodyInference.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoice.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnEllmModel.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +27 -8
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +25 -10
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedCustomVoices.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpecs.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/Role.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/TextInput.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/Tool.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ToolType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/TtsInput.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/UserInput.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/UserMessage.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ValidationError.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/ValidationErrorLocItem.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/WebSocketError.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/WebhookEvent.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/WebhookEventBase.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +17 -7
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/client/getJobPredictions.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/client/index.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/client/listJobs.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Alternative.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/BoundingBox.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/BurstPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Classification.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedEmbeddingGeneration.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedInference.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedState.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTlInference.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTraining.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModel.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelId.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelRequest.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelVersionId.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsInferenceJob.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsTrainingJob.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Dataset.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/DatasetId.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/DatasetVersionId.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/DescriptionsScore.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Direction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationBaseRequest.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationJob.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EmotionScore.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Error_.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EvaluationArgs.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Face.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FacePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FacemeshPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FacsScore.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Failed.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FailedState.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/File_.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Granularity.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsBurstPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacemeshPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsLanguagePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsNerPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsProsodyPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InProgress.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InProgressState.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceBaseRequest.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceJob.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferencePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceRequest.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceResults.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceSourcePredictResult.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobEmbeddingGeneration.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobId.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobInference.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobTlInference.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobTraining.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Language.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/LanguagePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Models.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ModelsPredictions.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Ner.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/NerPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Null.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PositionInterval.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullBurstPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacemeshPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Prosody.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ProsodyPrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Queued.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/QueuedState.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/RegistryFileDetail.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Regression.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SentimentScore.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SortBy.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Source.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SourceFile.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SourceTextSource.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SourceUrl.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationCompletedEmbeddingGeneration.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationFailed.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationInProgress.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationQueued.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateInference.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInference.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceCompletedTlInference.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceFailed.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceInProgress.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceQueued.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTraining.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingCompletedTraining.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingFailed.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingInProgress.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingQueued.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Status.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Tag.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Target.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Task.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TaskClassification.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TaskRegression.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TextSource.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TimeInterval.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceBaseRequest.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferencePrediction.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceResults.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceSourcePredictResult.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ToxicityScore.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TrainingBaseRequest.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TrainingCustomModel.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Transcription.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TranscriptionMetadata.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Type.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Unconfigurable.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Url.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ValidationArgs.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/When.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Window.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/index.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/Config.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/JobDetails.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamErrorMessage.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamFace.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamLanguage.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictions.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurst.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurstPredictionsItem.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFace.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacePredictionsItem.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemesh.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsJobDetails.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguage.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsody.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelsEndpointPayload.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessage.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessageJobDetails.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbeddingItem.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/Sentiment.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/SentimentItem.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/StreamBoundingBox.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/TextPosition.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/TimeRange.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/Toxicity.js +17 -7
- package/dist/serialization/resources/expressionMeasurement/resources/stream/types/ToxicityItem.js +17 -7
- package/dist/serialization/resources/index.js +17 -7
- package/dist/serialization/resources/tts/resources/index.js +17 -7
- package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +17 -7
- package/dist/serialization/resources/tts/types/AudioEncoding.js +17 -7
- package/dist/serialization/resources/tts/types/AudioFormatType.js +17 -7
- package/dist/serialization/resources/tts/types/ErrorResponse.js +17 -7
- package/dist/serialization/resources/tts/types/Format.js +17 -7
- package/dist/serialization/resources/tts/types/FormatMp3.js +17 -7
- package/dist/serialization/resources/tts/types/FormatPcm.js +17 -7
- package/dist/serialization/resources/tts/types/FormatWav.js +17 -7
- package/dist/serialization/resources/tts/types/HttpValidationError.js +17 -7
- package/dist/serialization/resources/tts/types/PostedContext.js +17 -7
- package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.js +17 -7
- package/dist/serialization/resources/tts/types/PostedContextWithUtterances.js +17 -7
- package/dist/serialization/resources/tts/types/PostedTts.js +17 -7
- package/dist/serialization/resources/tts/types/PostedUtterance.js +17 -7
- package/dist/serialization/resources/tts/types/PostedUtteranceVoice.js +17 -7
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +17 -7
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +17 -7
- package/dist/serialization/resources/tts/types/ReturnGeneration.js +17 -7
- package/dist/serialization/resources/tts/types/ReturnPagedVoices.js +17 -7
- package/dist/serialization/resources/tts/types/ReturnTts.js +17 -7
- package/dist/serialization/resources/tts/types/ReturnVoice.js +17 -7
- package/dist/serialization/resources/tts/types/Snippet.js +17 -7
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +17 -7
- package/dist/serialization/resources/tts/types/ValidationError.js +17 -7
- package/dist/serialization/resources/tts/types/ValidationErrorLocItem.js +17 -7
- package/dist/serialization/resources/tts/types/VoiceProvider.js +17 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/base64Decode.d.ts +0 -1
- package/dist/wrapper/base64Decode.js +1 -2
- package/dist/wrapper/base64Encode.js +1 -2
- package/dist/wrapper/convertBase64ToBlob.js +1 -2
- package/dist/wrapper/convertBlobToBase64.js +1 -2
- package/dist/wrapper/expressionMeasurement/batch/BatchClient.js +2 -2
- package/dist/wrapper/expressionMeasurement/batch/Job.js +20 -10
- package/dist/wrapper/expressionMeasurement/streaming/StreamSocket.d.ts +0 -1
- package/dist/wrapper/expressionMeasurement/streaming/StreamSocket.js +30 -18
- package/dist/wrapper/expressionMeasurement/streaming/StreamingClient.js +20 -10
- package/dist/wrapper/fetchAccessToken.d.ts +1 -1
- package/dist/wrapper/fetchAccessToken.js +1 -1
- package/dist/wrapper/getBrowserSupportedMimeType.d.ts +3 -3
- package/dist/wrapper/getBrowserSupportedMimeType.js +3 -3
- package/environments.d.ts +1 -1
- package/errors/HumeTimeoutError.d.ts +1 -1
- package/errors/HumeTimeoutError.js +2 -2
- package/index.js +17 -7
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +15 -16
- package/reference.md +159 -29
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +17 -7
- package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +17 -7
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +17 -7
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +17 -7
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +17 -7
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.js +17 -7
- package/serialization/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.js +17 -7
- package/serialization/resources/empathicVoice/resources/index.js +17 -7
- package/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -7
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +17 -7
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +17 -7
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +17 -7
- package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.js +17 -7
- package/serialization/resources/empathicVoice/resources/tools/client/index.js +17 -7
- package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +17 -7
- package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.js +17 -7
- package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +17 -7
- package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.js +17 -7
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +17 -7
- package/serialization/resources/empathicVoice/types/AssistantInput.js +17 -7
- package/serialization/resources/empathicVoice/types/AssistantMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/AudioConfiguration.js +17 -7
- package/serialization/resources/empathicVoice/types/AudioInput.js +17 -7
- package/serialization/resources/empathicVoice/types/AudioOutput.js +17 -7
- package/serialization/resources/empathicVoice/types/BuiltInTool.js +17 -7
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +17 -7
- package/serialization/resources/empathicVoice/types/ChatMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/ChatMessageToolResult.js +17 -7
- package/serialization/resources/empathicVoice/types/ChatMetadata.js +17 -7
- package/serialization/resources/empathicVoice/types/Context.js +17 -7
- package/serialization/resources/empathicVoice/types/ContextType.js +17 -7
- package/serialization/resources/empathicVoice/types/EmotionScores.js +17 -7
- package/serialization/resources/empathicVoice/types/Encoding.js +17 -7
- package/serialization/resources/empathicVoice/types/ErrorLevel.js +17 -7
- package/serialization/resources/empathicVoice/types/ErrorResponse.js +17 -7
- package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.js +17 -7
- package/serialization/resources/empathicVoice/types/HttpValidationError.js +17 -7
- package/serialization/resources/empathicVoice/types/Inference.js +17 -7
- package/serialization/resources/empathicVoice/types/JsonMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/MillisecondInterval.js +17 -7
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedBuiltinToolName.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedCustomVoice.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedEllmModel.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +27 -8
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -25
- package/serialization/resources/empathicVoice/types/PostedPromptSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedTimeoutSpecs.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedUserDefinedToolSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedVoice.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +17 -7
- package/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/ProsodyInference.js +17 -7
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChat.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnCustomVoice.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnEllmModel.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +27 -8
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +25 -10
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPagedCustomVoices.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnTimeoutSpecs.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnVoice.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +17 -7
- package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +17 -7
- package/serialization/resources/empathicVoice/types/Role.js +17 -7
- package/serialization/resources/empathicVoice/types/SessionSettings.js +17 -7
- package/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.js +17 -7
- package/serialization/resources/empathicVoice/types/TextInput.js +17 -7
- package/serialization/resources/empathicVoice/types/Tool.js +17 -7
- package/serialization/resources/empathicVoice/types/ToolCallMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/ToolType.js +17 -7
- package/serialization/resources/empathicVoice/types/TtsInput.js +17 -7
- package/serialization/resources/empathicVoice/types/UserInput.js +17 -7
- package/serialization/resources/empathicVoice/types/UserInterruption.js +17 -7
- package/serialization/resources/empathicVoice/types/UserMessage.js +17 -7
- package/serialization/resources/empathicVoice/types/ValidationError.js +17 -7
- package/serialization/resources/empathicVoice/types/ValidationErrorLocItem.js +17 -7
- package/serialization/resources/empathicVoice/types/WebSocketError.js +17 -7
- package/serialization/resources/empathicVoice/types/WebhookEvent.js +17 -7
- package/serialization/resources/empathicVoice/types/WebhookEventBase.js +17 -7
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +17 -7
- package/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +17 -7
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +17 -7
- package/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/client/getJobPredictions.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/client/index.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/client/listJobs.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Alternative.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/BoundingBox.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/BurstPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Classification.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedEmbeddingGeneration.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedInference.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedState.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTlInference.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTraining.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModel.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelId.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelRequest.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelVersionId.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsInferenceJob.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsTrainingJob.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Dataset.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/DatasetId.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/DatasetVersionId.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/DescriptionsScore.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Direction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationBaseRequest.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationJob.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/EmotionScore.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Error_.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/EvaluationArgs.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Face.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/FacePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/FacemeshPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/FacsScore.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Failed.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/FailedState.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/File_.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Granularity.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsBurstPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacemeshPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsLanguagePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsNerPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsProsodyPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InProgress.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InProgressState.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceBaseRequest.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceJob.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InferencePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceRequest.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceResults.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceSourcePredictResult.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/JobEmbeddingGeneration.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/JobId.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/JobInference.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/JobTlInference.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/JobTraining.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Language.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/LanguagePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Models.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/ModelsPredictions.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Ner.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/NerPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Null.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/PositionInterval.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullBurstPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacemeshPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Prosody.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/ProsodyPrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Queued.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/QueuedState.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/RegistryFileDetail.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Regression.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/SentimentScore.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/SortBy.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Source.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/SourceFile.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/SourceTextSource.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/SourceUrl.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationCompletedEmbeddingGeneration.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationFailed.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationInProgress.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationQueued.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateInference.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInference.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceCompletedTlInference.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceFailed.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceInProgress.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceQueued.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTraining.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingCompletedTraining.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingFailed.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingInProgress.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingQueued.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Status.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Tag.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Target.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Task.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TaskClassification.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TaskRegression.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TextSource.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TimeInterval.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceBaseRequest.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferencePrediction.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceResults.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceSourcePredictResult.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/ToxicityScore.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TrainingBaseRequest.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TrainingCustomModel.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Transcription.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/TranscriptionMetadata.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Type.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Unconfigurable.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Url.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/ValidationArgs.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/When.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/batch/types/Window.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/index.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/Config.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/JobDetails.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamErrorMessage.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamFace.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamLanguage.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictions.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurst.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurstPredictionsItem.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFace.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacePredictionsItem.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemesh.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsJobDetails.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguage.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsody.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelsEndpointPayload.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessage.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessageJobDetails.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbeddingItem.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/Sentiment.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/SentimentItem.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/StreamBoundingBox.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/TextPosition.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/TimeRange.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/Toxicity.js +17 -7
- package/serialization/resources/expressionMeasurement/resources/stream/types/ToxicityItem.js +17 -7
- package/serialization/resources/index.js +17 -7
- package/serialization/resources/tts/resources/index.js +17 -7
- package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +17 -7
- package/serialization/resources/tts/types/AudioEncoding.js +17 -7
- package/serialization/resources/tts/types/AudioFormatType.js +17 -7
- package/serialization/resources/tts/types/ErrorResponse.js +17 -7
- package/serialization/resources/tts/types/Format.js +17 -7
- package/serialization/resources/tts/types/FormatMp3.js +17 -7
- package/serialization/resources/tts/types/FormatPcm.js +17 -7
- package/serialization/resources/tts/types/FormatWav.js +17 -7
- package/serialization/resources/tts/types/HttpValidationError.js +17 -7
- package/serialization/resources/tts/types/PostedContext.js +17 -7
- package/serialization/resources/tts/types/PostedContextWithGenerationId.js +17 -7
- package/serialization/resources/tts/types/PostedContextWithUtterances.js +17 -7
- package/serialization/resources/tts/types/PostedTts.js +17 -7
- package/serialization/resources/tts/types/PostedUtterance.js +17 -7
- package/serialization/resources/tts/types/PostedUtteranceVoice.js +17 -7
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +17 -7
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +17 -7
- package/serialization/resources/tts/types/ReturnGeneration.js +17 -7
- package/serialization/resources/tts/types/ReturnPagedVoices.js +17 -7
- package/serialization/resources/tts/types/ReturnTts.js +17 -7
- package/serialization/resources/tts/types/ReturnVoice.js +17 -7
- package/serialization/resources/tts/types/Snippet.js +17 -7
- package/serialization/resources/tts/types/SnippetAudioChunk.js +17 -7
- package/serialization/resources/tts/types/ValidationError.js +17 -7
- package/serialization/resources/tts/types/ValidationErrorLocItem.js +17 -7
- package/serialization/resources/tts/types/VoiceProvider.js +17 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/base64Decode.d.ts +0 -1
- package/wrapper/base64Decode.js +1 -2
- package/wrapper/base64Encode.js +1 -2
- package/wrapper/convertBase64ToBlob.js +1 -2
- package/wrapper/convertBlobToBase64.js +1 -2
- package/wrapper/expressionMeasurement/batch/BatchClient.js +2 -2
- package/wrapper/expressionMeasurement/batch/Job.js +20 -10
- package/wrapper/expressionMeasurement/streaming/StreamSocket.d.ts +0 -1
- package/wrapper/expressionMeasurement/streaming/StreamSocket.js +30 -18
- package/wrapper/expressionMeasurement/streaming/StreamingClient.js +20 -10
- package/wrapper/fetchAccessToken.d.ts +1 -1
- package/wrapper/fetchAccessToken.js +1 -1
- package/wrapper/getBrowserSupportedMimeType.d.ts +3 -3
- package/wrapper/getBrowserSupportedMimeType.js +3 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize a value to JSON
|
|
3
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
4
|
+
* @param replacer A function that transforms the results.
|
|
5
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
6
|
+
* @returns JSON string
|
|
7
|
+
*/
|
|
8
|
+
export declare const toJson: (value: unknown, replacer?: (this: unknown, key: string, value: unknown) => unknown, space?: string | number) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Parse JSON string to object, array, or other type
|
|
11
|
+
* @param text A valid JSON string.
|
|
12
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
13
|
+
* @returns Parsed object, array, or other type
|
|
14
|
+
*/
|
|
15
|
+
export declare function fromJson<T = unknown>(text: string, reviver?: (this: unknown, key: string, value: unknown) => unknown): T;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toJson = void 0;
|
|
4
|
+
exports.fromJson = fromJson;
|
|
5
|
+
/**
|
|
6
|
+
* Serialize a value to JSON
|
|
7
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
8
|
+
* @param replacer A function that transforms the results.
|
|
9
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
10
|
+
* @returns JSON string
|
|
11
|
+
*/
|
|
12
|
+
const toJson = (value, replacer, space) => {
|
|
13
|
+
return JSON.stringify(value, replacer, space);
|
|
14
|
+
};
|
|
15
|
+
exports.toJson = toJson;
|
|
16
|
+
/**
|
|
17
|
+
* Parse JSON string to object, array, or other type
|
|
18
|
+
* @param text A valid JSON string.
|
|
19
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
20
|
+
* @returns Parsed object, array, or other type
|
|
21
|
+
*/
|
|
22
|
+
function fromJson(text, reviver) {
|
|
23
|
+
return JSON.parse(text, reviver);
|
|
24
|
+
}
|
|
@@ -12,8 +12,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __
|
|
|
12
12
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
13
13
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
14
14
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
15
|
-
return i =
|
|
16
|
-
function
|
|
15
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
16
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
17
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
17
18
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
18
19
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
19
20
|
function fulfill(value) { resume("next", value); }
|
|
@@ -74,17 +75,19 @@ class Page {
|
|
|
74
75
|
}
|
|
75
76
|
[Symbol.asyncIterator]() {
|
|
76
77
|
return __asyncGenerator(this, arguments, function* _a() {
|
|
77
|
-
var e_1,
|
|
78
|
+
var _b, e_1, _c, _d;
|
|
78
79
|
try {
|
|
79
|
-
for (var
|
|
80
|
-
|
|
80
|
+
for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
|
|
81
|
+
_d = _g.value;
|
|
82
|
+
_e = false;
|
|
83
|
+
const message = _d;
|
|
81
84
|
yield yield __await(message);
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
85
88
|
finally {
|
|
86
89
|
try {
|
|
87
|
-
if (
|
|
90
|
+
if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
|
|
88
91
|
}
|
|
89
92
|
finally { if (e_1) throw e_1.error; }
|
|
90
93
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const RUNTIME: Runtime;
|
|
5
5
|
export interface Runtime {
|
|
6
|
-
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd";
|
|
6
|
+
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd" | "edge-runtime";
|
|
7
7
|
version?: string;
|
|
8
8
|
parsedVersion?: number;
|
|
9
9
|
}
|
|
@@ -1,80 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a, _b, _c, _d, _e;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.RUNTIME = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
7
|
-
*/
|
|
8
|
-
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
9
|
-
/**
|
|
10
|
-
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
11
|
-
*/
|
|
12
|
-
const isWebWorker = typeof self === "object" &&
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
|
|
15
|
-
(((_a = self.constructor) === null || _a === void 0 ? void 0 : _a.name) === "DedicatedWorkerGlobalScope" ||
|
|
16
|
-
((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "ServiceWorkerGlobalScope" ||
|
|
17
|
-
((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "SharedWorkerGlobalScope");
|
|
18
|
-
/**
|
|
19
|
-
* A constant that indicates whether the environment the code is running is Deno.
|
|
20
|
-
*/
|
|
21
|
-
const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
22
|
-
/**
|
|
23
|
-
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
24
|
-
*/
|
|
25
|
-
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
|
|
26
|
-
/**
|
|
27
|
-
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
28
|
-
*/
|
|
29
|
-
const isNode = typeof process !== "undefined" &&
|
|
30
|
-
Boolean(process.version) &&
|
|
31
|
-
Boolean((_d = process.versions) === null || _d === void 0 ? void 0 : _d.node) &&
|
|
32
|
-
// Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
|
|
33
|
-
!isDeno &&
|
|
34
|
-
!isBun;
|
|
35
|
-
/**
|
|
36
|
-
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
37
|
-
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
38
|
-
*/
|
|
39
|
-
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
40
|
-
/**
|
|
41
|
-
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
42
|
-
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
43
|
-
*/
|
|
44
|
-
const isCloudflare = typeof globalThis !== "undefined" && ((_e = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _e === void 0 ? void 0 : _e.userAgent) === "Cloudflare-Workers";
|
|
45
4
|
/**
|
|
46
5
|
* A constant that indicates which environment and version the SDK is running in.
|
|
47
6
|
*/
|
|
48
7
|
exports.RUNTIME = evaluateRuntime();
|
|
49
8
|
function evaluateRuntime() {
|
|
9
|
+
var _a, _b, _c, _d, _e;
|
|
10
|
+
/**
|
|
11
|
+
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
12
|
+
*/
|
|
13
|
+
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
50
14
|
if (isBrowser) {
|
|
51
15
|
return {
|
|
52
16
|
type: "browser",
|
|
53
17
|
version: window.navigator.userAgent,
|
|
54
18
|
};
|
|
55
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
22
|
+
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
23
|
+
*/
|
|
24
|
+
const isCloudflare = typeof globalThis !== "undefined" && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === "Cloudflare-Workers";
|
|
56
25
|
if (isCloudflare) {
|
|
57
26
|
return {
|
|
58
27
|
type: "workerd",
|
|
59
28
|
};
|
|
60
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* A constant that indicates whether the environment the code is running is Edge Runtime.
|
|
32
|
+
* https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
|
|
33
|
+
*/
|
|
34
|
+
const isEdgeRuntime = typeof EdgeRuntime === "string";
|
|
35
|
+
if (isEdgeRuntime) {
|
|
36
|
+
return {
|
|
37
|
+
type: "edge-runtime",
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
42
|
+
*/
|
|
43
|
+
const isWebWorker = typeof self === "object" &&
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
|
|
46
|
+
(((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "DedicatedWorkerGlobalScope" ||
|
|
47
|
+
((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "ServiceWorkerGlobalScope" ||
|
|
48
|
+
((_d = self.constructor) === null || _d === void 0 ? void 0 : _d.name) === "SharedWorkerGlobalScope");
|
|
61
49
|
if (isWebWorker) {
|
|
62
50
|
return {
|
|
63
51
|
type: "web-worker",
|
|
64
52
|
};
|
|
65
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* A constant that indicates whether the environment the code is running is Deno.
|
|
56
|
+
* FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
|
|
57
|
+
*/
|
|
58
|
+
const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
66
59
|
if (isDeno) {
|
|
67
60
|
return {
|
|
68
61
|
type: "deno",
|
|
69
62
|
version: Deno.version.deno,
|
|
70
63
|
};
|
|
71
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
67
|
+
*/
|
|
68
|
+
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
|
|
72
69
|
if (isBun) {
|
|
73
70
|
return {
|
|
74
71
|
type: "bun",
|
|
75
72
|
version: Bun.version,
|
|
76
73
|
};
|
|
77
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
77
|
+
*/
|
|
78
|
+
const isNode = typeof process !== "undefined" &&
|
|
79
|
+
"version" in process &&
|
|
80
|
+
!!process.version &&
|
|
81
|
+
"versions" in process &&
|
|
82
|
+
!!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
|
|
78
83
|
if (isNode) {
|
|
79
84
|
return {
|
|
80
85
|
type: "node",
|
|
@@ -82,6 +87,11 @@ function evaluateRuntime() {
|
|
|
82
87
|
parsedVersion: Number(process.versions.node.split(".")[0]),
|
|
83
88
|
};
|
|
84
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
92
|
+
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
93
|
+
*/
|
|
94
|
+
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
85
95
|
if (isReactNative) {
|
|
86
96
|
return {
|
|
87
97
|
type: "react-native",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { SchemaUtils } from "./builders";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type Schema<Raw = unknown, Parsed = unknown> = BaseSchema<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
|
|
3
|
+
export type inferRaw<S extends Schema> = S extends Schema<infer Raw, any> ? Raw : never;
|
|
4
|
+
export type inferParsed<S extends Schema> = S extends Schema<any, infer Parsed> ? Parsed : never;
|
|
5
5
|
export interface BaseSchema<Raw, Parsed> {
|
|
6
6
|
parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid<Parsed>;
|
|
7
7
|
json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid<Raw>;
|
|
8
8
|
getType: () => SchemaType | SchemaType;
|
|
9
9
|
}
|
|
10
10
|
export declare const SchemaType: {
|
|
11
|
+
readonly BIGINT: "bigint";
|
|
11
12
|
readonly DATE: "date";
|
|
12
13
|
readonly ENUM: "enum";
|
|
13
14
|
readonly LIST: "list";
|
|
@@ -23,10 +24,12 @@ export declare const SchemaType: {
|
|
|
23
24
|
readonly SET: "set";
|
|
24
25
|
readonly UNION: "union";
|
|
25
26
|
readonly UNDISCRIMINATED_UNION: "undiscriminatedUnion";
|
|
27
|
+
readonly NULLABLE: "nullable";
|
|
26
28
|
readonly OPTIONAL: "optional";
|
|
29
|
+
readonly OPTIONAL_NULLABLE: "optionalNullable";
|
|
27
30
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
31
|
+
export type SchemaType = (typeof SchemaType)[keyof typeof SchemaType];
|
|
32
|
+
export type MaybeValid<T> = Valid<T> | Invalid;
|
|
30
33
|
export interface Valid<T> {
|
|
31
34
|
ok: true;
|
|
32
35
|
value: T;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SchemaType = void 0;
|
|
4
4
|
exports.SchemaType = {
|
|
5
|
+
BIGINT: "bigint",
|
|
5
6
|
DATE: "date",
|
|
6
7
|
ENUM: "enum",
|
|
7
8
|
LIST: "list",
|
|
@@ -17,5 +18,7 @@ exports.SchemaType = {
|
|
|
17
18
|
SET: "set",
|
|
18
19
|
UNION: "union",
|
|
19
20
|
UNDISCRIMINATED_UNION: "undiscriminatedUnion",
|
|
21
|
+
NULLABLE: "nullable",
|
|
20
22
|
OPTIONAL: "optional",
|
|
23
|
+
OPTIONAL_NULLABLE: "optionalNullable",
|
|
21
24
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bigint = bigint;
|
|
4
|
+
const Schema_1 = require("../../Schema");
|
|
5
|
+
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
6
|
+
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
7
|
+
const schema_utils_1 = require("../schema-utils");
|
|
8
|
+
function bigint() {
|
|
9
|
+
const baseSchema = {
|
|
10
|
+
parse: (raw, { breadcrumbsPrefix = [] } = {}) => {
|
|
11
|
+
if (typeof raw === "bigint") {
|
|
12
|
+
return {
|
|
13
|
+
ok: true,
|
|
14
|
+
value: raw,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
if (typeof raw === "number") {
|
|
18
|
+
return {
|
|
19
|
+
ok: true,
|
|
20
|
+
value: BigInt(raw),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
ok: false,
|
|
25
|
+
errors: [
|
|
26
|
+
{
|
|
27
|
+
path: breadcrumbsPrefix,
|
|
28
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(raw, "bigint | number"),
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
json: (bigint, { breadcrumbsPrefix = [] } = {}) => {
|
|
34
|
+
if (typeof bigint !== "bigint") {
|
|
35
|
+
return {
|
|
36
|
+
ok: false,
|
|
37
|
+
errors: [
|
|
38
|
+
{
|
|
39
|
+
path: breadcrumbsPrefix,
|
|
40
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(bigint, "bigint"),
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
ok: true,
|
|
47
|
+
value: bigint,
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
getType: () => Schema_1.SchemaType.BIGINT,
|
|
51
|
+
};
|
|
52
|
+
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { bigint } from "./bigint";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.date =
|
|
3
|
+
exports.date = date;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
6
6
|
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
@@ -60,4 +60,3 @@ function date() {
|
|
|
60
60
|
};
|
|
61
61
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
62
62
|
}
|
|
63
|
-
exports.date = date;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enum_ =
|
|
3
|
+
exports.enum_ = enum_;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
|
|
6
6
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
@@ -36,4 +36,3 @@ function enum_(values) {
|
|
|
36
36
|
});
|
|
37
37
|
return schemaCreator();
|
|
38
38
|
}
|
|
39
|
-
exports.enum_ = enum_;
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./bigint"), exports);
|
|
17
18
|
__exportStar(require("./date"), exports);
|
|
18
19
|
__exportStar(require("./enum"), exports);
|
|
19
20
|
__exportStar(require("./lazy"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseSchema, Schema } from "../../Schema";
|
|
2
|
-
export
|
|
2
|
+
export type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType;
|
|
3
3
|
export declare function lazy<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): Schema<Raw, Parsed>;
|
|
4
4
|
export declare function constructLazyBaseSchema<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): BaseSchema<Raw, Parsed>;
|
|
5
5
|
export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): SchemaType;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.lazy = lazy;
|
|
4
|
+
exports.constructLazyBaseSchema = constructLazyBaseSchema;
|
|
5
|
+
exports.getMemoizedSchema = getMemoizedSchema;
|
|
4
6
|
const schema_utils_1 = require("../schema-utils");
|
|
5
7
|
function lazy(getter) {
|
|
6
8
|
const baseSchema = constructLazyBaseSchema(getter);
|
|
7
9
|
return Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
8
10
|
}
|
|
9
|
-
exports.lazy = lazy;
|
|
10
11
|
function constructLazyBaseSchema(getter) {
|
|
11
12
|
return {
|
|
12
13
|
parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
|
|
@@ -14,7 +15,6 @@ function constructLazyBaseSchema(getter) {
|
|
|
14
15
|
getType: () => getMemoizedSchema(getter).getType(),
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
|
-
exports.constructLazyBaseSchema = constructLazyBaseSchema;
|
|
18
18
|
function getMemoizedSchema(getter) {
|
|
19
19
|
const castedGetter = getter;
|
|
20
20
|
if (castedGetter.__zurg_memoized == null) {
|
|
@@ -22,4 +22,3 @@ function getMemoizedSchema(getter) {
|
|
|
22
22
|
}
|
|
23
23
|
return castedGetter.__zurg_memoized;
|
|
24
24
|
}
|
|
25
|
-
exports.getMemoizedSchema = getMemoizedSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lazyObject =
|
|
3
|
+
exports.lazyObject = lazyObject;
|
|
4
4
|
const object_1 = require("../object");
|
|
5
5
|
const object_like_1 = require("../object-like");
|
|
6
6
|
const schema_utils_1 = require("../schema-utils");
|
|
@@ -9,4 +9,3 @@ function lazyObject(getter) {
|
|
|
9
9
|
const baseSchema = Object.assign(Object.assign({}, (0, lazy_1.constructLazyBaseSchema)(getter)), { _getRawProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getRawProperties(), _getParsedProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getParsedProperties() });
|
|
10
10
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), (0, object_1.getObjectUtils)(baseSchema));
|
|
11
11
|
}
|
|
12
|
-
exports.lazyObject = lazyObject;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.list =
|
|
3
|
+
exports.list = list;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
6
6
|
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
@@ -19,7 +19,6 @@ function list(schema) {
|
|
|
19
19
|
};
|
|
20
20
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
21
21
|
}
|
|
22
|
-
exports.list = list;
|
|
23
22
|
function validateAndTransformArray(value, transformItem) {
|
|
24
23
|
if (!Array.isArray(value)) {
|
|
25
24
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.booleanLiteral =
|
|
3
|
+
exports.booleanLiteral = booleanLiteral;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
|
|
6
6
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
@@ -26,4 +26,3 @@ function booleanLiteral(literal) {
|
|
|
26
26
|
});
|
|
27
27
|
return schemaCreator();
|
|
28
28
|
}
|
|
29
|
-
exports.booleanLiteral = booleanLiteral;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stringLiteral =
|
|
3
|
+
exports.stringLiteral = stringLiteral;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
|
|
6
6
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
@@ -26,4 +26,3 @@ function stringLiteral(literal) {
|
|
|
26
26
|
});
|
|
27
27
|
return schemaCreator();
|
|
28
28
|
}
|
|
29
|
-
exports.stringLiteral = stringLiteral;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BaseObjectSchema,
|
|
1
|
+
import { BaseObjectSchema, ObjectUtils, PropertySchemas, inferObjectSchemaFromPropertySchemas } from "./types";
|
|
2
2
|
export declare function object<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectSchemaFromPropertySchemas<T>;
|
|
3
3
|
export declare function getObjectUtils<Raw, Parsed>(schema: BaseObjectSchema<Raw, Parsed>): ObjectUtils<Raw, Parsed>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.object = object;
|
|
4
|
+
exports.getObjectUtils = getObjectUtils;
|
|
4
5
|
const Schema_1 = require("../../Schema");
|
|
5
6
|
const entries_1 = require("../../utils/entries");
|
|
6
7
|
const filterObject_1 = require("../../utils/filterObject");
|
|
@@ -104,7 +105,6 @@ function object(schemas) {
|
|
|
104
105
|
};
|
|
105
106
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
106
107
|
}
|
|
107
|
-
exports.object = object;
|
|
108
108
|
function validateAndTransformObject({ value, requiredKeys, getProperty, unrecognizedObjectKeys = "fail", skipValidation = false, breadcrumbsPrefix = [], }) {
|
|
109
109
|
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
110
110
|
return {
|
|
@@ -194,9 +194,36 @@ function getObjectUtils(schema) {
|
|
|
194
194
|
};
|
|
195
195
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
196
196
|
},
|
|
197
|
+
passthrough: () => {
|
|
198
|
+
const baseSchema = {
|
|
199
|
+
_getParsedProperties: () => schema._getParsedProperties(),
|
|
200
|
+
_getRawProperties: () => schema._getRawProperties(),
|
|
201
|
+
parse: (raw, opts) => {
|
|
202
|
+
const transformed = schema.parse(raw, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
|
|
203
|
+
if (!transformed.ok) {
|
|
204
|
+
return transformed;
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
ok: true,
|
|
208
|
+
value: Object.assign(Object.assign({}, raw), transformed.value),
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
json: (parsed, opts) => {
|
|
212
|
+
const transformed = schema.json(parsed, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
|
|
213
|
+
if (!transformed.ok) {
|
|
214
|
+
return transformed;
|
|
215
|
+
}
|
|
216
|
+
return {
|
|
217
|
+
ok: true,
|
|
218
|
+
value: Object.assign(Object.assign({}, parsed), transformed.value),
|
|
219
|
+
};
|
|
220
|
+
},
|
|
221
|
+
getType: () => Schema_1.SchemaType.OBJECT,
|
|
222
|
+
};
|
|
223
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
224
|
+
},
|
|
197
225
|
};
|
|
198
226
|
}
|
|
199
|
-
exports.getObjectUtils = getObjectUtils;
|
|
200
227
|
function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, }) {
|
|
201
228
|
const extensionPropertiesSet = new Set(extensionKeys);
|
|
202
229
|
const [extensionProperties, baseProperties] = (0, partition_1.partition)((0, keys_1.keys)(value), (key) => extensionPropertiesSet.has(key));
|
|
@@ -226,6 +253,7 @@ function isSchemaOptional(schema) {
|
|
|
226
253
|
case Schema_1.SchemaType.ANY:
|
|
227
254
|
case Schema_1.SchemaType.UNKNOWN:
|
|
228
255
|
case Schema_1.SchemaType.OPTIONAL:
|
|
256
|
+
case Schema_1.SchemaType.OPTIONAL_NULLABLE:
|
|
229
257
|
return true;
|
|
230
258
|
default:
|
|
231
259
|
return false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ObjectSchema, PropertySchemas, inferParsedPropertySchema, inferRawObjectFromPropertySchemas } from "./types";
|
|
2
2
|
export declare function objectWithoutOptionalProperties<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T>;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T>>;
|
|
4
|
+
export type inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T extends PropertySchemas<keyof T>> = {
|
|
5
5
|
[K in keyof T]: inferParsedPropertySchema<T[K]>;
|
|
6
6
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.objectWithoutOptionalProperties =
|
|
3
|
+
exports.objectWithoutOptionalProperties = objectWithoutOptionalProperties;
|
|
4
4
|
const object_1 = require("./object");
|
|
5
5
|
function objectWithoutOptionalProperties(schemas) {
|
|
6
6
|
return (0, object_1.object)(schemas);
|
|
7
7
|
}
|
|
8
|
-
exports.objectWithoutOptionalProperties = objectWithoutOptionalProperties;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.property = property;
|
|
4
|
+
exports.isProperty = isProperty;
|
|
4
5
|
function property(rawKey, valueSchema) {
|
|
5
6
|
return {
|
|
6
7
|
rawKey,
|
|
@@ -8,9 +9,7 @@ function property(rawKey, valueSchema) {
|
|
|
8
9
|
isProperty: true,
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
|
-
exports.property = property;
|
|
12
12
|
function isProperty(maybeProperty) {
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
14
14
|
return maybeProperty.isProperty;
|
|
15
15
|
}
|
|
16
|
-
exports.isProperty = isProperty;
|