@credal/sdk 0.1.7 → 0.1.9
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 +5 -7
- package/dist/cjs/api/resources/common/types/Collaborator.d.ts +1 -4
- 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 +1 -4
- 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 +1 -4
- 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/common/types/index.d.ts +5 -5
- package/dist/cjs/api/resources/common/types/index.js +5 -5
- package/dist/cjs/api/resources/copilots/client/Client.d.ts +4 -24
- package/dist/cjs/api/resources/copilots/client/Client.js +40 -42
- package/dist/cjs/api/resources/copilots/client/index.d.ts +0 -1
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.js +1 -3
- package/dist/cjs/api/resources/copilots/client/requests/index.d.ts +9 -9
- package/dist/cjs/api/resources/copilots/index.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/index.js +1 -1
- 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 +1 -4
- package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.js +1 -3
- package/dist/cjs/api/resources/copilots/types/Configuration.d.ts +1 -4
- 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 +1 -4
- package/dist/cjs/api/resources/copilots/types/DataFilter.js +1 -3
- package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.d.ts +1 -4
- 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 +1 -5
- package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunk.d.ts +1 -4
- 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 +1 -4
- package/dist/cjs/api/resources/copilots/types/Filter.js +1 -3
- package/dist/cjs/api/resources/copilots/types/FinalChunk.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/types/FinalChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/InitialChunk.d.ts +1 -4
- 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 +1 -5
- package/dist/cjs/api/resources/copilots/types/MessageBlocked.js +1 -3
- package/dist/cjs/api/resources/copilots/types/MessageFeedback.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/types/MessageFeedback.js +1 -3
- package/dist/cjs/api/resources/copilots/types/MessageReply.d.ts +1 -5
- package/dist/cjs/api/resources/copilots/types/MessageReply.js +1 -3
- package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.js +1 -3
- package/dist/cjs/api/resources/copilots/types/ReferencedSource.d.ts +1 -4
- 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 +1 -4
- package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.js +1 -3
- package/dist/cjs/api/resources/copilots/types/SendMessageResponse.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/types/SendMessageResponse.js +1 -3
- package/dist/cjs/api/resources/copilots/types/StreamingChunk.d.ts +1 -4
- package/dist/cjs/api/resources/copilots/types/StreamingChunk.js +1 -3
- package/dist/cjs/api/resources/copilots/types/StringFieldSchema.d.ts +1 -4
- 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 +24 -25
- package/dist/cjs/api/resources/copilots/types/index.js +24 -25
- package/dist/cjs/api/resources/documentCatalog/client/Client.d.ts +4 -24
- package/dist/cjs/api/resources/documentCatalog/client/Client.js +16 -18
- package/dist/cjs/api/resources/documentCatalog/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +1 -4
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.js +1 -3
- package/dist/cjs/api/resources/documentCatalog/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/documentCatalog/index.d.ts +1 -1
- package/dist/cjs/api/resources/documentCatalog/index.js +1 -1
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.d.ts +1 -4
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.js +1 -3
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.ts +1 -4
- 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/documentCatalog/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/documentCatalog/types/index.js +1 -1
- package/dist/cjs/api/resources/documentCollections/client/Client.d.ts +4 -24
- package/dist/cjs/api/resources/documentCollections/client/Client.js +33 -35
- package/dist/cjs/api/resources/documentCollections/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +1 -4
- package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +1 -4
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +1 -4
- 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 +1 -4
- package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +1 -4
- package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +1 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/index.d.ts +7 -7
- package/dist/cjs/api/resources/documentCollections/index.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/index.js +1 -1
- 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 +1 -4
- package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.js +1 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +1 -4
- 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/documentCollections/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/types/index.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/index.js +4 -4
- package/dist/cjs/api/resources/search/client/Client.d.ts +4 -24
- package/dist/cjs/api/resources/search/client/Client.js +8 -10
- package/dist/cjs/api/resources/search/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -4
- package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.js +1 -3
- package/dist/cjs/api/resources/search/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/search/index.d.ts +1 -1
- package/dist/cjs/api/resources/search/index.js +1 -1
- 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 +1 -4
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.js +1 -3
- package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.d.ts +1 -4
- 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 +1 -4
- package/dist/cjs/api/resources/search/types/SingleFieldFilter.js +1 -3
- package/dist/cjs/api/resources/search/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/search/types/index.js +1 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +4 -24
- package/dist/cjs/api/resources/users/client/Client.js +8 -10
- package/dist/cjs/api/resources/users/index.d.ts +1 -1
- package/dist/cjs/api/resources/users/index.js +1 -1
- 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 +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.js +2 -1
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
- package/dist/cjs/core/fetcher/makeRequest.js +2 -2
- package/dist/cjs/core/fetcher/requestWithRetries.js +3 -3
- package/dist/cjs/core/index.d.ts +3 -3
- package/dist/cjs/core/index.js +3 -3
- package/dist/cjs/core/stream/Stream.d.ts +1 -0
- package/dist/cjs/core/stream/Stream.js +8 -5
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -3
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/CredalError.d.ts +1 -4
- package/dist/cjs/errors/CredalError.js +2 -4
- package/dist/cjs/errors/CredalTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/CredalTimeoutError.js +1 -3
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +4 -4
- 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 +2 -0
- package/dist/esm/Client.d.mts +3 -24
- package/dist/esm/Client.mjs +5 -7
- package/dist/esm/api/resources/common/types/Collaborator.d.mts +1 -4
- package/dist/esm/api/resources/common/types/Collaborator.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/common/types/ExternalResourceId.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/common/types/ResourceIdentifier.mjs +1 -3
- 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/common/types/index.d.mts +5 -5
- package/dist/esm/api/resources/common/types/index.mjs +5 -5
- package/dist/esm/api/resources/copilots/client/Client.d.mts +4 -24
- package/dist/esm/api/resources/copilots/client/Client.mjs +40 -42
- package/dist/esm/api/resources/copilots/client/index.d.mts +0 -1
- 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 +1 -4
- package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.d.mts +1 -4
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.mts +1 -4
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.mjs +1 -3
- package/dist/esm/api/resources/copilots/client/requests/index.d.mts +9 -9
- package/dist/esm/api/resources/copilots/index.d.mts +1 -1
- package/dist/esm/api/resources/copilots/index.mjs +1 -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 +1 -4
- package/dist/esm/api/resources/copilots/types/CollectionFilteredData.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/Configuration.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/Configuration.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/copilots/types/DataFilter.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.mjs +1 -3
- 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 +1 -5
- package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/ErrorChunk.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/ErrorChunk.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/copilots/types/Filter.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/FinalChunk.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/FinalChunk.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/InitialChunk.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/InitialChunk.mjs +1 -3
- 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 +1 -5
- package/dist/esm/api/resources/copilots/types/MessageBlocked.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/MessageFeedback.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/MessageFeedback.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/MessageReply.d.mts +1 -5
- package/dist/esm/api/resources/copilots/types/MessageReply.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/ReferencedSource.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/ReferencedSource.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/StreamingChunk.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/StreamingChunk.mjs +1 -3
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.d.mts +1 -4
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.mjs +1 -3
- 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 +24 -25
- package/dist/esm/api/resources/copilots/types/index.mjs +24 -25
- package/dist/esm/api/resources/documentCatalog/client/Client.d.mts +4 -24
- package/dist/esm/api/resources/documentCatalog/client/Client.mjs +16 -18
- package/dist/esm/api/resources/documentCatalog/client/index.d.mts +0 -1
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts +1 -4
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCatalog/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/documentCatalog/index.d.mts +1 -1
- package/dist/esm/api/resources/documentCatalog/index.mjs +1 -1
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.d.mts +1 -4
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.mjs +1 -3
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.mts +1 -4
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.mjs +1 -3
- 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/documentCatalog/types/index.d.mts +1 -1
- package/dist/esm/api/resources/documentCatalog/types/index.mjs +1 -1
- package/dist/esm/api/resources/documentCollections/client/Client.d.mts +4 -24
- package/dist/esm/api/resources/documentCollections/client/Client.mjs +33 -35
- package/dist/esm/api/resources/documentCollections/client/index.d.mts +0 -1
- package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.mts +1 -4
- package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.mts +1 -4
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.mts +1 -4
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.mts +1 -4
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/documentCollections/index.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/index.mjs +1 -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 +1 -4
- package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.mjs +1 -3
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.mts +1 -4
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.mjs +1 -3
- 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/documentCollections/types/index.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/types/index.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/index.mjs +4 -4
- package/dist/esm/api/resources/search/client/Client.d.mts +4 -24
- package/dist/esm/api/resources/search/client/Client.mjs +8 -10
- package/dist/esm/api/resources/search/client/index.d.mts +0 -1
- package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.mts +1 -4
- package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.mjs +1 -3
- package/dist/esm/api/resources/search/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/search/index.d.mts +1 -1
- package/dist/esm/api/resources/search/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 +1 -4
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.mjs +1 -3
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.d.mts +1 -4
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.mjs +1 -3
- 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 +1 -4
- package/dist/esm/api/resources/search/types/SingleFieldFilter.mjs +1 -3
- package/dist/esm/api/resources/search/types/index.d.mts +1 -1
- package/dist/esm/api/resources/search/types/index.mjs +1 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +4 -24
- package/dist/esm/api/resources/users/client/Client.mjs +8 -10
- package/dist/esm/api/resources/users/index.d.mts +1 -1
- package/dist/esm/api/resources/users/index.mjs +1 -1
- 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 +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -1
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -3
- package/dist/esm/core/index.d.mts +3 -3
- package/dist/esm/core/index.mjs +3 -3
- package/dist/esm/core/stream/Stream.d.mts +1 -0
- package/dist/esm/core/stream/Stream.mjs +8 -5
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -3
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/CredalError.d.mts +1 -4
- package/dist/esm/errors/CredalError.mjs +2 -4
- package/dist/esm/errors/CredalTimeoutError.d.mts +0 -3
- package/dist/esm/errors/CredalTimeoutError.mjs +1 -3
- package/dist/esm/index.d.mts +2 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +9 -4
- package/reference.md +203 -229
- 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,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Credal from "../../../index.mjs";
|
|
1
|
+
import type * as Credal from "../../../index.mjs";
|
|
5
2
|
export type StreamingChunk = Credal.StreamingChunk.Initial | Credal.StreamingChunk.DataChunk | Credal.StreamingChunk.EndOfMessage | Credal.StreamingChunk.FinalChunk | Credal.StreamingChunk.Blocked | Credal.StreamingChunk.ErrorChunk;
|
|
6
3
|
export declare namespace StreamingChunk {
|
|
7
4
|
interface Initial extends Credal.InitialChunk {
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
export * from "./CreateConversationResponse.mjs";
|
|
2
|
-
export * from "./SendAgentMessageResponse.mjs";
|
|
3
|
-
export * from "./SendMessageResponse.mjs";
|
|
4
|
-
export * from "./InputVariable.mjs";
|
|
5
|
-
export * from "./MessageReply.mjs";
|
|
6
|
-
export * from "./ReferencedSource.mjs";
|
|
7
|
-
export * from "./WebSearchResult.mjs";
|
|
8
|
-
export * from "./ResponseChunk.mjs";
|
|
9
|
-
export * from "./InsertedAuditLog.mjs";
|
|
10
|
-
export * from "./MessageBlocked.mjs";
|
|
11
|
-
export * from "./PolicyTrigger.mjs";
|
|
12
|
-
export * from "./FeedbackEnum.mjs";
|
|
13
|
-
export * from "./MessageFeedback.mjs";
|
|
14
|
-
export * from "./Configuration.mjs";
|
|
15
1
|
export * from "./AiEndpointConfiguration.mjs";
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./DeleteCopilotResponse.mjs";
|
|
18
|
-
export * from "./StringFieldSchema.mjs";
|
|
19
|
-
export * from "./NumberFieldSchema.mjs";
|
|
2
|
+
export * from "./BlockedChunk.mjs";
|
|
20
3
|
export * from "./BooleanFieldSchema.mjs";
|
|
21
|
-
export * from "./DatetimeFieldSchema.mjs";
|
|
22
|
-
export * from "./Filter.mjs";
|
|
23
4
|
export * from "./CollectionFilteredData.mjs";
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
5
|
+
export * from "./Configuration.mjs";
|
|
6
|
+
export * from "./CreateConversationResponse.mjs";
|
|
7
|
+
export * from "./CreateCopilotResponse.mjs";
|
|
26
8
|
export * from "./DataChunk.mjs";
|
|
27
|
-
export * from "./
|
|
9
|
+
export * from "./DataFilter.mjs";
|
|
10
|
+
export * from "./DatetimeFieldSchema.mjs";
|
|
11
|
+
export * from "./DeleteCopilotResponse.mjs";
|
|
28
12
|
export * from "./EndOfMessageChunk.mjs";
|
|
29
|
-
export * from "./BlockedChunk.mjs";
|
|
30
|
-
export * from "./ErrorChunkData.mjs";
|
|
31
13
|
export * from "./ErrorChunk.mjs";
|
|
14
|
+
export * from "./ErrorChunkData.mjs";
|
|
15
|
+
export * from "./FeedbackEnum.mjs";
|
|
16
|
+
export * from "./Filter.mjs";
|
|
17
|
+
export * from "./FinalChunk.mjs";
|
|
18
|
+
export * from "./InitialChunk.mjs";
|
|
19
|
+
export * from "./InputVariable.mjs";
|
|
20
|
+
export * from "./InsertedAuditLog.mjs";
|
|
21
|
+
export * from "./MessageBlocked.mjs";
|
|
22
|
+
export * from "./MessageFeedback.mjs";
|
|
23
|
+
export * from "./MessageReply.mjs";
|
|
24
|
+
export * from "./NumberFieldSchema.mjs";
|
|
25
|
+
export * from "./ReferencedSource.mjs";
|
|
26
|
+
export * from "./ResponseChunk.mjs";
|
|
27
|
+
export * from "./SendAgentMessageResponse.mjs";
|
|
28
|
+
export * from "./SendMessageResponse.mjs";
|
|
32
29
|
export * from "./StreamingChunk.mjs";
|
|
30
|
+
export * from "./StringFieldSchema.mjs";
|
|
31
|
+
export * from "./WebSearchResult.mjs";
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
export * from "./CreateConversationResponse.mjs";
|
|
2
|
-
export * from "./SendAgentMessageResponse.mjs";
|
|
3
|
-
export * from "./SendMessageResponse.mjs";
|
|
4
|
-
export * from "./InputVariable.mjs";
|
|
5
|
-
export * from "./MessageReply.mjs";
|
|
6
|
-
export * from "./ReferencedSource.mjs";
|
|
7
|
-
export * from "./WebSearchResult.mjs";
|
|
8
|
-
export * from "./ResponseChunk.mjs";
|
|
9
|
-
export * from "./InsertedAuditLog.mjs";
|
|
10
|
-
export * from "./MessageBlocked.mjs";
|
|
11
|
-
export * from "./PolicyTrigger.mjs";
|
|
12
|
-
export * from "./FeedbackEnum.mjs";
|
|
13
|
-
export * from "./MessageFeedback.mjs";
|
|
14
|
-
export * from "./Configuration.mjs";
|
|
15
1
|
export * from "./AiEndpointConfiguration.mjs";
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./DeleteCopilotResponse.mjs";
|
|
18
|
-
export * from "./StringFieldSchema.mjs";
|
|
19
|
-
export * from "./NumberFieldSchema.mjs";
|
|
2
|
+
export * from "./BlockedChunk.mjs";
|
|
20
3
|
export * from "./BooleanFieldSchema.mjs";
|
|
21
|
-
export * from "./DatetimeFieldSchema.mjs";
|
|
22
|
-
export * from "./Filter.mjs";
|
|
23
4
|
export * from "./CollectionFilteredData.mjs";
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
5
|
+
export * from "./Configuration.mjs";
|
|
6
|
+
export * from "./CreateConversationResponse.mjs";
|
|
7
|
+
export * from "./CreateCopilotResponse.mjs";
|
|
26
8
|
export * from "./DataChunk.mjs";
|
|
27
|
-
export * from "./
|
|
9
|
+
export * from "./DataFilter.mjs";
|
|
10
|
+
export * from "./DatetimeFieldSchema.mjs";
|
|
11
|
+
export * from "./DeleteCopilotResponse.mjs";
|
|
28
12
|
export * from "./EndOfMessageChunk.mjs";
|
|
29
|
-
export * from "./BlockedChunk.mjs";
|
|
30
|
-
export * from "./ErrorChunkData.mjs";
|
|
31
13
|
export * from "./ErrorChunk.mjs";
|
|
14
|
+
export * from "./ErrorChunkData.mjs";
|
|
15
|
+
export * from "./FeedbackEnum.mjs";
|
|
16
|
+
export * from "./Filter.mjs";
|
|
17
|
+
export * from "./FinalChunk.mjs";
|
|
18
|
+
export * from "./InitialChunk.mjs";
|
|
19
|
+
export * from "./InputVariable.mjs";
|
|
20
|
+
export * from "./InsertedAuditLog.mjs";
|
|
21
|
+
export * from "./MessageBlocked.mjs";
|
|
22
|
+
export * from "./MessageFeedback.mjs";
|
|
23
|
+
export * from "./MessageReply.mjs";
|
|
24
|
+
export * from "./NumberFieldSchema.mjs";
|
|
25
|
+
export * from "./ReferencedSource.mjs";
|
|
26
|
+
export * from "./ResponseChunk.mjs";
|
|
27
|
+
export * from "./SendAgentMessageResponse.mjs";
|
|
28
|
+
export * from "./SendMessageResponse.mjs";
|
|
32
29
|
export * from "./StreamingChunk.mjs";
|
|
30
|
+
export * from "./StringFieldSchema.mjs";
|
|
31
|
+
export * from "./WebSearchResult.mjs";
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments.mjs";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
5
2
|
import * as core from "../../../../core/index.mjs";
|
|
6
|
-
import * as Credal from "../../../index.mjs";
|
|
3
|
+
import type * as Credal from "../../../index.mjs";
|
|
7
4
|
export declare namespace DocumentCatalog {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CredalEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
-
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
-
fetcher?: core.FetchFunction;
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
16
6
|
}
|
|
17
|
-
interface RequestOptions {
|
|
18
|
-
/** The maximum time to wait for a response in seconds. */
|
|
19
|
-
timeoutInSeconds?: number;
|
|
20
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
-
maxRetries?: number;
|
|
22
|
-
/** A hook to abort the request. */
|
|
23
|
-
abortSignal?: AbortSignal;
|
|
24
|
-
/** Additional query string parameters to include in the request. */
|
|
25
|
-
queryParams?: Record<string, unknown>;
|
|
26
|
-
/** Additional headers to include in the request. */
|
|
27
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
28
8
|
}
|
|
29
9
|
}
|
|
30
10
|
export declare class DocumentCatalog {
|
|
@@ -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) {
|
|
@@ -10,9 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
9
|
});
|
|
12
10
|
};
|
|
13
|
-
import * as environments from "../../../../environments.mjs";
|
|
14
|
-
import * as core from "../../../../core/index.mjs";
|
|
15
11
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
12
|
+
import * as core from "../../../../core/index.mjs";
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
16
14
|
import * as errors from "../../../../errors/index.mjs";
|
|
17
15
|
export class DocumentCatalog {
|
|
18
16
|
constructor(_options = {}) {
|
|
@@ -36,8 +34,8 @@ export class DocumentCatalog {
|
|
|
36
34
|
}
|
|
37
35
|
__uploadDocumentContents(request, requestOptions) {
|
|
38
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
var _a, _b, _c, _d;
|
|
40
|
-
|
|
37
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
38
|
+
const _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);
|
|
41
39
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
40
|
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/catalog/uploadDocumentContents"),
|
|
43
41
|
method: "POST",
|
|
@@ -46,8 +44,8 @@ export class DocumentCatalog {
|
|
|
46
44
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
47
45
|
requestType: "json",
|
|
48
46
|
body: request,
|
|
49
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
50
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
47
|
+
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,
|
|
48
|
+
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,
|
|
51
49
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
52
50
|
});
|
|
53
51
|
if (_response.ok) {
|
|
@@ -94,8 +92,8 @@ export class DocumentCatalog {
|
|
|
94
92
|
}
|
|
95
93
|
__syncSourceByUrl(request, requestOptions) {
|
|
96
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
var _a, _b, _c, _d;
|
|
98
|
-
|
|
95
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
96
|
+
const _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);
|
|
99
97
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
100
98
|
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/catalog/syncSourceByUrl"),
|
|
101
99
|
method: "POST",
|
|
@@ -104,8 +102,8 @@ export class DocumentCatalog {
|
|
|
104
102
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
105
103
|
requestType: "json",
|
|
106
104
|
body: request,
|
|
107
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
108
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
105
|
+
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,
|
|
106
|
+
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,
|
|
109
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
108
|
});
|
|
111
109
|
if (_response.ok) {
|
|
@@ -172,8 +170,8 @@ export class DocumentCatalog {
|
|
|
172
170
|
}
|
|
173
171
|
__metadata(request, requestOptions) {
|
|
174
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
var _a, _b, _c, _d;
|
|
176
|
-
|
|
173
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
174
|
+
const _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);
|
|
177
175
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
178
176
|
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/catalog/metadata"),
|
|
179
177
|
method: "PATCH",
|
|
@@ -182,8 +180,8 @@ export class DocumentCatalog {
|
|
|
182
180
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
183
181
|
requestType: "json",
|
|
184
182
|
body: request,
|
|
185
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
186
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
183
|
+
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,
|
|
184
|
+
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,
|
|
187
185
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
188
186
|
});
|
|
189
187
|
if (_response.ok) {
|
|
@@ -216,7 +214,7 @@ export class DocumentCatalog {
|
|
|
216
214
|
_getAuthorizationHeader() {
|
|
217
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
218
216
|
var _a;
|
|
219
|
-
const bearer = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env
|
|
217
|
+
const bearer = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env.CREDAL_API_KEY;
|
|
220
218
|
if (bearer == null) {
|
|
221
219
|
throw new errors.CredalError({
|
|
222
220
|
message: "Please specify a bearer by either passing it in to the constructor or initializing a CREDAL_API_KEY environment variable",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { UploadDocumentContentsRequest } from "./UploadDocumentContentsRequest.mjs";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Credal from "../../../index.mjs";
|
|
1
|
+
import type * as Credal from "../../../index.mjs";
|
|
5
2
|
export interface DocumentMetadataPatch {
|
|
6
3
|
/** The identifier for the resource you want to patch */
|
|
7
4
|
resourceIdentifier: Credal.ResourceIdentifier;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Credal from "../../../index.mjs";
|
|
1
|
+
import type * as Credal from "../../../index.mjs";
|
|
5
2
|
export interface DocumentMetadataPatchRequest {
|
|
6
3
|
sources: Credal.DocumentMetadataPatch[];
|
|
7
4
|
uploadAsUserEmail: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./UploadDocumentResponse.mjs";
|
|
2
1
|
export * from "./DocumentMetadataPatch.mjs";
|
|
3
2
|
export * from "./DocumentMetadataPatchRequest.mjs";
|
|
4
3
|
export * from "./SyncSourceByUrlRequest.mjs";
|
|
5
4
|
export * from "./SyncSourceByUrlResponse.mjs";
|
|
5
|
+
export * from "./UploadDocumentResponse.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./UploadDocumentResponse.mjs";
|
|
2
1
|
export * from "./DocumentMetadataPatch.mjs";
|
|
3
2
|
export * from "./DocumentMetadataPatchRequest.mjs";
|
|
4
3
|
export * from "./SyncSourceByUrlRequest.mjs";
|
|
5
4
|
export * from "./SyncSourceByUrlResponse.mjs";
|
|
5
|
+
export * from "./UploadDocumentResponse.mjs";
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments.mjs";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
5
2
|
import * as core from "../../../../core/index.mjs";
|
|
6
|
-
import * as Credal from "../../../index.mjs";
|
|
3
|
+
import type * as Credal from "../../../index.mjs";
|
|
7
4
|
export declare namespace DocumentCollections {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CredalEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
-
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
-
fetcher?: core.FetchFunction;
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
16
6
|
}
|
|
17
|
-
interface RequestOptions {
|
|
18
|
-
/** The maximum time to wait for a response in seconds. */
|
|
19
|
-
timeoutInSeconds?: number;
|
|
20
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
-
maxRetries?: number;
|
|
22
|
-
/** A hook to abort the request. */
|
|
23
|
-
abortSignal?: AbortSignal;
|
|
24
|
-
/** Additional query string parameters to include in the request. */
|
|
25
|
-
queryParams?: Record<string, unknown>;
|
|
26
|
-
/** Additional headers to include in the request. */
|
|
27
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
28
8
|
}
|
|
29
9
|
}
|
|
30
10
|
export declare class DocumentCollections {
|