@credal/sdk 0.1.7 → 0.1.8
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/dist/cjs/BaseClient.d.ts +27 -0
- package/dist/cjs/{api/resources/copilots/types/PolicyTrigger.js → BaseClient.js} +1 -3
- package/dist/cjs/Client.d.ts +3 -24
- package/dist/cjs/Client.js +3 -5
- package/dist/cjs/api/resources/common/types/Collaborator.d.ts +0 -3
- package/dist/cjs/api/resources/common/types/Collaborator.js +1 -3
- package/dist/cjs/api/resources/common/types/CustomMetadataValue.d.ts +0 -3
- package/dist/cjs/api/resources/common/types/CustomMetadataValue.js +1 -3
- package/dist/cjs/api/resources/common/types/ExternalResourceId.d.ts +0 -3
- package/dist/cjs/api/resources/common/types/ExternalResourceId.js +1 -3
- package/dist/cjs/api/resources/common/types/Operator.d.ts +1 -4
- package/dist/cjs/api/resources/common/types/Operator.js +1 -3
- package/dist/cjs/api/resources/common/types/ResourceIdentifier.d.ts +0 -3
- package/dist/cjs/api/resources/common/types/ResourceIdentifier.js +1 -3
- package/dist/cjs/api/resources/common/types/ResourceType.d.ts +1 -4
- package/dist/cjs/api/resources/common/types/ResourceType.js +1 -3
- package/dist/cjs/api/resources/common/types/Role.d.ts +1 -4
- package/dist/cjs/api/resources/common/types/Role.js +1 -3
- package/dist/cjs/api/resources/common/types/Url.d.ts +0 -3
- package/dist/cjs/api/resources/common/types/Url.js +1 -3
- package/dist/cjs/api/resources/copilots/client/Client.d.ts +3 -23
- package/dist/cjs/api/resources/copilots/client/Client.js +28 -30
- package/dist/cjs/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/CreateConversationRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/CreateConversationRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/DeleteCopilotRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/DeleteCopilotRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/types/AiEndpointConfiguration.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/AiEndpointConfiguration.js +1 -3
- package/dist/cjs/api/resources/copilots/types/BlockedChunk.d.ts +0 -5
- package/dist/cjs/api/resources/copilots/types/BlockedChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/BooleanFieldSchema.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/BooleanFieldSchema.js +1 -3
- package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.js +1 -3
- package/dist/cjs/api/resources/copilots/types/Configuration.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/Configuration.js +1 -3
- package/dist/cjs/api/resources/copilots/types/CreateConversationResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/CreateConversationResponse.js +1 -3
- package/dist/cjs/api/resources/copilots/types/CreateCopilotResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/CreateCopilotResponse.js +1 -3
- package/dist/cjs/api/resources/copilots/types/DataChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/DataChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/DataFilter.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/DataFilter.js +1 -3
- package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.js +1 -3
- package/dist/cjs/api/resources/copilots/types/DeleteCopilotResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/DeleteCopilotResponse.js +1 -3
- package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunkData.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunkData.js +1 -3
- package/dist/cjs/api/resources/copilots/types/FeedbackEnum.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/types/FeedbackEnum.js +1 -3
- package/dist/cjs/api/resources/copilots/types/Filter.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/Filter.js +1 -3
- package/dist/cjs/api/resources/copilots/types/FinalChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/FinalChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/InitialChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/InitialChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/InputVariable.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/InputVariable.js +1 -3
- package/dist/cjs/api/resources/copilots/types/InsertedAuditLog.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/InsertedAuditLog.js +1 -3
- package/dist/cjs/api/resources/copilots/types/MessageBlocked.d.ts +0 -4
- package/dist/cjs/api/resources/copilots/types/MessageBlocked.js +1 -3
- package/dist/cjs/api/resources/copilots/types/MessageFeedback.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/MessageFeedback.js +1 -3
- package/dist/cjs/api/resources/copilots/types/MessageReply.d.ts +0 -4
- package/dist/cjs/api/resources/copilots/types/MessageReply.js +1 -3
- package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.js +1 -3
- package/dist/cjs/api/resources/copilots/types/ReferencedSource.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/ReferencedSource.js +1 -3
- package/dist/cjs/api/resources/copilots/types/ResponseChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/ResponseChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.js +1 -3
- package/dist/cjs/api/resources/copilots/types/SendMessageResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/SendMessageResponse.js +1 -3
- package/dist/cjs/api/resources/copilots/types/StreamingChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/StreamingChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/StringFieldSchema.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/StringFieldSchema.js +1 -3
- package/dist/cjs/api/resources/copilots/types/WebSearchResult.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/WebSearchResult.js +1 -3
- package/dist/cjs/api/resources/copilots/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/copilots/types/index.js +0 -1
- package/dist/cjs/api/resources/documentCatalog/client/Client.d.ts +3 -23
- package/dist/cjs/api/resources/documentCatalog/client/Client.js +10 -12
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.js +1 -3
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.js +1 -3
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.js +1 -3
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlRequest.js +1 -3
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlResponse.js +1 -3
- package/dist/cjs/api/resources/documentCatalog/types/UploadDocumentResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/UploadDocumentResponse.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/Client.d.ts +3 -23
- package/dist/cjs/api/resources/documentCollections/client/Client.js +22 -24
- package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/DeleteCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/types/CreateCollectionResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/CreateCollectionResponse.js +1 -3
- package/dist/cjs/api/resources/documentCollections/types/DeleteCollectionResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/DeleteCollectionResponse.js +1 -3
- package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.js +1 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.js +1 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncResponse.js +1 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoSourceFieldsConfig.js +1 -3
- package/dist/cjs/api/resources/search/client/Client.d.ts +3 -23
- package/dist/cjs/api/resources/search/client/Client.js +4 -6
- package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +0 -3
- package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchOptions.d.ts +0 -3
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchOptions.js +1 -3
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.d.ts +0 -3
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.js +1 -3
- package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.d.ts +0 -3
- package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.js +1 -3
- package/dist/cjs/api/resources/search/types/SearchResultChunk.d.ts +0 -3
- package/dist/cjs/api/resources/search/types/SearchResultChunk.js +1 -3
- package/dist/cjs/api/resources/search/types/SingleFieldFilter.d.ts +0 -3
- package/dist/cjs/api/resources/search/types/SingleFieldFilter.js +1 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +3 -23
- package/dist/cjs/api/resources/users/client/Client.js +4 -6
- package/dist/cjs/api/resources/users/types/UserMetadataPatch.d.ts +0 -3
- package/dist/cjs/api/resources/users/types/UserMetadataPatch.js +1 -3
- package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
- package/dist/cjs/core/auth/BasicAuth.js +2 -1
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +1 -1
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/CredalError.d.ts +0 -3
- package/dist/cjs/errors/CredalError.js +1 -3
- package/dist/cjs/errors/CredalTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/CredalTimeoutError.js +1 -3
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +27 -0
- package/dist/esm/BaseClient.mjs +3 -0
- package/dist/esm/Client.d.mts +3 -24
- package/dist/esm/Client.mjs +4 -5
- package/dist/esm/api/resources/common/types/Collaborator.d.mts +0 -3
- package/dist/esm/api/resources/common/types/Collaborator.mjs +2 -4
- package/dist/esm/api/resources/common/types/CustomMetadataValue.d.mts +0 -3
- package/dist/esm/api/resources/common/types/CustomMetadataValue.mjs +1 -3
- package/dist/esm/api/resources/common/types/ExternalResourceId.d.mts +0 -3
- package/dist/esm/api/resources/common/types/ExternalResourceId.mjs +2 -4
- package/dist/esm/api/resources/common/types/Operator.d.mts +1 -4
- package/dist/esm/api/resources/common/types/Operator.mjs +1 -3
- package/dist/esm/api/resources/common/types/ResourceIdentifier.d.mts +0 -3
- package/dist/esm/api/resources/common/types/ResourceIdentifier.mjs +2 -4
- package/dist/esm/api/resources/common/types/ResourceType.d.mts +1 -4
- package/dist/esm/api/resources/common/types/ResourceType.mjs +1 -3
- package/dist/esm/api/resources/common/types/Role.d.mts +1 -4
- package/dist/esm/api/resources/common/types/Role.mjs +1 -3
- package/dist/esm/api/resources/common/types/Url.d.mts +0 -3
- package/dist/esm/api/resources/common/types/Url.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/Client.d.mts +3 -23
- package/dist/esm/api/resources/copilots/client/Client.mjs +29 -30
- package/dist/esm/api/resources/copilots/client/index.mjs +1 -0
- package/dist/esm/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/requests/CreateConversationRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/CreateConversationRequest.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.mjs +2 -4
- package/dist/esm/api/resources/copilots/client/requests/DeleteCopilotRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/DeleteCopilotRequest.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.mjs +2 -4
- package/dist/esm/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.mjs +2 -4
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.mjs +2 -4
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.mts +0 -3
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.mjs +2 -4
- package/dist/esm/api/resources/copilots/client/requests/index.mjs +9 -1
- package/dist/esm/api/resources/copilots/types/AiEndpointConfiguration.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/AiEndpointConfiguration.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/BlockedChunk.d.mts +0 -5
- package/dist/esm/api/resources/copilots/types/BlockedChunk.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/BooleanFieldSchema.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/BooleanFieldSchema.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/CollectionFilteredData.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/CollectionFilteredData.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/Configuration.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/Configuration.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/CreateConversationResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/CreateConversationResponse.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/CreateCopilotResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/CreateCopilotResponse.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/DataChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/DataChunk.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/DataFilter.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/DataFilter.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/DeleteCopilotResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/DeleteCopilotResponse.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/ErrorChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/ErrorChunk.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/ErrorChunkData.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/ErrorChunkData.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/FeedbackEnum.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/FeedbackEnum.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/Filter.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/Filter.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/FinalChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/FinalChunk.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/InitialChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/InitialChunk.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/InputVariable.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/InputVariable.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/InsertedAuditLog.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/InsertedAuditLog.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/MessageBlocked.d.mts +0 -4
- package/dist/esm/api/resources/copilots/types/MessageBlocked.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/MessageFeedback.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/MessageFeedback.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/MessageReply.d.mts +0 -4
- package/dist/esm/api/resources/copilots/types/MessageReply.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/ReferencedSource.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/ReferencedSource.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/ResponseChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/ResponseChunk.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/StreamingChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/StreamingChunk.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.mjs +2 -4
- package/dist/esm/api/resources/copilots/types/WebSearchResult.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/WebSearchResult.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/index.d.mts +0 -1
- package/dist/esm/api/resources/copilots/types/index.mjs +0 -1
- package/dist/esm/api/resources/documentCatalog/client/Client.d.mts +3 -23
- package/dist/esm/api/resources/documentCatalog/client/Client.mjs +11 -12
- package/dist/esm/api/resources/documentCatalog/client/index.mjs +1 -0
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.mjs +2 -4
- package/dist/esm/api/resources/documentCatalog/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.mjs +2 -4
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.mjs +2 -4
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlResponse.mjs +1 -3
- package/dist/esm/api/resources/documentCatalog/types/UploadDocumentResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/types/UploadDocumentResponse.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/client/Client.d.mts +3 -23
- package/dist/esm/api/resources/documentCollections/client/Client.mjs +23 -24
- package/dist/esm/api/resources/documentCollections/client/index.mjs +1 -0
- package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.mjs +2 -4
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.mjs +2 -4
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.mjs +2 -4
- package/dist/esm/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/client/requests/DeleteCollectionRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.mjs +2 -4
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.mjs +2 -4
- package/dist/esm/api/resources/documentCollections/client/requests/index.mjs +7 -1
- package/dist/esm/api/resources/documentCollections/types/CreateCollectionResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/CreateCollectionResponse.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/types/DeleteCollectionResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/DeleteCollectionResponse.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.mjs +2 -4
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.mjs +2 -4
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncResponse.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/MongoSourceFieldsConfig.mjs +1 -3
- package/dist/esm/api/resources/search/client/Client.d.mts +3 -23
- package/dist/esm/api/resources/search/client/Client.mjs +5 -6
- package/dist/esm/api/resources/search/client/index.mjs +1 -0
- package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.mts +0 -3
- package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.mjs +2 -4
- package/dist/esm/api/resources/search/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchOptions.d.mts +0 -3
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchOptions.mjs +1 -3
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.d.mts +0 -3
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.mjs +2 -4
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.d.mts +0 -3
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.mjs +2 -4
- package/dist/esm/api/resources/search/types/SearchResultChunk.d.mts +0 -3
- package/dist/esm/api/resources/search/types/SearchResultChunk.mjs +1 -3
- package/dist/esm/api/resources/search/types/SingleFieldFilter.d.mts +0 -3
- package/dist/esm/api/resources/search/types/SingleFieldFilter.mjs +2 -4
- package/dist/esm/api/resources/users/client/Client.d.mts +3 -23
- package/dist/esm/api/resources/users/client/Client.mjs +5 -6
- package/dist/esm/api/resources/users/types/UserMetadataPatch.d.mts +0 -3
- package/dist/esm/api/resources/users/types/UserMetadataPatch.mjs +1 -3
- package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
- package/dist/esm/core/auth/BasicAuth.mjs +2 -1
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/CredalError.d.mts +0 -3
- package/dist/esm/errors/CredalError.mjs +2 -3
- package/dist/esm/errors/CredalTimeoutError.d.mts +0 -3
- package/dist/esm/errors/CredalTimeoutError.mjs +1 -3
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/copilots/types/PolicyTrigger.d.ts +0 -8
- package/dist/esm/api/resources/copilots/types/PolicyTrigger.d.mts +0 -8
- package/dist/esm/api/resources/copilots/types/PolicyTrigger.mjs +0 -4
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
4
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -12,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
12
10
|
};
|
|
13
11
|
import * as environments from "../../../../environments.mjs";
|
|
14
12
|
import * as core from "../../../../core/index.mjs";
|
|
13
|
+
import * as Credal from "../../../index.mjs";
|
|
15
14
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
16
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
17
16
|
export class Copilots {
|
|
@@ -39,7 +38,7 @@ export class Copilots {
|
|
|
39
38
|
}
|
|
40
39
|
__createCopilot(request, requestOptions) {
|
|
41
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
var _a, _b, _c, _d;
|
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
43
42
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
44
43
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
45
44
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/createCopilot"),
|
|
@@ -49,8 +48,8 @@ export class Copilots {
|
|
|
49
48
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
50
49
|
requestType: "json",
|
|
51
50
|
body: request,
|
|
52
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
53
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
51
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
52
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
54
53
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
55
54
|
});
|
|
56
55
|
if (_response.ok) {
|
|
@@ -97,7 +96,7 @@ export class Copilots {
|
|
|
97
96
|
}
|
|
98
97
|
__createConversation(request, requestOptions) {
|
|
99
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
var _a, _b, _c, _d;
|
|
99
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
101
100
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
102
101
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
103
102
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/createConversation"),
|
|
@@ -107,8 +106,8 @@ export class Copilots {
|
|
|
107
106
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
108
107
|
requestType: "json",
|
|
109
108
|
body: request,
|
|
110
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
111
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
109
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
110
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
112
111
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
113
112
|
});
|
|
114
113
|
if (_response.ok) {
|
|
@@ -159,7 +158,7 @@ export class Copilots {
|
|
|
159
158
|
}
|
|
160
159
|
__provideMessageFeedback(request, requestOptions) {
|
|
161
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
-
var _a, _b, _c, _d;
|
|
161
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
163
162
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
164
163
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
165
164
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/provideMessageFeedback"),
|
|
@@ -169,8 +168,8 @@ export class Copilots {
|
|
|
169
168
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
170
169
|
requestType: "json",
|
|
171
170
|
body: request,
|
|
172
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
173
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
171
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
172
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
174
173
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
175
174
|
});
|
|
176
175
|
if (_response.ok) {
|
|
@@ -223,7 +222,7 @@ export class Copilots {
|
|
|
223
222
|
}
|
|
224
223
|
__sendMessage(request, requestOptions) {
|
|
225
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
-
var _a, _b, _c, _d;
|
|
225
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
227
226
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
227
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
228
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/sendMessage"),
|
|
@@ -233,8 +232,8 @@ export class Copilots {
|
|
|
233
232
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
234
233
|
requestType: "json",
|
|
235
234
|
body: request,
|
|
236
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
237
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
235
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
236
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
238
237
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
239
238
|
});
|
|
240
239
|
if (_response.ok) {
|
|
@@ -272,7 +271,7 @@ export class Copilots {
|
|
|
272
271
|
}
|
|
273
272
|
__streamMessage(request, requestOptions) {
|
|
274
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
-
var _a, _b, _c, _d;
|
|
274
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
276
275
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
277
276
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
278
277
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/streamMessage"),
|
|
@@ -283,8 +282,8 @@ export class Copilots {
|
|
|
283
282
|
requestType: "json",
|
|
284
283
|
body: request,
|
|
285
284
|
responseType: "sse",
|
|
286
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
287
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
285
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
286
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
288
287
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
289
288
|
});
|
|
290
289
|
if (_response.ok) {
|
|
@@ -342,7 +341,7 @@ export class Copilots {
|
|
|
342
341
|
}
|
|
343
342
|
__addCollectionToCopilot(request, requestOptions) {
|
|
344
343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
-
var _a, _b, _c, _d;
|
|
344
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
346
345
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
347
346
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
348
347
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/addCollectionToCopilot"),
|
|
@@ -352,8 +351,8 @@ export class Copilots {
|
|
|
352
351
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
353
352
|
requestType: "json",
|
|
354
353
|
body: request,
|
|
355
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
356
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
354
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
355
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
357
356
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
358
357
|
});
|
|
359
358
|
if (_response.ok) {
|
|
@@ -400,7 +399,7 @@ export class Copilots {
|
|
|
400
399
|
}
|
|
401
400
|
__removeCollectionFromCopilot(request, requestOptions) {
|
|
402
401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
|
-
var _a, _b, _c, _d;
|
|
402
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
404
403
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
405
404
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
406
405
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/removeCollectionFromCopilot"),
|
|
@@ -410,8 +409,8 @@ export class Copilots {
|
|
|
410
409
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
411
410
|
requestType: "json",
|
|
412
411
|
body: request,
|
|
413
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
414
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
412
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
413
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
415
414
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
416
415
|
});
|
|
417
416
|
if (_response.ok) {
|
|
@@ -466,7 +465,7 @@ export class Copilots {
|
|
|
466
465
|
}
|
|
467
466
|
__updateConfiguration(request, requestOptions) {
|
|
468
467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
469
|
-
var _a, _b, _c, _d;
|
|
468
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
470
469
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
471
470
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
472
471
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/updateConfiguration"),
|
|
@@ -476,8 +475,8 @@ export class Copilots {
|
|
|
476
475
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
477
476
|
requestType: "json",
|
|
478
477
|
body: request,
|
|
479
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
480
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
478
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
479
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
481
480
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
482
481
|
});
|
|
483
482
|
if (_response.ok) {
|
|
@@ -521,7 +520,7 @@ export class Copilots {
|
|
|
521
520
|
}
|
|
522
521
|
__deleteCopilot(request, requestOptions) {
|
|
523
522
|
return __awaiter(this, void 0, void 0, function* () {
|
|
524
|
-
var _a, _b, _c, _d;
|
|
523
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
525
524
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
526
525
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
527
526
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/copilots/deleteCopilot"),
|
|
@@ -531,8 +530,8 @@ export class Copilots {
|
|
|
531
530
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
532
531
|
requestType: "json",
|
|
533
532
|
body: request,
|
|
534
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
535
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
533
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
534
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
536
535
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
537
536
|
});
|
|
538
537
|
if (_response.ok) {
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {} from "./CreateCopilotRequest.mjs";
|
|
2
|
+
export {} from "./CreateConversationRequest.mjs";
|
|
3
|
+
export {} from "./ProvideMessageFeedbackRequest.mjs";
|
|
4
|
+
export {} from "./SendMessageRequest.mjs";
|
|
5
|
+
export {} from "./StreamMessageRequest.mjs";
|
|
6
|
+
export {} from "./AddCollectionToCopilotRequest.mjs";
|
|
7
|
+
export {} from "./RemoveCollectionFromCopilotRequest.mjs";
|
|
8
|
+
export {} from "./UpdateConfigurationRequest.mjs";
|
|
9
|
+
export {} from "./DeleteCopilotRequest.mjs";
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Credal from "../../../index.mjs";
|
|
5
1
|
export interface BlockedChunk {
|
|
6
2
|
conversationId: string;
|
|
7
3
|
warnings: string[];
|
|
8
4
|
blocks: string[];
|
|
9
|
-
policyTriggers: Credal.PolicyTrigger[];
|
|
10
5
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type FeedbackEnum = "POSITIVE" | "NEGATIVE";
|
|
5
1
|
export declare const FeedbackEnum: {
|
|
6
2
|
readonly Positive: "POSITIVE";
|
|
7
3
|
readonly Negative: "NEGATIVE";
|
|
8
4
|
};
|
|
5
|
+
export type FeedbackEnum = (typeof FeedbackEnum)[keyof typeof FeedbackEnum];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as Credal from "../../../index.mjs";
|
|
5
2
|
export type Filter = Credal.Filter.String | Credal.Filter.Number | Credal.Filter.Boolean | Credal.Filter.Datetime;
|
|
6
3
|
export declare namespace Filter {
|