hume 0.1.0 → 0.2.5
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/Client.d.ts +42 -0
- package/Client.js +291 -0
- package/README.md +126 -1
- package/api/client/index.d.ts +1 -0
- package/api/client/index.js +17 -0
- package/api/client/requests/BaseRequest.d.ts +18 -0
- package/api/client/requests/BaseRequest.js +5 -0
- package/api/client/requests/ListJobsRequest.d.ts +30 -0
- package/api/client/requests/ListJobsRequest.js +5 -0
- package/api/client/requests/index.d.ts +2 -0
- package/api/client/requests/index.js +2 -0
- package/api/index.d.ts +2 -0
- package/api/index.js +18 -0
- package/api/types/Bcp47Tag.d.ts +35 -0
- package/api/types/Bcp47Tag.js +37 -0
- package/api/types/BoundingBox.d.ts +16 -0
- package/api/types/BoundingBox.js +5 -0
- package/api/types/BurstPrediction.d.ts +11 -0
- package/api/types/BurstPrediction.js +5 -0
- package/api/types/BurstResponse.d.ts +10 -0
- package/api/types/BurstResponse.js +5 -0
- package/api/types/Completed.d.ts +15 -0
- package/api/types/Completed.js +5 -0
- package/api/types/DescriptionsScore.d.ts +9 -0
- package/api/types/DescriptionsScore.js +5 -0
- package/api/types/Direction.d.ts +8 -0
- package/api/types/Direction.js +10 -0
- package/api/types/EmotionEmbedding.d.ts +8 -0
- package/api/types/EmotionEmbedding.js +5 -0
- package/api/types/EmotionEmbeddingItem.d.ts +9 -0
- package/api/types/EmotionEmbeddingItem.js +5 -0
- package/api/types/EmotionScore.d.ts +9 -0
- package/api/types/EmotionScore.js +5 -0
- package/api/types/Empty.d.ts +7 -0
- package/api/types/Empty.js +5 -0
- package/api/types/Error_.d.ts +9 -0
- package/api/types/Error_.js +5 -0
- package/api/types/Face.d.ts +18 -0
- package/api/types/Face.js +5 -0
- package/api/types/FaceModelConfig.d.ts +35 -0
- package/api/types/FaceModelConfig.js +5 -0
- package/api/types/FacePrediction.d.ts +19 -0
- package/api/types/FacePrediction.js +5 -0
- package/api/types/FaceResponse.d.ts +10 -0
- package/api/types/FaceResponse.js +5 -0
- package/api/types/FacemeshPrediction.d.ts +8 -0
- package/api/types/FacemeshPrediction.js +5 -0
- package/api/types/FacemeshResponse.d.ts +10 -0
- package/api/types/FacemeshResponse.js +5 -0
- package/api/types/FacsScore.d.ts +9 -0
- package/api/types/FacsScore.js +5 -0
- package/api/types/Failed.d.ts +13 -0
- package/api/types/Failed.js +5 -0
- package/api/types/File_.d.ts +11 -0
- package/api/types/File_.js +5 -0
- package/api/types/Granularity.d.ts +13 -0
- package/api/types/Granularity.js +12 -0
- package/api/types/GroupedPredictionsBurstPrediction.d.ts +9 -0
- package/api/types/GroupedPredictionsBurstPrediction.js +5 -0
- package/api/types/GroupedPredictionsFacePrediction.d.ts +9 -0
- package/api/types/GroupedPredictionsFacePrediction.js +5 -0
- package/api/types/GroupedPredictionsFacemeshPrediction.d.ts +9 -0
- package/api/types/GroupedPredictionsFacemeshPrediction.js +5 -0
- package/api/types/GroupedPredictionsLanguagePrediction.d.ts +9 -0
- package/api/types/GroupedPredictionsLanguagePrediction.js +5 -0
- package/api/types/GroupedPredictionsNerPrediction.d.ts +9 -0
- package/api/types/GroupedPredictionsNerPrediction.js +5 -0
- package/api/types/GroupedPredictionsProsodyPrediction.d.ts +9 -0
- package/api/types/GroupedPredictionsProsodyPrediction.js +5 -0
- package/api/types/InProgress.d.ts +9 -0
- package/api/types/InProgress.js +5 -0
- package/api/types/JobId.d.ts +7 -0
- package/api/types/JobId.js +5 -0
- package/api/types/JobRequest.d.ts +10 -0
- package/api/types/JobRequest.js +5 -0
- package/api/types/Language.d.ts +11 -0
- package/api/types/Language.js +5 -0
- package/api/types/LanguageConfig.d.ts +14 -0
- package/api/types/LanguageConfig.js +5 -0
- package/api/types/LanguagePrediction.d.ts +24 -0
- package/api/types/LanguagePrediction.js +5 -0
- package/api/types/LanguageResponse.d.ts +10 -0
- package/api/types/LanguageResponse.js +5 -0
- package/api/types/ModelConfig.d.ts +46 -0
- package/api/types/ModelConfig.js +5 -0
- package/api/types/ModelResponse.d.ts +16 -0
- package/api/types/ModelResponse.js +5 -0
- package/api/types/Models.d.ts +12 -0
- package/api/types/Models.js +5 -0
- package/api/types/ModelsError.d.ts +9 -0
- package/api/types/ModelsError.js +5 -0
- package/api/types/ModelsInput.d.ts +56 -0
- package/api/types/ModelsInput.js +5 -0
- package/api/types/ModelsPredictions.d.ts +12 -0
- package/api/types/ModelsPredictions.js +5 -0
- package/api/types/ModelsSuccessBurstPredictionsItem.d.ts +8 -0
- package/api/types/ModelsSuccessBurstPredictionsItem.js +5 -0
- package/api/types/ModelsSuccessFacePredictionsItem.d.ts +18 -0
- package/api/types/ModelsSuccessFacePredictionsItem.js +5 -0
- package/api/types/ModelsSuccessFacemeshPredictionsItem.d.ts +7 -0
- package/api/types/ModelsSuccessFacemeshPredictionsItem.js +5 -0
- package/api/types/ModelsSuccessLanguagePredictionsItem.d.ts +12 -0
- package/api/types/ModelsSuccessLanguagePredictionsItem.js +5 -0
- package/api/types/ModelsSuccessProsodyPredictionsItem.d.ts +8 -0
- package/api/types/ModelsSuccessProsodyPredictionsItem.js +5 -0
- package/api/types/ModelsWarning.d.ts +9 -0
- package/api/types/ModelsWarning.js +5 -0
- package/api/types/Ner.d.ts +7 -0
- package/api/types/Ner.js +5 -0
- package/api/types/NerPrediction.d.ts +24 -0
- package/api/types/NerPrediction.js +5 -0
- package/api/types/Null.d.ts +7 -0
- package/api/types/Null.js +5 -0
- package/api/types/PositionInterval.d.ts +12 -0
- package/api/types/PositionInterval.js +5 -0
- package/api/types/Prediction.d.ts +9 -0
- package/api/types/Prediction.js +5 -0
- package/api/types/PredictionsOptionalNullBurstPrediction.d.ts +8 -0
- package/api/types/PredictionsOptionalNullBurstPrediction.js +5 -0
- package/api/types/PredictionsOptionalNullFacePrediction.d.ts +8 -0
- package/api/types/PredictionsOptionalNullFacePrediction.js +5 -0
- package/api/types/PredictionsOptionalNullFacemeshPrediction.d.ts +8 -0
- package/api/types/PredictionsOptionalNullFacemeshPrediction.js +5 -0
- package/api/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.d.ts +8 -0
- package/api/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +5 -0
- package/api/types/PredictionsOptionalTranscriptionMetadataNerPrediction.d.ts +8 -0
- package/api/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +5 -0
- package/api/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.d.ts +8 -0
- package/api/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +5 -0
- package/api/types/Prosody.d.ts +13 -0
- package/api/types/Prosody.js +5 -0
- package/api/types/ProsodyPrediction.d.ts +15 -0
- package/api/types/ProsodyPrediction.js +5 -0
- package/api/types/ProsodyResponse.d.ts +10 -0
- package/api/types/ProsodyResponse.js +5 -0
- package/api/types/Queued.d.ts +7 -0
- package/api/types/Queued.js +5 -0
- package/api/types/Request.d.ts +19 -0
- package/api/types/Request.js +5 -0
- package/api/types/Results.d.ts +8 -0
- package/api/types/Results.js +5 -0
- package/api/types/Sentiment.d.ts +10 -0
- package/api/types/Sentiment.js +5 -0
- package/api/types/SentimentItem.d.ts +9 -0
- package/api/types/SentimentItem.js +5 -0
- package/api/types/SentimentScore.d.ts +9 -0
- package/api/types/SentimentScore.js +5 -0
- package/api/types/SortBy.d.ts +9 -0
- package/api/types/SortBy.js +11 -0
- package/api/types/Source.d.ts +13 -0
- package/api/types/Source.js +5 -0
- package/api/types/SourceFile.d.ts +5 -0
- package/api/types/SourceFile.js +5 -0
- package/api/types/SourceResult.d.ts +10 -0
- package/api/types/SourceResult.js +5 -0
- package/api/types/SourceUrl.d.ts +5 -0
- package/api/types/SourceUrl.js +5 -0
- package/api/types/State.d.ts +19 -0
- package/api/types/State.js +5 -0
- package/api/types/StateCompleted.d.ts +5 -0
- package/api/types/StateCompleted.js +5 -0
- package/api/types/StateFailed.d.ts +5 -0
- package/api/types/StateFailed.js +5 -0
- package/api/types/StateInProgress.d.ts +5 -0
- package/api/types/StateInProgress.js +5 -0
- package/api/types/StateQueued.d.ts +5 -0
- package/api/types/StateQueued.js +5 -0
- package/api/types/Status.d.ts +10 -0
- package/api/types/Status.js +12 -0
- package/api/types/TextPosition.d.ts +13 -0
- package/api/types/TextPosition.js +5 -0
- package/api/types/TimeInterval.d.ts +12 -0
- package/api/types/TimeInterval.js +5 -0
- package/api/types/TimeRange.d.ts +12 -0
- package/api/types/TimeRange.js +5 -0
- package/api/types/Toxicity.d.ts +8 -0
- package/api/types/Toxicity.js +5 -0
- package/api/types/ToxicityItem.d.ts +9 -0
- package/api/types/ToxicityItem.js +5 -0
- package/api/types/ToxicityScore.d.ts +9 -0
- package/api/types/ToxicityScore.js +5 -0
- package/api/types/Transcription.d.ts +7 -0
- package/api/types/Transcription.js +5 -0
- package/api/types/TranscriptionMetadata.d.ts +12 -0
- package/api/types/TranscriptionMetadata.js +5 -0
- package/api/types/Url.d.ts +7 -0
- package/api/types/Url.js +5 -0
- package/api/types/When.d.ts +8 -0
- package/api/types/When.js +10 -0
- package/api/types/Window.d.ts +9 -0
- package/api/types/Window.js +5 -0
- package/api/types/index.d.ts +89 -0
- package/api/types/index.js +105 -0
- package/core/fetcher/APIResponse.d.ts +9 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +38 -0
- package/core/fetcher/Fetcher.js +129 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/index.d.ts +4 -0
- package/core/fetcher/index.js +7 -0
- package/core/index.d.ts +3 -0
- package/core/index.js +32 -0
- package/core/schemas/Schema.d.ts +81 -0
- package/core/schemas/Schema.js +21 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +13 -0
- package/core/schemas/builders/index.js +29 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +36 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +68 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +258 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +106 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +53 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +141 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/core/streaming-fetcher/Stream.d.ts +14 -0
- package/core/streaming-fetcher/Stream.js +75 -0
- package/core/streaming-fetcher/StreamingFetcher.d.ts +24 -0
- package/core/streaming-fetcher/StreamingFetcher.js +58 -0
- package/core/streaming-fetcher/getHeader.d.ts +2 -0
- package/core/streaming-fetcher/getHeader.js +12 -0
- package/core/streaming-fetcher/index.d.ts +4 -0
- package/core/streaming-fetcher/index.js +9 -0
- package/dist/Client.d.ts +42 -0
- package/dist/Client.js +291 -0
- package/dist/api/client/index.d.ts +1 -0
- package/dist/api/client/index.js +17 -0
- package/dist/api/client/requests/BaseRequest.d.ts +18 -0
- package/dist/api/client/requests/BaseRequest.js +5 -0
- package/dist/api/client/requests/ListJobsRequest.d.ts +30 -0
- package/dist/api/client/requests/ListJobsRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +2 -0
- package/dist/api/client/requests/index.js +2 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +18 -0
- package/dist/api/types/Bcp47Tag.d.ts +35 -0
- package/dist/api/types/Bcp47Tag.js +37 -0
- package/dist/api/types/BoundingBox.d.ts +16 -0
- package/dist/api/types/BoundingBox.js +5 -0
- package/dist/api/types/BurstPrediction.d.ts +11 -0
- package/dist/api/types/BurstPrediction.js +5 -0
- package/dist/api/types/BurstResponse.d.ts +10 -0
- package/dist/api/types/BurstResponse.js +5 -0
- package/dist/api/types/Completed.d.ts +15 -0
- package/dist/api/types/Completed.js +5 -0
- package/dist/api/types/DescriptionsScore.d.ts +9 -0
- package/dist/api/types/DescriptionsScore.js +5 -0
- package/dist/api/types/Direction.d.ts +8 -0
- package/dist/api/types/Direction.js +10 -0
- package/dist/api/types/EmotionEmbedding.d.ts +8 -0
- package/dist/api/types/EmotionEmbedding.js +5 -0
- package/dist/api/types/EmotionEmbeddingItem.d.ts +9 -0
- package/dist/api/types/EmotionEmbeddingItem.js +5 -0
- package/dist/api/types/EmotionScore.d.ts +9 -0
- package/dist/api/types/EmotionScore.js +5 -0
- package/dist/api/types/Empty.d.ts +7 -0
- package/dist/api/types/Empty.js +5 -0
- package/dist/api/types/Error_.d.ts +9 -0
- package/dist/api/types/Error_.js +5 -0
- package/dist/api/types/Face.d.ts +18 -0
- package/dist/api/types/Face.js +5 -0
- package/dist/api/types/FaceModelConfig.d.ts +35 -0
- package/dist/api/types/FaceModelConfig.js +5 -0
- package/dist/api/types/FacePrediction.d.ts +19 -0
- package/dist/api/types/FacePrediction.js +5 -0
- package/dist/api/types/FaceResponse.d.ts +10 -0
- package/dist/api/types/FaceResponse.js +5 -0
- package/dist/api/types/FacemeshPrediction.d.ts +8 -0
- package/dist/api/types/FacemeshPrediction.js +5 -0
- package/dist/api/types/FacemeshResponse.d.ts +10 -0
- package/dist/api/types/FacemeshResponse.js +5 -0
- package/dist/api/types/FacsScore.d.ts +9 -0
- package/dist/api/types/FacsScore.js +5 -0
- package/dist/api/types/Failed.d.ts +13 -0
- package/dist/api/types/Failed.js +5 -0
- package/dist/api/types/File_.d.ts +11 -0
- package/dist/api/types/File_.js +5 -0
- package/dist/api/types/Granularity.d.ts +13 -0
- package/dist/api/types/Granularity.js +12 -0
- package/dist/api/types/GroupedPredictionsBurstPrediction.d.ts +9 -0
- package/dist/api/types/GroupedPredictionsBurstPrediction.js +5 -0
- package/dist/api/types/GroupedPredictionsFacePrediction.d.ts +9 -0
- package/dist/api/types/GroupedPredictionsFacePrediction.js +5 -0
- package/dist/api/types/GroupedPredictionsFacemeshPrediction.d.ts +9 -0
- package/dist/api/types/GroupedPredictionsFacemeshPrediction.js +5 -0
- package/dist/api/types/GroupedPredictionsLanguagePrediction.d.ts +9 -0
- package/dist/api/types/GroupedPredictionsLanguagePrediction.js +5 -0
- package/dist/api/types/GroupedPredictionsNerPrediction.d.ts +9 -0
- package/dist/api/types/GroupedPredictionsNerPrediction.js +5 -0
- package/dist/api/types/GroupedPredictionsProsodyPrediction.d.ts +9 -0
- package/dist/api/types/GroupedPredictionsProsodyPrediction.js +5 -0
- package/dist/api/types/InProgress.d.ts +9 -0
- package/dist/api/types/InProgress.js +5 -0
- package/dist/api/types/JobId.d.ts +7 -0
- package/dist/api/types/JobId.js +5 -0
- package/dist/api/types/JobRequest.d.ts +10 -0
- package/dist/api/types/JobRequest.js +5 -0
- package/dist/api/types/Language.d.ts +11 -0
- package/dist/api/types/Language.js +5 -0
- package/dist/api/types/LanguageConfig.d.ts +14 -0
- package/dist/api/types/LanguageConfig.js +5 -0
- package/dist/api/types/LanguagePrediction.d.ts +24 -0
- package/dist/api/types/LanguagePrediction.js +5 -0
- package/dist/api/types/LanguageResponse.d.ts +10 -0
- package/dist/api/types/LanguageResponse.js +5 -0
- package/dist/api/types/ModelConfig.d.ts +46 -0
- package/dist/api/types/ModelConfig.js +5 -0
- package/dist/api/types/ModelResponse.d.ts +16 -0
- package/dist/api/types/ModelResponse.js +5 -0
- package/dist/api/types/Models.d.ts +12 -0
- package/dist/api/types/Models.js +5 -0
- package/dist/api/types/ModelsError.d.ts +9 -0
- package/dist/api/types/ModelsError.js +5 -0
- package/dist/api/types/ModelsInput.d.ts +56 -0
- package/dist/api/types/ModelsInput.js +5 -0
- package/dist/api/types/ModelsPredictions.d.ts +12 -0
- package/dist/api/types/ModelsPredictions.js +5 -0
- package/dist/api/types/ModelsSuccessBurstPredictionsItem.d.ts +8 -0
- package/dist/api/types/ModelsSuccessBurstPredictionsItem.js +5 -0
- package/dist/api/types/ModelsSuccessFacePredictionsItem.d.ts +18 -0
- package/dist/api/types/ModelsSuccessFacePredictionsItem.js +5 -0
- package/dist/api/types/ModelsSuccessFacemeshPredictionsItem.d.ts +7 -0
- package/dist/api/types/ModelsSuccessFacemeshPredictionsItem.js +5 -0
- package/dist/api/types/ModelsSuccessLanguagePredictionsItem.d.ts +12 -0
- package/dist/api/types/ModelsSuccessLanguagePredictionsItem.js +5 -0
- package/dist/api/types/ModelsSuccessProsodyPredictionsItem.d.ts +8 -0
- package/dist/api/types/ModelsSuccessProsodyPredictionsItem.js +5 -0
- package/dist/api/types/ModelsWarning.d.ts +9 -0
- package/dist/api/types/ModelsWarning.js +5 -0
- package/dist/api/types/Ner.d.ts +7 -0
- package/dist/api/types/Ner.js +5 -0
- package/dist/api/types/NerPrediction.d.ts +24 -0
- package/dist/api/types/NerPrediction.js +5 -0
- package/dist/api/types/Null.d.ts +7 -0
- package/dist/api/types/Null.js +5 -0
- package/dist/api/types/PositionInterval.d.ts +12 -0
- package/dist/api/types/PositionInterval.js +5 -0
- package/dist/api/types/Prediction.d.ts +9 -0
- package/dist/api/types/Prediction.js +5 -0
- package/dist/api/types/PredictionsOptionalNullBurstPrediction.d.ts +8 -0
- package/dist/api/types/PredictionsOptionalNullBurstPrediction.js +5 -0
- package/dist/api/types/PredictionsOptionalNullFacePrediction.d.ts +8 -0
- package/dist/api/types/PredictionsOptionalNullFacePrediction.js +5 -0
- package/dist/api/types/PredictionsOptionalNullFacemeshPrediction.d.ts +8 -0
- package/dist/api/types/PredictionsOptionalNullFacemeshPrediction.js +5 -0
- package/dist/api/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.d.ts +8 -0
- package/dist/api/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +5 -0
- package/dist/api/types/PredictionsOptionalTranscriptionMetadataNerPrediction.d.ts +8 -0
- package/dist/api/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +5 -0
- package/dist/api/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.d.ts +8 -0
- package/dist/api/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +5 -0
- package/dist/api/types/Prosody.d.ts +13 -0
- package/dist/api/types/Prosody.js +5 -0
- package/dist/api/types/ProsodyPrediction.d.ts +15 -0
- package/dist/api/types/ProsodyPrediction.js +5 -0
- package/dist/api/types/ProsodyResponse.d.ts +10 -0
- package/dist/api/types/ProsodyResponse.js +5 -0
- package/dist/api/types/Queued.d.ts +7 -0
- package/dist/api/types/Queued.js +5 -0
- package/dist/api/types/Request.d.ts +19 -0
- package/dist/api/types/Request.js +5 -0
- package/dist/api/types/Results.d.ts +8 -0
- package/dist/api/types/Results.js +5 -0
- package/dist/api/types/Sentiment.d.ts +10 -0
- package/dist/api/types/Sentiment.js +5 -0
- package/dist/api/types/SentimentItem.d.ts +9 -0
- package/dist/api/types/SentimentItem.js +5 -0
- package/dist/api/types/SentimentScore.d.ts +9 -0
- package/dist/api/types/SentimentScore.js +5 -0
- package/dist/api/types/SortBy.d.ts +9 -0
- package/dist/api/types/SortBy.js +11 -0
- package/dist/api/types/Source.d.ts +13 -0
- package/dist/api/types/Source.js +5 -0
- package/dist/api/types/SourceFile.d.ts +5 -0
- package/dist/api/types/SourceFile.js +5 -0
- package/dist/api/types/SourceResult.d.ts +10 -0
- package/dist/api/types/SourceResult.js +5 -0
- package/dist/api/types/SourceUrl.d.ts +5 -0
- package/dist/api/types/SourceUrl.js +5 -0
- package/dist/api/types/State.d.ts +19 -0
- package/dist/api/types/State.js +5 -0
- package/dist/api/types/StateCompleted.d.ts +5 -0
- package/dist/api/types/StateCompleted.js +5 -0
- package/dist/api/types/StateFailed.d.ts +5 -0
- package/dist/api/types/StateFailed.js +5 -0
- package/dist/api/types/StateInProgress.d.ts +5 -0
- package/dist/api/types/StateInProgress.js +5 -0
- package/dist/api/types/StateQueued.d.ts +5 -0
- package/dist/api/types/StateQueued.js +5 -0
- package/dist/api/types/Status.d.ts +10 -0
- package/dist/api/types/Status.js +12 -0
- package/dist/api/types/TextPosition.d.ts +13 -0
- package/dist/api/types/TextPosition.js +5 -0
- package/dist/api/types/TimeInterval.d.ts +12 -0
- package/dist/api/types/TimeInterval.js +5 -0
- package/dist/api/types/TimeRange.d.ts +12 -0
- package/dist/api/types/TimeRange.js +5 -0
- package/dist/api/types/Toxicity.d.ts +8 -0
- package/dist/api/types/Toxicity.js +5 -0
- package/dist/api/types/ToxicityItem.d.ts +9 -0
- package/dist/api/types/ToxicityItem.js +5 -0
- package/dist/api/types/ToxicityScore.d.ts +9 -0
- package/dist/api/types/ToxicityScore.js +5 -0
- package/dist/api/types/Transcription.d.ts +7 -0
- package/dist/api/types/Transcription.js +5 -0
- package/dist/api/types/TranscriptionMetadata.d.ts +12 -0
- package/dist/api/types/TranscriptionMetadata.js +5 -0
- package/dist/api/types/Url.d.ts +7 -0
- package/dist/api/types/Url.js +5 -0
- package/dist/api/types/When.d.ts +8 -0
- package/dist/api/types/When.js +10 -0
- package/dist/api/types/Window.d.ts +9 -0
- package/dist/api/types/Window.js +5 -0
- package/dist/api/types/index.d.ts +89 -0
- package/dist/api/types/index.js +105 -0
- package/dist/core/fetcher/APIResponse.d.ts +9 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +38 -0
- package/dist/core/fetcher/Fetcher.js +129 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/index.d.ts +4 -0
- package/dist/core/fetcher/index.js +7 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +32 -0
- package/dist/core/schemas/Schema.d.ts +81 -0
- package/dist/core/schemas/Schema.js +21 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +13 -0
- package/dist/core/schemas/builders/index.js +29 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +36 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +68 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +258 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +106 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +53 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +141 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/core/streaming-fetcher/Stream.d.ts +14 -0
- package/dist/core/streaming-fetcher/Stream.js +75 -0
- package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +24 -0
- package/dist/core/streaming-fetcher/StreamingFetcher.js +58 -0
- package/dist/core/streaming-fetcher/getHeader.d.ts +2 -0
- package/dist/core/streaming-fetcher/getHeader.js +12 -0
- package/dist/core/streaming-fetcher/index.d.ts +4 -0
- package/dist/core/streaming-fetcher/index.js +9 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/HumeError.d.ts +12 -0
- package/dist/errors/HumeError.js +32 -0
- package/dist/errors/HumeTimeoutError.d.ts +6 -0
- package/dist/errors/HumeTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +38 -0
- package/dist/serialization/client/getJobPredictions.d.ts +10 -0
- package/dist/serialization/client/getJobPredictions.js +40 -0
- package/dist/serialization/client/index.d.ts +3 -0
- package/dist/serialization/client/index.js +32 -0
- package/dist/serialization/client/listJobs.d.ts +10 -0
- package/dist/serialization/client/listJobs.js +40 -0
- package/dist/serialization/client/requests/BaseRequest.d.ts +16 -0
- package/dist/serialization/client/requests/BaseRequest.js +46 -0
- package/dist/serialization/client/requests/index.d.ts +1 -0
- package/dist/serialization/client/requests/index.js +5 -0
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/types/Bcp47Tag.d.ts +10 -0
- package/dist/serialization/types/Bcp47Tag.js +61 -0
- package/dist/serialization/types/BoundingBox.d.ts +15 -0
- package/dist/serialization/types/BoundingBox.js +36 -0
- package/dist/serialization/types/BurstPrediction.d.ts +14 -0
- package/dist/serialization/types/BurstPrediction.js +44 -0
- package/dist/serialization/types/BurstResponse.d.ts +12 -0
- package/dist/serialization/types/BurstResponse.js +44 -0
- package/dist/serialization/types/Completed.d.ts +16 -0
- package/dist/serialization/types/Completed.js +37 -0
- package/dist/serialization/types/DescriptionsScore.d.ts +13 -0
- package/dist/serialization/types/DescriptionsScore.js +34 -0
- package/dist/serialization/types/Direction.d.ts +10 -0
- package/dist/serialization/types/Direction.js +31 -0
- package/dist/serialization/types/EmotionEmbedding.d.ts +10 -0
- package/dist/serialization/types/EmotionEmbedding.js +40 -0
- package/dist/serialization/types/EmotionEmbeddingItem.d.ts +13 -0
- package/dist/serialization/types/EmotionEmbeddingItem.js +34 -0
- package/dist/serialization/types/EmotionScore.d.ts +13 -0
- package/dist/serialization/types/EmotionScore.js +34 -0
- package/dist/serialization/types/Empty.d.ts +10 -0
- package/dist/serialization/types/Empty.js +31 -0
- package/dist/serialization/types/Error_.d.ts +13 -0
- package/dist/serialization/types/Error_.js +34 -0
- package/dist/serialization/types/Face.d.ts +18 -0
- package/dist/serialization/types/Face.js +48 -0
- package/dist/serialization/types/FaceModelConfig.d.ts +17 -0
- package/dist/serialization/types/FaceModelConfig.js +38 -0
- package/dist/serialization/types/FacePrediction.d.ts +18 -0
- package/dist/serialization/types/FacePrediction.js +52 -0
- package/dist/serialization/types/FaceResponse.d.ts +12 -0
- package/dist/serialization/types/FaceResponse.js +44 -0
- package/dist/serialization/types/FacemeshPrediction.d.ts +12 -0
- package/dist/serialization/types/FacemeshPrediction.js +42 -0
- package/dist/serialization/types/FacemeshResponse.d.ts +12 -0
- package/dist/serialization/types/FacemeshResponse.js +44 -0
- package/dist/serialization/types/FacsScore.d.ts +13 -0
- package/dist/serialization/types/FacsScore.js +34 -0
- package/dist/serialization/types/Failed.d.ts +15 -0
- package/dist/serialization/types/Failed.js +36 -0
- package/dist/serialization/types/File_.d.ts +14 -0
- package/dist/serialization/types/File_.js +35 -0
- package/dist/serialization/types/Granularity.d.ts +10 -0
- package/dist/serialization/types/Granularity.js +31 -0
- package/dist/serialization/types/GroupedPredictionsBurstPrediction.d.ts +13 -0
- package/dist/serialization/types/GroupedPredictionsBurstPrediction.js +43 -0
- package/dist/serialization/types/GroupedPredictionsFacePrediction.d.ts +13 -0
- package/dist/serialization/types/GroupedPredictionsFacePrediction.js +43 -0
- package/dist/serialization/types/GroupedPredictionsFacemeshPrediction.d.ts +13 -0
- package/dist/serialization/types/GroupedPredictionsFacemeshPrediction.js +43 -0
- package/dist/serialization/types/GroupedPredictionsLanguagePrediction.d.ts +13 -0
- package/dist/serialization/types/GroupedPredictionsLanguagePrediction.js +43 -0
- package/dist/serialization/types/GroupedPredictionsNerPrediction.d.ts +13 -0
- package/dist/serialization/types/GroupedPredictionsNerPrediction.js +43 -0
- package/dist/serialization/types/GroupedPredictionsProsodyPrediction.d.ts +13 -0
- package/dist/serialization/types/GroupedPredictionsProsodyPrediction.js +43 -0
- package/dist/serialization/types/InProgress.d.ts +13 -0
- package/dist/serialization/types/InProgress.js +34 -0
- package/dist/serialization/types/JobId.d.ts +12 -0
- package/dist/serialization/types/JobId.js +33 -0
- package/dist/serialization/types/JobRequest.d.ts +15 -0
- package/dist/serialization/types/JobRequest.js +45 -0
- package/dist/serialization/types/Language.d.ts +15 -0
- package/dist/serialization/types/Language.js +45 -0
- package/dist/serialization/types/LanguageConfig.d.ts +14 -0
- package/dist/serialization/types/LanguageConfig.js +35 -0
- package/dist/serialization/types/LanguagePrediction.d.ts +19 -0
- package/dist/serialization/types/LanguagePrediction.js +53 -0
- package/dist/serialization/types/LanguageResponse.d.ts +12 -0
- package/dist/serialization/types/LanguageResponse.js +44 -0
- package/dist/serialization/types/ModelConfig.d.ts +16 -0
- package/dist/serialization/types/ModelConfig.js +46 -0
- package/dist/serialization/types/ModelResponse.d.ts +16 -0
- package/dist/serialization/types/ModelResponse.js +46 -0
- package/dist/serialization/types/Models.d.ts +17 -0
- package/dist/serialization/types/Models.js +47 -0
- package/dist/serialization/types/ModelsError.d.ts +13 -0
- package/dist/serialization/types/ModelsError.js +34 -0
- package/dist/serialization/types/ModelsInput.d.ts +18 -0
- package/dist/serialization/types/ModelsInput.js +48 -0
- package/dist/serialization/types/ModelsPredictions.d.ts +17 -0
- package/dist/serialization/types/ModelsPredictions.js +59 -0
- package/dist/serialization/types/ModelsSuccessBurstPredictionsItem.d.ts +13 -0
- package/dist/serialization/types/ModelsSuccessBurstPredictionsItem.js +43 -0
- package/dist/serialization/types/ModelsSuccessFacePredictionsItem.d.ts +19 -0
- package/dist/serialization/types/ModelsSuccessFacePredictionsItem.js +49 -0
- package/dist/serialization/types/ModelsSuccessFacemeshPredictionsItem.d.ts +12 -0
- package/dist/serialization/types/ModelsSuccessFacemeshPredictionsItem.js +42 -0
- package/dist/serialization/types/ModelsSuccessLanguagePredictionsItem.d.ts +16 -0
- package/dist/serialization/types/ModelsSuccessLanguagePredictionsItem.js +46 -0
- package/dist/serialization/types/ModelsSuccessProsodyPredictionsItem.d.ts +13 -0
- package/dist/serialization/types/ModelsSuccessProsodyPredictionsItem.js +43 -0
- package/dist/serialization/types/ModelsWarning.d.ts +13 -0
- package/dist/serialization/types/ModelsWarning.js +34 -0
- package/dist/serialization/types/Ner.d.ts +12 -0
- package/dist/serialization/types/Ner.js +33 -0
- package/dist/serialization/types/NerPrediction.d.ts +21 -0
- package/dist/serialization/types/NerPrediction.js +51 -0
- package/dist/serialization/types/Null.d.ts +10 -0
- package/dist/serialization/types/Null.js +31 -0
- package/dist/serialization/types/PositionInterval.d.ts +13 -0
- package/dist/serialization/types/PositionInterval.js +34 -0
- package/dist/serialization/types/Prediction.d.ts +13 -0
- package/dist/serialization/types/Prediction.js +43 -0
- package/dist/serialization/types/PredictionsOptionalNullBurstPrediction.d.ts +13 -0
- package/dist/serialization/types/PredictionsOptionalNullBurstPrediction.js +43 -0
- package/dist/serialization/types/PredictionsOptionalNullFacePrediction.d.ts +13 -0
- package/dist/serialization/types/PredictionsOptionalNullFacePrediction.js +43 -0
- package/dist/serialization/types/PredictionsOptionalNullFacemeshPrediction.d.ts +13 -0
- package/dist/serialization/types/PredictionsOptionalNullFacemeshPrediction.js +43 -0
- package/dist/serialization/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.d.ts +13 -0
- package/dist/serialization/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +43 -0
- package/dist/serialization/types/PredictionsOptionalTranscriptionMetadataNerPrediction.d.ts +13 -0
- package/dist/serialization/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +43 -0
- package/dist/serialization/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.d.ts +13 -0
- package/dist/serialization/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +43 -0
- package/dist/serialization/types/Prosody.d.ts +14 -0
- package/dist/serialization/types/Prosody.js +44 -0
- package/dist/serialization/types/ProsodyPrediction.d.ts +16 -0
- package/dist/serialization/types/ProsodyPrediction.js +46 -0
- package/dist/serialization/types/ProsodyResponse.d.ts +12 -0
- package/dist/serialization/types/ProsodyResponse.js +44 -0
- package/dist/serialization/types/Queued.d.ts +12 -0
- package/dist/serialization/types/Queued.js +33 -0
- package/dist/serialization/types/Request.d.ts +17 -0
- package/dist/serialization/types/Request.js +47 -0
- package/dist/serialization/types/Results.d.ts +13 -0
- package/dist/serialization/types/Results.js +43 -0
- package/dist/serialization/types/Sentiment.d.ts +10 -0
- package/dist/serialization/types/Sentiment.js +40 -0
- package/dist/serialization/types/SentimentItem.d.ts +13 -0
- package/dist/serialization/types/SentimentItem.js +34 -0
- package/dist/serialization/types/SentimentScore.d.ts +13 -0
- package/dist/serialization/types/SentimentScore.js +34 -0
- package/dist/serialization/types/SortBy.d.ts +10 -0
- package/dist/serialization/types/SortBy.js +35 -0
- package/dist/serialization/types/Source.d.ts +16 -0
- package/dist/serialization/types/Source.js +48 -0
- package/dist/serialization/types/SourceFile.d.ts +10 -0
- package/dist/serialization/types/SourceFile.js +40 -0
- package/dist/serialization/types/SourceResult.d.ts +14 -0
- package/dist/serialization/types/SourceResult.js +44 -0
- package/dist/serialization/types/SourceUrl.d.ts +10 -0
- package/dist/serialization/types/SourceUrl.js +40 -0
- package/dist/serialization/types/State.d.ts +22 -0
- package/dist/serialization/types/State.js +50 -0
- package/dist/serialization/types/StateCompleted.d.ts +10 -0
- package/dist/serialization/types/StateCompleted.js +40 -0
- package/dist/serialization/types/StateFailed.d.ts +10 -0
- package/dist/serialization/types/StateFailed.js +40 -0
- package/dist/serialization/types/StateInProgress.d.ts +10 -0
- package/dist/serialization/types/StateInProgress.js +40 -0
- package/dist/serialization/types/StateQueued.d.ts +10 -0
- package/dist/serialization/types/StateQueued.js +40 -0
- package/dist/serialization/types/Status.d.ts +10 -0
- package/dist/serialization/types/Status.js +36 -0
- package/dist/serialization/types/TextPosition.d.ts +13 -0
- package/dist/serialization/types/TextPosition.js +34 -0
- package/dist/serialization/types/TimeInterval.d.ts +13 -0
- package/dist/serialization/types/TimeInterval.js +34 -0
- package/dist/serialization/types/TimeRange.d.ts +13 -0
- package/dist/serialization/types/TimeRange.js +34 -0
- package/dist/serialization/types/Toxicity.d.ts +10 -0
- package/dist/serialization/types/Toxicity.js +40 -0
- package/dist/serialization/types/ToxicityItem.d.ts +13 -0
- package/dist/serialization/types/ToxicityItem.js +34 -0
- package/dist/serialization/types/ToxicityScore.d.ts +13 -0
- package/dist/serialization/types/ToxicityScore.js +34 -0
- package/dist/serialization/types/Transcription.d.ts +12 -0
- package/dist/serialization/types/Transcription.js +42 -0
- package/dist/serialization/types/TranscriptionMetadata.d.ts +13 -0
- package/dist/serialization/types/TranscriptionMetadata.js +43 -0
- package/dist/serialization/types/Url.d.ts +12 -0
- package/dist/serialization/types/Url.js +33 -0
- package/dist/serialization/types/When.d.ts +10 -0
- package/dist/serialization/types/When.js +34 -0
- package/dist/serialization/types/Window.d.ts +13 -0
- package/dist/serialization/types/Window.js +34 -0
- package/dist/serialization/types/index.d.ts +89 -0
- package/dist/serialization/types/index.js +105 -0
- package/dist/wrapper/HumeBatchClient.d.ts +6 -0
- package/dist/wrapper/HumeBatchClient.js +26 -0
- package/dist/wrapper/HumeStreamingClient.d.ts +23 -0
- package/dist/wrapper/HumeStreamingClient.js +125 -0
- package/dist/wrapper/Job.d.ts +8 -0
- package/dist/wrapper/Job.js +87 -0
- package/dist/wrapper/StreamSocket.d.ts +83 -0
- package/dist/wrapper/StreamSocket.js +114 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/HumeError.d.ts +12 -0
- package/errors/HumeError.js +32 -0
- package/errors/HumeTimeoutError.d.ts +6 -0
- package/errors/HumeTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +6 -0
- package/index.js +38 -0
- package/package.json +26 -41
- package/serialization/client/getJobPredictions.d.ts +10 -0
- package/serialization/client/getJobPredictions.js +40 -0
- package/serialization/client/index.d.ts +3 -0
- package/serialization/client/index.js +32 -0
- package/serialization/client/listJobs.d.ts +10 -0
- package/serialization/client/listJobs.js +40 -0
- package/serialization/client/requests/BaseRequest.d.ts +16 -0
- package/serialization/client/requests/BaseRequest.js +46 -0
- package/serialization/client/requests/index.d.ts +1 -0
- package/serialization/client/requests/index.js +5 -0
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/types/Bcp47Tag.d.ts +10 -0
- package/serialization/types/Bcp47Tag.js +61 -0
- package/serialization/types/BoundingBox.d.ts +15 -0
- package/serialization/types/BoundingBox.js +36 -0
- package/serialization/types/BurstPrediction.d.ts +14 -0
- package/serialization/types/BurstPrediction.js +44 -0
- package/serialization/types/BurstResponse.d.ts +12 -0
- package/serialization/types/BurstResponse.js +44 -0
- package/serialization/types/Completed.d.ts +16 -0
- package/serialization/types/Completed.js +37 -0
- package/serialization/types/DescriptionsScore.d.ts +13 -0
- package/serialization/types/DescriptionsScore.js +34 -0
- package/serialization/types/Direction.d.ts +10 -0
- package/serialization/types/Direction.js +31 -0
- package/serialization/types/EmotionEmbedding.d.ts +10 -0
- package/serialization/types/EmotionEmbedding.js +40 -0
- package/serialization/types/EmotionEmbeddingItem.d.ts +13 -0
- package/serialization/types/EmotionEmbeddingItem.js +34 -0
- package/serialization/types/EmotionScore.d.ts +13 -0
- package/serialization/types/EmotionScore.js +34 -0
- package/serialization/types/Empty.d.ts +10 -0
- package/serialization/types/Empty.js +31 -0
- package/serialization/types/Error_.d.ts +13 -0
- package/serialization/types/Error_.js +34 -0
- package/serialization/types/Face.d.ts +18 -0
- package/serialization/types/Face.js +48 -0
- package/serialization/types/FaceModelConfig.d.ts +17 -0
- package/serialization/types/FaceModelConfig.js +38 -0
- package/serialization/types/FacePrediction.d.ts +18 -0
- package/serialization/types/FacePrediction.js +52 -0
- package/serialization/types/FaceResponse.d.ts +12 -0
- package/serialization/types/FaceResponse.js +44 -0
- package/serialization/types/FacemeshPrediction.d.ts +12 -0
- package/serialization/types/FacemeshPrediction.js +42 -0
- package/serialization/types/FacemeshResponse.d.ts +12 -0
- package/serialization/types/FacemeshResponse.js +44 -0
- package/serialization/types/FacsScore.d.ts +13 -0
- package/serialization/types/FacsScore.js +34 -0
- package/serialization/types/Failed.d.ts +15 -0
- package/serialization/types/Failed.js +36 -0
- package/serialization/types/File_.d.ts +14 -0
- package/serialization/types/File_.js +35 -0
- package/serialization/types/Granularity.d.ts +10 -0
- package/serialization/types/Granularity.js +31 -0
- package/serialization/types/GroupedPredictionsBurstPrediction.d.ts +13 -0
- package/serialization/types/GroupedPredictionsBurstPrediction.js +43 -0
- package/serialization/types/GroupedPredictionsFacePrediction.d.ts +13 -0
- package/serialization/types/GroupedPredictionsFacePrediction.js +43 -0
- package/serialization/types/GroupedPredictionsFacemeshPrediction.d.ts +13 -0
- package/serialization/types/GroupedPredictionsFacemeshPrediction.js +43 -0
- package/serialization/types/GroupedPredictionsLanguagePrediction.d.ts +13 -0
- package/serialization/types/GroupedPredictionsLanguagePrediction.js +43 -0
- package/serialization/types/GroupedPredictionsNerPrediction.d.ts +13 -0
- package/serialization/types/GroupedPredictionsNerPrediction.js +43 -0
- package/serialization/types/GroupedPredictionsProsodyPrediction.d.ts +13 -0
- package/serialization/types/GroupedPredictionsProsodyPrediction.js +43 -0
- package/serialization/types/InProgress.d.ts +13 -0
- package/serialization/types/InProgress.js +34 -0
- package/serialization/types/JobId.d.ts +12 -0
- package/serialization/types/JobId.js +33 -0
- package/serialization/types/JobRequest.d.ts +15 -0
- package/serialization/types/JobRequest.js +45 -0
- package/serialization/types/Language.d.ts +15 -0
- package/serialization/types/Language.js +45 -0
- package/serialization/types/LanguageConfig.d.ts +14 -0
- package/serialization/types/LanguageConfig.js +35 -0
- package/serialization/types/LanguagePrediction.d.ts +19 -0
- package/serialization/types/LanguagePrediction.js +53 -0
- package/serialization/types/LanguageResponse.d.ts +12 -0
- package/serialization/types/LanguageResponse.js +44 -0
- package/serialization/types/ModelConfig.d.ts +16 -0
- package/serialization/types/ModelConfig.js +46 -0
- package/serialization/types/ModelResponse.d.ts +16 -0
- package/serialization/types/ModelResponse.js +46 -0
- package/serialization/types/Models.d.ts +17 -0
- package/serialization/types/Models.js +47 -0
- package/serialization/types/ModelsError.d.ts +13 -0
- package/serialization/types/ModelsError.js +34 -0
- package/serialization/types/ModelsInput.d.ts +18 -0
- package/serialization/types/ModelsInput.js +48 -0
- package/serialization/types/ModelsPredictions.d.ts +17 -0
- package/serialization/types/ModelsPredictions.js +59 -0
- package/serialization/types/ModelsSuccessBurstPredictionsItem.d.ts +13 -0
- package/serialization/types/ModelsSuccessBurstPredictionsItem.js +43 -0
- package/serialization/types/ModelsSuccessFacePredictionsItem.d.ts +19 -0
- package/serialization/types/ModelsSuccessFacePredictionsItem.js +49 -0
- package/serialization/types/ModelsSuccessFacemeshPredictionsItem.d.ts +12 -0
- package/serialization/types/ModelsSuccessFacemeshPredictionsItem.js +42 -0
- package/serialization/types/ModelsSuccessLanguagePredictionsItem.d.ts +16 -0
- package/serialization/types/ModelsSuccessLanguagePredictionsItem.js +46 -0
- package/serialization/types/ModelsSuccessProsodyPredictionsItem.d.ts +13 -0
- package/serialization/types/ModelsSuccessProsodyPredictionsItem.js +43 -0
- package/serialization/types/ModelsWarning.d.ts +13 -0
- package/serialization/types/ModelsWarning.js +34 -0
- package/serialization/types/Ner.d.ts +12 -0
- package/serialization/types/Ner.js +33 -0
- package/serialization/types/NerPrediction.d.ts +21 -0
- package/serialization/types/NerPrediction.js +51 -0
- package/serialization/types/Null.d.ts +10 -0
- package/serialization/types/Null.js +31 -0
- package/serialization/types/PositionInterval.d.ts +13 -0
- package/serialization/types/PositionInterval.js +34 -0
- package/serialization/types/Prediction.d.ts +13 -0
- package/serialization/types/Prediction.js +43 -0
- package/serialization/types/PredictionsOptionalNullBurstPrediction.d.ts +13 -0
- package/serialization/types/PredictionsOptionalNullBurstPrediction.js +43 -0
- package/serialization/types/PredictionsOptionalNullFacePrediction.d.ts +13 -0
- package/serialization/types/PredictionsOptionalNullFacePrediction.js +43 -0
- package/serialization/types/PredictionsOptionalNullFacemeshPrediction.d.ts +13 -0
- package/serialization/types/PredictionsOptionalNullFacemeshPrediction.js +43 -0
- package/serialization/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.d.ts +13 -0
- package/serialization/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +43 -0
- package/serialization/types/PredictionsOptionalTranscriptionMetadataNerPrediction.d.ts +13 -0
- package/serialization/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +43 -0
- package/serialization/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.d.ts +13 -0
- package/serialization/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +43 -0
- package/serialization/types/Prosody.d.ts +14 -0
- package/serialization/types/Prosody.js +44 -0
- package/serialization/types/ProsodyPrediction.d.ts +16 -0
- package/serialization/types/ProsodyPrediction.js +46 -0
- package/serialization/types/ProsodyResponse.d.ts +12 -0
- package/serialization/types/ProsodyResponse.js +44 -0
- package/serialization/types/Queued.d.ts +12 -0
- package/serialization/types/Queued.js +33 -0
- package/serialization/types/Request.d.ts +17 -0
- package/serialization/types/Request.js +47 -0
- package/serialization/types/Results.d.ts +13 -0
- package/serialization/types/Results.js +43 -0
- package/serialization/types/Sentiment.d.ts +10 -0
- package/serialization/types/Sentiment.js +40 -0
- package/serialization/types/SentimentItem.d.ts +13 -0
- package/serialization/types/SentimentItem.js +34 -0
- package/serialization/types/SentimentScore.d.ts +13 -0
- package/serialization/types/SentimentScore.js +34 -0
- package/serialization/types/SortBy.d.ts +10 -0
- package/serialization/types/SortBy.js +35 -0
- package/serialization/types/Source.d.ts +16 -0
- package/serialization/types/Source.js +48 -0
- package/serialization/types/SourceFile.d.ts +10 -0
- package/serialization/types/SourceFile.js +40 -0
- package/serialization/types/SourceResult.d.ts +14 -0
- package/serialization/types/SourceResult.js +44 -0
- package/serialization/types/SourceUrl.d.ts +10 -0
- package/serialization/types/SourceUrl.js +40 -0
- package/serialization/types/State.d.ts +22 -0
- package/serialization/types/State.js +50 -0
- package/serialization/types/StateCompleted.d.ts +10 -0
- package/serialization/types/StateCompleted.js +40 -0
- package/serialization/types/StateFailed.d.ts +10 -0
- package/serialization/types/StateFailed.js +40 -0
- package/serialization/types/StateInProgress.d.ts +10 -0
- package/serialization/types/StateInProgress.js +40 -0
- package/serialization/types/StateQueued.d.ts +10 -0
- package/serialization/types/StateQueued.js +40 -0
- package/serialization/types/Status.d.ts +10 -0
- package/serialization/types/Status.js +36 -0
- package/serialization/types/TextPosition.d.ts +13 -0
- package/serialization/types/TextPosition.js +34 -0
- package/serialization/types/TimeInterval.d.ts +13 -0
- package/serialization/types/TimeInterval.js +34 -0
- package/serialization/types/TimeRange.d.ts +13 -0
- package/serialization/types/TimeRange.js +34 -0
- package/serialization/types/Toxicity.d.ts +10 -0
- package/serialization/types/Toxicity.js +40 -0
- package/serialization/types/ToxicityItem.d.ts +13 -0
- package/serialization/types/ToxicityItem.js +34 -0
- package/serialization/types/ToxicityScore.d.ts +13 -0
- package/serialization/types/ToxicityScore.js +34 -0
- package/serialization/types/Transcription.d.ts +12 -0
- package/serialization/types/Transcription.js +42 -0
- package/serialization/types/TranscriptionMetadata.d.ts +13 -0
- package/serialization/types/TranscriptionMetadata.js +43 -0
- package/serialization/types/Url.d.ts +12 -0
- package/serialization/types/Url.js +33 -0
- package/serialization/types/When.d.ts +10 -0
- package/serialization/types/When.js +34 -0
- package/serialization/types/Window.d.ts +13 -0
- package/serialization/types/Window.js +34 -0
- package/serialization/types/index.d.ts +89 -0
- package/serialization/types/index.js +105 -0
- package/wrapper/HumeBatchClient.d.ts +6 -0
- package/wrapper/HumeBatchClient.js +26 -0
- package/wrapper/HumeStreamingClient.d.ts +23 -0
- package/wrapper/HumeStreamingClient.js +125 -0
- package/wrapper/Job.d.ts +8 -0
- package/wrapper/Job.js +87 -0
- package/wrapper/StreamSocket.d.ts +83 -0
- package/wrapper/StreamSocket.js +114 -0
- package/postcss.config.js +0 -7
- package/src/components/HumeWidget.tsx +0 -37
- package/src/index.ts +0 -3
- package/tailwind.config.js +0 -8
- package/tsconfig.json +0 -23
package/Client.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/// <reference types="node" />
|
|
5
|
+
import * as environments from "./environments";
|
|
6
|
+
import * as core from "./core";
|
|
7
|
+
import * as Hume from "./api";
|
|
8
|
+
import * as stream from "stream";
|
|
9
|
+
export declare namespace HumeClient {
|
|
10
|
+
interface Options {
|
|
11
|
+
environment?: core.Supplier<environments.HumeEnvironment | string>;
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
timeoutInSeconds?: number;
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare class HumeClient {
|
|
20
|
+
protected readonly _options: HumeClient.Options;
|
|
21
|
+
constructor(_options: HumeClient.Options);
|
|
22
|
+
/**
|
|
23
|
+
* Sort and filter jobs.
|
|
24
|
+
*/
|
|
25
|
+
listJobs(request?: Hume.ListJobsRequest, requestOptions?: HumeClient.RequestOptions): Promise<Hume.JobRequest[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Start a new batch job.
|
|
28
|
+
*/
|
|
29
|
+
submitJob(request?: Hume.BaseRequest, requestOptions?: HumeClient.RequestOptions): Promise<Hume.JobId>;
|
|
30
|
+
/**
|
|
31
|
+
* Get the JSON predictions of a completed job.
|
|
32
|
+
*/
|
|
33
|
+
getJobPredictions(id: string, requestOptions?: HumeClient.RequestOptions): Promise<Hume.SourceResult[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Get the artifacts ZIP of a completed job.
|
|
36
|
+
*/
|
|
37
|
+
getJobArtifacts(id: string, requestOptions?: HumeClient.RequestOptions): Promise<stream.Readable>;
|
|
38
|
+
/**
|
|
39
|
+
* Get the request details and state of a given job.
|
|
40
|
+
*/
|
|
41
|
+
getJobDetails(id: string, requestOptions?: HumeClient.RequestOptions): Promise<Hume.JobRequest>;
|
|
42
|
+
}
|
package/Client.js
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.HumeClient = void 0;
|
|
42
|
+
const environments = __importStar(require("./environments"));
|
|
43
|
+
const core = __importStar(require("./core"));
|
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const serializers = __importStar(require("./serialization"));
|
|
46
|
+
const errors = __importStar(require("./errors"));
|
|
47
|
+
class HumeClient {
|
|
48
|
+
constructor(_options) {
|
|
49
|
+
this._options = _options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Sort and filter jobs.
|
|
53
|
+
*/
|
|
54
|
+
listJobs(request = {}, requestOptions) {
|
|
55
|
+
var _a;
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const { limit, status, when, timestampMs, sortBy, direction } = request;
|
|
58
|
+
const _queryParams = {};
|
|
59
|
+
if (limit != null) {
|
|
60
|
+
_queryParams["limit"] = limit.toString();
|
|
61
|
+
}
|
|
62
|
+
if (status != null) {
|
|
63
|
+
if (Array.isArray(status)) {
|
|
64
|
+
_queryParams["status"] = status.map((item) => item);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
_queryParams["status"] = status;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (when != null) {
|
|
71
|
+
_queryParams["when"] = when;
|
|
72
|
+
}
|
|
73
|
+
if (timestampMs != null) {
|
|
74
|
+
_queryParams["timestamp_ms"] = timestampMs.toString();
|
|
75
|
+
}
|
|
76
|
+
if (sortBy != null) {
|
|
77
|
+
_queryParams["sort_by"] = sortBy;
|
|
78
|
+
}
|
|
79
|
+
if (direction != null) {
|
|
80
|
+
_queryParams["direction"] = direction;
|
|
81
|
+
}
|
|
82
|
+
const _response = yield core.fetcher({
|
|
83
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.HumeEnvironment.Default, "v0/batch/jobs"),
|
|
84
|
+
method: "GET",
|
|
85
|
+
headers: {
|
|
86
|
+
"X-Hume-Api-Key": yield core.Supplier.get(this._options.apiKey),
|
|
87
|
+
"X-Fern-Language": "JavaScript",
|
|
88
|
+
"X-Fern-SDK-Name": "hume",
|
|
89
|
+
"X-Fern-SDK-Version": "0.2.5",
|
|
90
|
+
},
|
|
91
|
+
contentType: "application/json",
|
|
92
|
+
queryParameters: _queryParams,
|
|
93
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
94
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
95
|
+
});
|
|
96
|
+
if (_response.ok) {
|
|
97
|
+
return yield serializers.listJobs.Response.parseOrThrow(_response.body, {
|
|
98
|
+
unrecognizedObjectKeys: "passthrough",
|
|
99
|
+
allowUnrecognizedUnionMembers: true,
|
|
100
|
+
allowUnrecognizedEnumValues: true,
|
|
101
|
+
breadcrumbsPrefix: ["response"],
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
throw new errors.HumeError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.body,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
switch (_response.error.reason) {
|
|
111
|
+
case "non-json":
|
|
112
|
+
throw new errors.HumeError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.rawBody,
|
|
115
|
+
});
|
|
116
|
+
case "timeout":
|
|
117
|
+
throw new errors.HumeTimeoutError();
|
|
118
|
+
case "unknown":
|
|
119
|
+
throw new errors.HumeError({
|
|
120
|
+
message: _response.error.errorMessage,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Start a new batch job.
|
|
127
|
+
*/
|
|
128
|
+
submitJob(request = {}, requestOptions) {
|
|
129
|
+
var _a;
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const _response = yield core.fetcher({
|
|
132
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.HumeEnvironment.Default, "v0/batch/jobs"),
|
|
133
|
+
method: "POST",
|
|
134
|
+
headers: {
|
|
135
|
+
"X-Hume-Api-Key": yield core.Supplier.get(this._options.apiKey),
|
|
136
|
+
"X-Fern-Language": "JavaScript",
|
|
137
|
+
"X-Fern-SDK-Name": "hume",
|
|
138
|
+
"X-Fern-SDK-Version": "0.2.5",
|
|
139
|
+
},
|
|
140
|
+
contentType: "application/json",
|
|
141
|
+
body: yield serializers.BaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
142
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
143
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
144
|
+
});
|
|
145
|
+
if (_response.ok) {
|
|
146
|
+
return yield serializers.JobId.parseOrThrow(_response.body, {
|
|
147
|
+
unrecognizedObjectKeys: "passthrough",
|
|
148
|
+
allowUnrecognizedUnionMembers: true,
|
|
149
|
+
allowUnrecognizedEnumValues: true,
|
|
150
|
+
breadcrumbsPrefix: ["response"],
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
if (_response.error.reason === "status-code") {
|
|
154
|
+
throw new errors.HumeError({
|
|
155
|
+
statusCode: _response.error.statusCode,
|
|
156
|
+
body: _response.error.body,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
switch (_response.error.reason) {
|
|
160
|
+
case "non-json":
|
|
161
|
+
throw new errors.HumeError({
|
|
162
|
+
statusCode: _response.error.statusCode,
|
|
163
|
+
body: _response.error.rawBody,
|
|
164
|
+
});
|
|
165
|
+
case "timeout":
|
|
166
|
+
throw new errors.HumeTimeoutError();
|
|
167
|
+
case "unknown":
|
|
168
|
+
throw new errors.HumeError({
|
|
169
|
+
message: _response.error.errorMessage,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Get the JSON predictions of a completed job.
|
|
176
|
+
*/
|
|
177
|
+
getJobPredictions(id, requestOptions) {
|
|
178
|
+
var _a;
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
const _response = yield core.fetcher({
|
|
181
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.HumeEnvironment.Default, `v0/batch/jobs/${id}/predictions`),
|
|
182
|
+
method: "GET",
|
|
183
|
+
headers: {
|
|
184
|
+
"X-Hume-Api-Key": yield core.Supplier.get(this._options.apiKey),
|
|
185
|
+
"X-Fern-Language": "JavaScript",
|
|
186
|
+
"X-Fern-SDK-Name": "hume",
|
|
187
|
+
"X-Fern-SDK-Version": "0.2.5",
|
|
188
|
+
},
|
|
189
|
+
contentType: "application/json",
|
|
190
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
191
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
192
|
+
});
|
|
193
|
+
if (_response.ok) {
|
|
194
|
+
return yield serializers.getJobPredictions.Response.parseOrThrow(_response.body, {
|
|
195
|
+
unrecognizedObjectKeys: "passthrough",
|
|
196
|
+
allowUnrecognizedUnionMembers: true,
|
|
197
|
+
allowUnrecognizedEnumValues: true,
|
|
198
|
+
breadcrumbsPrefix: ["response"],
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
if (_response.error.reason === "status-code") {
|
|
202
|
+
throw new errors.HumeError({
|
|
203
|
+
statusCode: _response.error.statusCode,
|
|
204
|
+
body: _response.error.body,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
switch (_response.error.reason) {
|
|
208
|
+
case "non-json":
|
|
209
|
+
throw new errors.HumeError({
|
|
210
|
+
statusCode: _response.error.statusCode,
|
|
211
|
+
body: _response.error.rawBody,
|
|
212
|
+
});
|
|
213
|
+
case "timeout":
|
|
214
|
+
throw new errors.HumeTimeoutError();
|
|
215
|
+
case "unknown":
|
|
216
|
+
throw new errors.HumeError({
|
|
217
|
+
message: _response.error.errorMessage,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Get the artifacts ZIP of a completed job.
|
|
224
|
+
*/
|
|
225
|
+
getJobArtifacts(id, requestOptions) {
|
|
226
|
+
var _a;
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const _response = yield core.streamingFetcher({
|
|
229
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.HumeEnvironment.Default, `v0/batch/jobs/${id}/artifacts`),
|
|
230
|
+
method: "GET",
|
|
231
|
+
headers: {
|
|
232
|
+
"X-Hume-Api-Key": yield core.Supplier.get(this._options.apiKey),
|
|
233
|
+
"X-Fern-Language": "JavaScript",
|
|
234
|
+
"X-Fern-SDK-Name": "hume",
|
|
235
|
+
"X-Fern-SDK-Version": "0.2.5",
|
|
236
|
+
},
|
|
237
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
238
|
+
});
|
|
239
|
+
return _response.data;
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Get the request details and state of a given job.
|
|
244
|
+
*/
|
|
245
|
+
getJobDetails(id, requestOptions) {
|
|
246
|
+
var _a;
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
const _response = yield core.fetcher({
|
|
249
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.HumeEnvironment.Default, `v0/batch/jobs/${id}`),
|
|
250
|
+
method: "GET",
|
|
251
|
+
headers: {
|
|
252
|
+
"X-Hume-Api-Key": yield core.Supplier.get(this._options.apiKey),
|
|
253
|
+
"X-Fern-Language": "JavaScript",
|
|
254
|
+
"X-Fern-SDK-Name": "hume",
|
|
255
|
+
"X-Fern-SDK-Version": "0.2.5",
|
|
256
|
+
},
|
|
257
|
+
contentType: "application/json",
|
|
258
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
259
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
260
|
+
});
|
|
261
|
+
if (_response.ok) {
|
|
262
|
+
return yield serializers.JobRequest.parseOrThrow(_response.body, {
|
|
263
|
+
unrecognizedObjectKeys: "passthrough",
|
|
264
|
+
allowUnrecognizedUnionMembers: true,
|
|
265
|
+
allowUnrecognizedEnumValues: true,
|
|
266
|
+
breadcrumbsPrefix: ["response"],
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
if (_response.error.reason === "status-code") {
|
|
270
|
+
throw new errors.HumeError({
|
|
271
|
+
statusCode: _response.error.statusCode,
|
|
272
|
+
body: _response.error.body,
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
switch (_response.error.reason) {
|
|
276
|
+
case "non-json":
|
|
277
|
+
throw new errors.HumeError({
|
|
278
|
+
statusCode: _response.error.statusCode,
|
|
279
|
+
body: _response.error.rawBody,
|
|
280
|
+
});
|
|
281
|
+
case "timeout":
|
|
282
|
+
throw new errors.HumeTimeoutError();
|
|
283
|
+
case "unknown":
|
|
284
|
+
throw new errors.HumeError({
|
|
285
|
+
message: _response.error.errorMessage,
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
exports.HumeClient = HumeClient;
|
package/README.md
CHANGED
|
@@ -1 +1,126 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://storage.googleapis.com/hume-public-logos/hume/hume-banner.png">
|
|
3
|
+
<h1>Hume AI TypeScript SDK</h1>
|
|
4
|
+
|
|
5
|
+
<p>
|
|
6
|
+
<strong>Integrate Hume APIs directly into your Node application or frontend</strong>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<br>
|
|
10
|
+
<div>
|
|
11
|
+
<a href="https://www.npmjs.com/package/hume"><img src="https://img.shields.io/npm/v/hume">
|
|
12
|
+
<a href="https://buildwithfern.com/"><img src="https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen">
|
|
13
|
+
</div>
|
|
14
|
+
<br>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
> **Note**
|
|
18
|
+
> This TypeScript SDK is under heavy development. It is NOT recommended that anyone uses this SDK in their production workloads. We will continue to publish updates to this SDK and hope to ensure a more stable and reliable release in the future. We encourage you to keep up with our [API changelog](https://dev.hume.ai/changelog) and mailing list to stay up to date with the latest changes.
|
|
19
|
+
|
|
20
|
+
## Documentation
|
|
21
|
+
|
|
22
|
+
API reference documentation is available [here](https://docs.hume.ai/doc/batch-api).
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
npm i hume
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Batch Client
|
|
31
|
+
|
|
32
|
+
The SDK exports a batch client which you can use to hit our REST APIs.
|
|
33
|
+
|
|
34
|
+
<a href="https://stackblitz.com/edit/typescript-example-using-sdk-built-with-fern-jlhehr?file=app.ts&view=editor"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg">
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { HumeBatchClient } from "hume";
|
|
38
|
+
|
|
39
|
+
const client = new HumeBatchClient({
|
|
40
|
+
apiKey: "YOUR_API_KEY",
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const job = await client.submitJob({
|
|
44
|
+
urls: ["https://tinyurl.com/hume-img"],
|
|
45
|
+
models: {
|
|
46
|
+
face: {},
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
console.log("Running...");
|
|
51
|
+
await job.awaitCompletion();
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Streaming Client
|
|
55
|
+
|
|
56
|
+
The SDK exports a streaming client which you can use to hit our WebSocket APIs.
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { HumeStreamingClient } from "hume";
|
|
60
|
+
|
|
61
|
+
const client = new HumeStreamingClient({
|
|
62
|
+
apiKey: "YOUR_API_KEY",
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
const stream = await client.connect({
|
|
66
|
+
configs: {
|
|
67
|
+
language: {},
|
|
68
|
+
},
|
|
69
|
+
onMessage: (response) => {
|
|
70
|
+
if (response.language != null) {
|
|
71
|
+
console.log(response.language.predictions);
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
onError: (err) => {
|
|
75
|
+
console.log(err);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
stream.sendText({
|
|
80
|
+
text: "Mary had a little lamb,"
|
|
81
|
+
});
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Errors
|
|
85
|
+
|
|
86
|
+
When the API returns a non-success status code (4xx or 5xx response),
|
|
87
|
+
a subclass of [HumeError](./src/errors/HumeError.ts) will be thrown:
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import { HumeError, HumeTimeoutError } from "hume";
|
|
91
|
+
|
|
92
|
+
try {
|
|
93
|
+
await hume.submitJob(/* ... */);
|
|
94
|
+
} catch (err) {
|
|
95
|
+
if (err instanceof HumeTimeoutError) {
|
|
96
|
+
console.log("Request timed out", err);
|
|
97
|
+
} else if (err instanceof HumeError) {
|
|
98
|
+
// catch all errros
|
|
99
|
+
console.log(err.statusCode);
|
|
100
|
+
console.log(err.message);
|
|
101
|
+
console.log(err.body);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Retries
|
|
107
|
+
|
|
108
|
+
409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried twice with exponential bakcoff.
|
|
109
|
+
You can use the maxRetries option to configure this behavior:
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
await hume.submitJob(..., {
|
|
113
|
+
maxRetries: 0, // disable retries
|
|
114
|
+
});
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Timeouts
|
|
118
|
+
|
|
119
|
+
By default, the SDK has a timeout of 60s. You can use the `timeoutInSeconds` option to configure
|
|
120
|
+
this behavior
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
await hume.submitJob(..., {
|
|
124
|
+
timeoutInSeconds: 10, // timeout after 10 seconds
|
|
125
|
+
});
|
|
126
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Hume from "../..";
|
|
5
|
+
export interface BaseRequest {
|
|
6
|
+
models?: Hume.Models;
|
|
7
|
+
transcription?: Hume.Transcription;
|
|
8
|
+
/**
|
|
9
|
+
* URLs to the media files to be processed. Each must be a valid public URL to a media file (see recommended input filetypes) or an archive (`.zip`, `.tar.gz`, `.tar.bz2`, `.tar.xz`) of media files.
|
|
10
|
+
*
|
|
11
|
+
* If you wish to supply more than 100 URLs, consider providing them as an archive (`.zip`, `.tar.gz`, `.tar.bz2`, `.tar.xz`).
|
|
12
|
+
*/
|
|
13
|
+
urls?: string[];
|
|
14
|
+
/** If provided, a `POST` request will be made to the URL with the generated predictions on completion or the error message on failure. */
|
|
15
|
+
callbackUrl?: string;
|
|
16
|
+
/** Whether to send an email notification to the user upon job completion/failure. */
|
|
17
|
+
notify?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Hume from "../..";
|
|
5
|
+
export interface ListJobsRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The maximum number of jobs to include in the response.
|
|
8
|
+
*/
|
|
9
|
+
limit?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Include only jobs with these statuses.
|
|
12
|
+
*/
|
|
13
|
+
status?: Hume.Status | Hume.Status[];
|
|
14
|
+
/**
|
|
15
|
+
* Include only jobs that were created before or after `timestamp_ms`.
|
|
16
|
+
*/
|
|
17
|
+
when?: Hume.When;
|
|
18
|
+
/**
|
|
19
|
+
* Defaults to the current date and time. See `when`.
|
|
20
|
+
*/
|
|
21
|
+
timestampMs?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The job timestamp to sort by.
|
|
24
|
+
*/
|
|
25
|
+
sortBy?: Hume.SortBy;
|
|
26
|
+
/**
|
|
27
|
+
* The sort direction.
|
|
28
|
+
*/
|
|
29
|
+
direction?: Hume.Direction;
|
|
30
|
+
}
|
package/api/index.d.ts
ADDED
package/api/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type Bcp47Tag = "zh" | "da" | "nl" | "en" | "en-AU" | "en-IN" | "en-NZ" | "en-GB" | "fr" | "fr-CA" | "de" | "hi" | "hi-Latn" | "id" | "it" | "ja" | "ko" | "no" | "pl" | "pt" | "pt-BR" | "pt-PT" | "ru" | "es" | "es-419" | "sv" | "ta" | "tr" | "uk";
|
|
5
|
+
export declare const Bcp47Tag: {
|
|
6
|
+
readonly Zh: "zh";
|
|
7
|
+
readonly Da: "da";
|
|
8
|
+
readonly Nl: "nl";
|
|
9
|
+
readonly En: "en";
|
|
10
|
+
readonly EnAu: "en-AU";
|
|
11
|
+
readonly EnIn: "en-IN";
|
|
12
|
+
readonly EnNz: "en-NZ";
|
|
13
|
+
readonly EnGb: "en-GB";
|
|
14
|
+
readonly Fr: "fr";
|
|
15
|
+
readonly FrCa: "fr-CA";
|
|
16
|
+
readonly De: "de";
|
|
17
|
+
readonly Hi: "hi";
|
|
18
|
+
readonly HiLatn: "hi-Latn";
|
|
19
|
+
readonly Id: "id";
|
|
20
|
+
readonly It: "it";
|
|
21
|
+
readonly Ja: "ja";
|
|
22
|
+
readonly Ko: "ko";
|
|
23
|
+
readonly No: "no";
|
|
24
|
+
readonly Pl: "pl";
|
|
25
|
+
readonly Pt: "pt";
|
|
26
|
+
readonly PtBr: "pt-BR";
|
|
27
|
+
readonly PtPt: "pt-PT";
|
|
28
|
+
readonly Ru: "ru";
|
|
29
|
+
readonly Es: "es";
|
|
30
|
+
readonly Es419: "es-419";
|
|
31
|
+
readonly Sv: "sv";
|
|
32
|
+
readonly Ta: "ta";
|
|
33
|
+
readonly Tr: "tr";
|
|
34
|
+
readonly Uk: "uk";
|
|
35
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Bcp47Tag = void 0;
|
|
7
|
+
exports.Bcp47Tag = {
|
|
8
|
+
Zh: "zh",
|
|
9
|
+
Da: "da",
|
|
10
|
+
Nl: "nl",
|
|
11
|
+
En: "en",
|
|
12
|
+
EnAu: "en-AU",
|
|
13
|
+
EnIn: "en-IN",
|
|
14
|
+
EnNz: "en-NZ",
|
|
15
|
+
EnGb: "en-GB",
|
|
16
|
+
Fr: "fr",
|
|
17
|
+
FrCa: "fr-CA",
|
|
18
|
+
De: "de",
|
|
19
|
+
Hi: "hi",
|
|
20
|
+
HiLatn: "hi-Latn",
|
|
21
|
+
Id: "id",
|
|
22
|
+
It: "it",
|
|
23
|
+
Ja: "ja",
|
|
24
|
+
Ko: "ko",
|
|
25
|
+
No: "no",
|
|
26
|
+
Pl: "pl",
|
|
27
|
+
Pt: "pt",
|
|
28
|
+
PtBr: "pt-BR",
|
|
29
|
+
PtPt: "pt-PT",
|
|
30
|
+
Ru: "ru",
|
|
31
|
+
Es: "es",
|
|
32
|
+
Es419: "es-419",
|
|
33
|
+
Sv: "sv",
|
|
34
|
+
Ta: "ta",
|
|
35
|
+
Tr: "tr",
|
|
36
|
+
Uk: "uk",
|
|
37
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A bounding box around a face.
|
|
6
|
+
*/
|
|
7
|
+
export interface BoundingBox {
|
|
8
|
+
/** x-coordinate of bounding box top left corner. */
|
|
9
|
+
x?: number;
|
|
10
|
+
/** y-coordinate of bounding box top left corner. */
|
|
11
|
+
y?: number;
|
|
12
|
+
/** Bounding box width. */
|
|
13
|
+
w?: number;
|
|
14
|
+
/** Bounding box height. */
|
|
15
|
+
h?: number;
|
|
16
|
+
}
|