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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getObjectLikeUtils = getObjectLikeUtils;
|
|
4
|
+
exports.withParsedProperties = withParsedProperties;
|
|
4
5
|
const filterObject_1 = require("../../utils/filterObject");
|
|
5
6
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
6
7
|
const isPlainObject_1 = require("../../utils/isPlainObject");
|
|
@@ -10,7 +11,6 @@ function getObjectLikeUtils(schema) {
|
|
|
10
11
|
withParsedProperties: (properties) => withParsedProperties(schema, properties),
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
|
-
exports.getObjectLikeUtils = getObjectLikeUtils;
|
|
14
14
|
/**
|
|
15
15
|
* object-like utils are defined in one file to resolve issues with circular imports
|
|
16
16
|
*/
|
|
@@ -51,4 +51,3 @@ function withParsedProperties(objectLike, properties) {
|
|
|
51
51
|
};
|
|
52
52
|
return Object.assign(Object.assign(Object.assign({}, objectSchema), (0, schema_utils_1.getSchemaUtils)(objectSchema)), getObjectLikeUtils(objectSchema));
|
|
53
53
|
}
|
|
54
|
-
exports.withParsedProperties = withParsedProperties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseSchema, Schema } from "../../Schema";
|
|
2
|
-
export
|
|
2
|
+
export type ObjectLikeSchema<Raw, Parsed> = Schema<Raw, Parsed> & BaseSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed>;
|
|
3
3
|
export interface ObjectLikeUtils<Raw, Parsed> {
|
|
4
4
|
withParsedProperties: <T extends Record<string, any>>(properties: {
|
|
5
5
|
[K in keyof T]: T[K] | ((parsed: Parsed) => T[K]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.record =
|
|
3
|
+
exports.record = record;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const entries_1 = require("../../utils/entries");
|
|
6
6
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
@@ -43,7 +43,6 @@ function record(keySchema, valueSchema) {
|
|
|
43
43
|
};
|
|
44
44
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
45
45
|
}
|
|
46
|
-
exports.record = record;
|
|
47
46
|
function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [], }) {
|
|
48
47
|
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
49
48
|
return {
|
|
@@ -57,8 +56,7 @@ function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transfo
|
|
|
57
56
|
};
|
|
58
57
|
}
|
|
59
58
|
return (0, entries_1.entries)(value).reduce((accPromise, [stringKey, value]) => {
|
|
60
|
-
|
|
61
|
-
if (value == null) {
|
|
59
|
+
if (value === undefined) {
|
|
62
60
|
return accPromise;
|
|
63
61
|
}
|
|
64
62
|
const acc = accPromise;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { BaseSchema } from "../../Schema";
|
|
2
2
|
import { SchemaUtils } from "../schema-utils";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type RecordSchema<RawKey extends string | number, RawValue, ParsedKey extends string | number, ParsedValue> = BaseRecordSchema<RawKey, RawValue, ParsedKey, ParsedValue> & SchemaUtils<Record<RawKey, RawValue>, Record<ParsedKey, ParsedValue>>;
|
|
4
|
+
export type BaseRecordSchema<RawKey extends string | number, RawValue, ParsedKey extends string | number, ParsedValue> = BaseSchema<Record<RawKey, RawValue>, Record<ParsedKey, ParsedValue>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseSchema, Schema, SchemaOptions } from "../../Schema";
|
|
2
2
|
export interface SchemaUtils<Raw, Parsed> {
|
|
3
|
+
nullable: () => Schema<Raw | null, Parsed | null>;
|
|
3
4
|
optional: () => Schema<Raw | null | undefined, Parsed | undefined>;
|
|
5
|
+
optionalNullable: () => Schema<Raw | null | undefined, Parsed | null | undefined>;
|
|
4
6
|
transform: <Transformed>(transformer: SchemaTransformer<Parsed, Transformed>) => Schema<Raw, Transformed>;
|
|
5
7
|
parseOrThrow: (raw: unknown, opts?: SchemaOptions) => Parsed;
|
|
6
8
|
jsonOrThrow: (raw: unknown, opts?: SchemaOptions) => Raw;
|
|
@@ -13,5 +15,7 @@ export declare function getSchemaUtils<Raw, Parsed>(schema: BaseSchema<Raw, Pars
|
|
|
13
15
|
/**
|
|
14
16
|
* schema utils are defined in one file to resolve issues with circular imports
|
|
15
17
|
*/
|
|
18
|
+
export declare function nullable<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): Schema<Raw | null, Parsed | null>;
|
|
16
19
|
export declare function optional<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): Schema<Raw | null | undefined, Parsed | undefined>;
|
|
20
|
+
export declare function optionalNullable<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): Schema<Raw | null | undefined, Parsed | null | undefined>;
|
|
17
21
|
export declare function transform<Raw, Parsed, Transformed>(schema: BaseSchema<Raw, Parsed>, transformer: SchemaTransformer<Parsed, Transformed>): Schema<Raw, Transformed>;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getSchemaUtils = getSchemaUtils;
|
|
4
|
+
exports.nullable = nullable;
|
|
5
|
+
exports.optional = optional;
|
|
6
|
+
exports.optionalNullable = optionalNullable;
|
|
7
|
+
exports.transform = transform;
|
|
4
8
|
const Schema_1 = require("../../Schema");
|
|
5
9
|
const JsonError_1 = require("./JsonError");
|
|
6
10
|
const ParseError_1 = require("./ParseError");
|
|
7
11
|
function getSchemaUtils(schema) {
|
|
8
12
|
return {
|
|
13
|
+
nullable: () => nullable(schema),
|
|
9
14
|
optional: () => optional(schema),
|
|
15
|
+
optionalNullable: () => optionalNullable(schema),
|
|
10
16
|
transform: (transformer) => transform(schema, transformer),
|
|
11
17
|
parseOrThrow: (raw, opts) => {
|
|
12
18
|
const parsed = schema.parse(raw, opts);
|
|
@@ -24,10 +30,33 @@ function getSchemaUtils(schema) {
|
|
|
24
30
|
},
|
|
25
31
|
};
|
|
26
32
|
}
|
|
27
|
-
exports.getSchemaUtils = getSchemaUtils;
|
|
28
33
|
/**
|
|
29
34
|
* schema utils are defined in one file to resolve issues with circular imports
|
|
30
35
|
*/
|
|
36
|
+
function nullable(schema) {
|
|
37
|
+
const baseSchema = {
|
|
38
|
+
parse: (raw, opts) => {
|
|
39
|
+
if (raw == null) {
|
|
40
|
+
return {
|
|
41
|
+
ok: true,
|
|
42
|
+
value: null,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return schema.parse(raw, opts);
|
|
46
|
+
},
|
|
47
|
+
json: (parsed, opts) => {
|
|
48
|
+
if (parsed == null) {
|
|
49
|
+
return {
|
|
50
|
+
ok: true,
|
|
51
|
+
value: null,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return schema.json(parsed, opts);
|
|
55
|
+
},
|
|
56
|
+
getType: () => Schema_1.SchemaType.NULLABLE,
|
|
57
|
+
};
|
|
58
|
+
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
59
|
+
}
|
|
31
60
|
function optional(schema) {
|
|
32
61
|
const baseSchema = {
|
|
33
62
|
parse: (raw, opts) => {
|
|
@@ -58,7 +87,42 @@ function optional(schema) {
|
|
|
58
87
|
};
|
|
59
88
|
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
60
89
|
}
|
|
61
|
-
|
|
90
|
+
function optionalNullable(schema) {
|
|
91
|
+
const baseSchema = {
|
|
92
|
+
parse: (raw, opts) => {
|
|
93
|
+
if (raw === undefined) {
|
|
94
|
+
return {
|
|
95
|
+
ok: true,
|
|
96
|
+
value: undefined,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
if (raw === null) {
|
|
100
|
+
return {
|
|
101
|
+
ok: true,
|
|
102
|
+
value: null,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
return schema.parse(raw, opts);
|
|
106
|
+
},
|
|
107
|
+
json: (parsed, opts) => {
|
|
108
|
+
if (parsed === undefined) {
|
|
109
|
+
return {
|
|
110
|
+
ok: true,
|
|
111
|
+
value: undefined,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
if (parsed === null) {
|
|
115
|
+
return {
|
|
116
|
+
ok: true,
|
|
117
|
+
value: null,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
return schema.json(parsed, opts);
|
|
121
|
+
},
|
|
122
|
+
getType: () => Schema_1.SchemaType.OPTIONAL_NULLABLE,
|
|
123
|
+
};
|
|
124
|
+
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
125
|
+
}
|
|
62
126
|
function transform(schema, transformer) {
|
|
63
127
|
const baseSchema = {
|
|
64
128
|
parse: (raw, opts) => {
|
|
@@ -79,4 +143,3 @@ function transform(schema, transformer) {
|
|
|
79
143
|
};
|
|
80
144
|
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
81
145
|
}
|
|
82
|
-
exports.transform = transform;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stringifyValidationError =
|
|
3
|
+
exports.stringifyValidationError = stringifyValidationError;
|
|
4
4
|
function stringifyValidationError(error) {
|
|
5
5
|
if (error.path.length === 0) {
|
|
6
6
|
return error.message;
|
|
7
7
|
}
|
|
8
8
|
return `${error.path.join(" -> ")}: ${error.message}`;
|
|
9
9
|
}
|
|
10
|
-
exports.stringifyValidationError = stringifyValidationError;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.set =
|
|
3
|
+
exports.set = set;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
6
6
|
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
@@ -41,4 +41,3 @@ function set(schema) {
|
|
|
41
41
|
};
|
|
42
42
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
43
43
|
}
|
|
44
|
-
exports.set = set;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inferParsed, inferRaw
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
import { Schema, inferParsed, inferRaw } from "../../Schema";
|
|
2
|
+
export type UndiscriminatedUnionSchema<Schemas extends [...Schema[]]> = Schema<inferRawUnidiscriminatedUnionSchema<Schemas>, inferParsedUnidiscriminatedUnionSchema<Schemas>>;
|
|
3
|
+
export type inferRawUnidiscriminatedUnionSchema<Schemas extends [...Schema[]]> = inferRaw<Schemas[number]>;
|
|
4
|
+
export type inferParsedUnidiscriminatedUnionSchema<Schemas extends [...Schema[]]> = inferParsed<Schemas[number]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.undiscriminatedUnion =
|
|
3
|
+
exports.undiscriminatedUnion = undiscriminatedUnion;
|
|
4
4
|
const Schema_1 = require("../../Schema");
|
|
5
5
|
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
6
6
|
const schema_utils_1 = require("../schema-utils");
|
|
@@ -16,7 +16,6 @@ function undiscriminatedUnion(schemas) {
|
|
|
16
16
|
};
|
|
17
17
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
18
18
|
}
|
|
19
|
-
exports.undiscriminatedUnion = undiscriminatedUnion;
|
|
20
19
|
function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
|
|
21
20
|
const errors = [];
|
|
22
21
|
for (const [index, schema] of schemas.entries()) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.discriminant =
|
|
3
|
+
exports.discriminant = discriminant;
|
|
4
4
|
function discriminant(parsedDiscriminant, rawDiscriminant) {
|
|
5
5
|
return {
|
|
6
6
|
parsedDiscriminant,
|
|
7
7
|
rawDiscriminant,
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
exports.discriminant = discriminant;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { inferParsedObject, inferRawObject
|
|
1
|
+
import { ObjectSchema, inferParsedObject, inferRawObject } from "../object";
|
|
2
2
|
import { Discriminant } from "./discriminant";
|
|
3
|
-
export
|
|
3
|
+
export type UnionSubtypes<DiscriminantValues extends string | number | symbol> = {
|
|
4
4
|
[K in DiscriminantValues]: ObjectSchema<any, any>;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type inferRawUnion<D extends string | Discriminant<any, any>, U extends UnionSubtypes<keyof U>> = {
|
|
7
7
|
[K in keyof U]: Record<inferRawDiscriminant<D>, K> & inferRawObject<U[K]>;
|
|
8
8
|
}[keyof U];
|
|
9
|
-
export
|
|
9
|
+
export type inferParsedUnion<D extends string | Discriminant<any, any>, U extends UnionSubtypes<keyof U>> = {
|
|
10
10
|
[K in keyof U]: Record<inferParsedDiscriminant<D>, K> & inferParsedObject<U[K]>;
|
|
11
11
|
}[keyof U];
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type inferRawDiscriminant<D extends string | Discriminant<any, any>> = D extends string ? D : D extends Discriminant<infer Raw, any> ? Raw : never;
|
|
13
|
+
export type inferParsedDiscriminant<D extends string | Discriminant<any, any>> = D extends string ? D : D extends Discriminant<any, infer Parsed> ? Parsed : never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ObjectLikeSchema } from "../object-like";
|
|
2
2
|
import { Discriminant } from "./discriminant";
|
|
3
|
-
import { inferParsedUnion, inferRawUnion
|
|
3
|
+
import { UnionSubtypes, inferParsedUnion, inferRawUnion } from "./types";
|
|
4
4
|
export declare function union<D extends string | Discriminant<any, any>, U extends UnionSubtypes<any>>(discriminant: D, union: U): ObjectLikeSchema<inferRawUnion<D, U>, inferParsedUnion<D, U>>;
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.union =
|
|
14
|
+
exports.union = union;
|
|
15
15
|
const Schema_1 = require("../../Schema");
|
|
16
16
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
17
17
|
const isPlainObject_1 = require("../../utils/isPlainObject");
|
|
@@ -67,7 +67,6 @@ function union(discriminant, union) {
|
|
|
67
67
|
};
|
|
68
68
|
return Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema));
|
|
69
69
|
}
|
|
70
|
-
exports.union = union;
|
|
71
70
|
function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {
|
|
72
71
|
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
73
72
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type addQuestionMarksToNullableProperties<T> = {
|
|
2
2
|
[K in OptionalKeys<T>]?: T[K];
|
|
3
3
|
} & Pick<T, RequiredKeys<T>>;
|
|
4
|
-
export
|
|
5
|
-
[K in keyof T]-?: undefined extends T[K] ? K :
|
|
4
|
+
export type OptionalKeys<T> = {
|
|
5
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never;
|
|
6
6
|
}[keyof T];
|
|
7
|
-
export
|
|
7
|
+
export type RequiredKeys<T> = Exclude<keyof T, OptionalKeys<T>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createIdentitySchemaCreator =
|
|
3
|
+
exports.createIdentitySchemaCreator = createIdentitySchemaCreator;
|
|
4
4
|
const schema_utils_1 = require("../builders/schema-utils");
|
|
5
5
|
const maybeSkipValidation_1 = require("./maybeSkipValidation");
|
|
6
6
|
function createIdentitySchemaCreator(schemaType, validate) {
|
|
@@ -13,4 +13,3 @@ function createIdentitySchemaCreator(schemaType, validate) {
|
|
|
13
13
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
exports.createIdentitySchemaCreator = createIdentitySchemaCreator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function entries<T>(object: T): [keyof T, T[keyof T]][];
|
|
1
|
+
export declare function entries<T extends object>(object: T): [keyof T, T[keyof T]][];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function filterObject<T, K extends keyof T>(obj: T, keysToInclude: K[]): Pick<T, K>;
|
|
1
|
+
export declare function filterObject<T extends object, K extends keyof T>(obj: T, keysToInclude: K[]): Pick<T, K>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterObject =
|
|
3
|
+
exports.filterObject = filterObject;
|
|
4
4
|
function filterObject(obj, keysToInclude) {
|
|
5
5
|
const keysToIncludeSet = new Set(keysToInclude);
|
|
6
6
|
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
@@ -11,4 +11,3 @@ function filterObject(obj, keysToInclude) {
|
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter
|
|
12
12
|
}, {});
|
|
13
13
|
}
|
|
14
|
-
exports.filterObject = filterObject;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getErrorMessageForIncorrectType =
|
|
3
|
+
exports.getErrorMessageForIncorrectType = getErrorMessageForIncorrectType;
|
|
4
4
|
function getErrorMessageForIncorrectType(value, expectedType) {
|
|
5
5
|
return `Expected ${expectedType}. Received ${getTypeAsString(value)}.`;
|
|
6
6
|
}
|
|
7
|
-
exports.getErrorMessageForIncorrectType = getErrorMessageForIncorrectType;
|
|
8
7
|
function getTypeAsString(value) {
|
|
9
8
|
if (Array.isArray(value)) {
|
|
10
9
|
return "list";
|
|
@@ -12,9 +11,13 @@ function getTypeAsString(value) {
|
|
|
12
11
|
if (value === null) {
|
|
13
12
|
return "null";
|
|
14
13
|
}
|
|
14
|
+
if (value instanceof BigInt) {
|
|
15
|
+
return "BigInt";
|
|
16
|
+
}
|
|
15
17
|
switch (typeof value) {
|
|
16
18
|
case "string":
|
|
17
19
|
return `"${value}"`;
|
|
20
|
+
case "bigint":
|
|
18
21
|
case "number":
|
|
19
22
|
case "boolean":
|
|
20
23
|
case "undefined":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isPlainObject =
|
|
3
|
+
exports.isPlainObject = isPlainObject;
|
|
4
4
|
// borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js
|
|
5
5
|
function isPlainObject(value) {
|
|
6
6
|
if (typeof value !== "object" || value === null) {
|
|
@@ -15,4 +15,3 @@ function isPlainObject(value) {
|
|
|
15
15
|
}
|
|
16
16
|
return Object.getPrototypeOf(value) === proto;
|
|
17
17
|
}
|
|
18
|
-
exports.isPlainObject = isPlainObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function keys<T>(object: T): (keyof T)[];
|
|
1
|
+
export declare function keys<T extends object>(object: T): (keyof T)[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maybeSkipValidation =
|
|
3
|
+
exports.maybeSkipValidation = maybeSkipValidation;
|
|
4
4
|
function maybeSkipValidation(schema) {
|
|
5
5
|
return Object.assign(Object.assign({}, schema), { json: transformAndMaybeSkipValidation(schema.json), parse: transformAndMaybeSkipValidation(schema.parse) });
|
|
6
6
|
}
|
|
7
|
-
exports.maybeSkipValidation = maybeSkipValidation;
|
|
8
7
|
function transformAndMaybeSkipValidation(transform) {
|
|
9
8
|
return (value, opts) => {
|
|
10
9
|
const transformed = transform(value, opts);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.partition =
|
|
3
|
+
exports.partition = partition;
|
|
4
4
|
function partition(items, predicate) {
|
|
5
5
|
const trueItems = [], falseItems = [];
|
|
6
6
|
for (const item of items) {
|
|
@@ -13,4 +13,3 @@ function partition(items, predicate) {
|
|
|
13
13
|
}
|
|
14
14
|
return [trueItems, falseItems];
|
|
15
15
|
}
|
|
16
|
-
exports.partition = partition;
|
|
@@ -19,8 +19,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __
|
|
|
19
19
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
20
20
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21
21
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
22
|
-
return i =
|
|
23
|
-
function
|
|
22
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
23
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
24
|
+
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]); } }
|
|
24
25
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
25
26
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
26
27
|
function fulfill(value) { resume("next", value); }
|
|
@@ -28,7 +29,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
28
29
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
29
30
|
};
|
|
30
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
+
exports.Stream = void 0;
|
|
33
|
+
exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
|
|
32
34
|
const runtime_1 = require("../runtime");
|
|
33
35
|
const DATA_PREFIX = "data:";
|
|
34
36
|
class Stream {
|
|
@@ -48,26 +50,24 @@ class Stream {
|
|
|
48
50
|
}
|
|
49
51
|
iterMessages() {
|
|
50
52
|
return __asyncGenerator(this, arguments, function* iterMessages_1() {
|
|
51
|
-
var e_1,
|
|
53
|
+
var _a, e_1, _b, _c;
|
|
52
54
|
this.controller.signal;
|
|
53
55
|
const stream = readableStreamAsyncIterable(this.stream);
|
|
54
56
|
let buf = "";
|
|
55
57
|
let prefixSeen = false;
|
|
56
58
|
try {
|
|
57
|
-
for (var stream_1 = __asyncValues(stream), stream_1_1; stream_1_1 = yield __await(stream_1.next()),
|
|
58
|
-
|
|
59
|
+
for (var _d = true, stream_1 = __asyncValues(stream), stream_1_1; stream_1_1 = yield __await(stream_1.next()), _a = stream_1_1.done, !_a; _d = true) {
|
|
60
|
+
_c = stream_1_1.value;
|
|
61
|
+
_d = false;
|
|
62
|
+
const chunk = _c;
|
|
59
63
|
buf += this.decodeChunk(chunk);
|
|
60
64
|
let terminatorIndex;
|
|
61
|
-
// Parse the chunk into as many messages as possible
|
|
62
65
|
while ((terminatorIndex = buf.indexOf(this.messageTerminator)) >= 0) {
|
|
63
|
-
// Extract the line from the buffer
|
|
64
66
|
let line = buf.slice(0, terminatorIndex + 1);
|
|
65
|
-
buf = buf.slice(terminatorIndex +
|
|
66
|
-
|
|
67
|
-
if (line.length === 0) {
|
|
67
|
+
buf = buf.slice(terminatorIndex + this.messageTerminator.length);
|
|
68
|
+
if (!line.trim()) {
|
|
68
69
|
continue;
|
|
69
70
|
}
|
|
70
|
-
// Skip the chunk until the prefix is found
|
|
71
71
|
if (!prefixSeen && this.prefix != null) {
|
|
72
72
|
const prefixIndex = line.indexOf(this.prefix);
|
|
73
73
|
if (prefixIndex === -1) {
|
|
@@ -76,11 +76,9 @@ class Stream {
|
|
|
76
76
|
prefixSeen = true;
|
|
77
77
|
line = line.slice(prefixIndex + this.prefix.length);
|
|
78
78
|
}
|
|
79
|
-
// If the stream terminator is present, return
|
|
80
79
|
if (this.streamTerminator != null && line.includes(this.streamTerminator)) {
|
|
81
80
|
return yield __await(void 0);
|
|
82
81
|
}
|
|
83
|
-
// Otherwise, yield message from the prefix to the terminator
|
|
84
82
|
const message = yield __await(this.parse(JSON.parse(line)));
|
|
85
83
|
yield yield __await(message);
|
|
86
84
|
prefixSeen = false;
|
|
@@ -90,7 +88,7 @@ class Stream {
|
|
|
90
88
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
91
89
|
finally {
|
|
92
90
|
try {
|
|
93
|
-
if (
|
|
91
|
+
if (!_d && !_a && (_b = stream_1.return)) yield __await(_b.call(stream_1));
|
|
94
92
|
}
|
|
95
93
|
finally { if (e_1) throw e_1.error; }
|
|
96
94
|
}
|
|
@@ -98,17 +96,19 @@ class Stream {
|
|
|
98
96
|
}
|
|
99
97
|
[Symbol.asyncIterator]() {
|
|
100
98
|
return __asyncGenerator(this, arguments, function* _a() {
|
|
101
|
-
var e_2,
|
|
99
|
+
var _b, e_2, _c, _d;
|
|
102
100
|
try {
|
|
103
|
-
for (var
|
|
104
|
-
|
|
101
|
+
for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
|
|
102
|
+
_d = _g.value;
|
|
103
|
+
_e = false;
|
|
104
|
+
const message = _d;
|
|
105
105
|
yield yield __await(message);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
109
109
|
finally {
|
|
110
110
|
try {
|
|
111
|
-
if (
|
|
111
|
+
if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
|
|
112
112
|
}
|
|
113
113
|
finally { if (e_2) throw e_2.error; }
|
|
114
114
|
}
|
|
@@ -122,7 +122,7 @@ class Stream {
|
|
|
122
122
|
decoded += decoder.decode(chunk);
|
|
123
123
|
}
|
|
124
124
|
// Buffer is present in Node.js environment
|
|
125
|
-
else if (runtime_1.RUNTIME.type === "node" && typeof chunk
|
|
125
|
+
else if (runtime_1.RUNTIME.type === "node" && typeof chunk !== "undefined") {
|
|
126
126
|
decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
127
127
|
}
|
|
128
128
|
return decoded;
|
|
@@ -167,4 +167,3 @@ function readableStreamAsyncIterable(stream) {
|
|
|
167
167
|
},
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setObjectProperty =
|
|
3
|
+
exports.setObjectProperty = setObjectProperty;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the value at path of object. If a portion of path doesn’t exist it’s created. This is
|
|
6
6
|
* inspired by Lodash's set function, but is simplified to accommodate our use case.
|
|
@@ -40,4 +40,3 @@ function setObjectProperty(object, path, value) {
|
|
|
40
40
|
current[lastKey] = value;
|
|
41
41
|
return object;
|
|
42
42
|
}
|
|
43
|
-
exports.setObjectProperty = setObjectProperty;
|
package/core/websocket/ws.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Events from "./events";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
2
|
+
export type Event = Events.Event;
|
|
3
|
+
export type ErrorEvent = Events.ErrorEvent;
|
|
4
|
+
export type CloseEvent = Events.CloseEvent;
|
|
5
|
+
export type Options = {
|
|
6
6
|
WebSocket?: any;
|
|
7
7
|
maxReconnectionDelay?: number;
|
|
8
8
|
minReconnectionDelay?: number;
|
|
@@ -14,9 +14,9 @@ export declare type Options = {
|
|
|
14
14
|
startClosed?: boolean;
|
|
15
15
|
debug?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type UrlProvider = string | (() => string) | (() => Promise<string>);
|
|
18
|
+
export type Message = string | ArrayBuffer | Blob | ArrayBufferView;
|
|
19
|
+
export type ListenersMap = {
|
|
20
20
|
error: Array<Events.WebSocketEventListenerMap["error"]>;
|
|
21
21
|
message: Array<Events.WebSocketEventListenerMap["message"]>;
|
|
22
22
|
open: Array<Events.WebSocketEventListenerMap["open"]>;
|
package/core/websocket/ws.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ReconnectingWebSocket = void 0;
|
|
27
37
|
/** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
|