@credal/sdk 0.1.16 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +242 -91
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +16 -16
- package/dist/cjs/Client.js +70 -23
- package/dist/cjs/api/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/errors/ForbiddenError.js +54 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/errors/NotFoundError.js +54 -0
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +5 -0
- package/dist/cjs/api/{resources/documentCatalog/client → errors}/index.js +5 -1
- package/dist/cjs/api/index.d.ts +1 -0
- package/dist/cjs/api/index.js +1 -0
- package/dist/cjs/api/resources/agents/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/agents/client/Client.js +187 -0
- package/dist/cjs/api/resources/agents/client/requests/FetchResponseAgentsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/agents/client/requests/SendMessageAgentsRequest.d.ts +16 -0
- package/dist/cjs/api/resources/agents/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/agents/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{documentCatalog/index.js → agents/exports.js} +4 -1
- package/dist/cjs/api/resources/agents/types/FetchResponseAgentsResponse.d.ts +20 -0
- package/dist/cjs/api/resources/agents/types/SendMessageAgentsRequestConversation.d.ts +12 -0
- package/dist/cjs/api/resources/agents/types/SendMessageAgentsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/agents/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/{common → agents/types}/index.js +3 -1
- package/dist/cjs/api/resources/index.d.ts +3 -16
- package/dist/cjs/api/resources/index.js +7 -20
- package/dist/cjs/auth/BearerAuthProvider.d.ts +14 -10
- package/dist/cjs/auth/BearerAuthProvider.js +17 -10
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/exports.js +0 -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 +1 -2
- package/dist/cjs/core/fetcher/Fetcher.js +8 -2
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/index.d.ts +0 -3
- package/dist/cjs/core/index.js +1 -4
- package/dist/cjs/core/runtime/runtime.js +8 -7
- package/dist/cjs/environments.d.ts +2 -2
- package/dist/cjs/environments.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +16 -16
- package/dist/esm/Client.mjs +37 -23
- package/dist/esm/api/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +17 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/errors/NotFoundError.mjs +17 -0
- package/dist/esm/api/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +5 -0
- package/dist/esm/api/errors/index.mjs +5 -0
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +1 -0
- package/dist/esm/api/resources/agents/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/agents/client/Client.mjs +150 -0
- package/dist/esm/api/resources/agents/client/requests/FetchResponseAgentsRequest.d.mts +9 -0
- package/dist/esm/api/resources/agents/client/requests/SendMessageAgentsRequest.d.mts +16 -0
- package/dist/esm/api/resources/agents/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/agents/exports.d.mts +2 -0
- package/dist/esm/api/resources/agents/exports.mjs +3 -0
- package/dist/esm/api/resources/agents/types/FetchResponseAgentsResponse.d.mts +20 -0
- package/dist/esm/api/resources/agents/types/SendMessageAgentsRequestConversation.d.mts +12 -0
- package/dist/esm/api/resources/agents/types/SendMessageAgentsResponse.d.mts +3 -0
- package/dist/esm/api/resources/agents/types/index.d.mts +3 -0
- package/dist/esm/api/resources/agents/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +3 -16
- package/dist/esm/api/resources/index.mjs +3 -16
- package/dist/esm/auth/BearerAuthProvider.d.mts +14 -10
- package/dist/esm/auth/BearerAuthProvider.mjs +17 -10
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -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 +1 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/index.d.mts +0 -3
- package/dist/esm/core/index.mjs +0 -3
- package/dist/esm/core/runtime/runtime.mjs +8 -7
- package/dist/esm/environments.d.mts +2 -2
- package/dist/esm/environments.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +16 -5
- package/reference.md +15 -1444
- package/dist/cjs/api/resources/common/index.d.ts +0 -1
- package/dist/cjs/api/resources/common/types/Collaborator.d.ts +0 -5
- package/dist/cjs/api/resources/common/types/CustomMetadataValue.d.ts +0 -1
- package/dist/cjs/api/resources/common/types/ExternalResourceId.d.ts +0 -5
- package/dist/cjs/api/resources/common/types/Operator.d.ts +0 -10
- package/dist/cjs/api/resources/common/types/Operator.js +0 -13
- package/dist/cjs/api/resources/common/types/ResourceIdentifier.d.ts +0 -10
- package/dist/cjs/api/resources/common/types/ResourceType.d.ts +0 -22
- package/dist/cjs/api/resources/common/types/ResourceType.js +0 -25
- package/dist/cjs/api/resources/common/types/Role.d.ts +0 -5
- package/dist/cjs/api/resources/common/types/Role.js +0 -8
- package/dist/cjs/api/resources/common/types/Url.d.ts +0 -3
- package/dist/cjs/api/resources/common/types/index.d.ts +0 -8
- package/dist/cjs/api/resources/common/types/index.js +0 -24
- package/dist/cjs/api/resources/copilots/client/Client.d.ts +0 -169
- package/dist/cjs/api/resources/copilots/client/Client.js +0 -556
- package/dist/cjs/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +0 -13
- package/dist/cjs/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/CreateConversationRequest.d.ts +0 -13
- package/dist/cjs/api/resources/copilots/client/requests/CreateConversationRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +0 -20
- package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/DeleteCopilotRequest.d.ts +0 -10
- package/dist/cjs/api/resources/copilots/client/requests/DeleteCopilotRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/ExportCopilotsRequest.d.ts +0 -21
- package/dist/cjs/api/resources/copilots/client/requests/ExportCopilotsRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +0 -24
- package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +0 -13
- package/dist/cjs/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.d.ts +0 -28
- package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +0 -56
- package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +0 -21
- package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.js +0 -3
- package/dist/cjs/api/resources/copilots/client/requests/index.d.ts +0 -10
- package/dist/cjs/api/resources/copilots/types/AiEndpointConfiguration.d.ts +0 -4
- package/dist/cjs/api/resources/copilots/types/AiEndpointConfiguration.js +0 -3
- package/dist/cjs/api/resources/copilots/types/BlockedChunk.d.ts +0 -5
- package/dist/cjs/api/resources/copilots/types/BlockedChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/BooleanFieldSchema.d.ts +0 -5
- package/dist/cjs/api/resources/copilots/types/BooleanFieldSchema.js +0 -3
- package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.d.ts +0 -6
- package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.js +0 -3
- package/dist/cjs/api/resources/copilots/types/Configuration.d.ts +0 -7
- package/dist/cjs/api/resources/copilots/types/Configuration.js +0 -3
- package/dist/cjs/api/resources/copilots/types/CreateConversationResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/CreateConversationResponse.js +0 -3
- package/dist/cjs/api/resources/copilots/types/CreateCopilotResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/CreateCopilotResponse.js +0 -3
- package/dist/cjs/api/resources/copilots/types/DataChunk.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/DataChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/DataFilter.d.ts +0 -6
- package/dist/cjs/api/resources/copilots/types/DataFilter.js +0 -3
- package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.d.ts +0 -6
- package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.js +0 -3
- package/dist/cjs/api/resources/copilots/types/DeleteCopilotResponse.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/DeleteCopilotResponse.js +0 -3
- package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.d.ts +0 -1
- package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunk.d.ts +0 -4
- package/dist/cjs/api/resources/copilots/types/ErrorChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunkData.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/ErrorChunkData.js +0 -3
- package/dist/cjs/api/resources/copilots/types/ExportCopilotsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/copilots/types/ExportCopilotsResponse.js +0 -3
- package/dist/cjs/api/resources/copilots/types/ExportedCopilot.d.ts +0 -24
- package/dist/cjs/api/resources/copilots/types/ExportedCopilot.js +0 -3
- package/dist/cjs/api/resources/copilots/types/FeedbackEnum.d.ts +0 -5
- package/dist/cjs/api/resources/copilots/types/FeedbackEnum.js +0 -8
- package/dist/cjs/api/resources/copilots/types/Filter.d.ts +0 -16
- package/dist/cjs/api/resources/copilots/types/Filter.js +0 -3
- package/dist/cjs/api/resources/copilots/types/FinalChunk.d.ts +0 -4
- package/dist/cjs/api/resources/copilots/types/FinalChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/InitialChunk.d.ts +0 -7
- package/dist/cjs/api/resources/copilots/types/InitialChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/InputVariable.d.ts +0 -4
- package/dist/cjs/api/resources/copilots/types/InputVariable.js +0 -3
- package/dist/cjs/api/resources/copilots/types/InsertedAuditLog.d.ts +0 -3
- package/dist/cjs/api/resources/copilots/types/InsertedAuditLog.js +0 -3
- package/dist/cjs/api/resources/copilots/types/MessageBlocked.d.ts +0 -7
- package/dist/cjs/api/resources/copilots/types/MessageBlocked.js +0 -3
- package/dist/cjs/api/resources/copilots/types/MessageFeedback.d.ts +0 -6
- package/dist/cjs/api/resources/copilots/types/MessageFeedback.js +0 -3
- package/dist/cjs/api/resources/copilots/types/MessageReply.d.ts +0 -11
- package/dist/cjs/api/resources/copilots/types/MessageReply.js +0 -3
- package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.d.ts +0 -6
- package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.js +0 -3
- package/dist/cjs/api/resources/copilots/types/ReferencedSource.d.ts +0 -7
- package/dist/cjs/api/resources/copilots/types/ReferencedSource.js +0 -3
- package/dist/cjs/api/resources/copilots/types/ResponseChunk.d.ts +0 -5
- package/dist/cjs/api/resources/copilots/types/ResponseChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.d.ts +0 -4
- package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.js +0 -3
- package/dist/cjs/api/resources/copilots/types/SendMessageResponse.d.ts +0 -18
- package/dist/cjs/api/resources/copilots/types/SendMessageResponse.js +0 -3
- package/dist/cjs/api/resources/copilots/types/StreamingChunk.d.ts +0 -22
- package/dist/cjs/api/resources/copilots/types/StreamingChunk.js +0 -3
- package/dist/cjs/api/resources/copilots/types/StringFieldSchema.d.ts +0 -6
- package/dist/cjs/api/resources/copilots/types/StringFieldSchema.js +0 -3
- package/dist/cjs/api/resources/copilots/types/WebSearchResult.d.ts +0 -5
- package/dist/cjs/api/resources/copilots/types/WebSearchResult.js +0 -3
- package/dist/cjs/api/resources/copilots/types/index.d.ts +0 -33
- package/dist/cjs/api/resources/copilots/types/index.js +0 -49
- package/dist/cjs/api/resources/documentCatalog/client/Client.d.ts +0 -84
- package/dist/cjs/api/resources/documentCatalog/client/Client.js +0 -293
- package/dist/cjs/api/resources/documentCatalog/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +0 -35
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.js +0 -3
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadFileRequest.d.ts +0 -27
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadFileRequest.js +0 -3
- package/dist/cjs/api/resources/documentCatalog/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/documentCatalog/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/documentCatalog/index.d.ts +0 -2
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.d.ts +0 -7
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.js +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.ts +0 -5
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.js +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +0 -4
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlRequest.js +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlResponse.js +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/UploadDocumentResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/UploadDocumentResponse.js +0 -3
- package/dist/cjs/api/resources/documentCatalog/types/index.d.ts +0 -5
- package/dist/cjs/api/resources/documentCatalog/types/index.js +0 -21
- package/dist/cjs/api/resources/documentCollections/client/Client.d.ts +0 -159
- package/dist/cjs/api/resources/documentCollections/client/Client.js +0 -438
- package/dist/cjs/api/resources/documentCollections/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documentCollections/client/index.js +0 -17
- package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +0 -22
- package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.js +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +0 -20
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.js +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +0 -28
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.ts +0 -9
- package/dist/cjs/api/resources/documentCollections/client/requests/DeleteCollectionRequest.js +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.ts +0 -10
- package/dist/cjs/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.js +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +0 -22
- package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +0 -28
- package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +0 -3
- package/dist/cjs/api/resources/documentCollections/client/requests/index.d.ts +0 -7
- package/dist/cjs/api/resources/documentCollections/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/documentCollections/index.d.ts +0 -2
- package/dist/cjs/api/resources/documentCollections/index.js +0 -18
- package/dist/cjs/api/resources/documentCollections/types/CreateCollectionResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/CreateCollectionResponse.js +0 -3
- package/dist/cjs/api/resources/documentCollections/types/DeleteCollectionResponse.d.ts +0 -3
- package/dist/cjs/api/resources/documentCollections/types/DeleteCollectionResponse.js +0 -3
- package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.ts +0 -4
- package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.js +0 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +0 -7
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.js +0 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts +0 -5
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncResponse.js +0 -3
- package/dist/cjs/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.ts +0 -6
- package/dist/cjs/api/resources/documentCollections/types/MongoSourceFieldsConfig.js +0 -3
- package/dist/cjs/api/resources/documentCollections/types/index.d.ts +0 -6
- package/dist/cjs/api/resources/documentCollections/types/index.js +0 -22
- package/dist/cjs/api/resources/search/client/Client.d.ts +0 -41
- package/dist/cjs/api/resources/search/client/Client.js +0 -122
- package/dist/cjs/api/resources/search/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/search/client/index.js +0 -17
- package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +0 -33
- package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.js +0 -3
- package/dist/cjs/api/resources/search/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/search/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/search/index.d.ts +0 -2
- package/dist/cjs/api/resources/search/index.js +0 -18
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchOptions.d.ts +0 -17
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchOptions.js +0 -3
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.d.ts +0 -10
- package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.js +0 -3
- package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.d.ts +0 -7
- package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.js +0 -3
- package/dist/cjs/api/resources/search/types/SearchResultChunk.d.ts +0 -7
- package/dist/cjs/api/resources/search/types/SearchResultChunk.js +0 -3
- package/dist/cjs/api/resources/search/types/SingleFieldFilter.d.ts +0 -6
- package/dist/cjs/api/resources/search/types/SingleFieldFilter.js +0 -3
- package/dist/cjs/api/resources/search/types/index.d.ts +0 -5
- package/dist/cjs/api/resources/search/types/index.js +0 -21
- package/dist/cjs/api/resources/users/client/Client.d.ts +0 -36
- package/dist/cjs/api/resources/users/client/Client.js +0 -114
- package/dist/cjs/api/resources/users/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/users/client/index.js +0 -2
- package/dist/cjs/api/resources/users/index.d.ts +0 -2
- package/dist/cjs/api/resources/users/index.js +0 -18
- package/dist/cjs/api/resources/users/types/UserMetadataPatch.d.ts +0 -5
- package/dist/cjs/api/resources/users/types/UserMetadataPatch.js +0 -3
- package/dist/cjs/api/resources/users/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/users/types/index.js +0 -17
- package/dist/cjs/core/file/exports.d.ts +0 -1
- package/dist/cjs/core/file/exports.js +0 -2
- package/dist/cjs/core/file/file.d.ts +0 -10
- package/dist/cjs/core/file/file.js +0 -221
- package/dist/cjs/core/file/index.d.ts +0 -2
- package/dist/cjs/core/file/index.js +0 -18
- package/dist/cjs/core/file/types.d.ts +0 -66
- package/dist/cjs/core/file/types.js +0 -2
- package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +0 -15
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +0 -185
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +0 -1
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +0 -12
- package/dist/cjs/core/form-data-utils/index.d.ts +0 -2
- package/dist/cjs/core/form-data-utils/index.js +0 -20
- package/dist/cjs/core/stream/Stream.d.ts +0 -47
- package/dist/cjs/core/stream/Stream.js +0 -172
- package/dist/cjs/core/stream/index.d.ts +0 -1
- package/dist/cjs/core/stream/index.js +0 -5
- package/dist/esm/api/resources/common/index.d.mts +0 -1
- package/dist/esm/api/resources/common/index.mjs +0 -1
- package/dist/esm/api/resources/common/types/Collaborator.d.mts +0 -5
- package/dist/esm/api/resources/common/types/CustomMetadataValue.d.mts +0 -1
- package/dist/esm/api/resources/common/types/ExternalResourceId.d.mts +0 -5
- package/dist/esm/api/resources/common/types/Operator.d.mts +0 -10
- package/dist/esm/api/resources/common/types/Operator.mjs +0 -10
- package/dist/esm/api/resources/common/types/ResourceIdentifier.d.mts +0 -10
- package/dist/esm/api/resources/common/types/ResourceType.d.mts +0 -22
- package/dist/esm/api/resources/common/types/ResourceType.mjs +0 -22
- package/dist/esm/api/resources/common/types/Role.d.mts +0 -5
- package/dist/esm/api/resources/common/types/Role.mjs +0 -5
- package/dist/esm/api/resources/common/types/Url.d.mts +0 -3
- package/dist/esm/api/resources/common/types/index.d.mts +0 -8
- package/dist/esm/api/resources/common/types/index.mjs +0 -8
- package/dist/esm/api/resources/copilots/client/Client.d.mts +0 -169
- package/dist/esm/api/resources/copilots/client/Client.mjs +0 -519
- package/dist/esm/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.mts +0 -13
- package/dist/esm/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/CreateConversationRequest.d.mts +0 -13
- package/dist/esm/api/resources/copilots/client/requests/CreateConversationRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.d.mts +0 -20
- package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/DeleteCopilotRequest.d.mts +0 -10
- package/dist/esm/api/resources/copilots/client/requests/DeleteCopilotRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/ExportCopilotsRequest.d.mts +0 -21
- package/dist/esm/api/resources/copilots/client/requests/ExportCopilotsRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.mts +0 -24
- package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.mts +0 -13
- package/dist/esm/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.d.mts +0 -28
- package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.d.mts +0 -56
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.mts +0 -21
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.mjs +0 -2
- package/dist/esm/api/resources/copilots/client/requests/index.d.mts +0 -10
- package/dist/esm/api/resources/copilots/types/AiEndpointConfiguration.d.mts +0 -4
- package/dist/esm/api/resources/copilots/types/AiEndpointConfiguration.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/BlockedChunk.d.mts +0 -5
- package/dist/esm/api/resources/copilots/types/BlockedChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/BooleanFieldSchema.d.mts +0 -5
- package/dist/esm/api/resources/copilots/types/BooleanFieldSchema.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/CollectionFilteredData.d.mts +0 -6
- package/dist/esm/api/resources/copilots/types/CollectionFilteredData.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/Configuration.d.mts +0 -7
- package/dist/esm/api/resources/copilots/types/Configuration.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/CreateConversationResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/CreateConversationResponse.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/CreateCopilotResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/CreateCopilotResponse.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/DataChunk.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/DataChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/DataFilter.d.mts +0 -6
- package/dist/esm/api/resources/copilots/types/DataFilter.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.d.mts +0 -6
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/DeleteCopilotResponse.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/DeleteCopilotResponse.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.d.mts +0 -1
- package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/ErrorChunk.d.mts +0 -4
- package/dist/esm/api/resources/copilots/types/ErrorChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/ErrorChunkData.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/ErrorChunkData.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/ExportCopilotsResponse.d.mts +0 -9
- package/dist/esm/api/resources/copilots/types/ExportCopilotsResponse.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/ExportedCopilot.d.mts +0 -24
- package/dist/esm/api/resources/copilots/types/ExportedCopilot.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/FeedbackEnum.d.mts +0 -5
- package/dist/esm/api/resources/copilots/types/FeedbackEnum.mjs +0 -5
- package/dist/esm/api/resources/copilots/types/Filter.d.mts +0 -16
- package/dist/esm/api/resources/copilots/types/Filter.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/FinalChunk.d.mts +0 -4
- package/dist/esm/api/resources/copilots/types/FinalChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/InitialChunk.d.mts +0 -7
- package/dist/esm/api/resources/copilots/types/InitialChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/InputVariable.d.mts +0 -4
- package/dist/esm/api/resources/copilots/types/InputVariable.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/InsertedAuditLog.d.mts +0 -3
- package/dist/esm/api/resources/copilots/types/InsertedAuditLog.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/MessageBlocked.d.mts +0 -7
- package/dist/esm/api/resources/copilots/types/MessageBlocked.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/MessageFeedback.d.mts +0 -6
- package/dist/esm/api/resources/copilots/types/MessageFeedback.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/MessageReply.d.mts +0 -11
- package/dist/esm/api/resources/copilots/types/MessageReply.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.d.mts +0 -6
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/ReferencedSource.d.mts +0 -7
- package/dist/esm/api/resources/copilots/types/ReferencedSource.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/ResponseChunk.d.mts +0 -5
- package/dist/esm/api/resources/copilots/types/ResponseChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.d.mts +0 -4
- package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.d.mts +0 -18
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/StreamingChunk.d.mts +0 -22
- package/dist/esm/api/resources/copilots/types/StreamingChunk.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.d.mts +0 -6
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/WebSearchResult.d.mts +0 -5
- package/dist/esm/api/resources/copilots/types/WebSearchResult.mjs +0 -2
- package/dist/esm/api/resources/copilots/types/index.d.mts +0 -33
- package/dist/esm/api/resources/copilots/types/index.mjs +0 -33
- package/dist/esm/api/resources/documentCatalog/client/Client.d.mts +0 -84
- package/dist/esm/api/resources/documentCatalog/client/Client.mjs +0 -256
- package/dist/esm/api/resources/documentCatalog/client/index.d.mts +0 -1
- package/dist/esm/api/resources/documentCatalog/client/index.mjs +0 -1
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts +0 -35
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadFileRequest.d.mts +0 -27
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadFileRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/documentCatalog/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/documentCatalog/index.d.mts +0 -2
- package/dist/esm/api/resources/documentCatalog/index.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.d.mts +0 -7
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.mts +0 -5
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.mts +0 -4
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlResponse.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/types/UploadDocumentResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCatalog/types/UploadDocumentResponse.mjs +0 -2
- package/dist/esm/api/resources/documentCatalog/types/index.d.mts +0 -5
- package/dist/esm/api/resources/documentCatalog/types/index.mjs +0 -5
- package/dist/esm/api/resources/documentCollections/client/Client.d.mts +0 -159
- package/dist/esm/api/resources/documentCollections/client/Client.mjs +0 -401
- package/dist/esm/api/resources/documentCollections/client/index.d.mts +0 -1
- package/dist/esm/api/resources/documentCollections/client/index.mjs +0 -1
- package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.mts +0 -22
- package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.mts +0 -20
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.mts +0 -28
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.mts +0 -9
- package/dist/esm/api/resources/documentCollections/client/requests/DeleteCollectionRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.mts +0 -10
- package/dist/esm/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.mts +0 -22
- package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.mts +0 -28
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/client/requests/index.d.mts +0 -7
- package/dist/esm/api/resources/documentCollections/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/documentCollections/index.d.mts +0 -2
- package/dist/esm/api/resources/documentCollections/index.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/types/CreateCollectionResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/CreateCollectionResponse.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/types/DeleteCollectionResponse.d.mts +0 -3
- package/dist/esm/api/resources/documentCollections/types/DeleteCollectionResponse.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.mts +0 -4
- package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.mts +0 -7
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.mts +0 -5
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncResponse.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.mts +0 -6
- package/dist/esm/api/resources/documentCollections/types/MongoSourceFieldsConfig.mjs +0 -2
- package/dist/esm/api/resources/documentCollections/types/index.d.mts +0 -6
- package/dist/esm/api/resources/documentCollections/types/index.mjs +0 -6
- package/dist/esm/api/resources/search/client/Client.d.mts +0 -41
- package/dist/esm/api/resources/search/client/Client.mjs +0 -85
- package/dist/esm/api/resources/search/client/index.d.mts +0 -1
- package/dist/esm/api/resources/search/client/index.mjs +0 -1
- package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.mts +0 -33
- package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.mjs +0 -2
- package/dist/esm/api/resources/search/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/search/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/search/index.d.mts +0 -2
- package/dist/esm/api/resources/search/index.mjs +0 -2
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchOptions.d.mts +0 -17
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchOptions.mjs +0 -2
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.d.mts +0 -10
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.mjs +0 -2
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.d.mts +0 -7
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.mjs +0 -2
- package/dist/esm/api/resources/search/types/SearchResultChunk.d.mts +0 -7
- package/dist/esm/api/resources/search/types/SearchResultChunk.mjs +0 -2
- package/dist/esm/api/resources/search/types/SingleFieldFilter.d.mts +0 -6
- package/dist/esm/api/resources/search/types/SingleFieldFilter.mjs +0 -2
- package/dist/esm/api/resources/search/types/index.d.mts +0 -5
- package/dist/esm/api/resources/search/types/index.mjs +0 -5
- package/dist/esm/api/resources/users/client/Client.d.mts +0 -36
- package/dist/esm/api/resources/users/client/Client.mjs +0 -77
- package/dist/esm/api/resources/users/client/index.d.mts +0 -1
- package/dist/esm/api/resources/users/client/index.mjs +0 -1
- package/dist/esm/api/resources/users/index.d.mts +0 -2
- package/dist/esm/api/resources/users/index.mjs +0 -2
- package/dist/esm/api/resources/users/types/UserMetadataPatch.d.mts +0 -5
- package/dist/esm/api/resources/users/types/UserMetadataPatch.mjs +0 -2
- package/dist/esm/api/resources/users/types/index.d.mts +0 -1
- package/dist/esm/api/resources/users/types/index.mjs +0 -1
- package/dist/esm/core/file/exports.d.mts +0 -1
- package/dist/esm/core/file/exports.mjs +0 -1
- package/dist/esm/core/file/file.d.mts +0 -10
- package/dist/esm/core/file/file.mjs +0 -184
- package/dist/esm/core/file/index.d.mts +0 -2
- package/dist/esm/core/file/index.mjs +0 -2
- package/dist/esm/core/file/types.d.mts +0 -66
- package/dist/esm/core/file/types.mjs +0 -1
- package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +0 -15
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +0 -147
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +0 -1
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +0 -9
- package/dist/esm/core/form-data-utils/index.d.mts +0 -2
- package/dist/esm/core/form-data-utils/index.mjs +0 -2
- package/dist/esm/core/stream/Stream.d.mts +0 -47
- package/dist/esm/core/stream/Stream.mjs +0 -167
- package/dist/esm/core/stream/index.d.mts +0 -1
- package/dist/esm/core/stream/index.mjs +0 -1
- /package/dist/cjs/api/resources/{copilots → agents}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{copilots → agents}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{common/types/Collaborator.js → agents/client/requests/FetchResponseAgentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{common/types/CustomMetadataValue.js → agents/client/requests/SendMessageAgentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{copilots → agents}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{copilots → agents}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{copilots → agents}/index.js +0 -0
- /package/dist/cjs/api/resources/{common/types/ExternalResourceId.js → agents/types/FetchResponseAgentsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{common/types/ResourceIdentifier.js → agents/types/SendMessageAgentsRequestConversation.js} +0 -0
- /package/dist/cjs/api/resources/{common/types/Url.js → agents/types/SendMessageAgentsResponse.js} +0 -0
- /package/dist/esm/api/resources/{copilots → agents}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{copilots → agents}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{common/types/Collaborator.mjs → agents/client/requests/FetchResponseAgentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{common/types/CustomMetadataValue.mjs → agents/client/requests/SendMessageAgentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{copilots → agents}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{copilots → agents}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{copilots → agents}/index.mjs +0 -0
- /package/dist/esm/api/resources/{common/types/ExternalResourceId.mjs → agents/types/FetchResponseAgentsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{common/types/ResourceIdentifier.mjs → agents/types/SendMessageAgentsRequestConversation.mjs} +0 -0
- /package/dist/esm/api/resources/{common/types/Url.mjs → agents/types/SendMessageAgentsResponse.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -1,1321 +1,9 @@
|
|
|
1
1
|
# Reference
|
|
2
|
-
##
|
|
3
|
-
<details><summary><code>client.
|
|
2
|
+
## Agents
|
|
3
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">sendMessage</a>({ ...params }) -> Credal.SendMessageAgentsResponse</code></summary>
|
|
4
4
|
<dl>
|
|
5
5
|
<dd>
|
|
6
6
|
|
|
7
|
-
#### 📝 Description
|
|
8
|
-
|
|
9
|
-
<dl>
|
|
10
|
-
<dd>
|
|
11
|
-
|
|
12
|
-
<dl>
|
|
13
|
-
<dd>
|
|
14
|
-
|
|
15
|
-
Create a new agent. The API key used will be added to the agent for future Requests
|
|
16
|
-
</dd>
|
|
17
|
-
</dl>
|
|
18
|
-
</dd>
|
|
19
|
-
</dl>
|
|
20
|
-
|
|
21
|
-
#### 🔌 Usage
|
|
22
|
-
|
|
23
|
-
<dl>
|
|
24
|
-
<dd>
|
|
25
|
-
|
|
26
|
-
<dl>
|
|
27
|
-
<dd>
|
|
28
|
-
|
|
29
|
-
```typescript
|
|
30
|
-
await client.copilots.createCopilot({
|
|
31
|
-
name: "Customer Agent",
|
|
32
|
-
description: "This agent is used to answer customer requests based on internal documentation.",
|
|
33
|
-
collaborators: [{
|
|
34
|
-
email: "test@gmail.com",
|
|
35
|
-
role: "editor"
|
|
36
|
-
}]
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
</dd>
|
|
41
|
-
</dl>
|
|
42
|
-
</dd>
|
|
43
|
-
</dl>
|
|
44
|
-
|
|
45
|
-
#### ⚙️ Parameters
|
|
46
|
-
|
|
47
|
-
<dl>
|
|
48
|
-
<dd>
|
|
49
|
-
|
|
50
|
-
<dl>
|
|
51
|
-
<dd>
|
|
52
|
-
|
|
53
|
-
**request:** `Credal.CreateCopilotRequest`
|
|
54
|
-
|
|
55
|
-
</dd>
|
|
56
|
-
</dl>
|
|
57
|
-
|
|
58
|
-
<dl>
|
|
59
|
-
<dd>
|
|
60
|
-
|
|
61
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
62
|
-
|
|
63
|
-
</dd>
|
|
64
|
-
</dl>
|
|
65
|
-
</dd>
|
|
66
|
-
</dl>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</dd>
|
|
70
|
-
</dl>
|
|
71
|
-
</details>
|
|
72
|
-
|
|
73
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">createConversation</a>({ ...params }) -> Credal.CreateConversationResponse</code></summary>
|
|
74
|
-
<dl>
|
|
75
|
-
<dd>
|
|
76
|
-
|
|
77
|
-
#### 📝 Description
|
|
78
|
-
|
|
79
|
-
<dl>
|
|
80
|
-
<dd>
|
|
81
|
-
|
|
82
|
-
<dl>
|
|
83
|
-
<dd>
|
|
84
|
-
|
|
85
|
-
OPTIONAL. Create a new conversation with the Agent. The conversation ID can be used in the `sendMessage` endpoint. The `sendMessage` endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.
|
|
86
|
-
</dd>
|
|
87
|
-
</dl>
|
|
88
|
-
</dd>
|
|
89
|
-
</dl>
|
|
90
|
-
|
|
91
|
-
#### 🔌 Usage
|
|
92
|
-
|
|
93
|
-
<dl>
|
|
94
|
-
<dd>
|
|
95
|
-
|
|
96
|
-
<dl>
|
|
97
|
-
<dd>
|
|
98
|
-
|
|
99
|
-
```typescript
|
|
100
|
-
await client.copilots.createConversation({
|
|
101
|
-
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
102
|
-
userEmail: "ravin@credal.ai"
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
```
|
|
106
|
-
</dd>
|
|
107
|
-
</dl>
|
|
108
|
-
</dd>
|
|
109
|
-
</dl>
|
|
110
|
-
|
|
111
|
-
#### ⚙️ Parameters
|
|
112
|
-
|
|
113
|
-
<dl>
|
|
114
|
-
<dd>
|
|
115
|
-
|
|
116
|
-
<dl>
|
|
117
|
-
<dd>
|
|
118
|
-
|
|
119
|
-
**request:** `Credal.CreateConversationRequest`
|
|
120
|
-
|
|
121
|
-
</dd>
|
|
122
|
-
</dl>
|
|
123
|
-
|
|
124
|
-
<dl>
|
|
125
|
-
<dd>
|
|
126
|
-
|
|
127
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
128
|
-
|
|
129
|
-
</dd>
|
|
130
|
-
</dl>
|
|
131
|
-
</dd>
|
|
132
|
-
</dl>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
</dd>
|
|
136
|
-
</dl>
|
|
137
|
-
</details>
|
|
138
|
-
|
|
139
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">provideMessageFeedback</a>({ ...params }) -> void</code></summary>
|
|
140
|
-
<dl>
|
|
141
|
-
<dd>
|
|
142
|
-
|
|
143
|
-
#### 🔌 Usage
|
|
144
|
-
|
|
145
|
-
<dl>
|
|
146
|
-
<dd>
|
|
147
|
-
|
|
148
|
-
<dl>
|
|
149
|
-
<dd>
|
|
150
|
-
|
|
151
|
-
```typescript
|
|
152
|
-
await client.copilots.provideMessageFeedback({
|
|
153
|
-
userEmail: "ravin@credal.ai",
|
|
154
|
-
messageId: "dd721cd8-4bf2-4b94-9869-258df3dab9dc",
|
|
155
|
-
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
156
|
-
messageFeedback: {
|
|
157
|
-
feedback: "NEGATIVE",
|
|
158
|
-
suggestedAnswer: "Yes, Credal is SOC 2 compliant.",
|
|
159
|
-
descriptiveFeedback: "The response should be extremely clear and concise."
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
```
|
|
164
|
-
</dd>
|
|
165
|
-
</dl>
|
|
166
|
-
</dd>
|
|
167
|
-
</dl>
|
|
168
|
-
|
|
169
|
-
#### ⚙️ Parameters
|
|
170
|
-
|
|
171
|
-
<dl>
|
|
172
|
-
<dd>
|
|
173
|
-
|
|
174
|
-
<dl>
|
|
175
|
-
<dd>
|
|
176
|
-
|
|
177
|
-
**request:** `Credal.ProvideMessageFeedbackRequest`
|
|
178
|
-
|
|
179
|
-
</dd>
|
|
180
|
-
</dl>
|
|
181
|
-
|
|
182
|
-
<dl>
|
|
183
|
-
<dd>
|
|
184
|
-
|
|
185
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
186
|
-
|
|
187
|
-
</dd>
|
|
188
|
-
</dl>
|
|
189
|
-
</dd>
|
|
190
|
-
</dl>
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
</dd>
|
|
194
|
-
</dl>
|
|
195
|
-
</details>
|
|
196
|
-
|
|
197
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">sendMessage</a>({ ...params }) -> Credal.SendAgentMessageResponse</code></summary>
|
|
198
|
-
<dl>
|
|
199
|
-
<dd>
|
|
200
|
-
|
|
201
|
-
#### 🔌 Usage
|
|
202
|
-
|
|
203
|
-
<dl>
|
|
204
|
-
<dd>
|
|
205
|
-
|
|
206
|
-
<dl>
|
|
207
|
-
<dd>
|
|
208
|
-
|
|
209
|
-
```typescript
|
|
210
|
-
await client.copilots.sendMessage({
|
|
211
|
-
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
212
|
-
message: "Is Credal SOC 2 compliant?",
|
|
213
|
-
userEmail: "ravin@credal.ai",
|
|
214
|
-
inputVariables: [{
|
|
215
|
-
name: "input1",
|
|
216
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"]
|
|
217
|
-
}, {
|
|
218
|
-
name: "input2",
|
|
219
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"]
|
|
220
|
-
}]
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
```
|
|
224
|
-
</dd>
|
|
225
|
-
</dl>
|
|
226
|
-
</dd>
|
|
227
|
-
</dl>
|
|
228
|
-
|
|
229
|
-
#### ⚙️ Parameters
|
|
230
|
-
|
|
231
|
-
<dl>
|
|
232
|
-
<dd>
|
|
233
|
-
|
|
234
|
-
<dl>
|
|
235
|
-
<dd>
|
|
236
|
-
|
|
237
|
-
**request:** `Credal.SendMessageRequest`
|
|
238
|
-
|
|
239
|
-
</dd>
|
|
240
|
-
</dl>
|
|
241
|
-
|
|
242
|
-
<dl>
|
|
243
|
-
<dd>
|
|
244
|
-
|
|
245
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
246
|
-
|
|
247
|
-
</dd>
|
|
248
|
-
</dl>
|
|
249
|
-
</dd>
|
|
250
|
-
</dl>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
</dd>
|
|
254
|
-
</dl>
|
|
255
|
-
</details>
|
|
256
|
-
|
|
257
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">streamMessage</a>({ ...params }) -> core.Stream<Credal.StreamingChunk></code></summary>
|
|
258
|
-
<dl>
|
|
259
|
-
<dd>
|
|
260
|
-
|
|
261
|
-
#### 📝 Description
|
|
262
|
-
|
|
263
|
-
<dl>
|
|
264
|
-
<dd>
|
|
265
|
-
|
|
266
|
-
<dl>
|
|
267
|
-
<dd>
|
|
268
|
-
|
|
269
|
-
This endpoint allows you to send a message to a specific agent and get the response back as a streamed set of Server-Sent Events.
|
|
270
|
-
</dd>
|
|
271
|
-
</dl>
|
|
272
|
-
</dd>
|
|
273
|
-
</dl>
|
|
274
|
-
|
|
275
|
-
#### 🔌 Usage
|
|
276
|
-
|
|
277
|
-
<dl>
|
|
278
|
-
<dd>
|
|
279
|
-
|
|
280
|
-
<dl>
|
|
281
|
-
<dd>
|
|
282
|
-
|
|
283
|
-
```typescript
|
|
284
|
-
const response = await client.copilots.streamMessage({
|
|
285
|
-
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
286
|
-
message: "Is Credal SOC 2 compliant?",
|
|
287
|
-
email: "ravin@credal.ai",
|
|
288
|
-
inputVariables: [{
|
|
289
|
-
name: "input1",
|
|
290
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"]
|
|
291
|
-
}, {
|
|
292
|
-
name: "input2",
|
|
293
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"]
|
|
294
|
-
}]
|
|
295
|
-
});
|
|
296
|
-
for await (const item of response) {
|
|
297
|
-
console.log(item);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
```
|
|
301
|
-
</dd>
|
|
302
|
-
</dl>
|
|
303
|
-
</dd>
|
|
304
|
-
</dl>
|
|
305
|
-
|
|
306
|
-
#### ⚙️ Parameters
|
|
307
|
-
|
|
308
|
-
<dl>
|
|
309
|
-
<dd>
|
|
310
|
-
|
|
311
|
-
<dl>
|
|
312
|
-
<dd>
|
|
313
|
-
|
|
314
|
-
**request:** `Credal.StreamMessageRequest`
|
|
315
|
-
|
|
316
|
-
</dd>
|
|
317
|
-
</dl>
|
|
318
|
-
|
|
319
|
-
<dl>
|
|
320
|
-
<dd>
|
|
321
|
-
|
|
322
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
323
|
-
|
|
324
|
-
</dd>
|
|
325
|
-
</dl>
|
|
326
|
-
</dd>
|
|
327
|
-
</dl>
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
</dd>
|
|
331
|
-
</dl>
|
|
332
|
-
</details>
|
|
333
|
-
|
|
334
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">addCollectionToCopilot</a>({ ...params }) -> void</code></summary>
|
|
335
|
-
<dl>
|
|
336
|
-
<dd>
|
|
337
|
-
|
|
338
|
-
#### 📝 Description
|
|
339
|
-
|
|
340
|
-
<dl>
|
|
341
|
-
<dd>
|
|
342
|
-
|
|
343
|
-
<dl>
|
|
344
|
-
<dd>
|
|
345
|
-
|
|
346
|
-
Link a collection with a agent. The API Key used must be added to both the collection and the agent beforehand.
|
|
347
|
-
</dd>
|
|
348
|
-
</dl>
|
|
349
|
-
</dd>
|
|
350
|
-
</dl>
|
|
351
|
-
|
|
352
|
-
#### 🔌 Usage
|
|
353
|
-
|
|
354
|
-
<dl>
|
|
355
|
-
<dd>
|
|
356
|
-
|
|
357
|
-
<dl>
|
|
358
|
-
<dd>
|
|
359
|
-
|
|
360
|
-
```typescript
|
|
361
|
-
await client.copilots.addCollectionToCopilot({
|
|
362
|
-
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
363
|
-
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
```
|
|
367
|
-
</dd>
|
|
368
|
-
</dl>
|
|
369
|
-
</dd>
|
|
370
|
-
</dl>
|
|
371
|
-
|
|
372
|
-
#### ⚙️ Parameters
|
|
373
|
-
|
|
374
|
-
<dl>
|
|
375
|
-
<dd>
|
|
376
|
-
|
|
377
|
-
<dl>
|
|
378
|
-
<dd>
|
|
379
|
-
|
|
380
|
-
**request:** `Credal.AddCollectionToCopilotRequest`
|
|
381
|
-
|
|
382
|
-
</dd>
|
|
383
|
-
</dl>
|
|
384
|
-
|
|
385
|
-
<dl>
|
|
386
|
-
<dd>
|
|
387
|
-
|
|
388
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
389
|
-
|
|
390
|
-
</dd>
|
|
391
|
-
</dl>
|
|
392
|
-
</dd>
|
|
393
|
-
</dl>
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
</dd>
|
|
397
|
-
</dl>
|
|
398
|
-
</details>
|
|
399
|
-
|
|
400
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">removeCollectionFromCopilot</a>({ ...params }) -> void</code></summary>
|
|
401
|
-
<dl>
|
|
402
|
-
<dd>
|
|
403
|
-
|
|
404
|
-
#### 📝 Description
|
|
405
|
-
|
|
406
|
-
<dl>
|
|
407
|
-
<dd>
|
|
408
|
-
|
|
409
|
-
<dl>
|
|
410
|
-
<dd>
|
|
411
|
-
|
|
412
|
-
Unlink a collection with a agent. The API Key used must be added to both the collection and the agent beforehand.
|
|
413
|
-
</dd>
|
|
414
|
-
</dl>
|
|
415
|
-
</dd>
|
|
416
|
-
</dl>
|
|
417
|
-
|
|
418
|
-
#### 🔌 Usage
|
|
419
|
-
|
|
420
|
-
<dl>
|
|
421
|
-
<dd>
|
|
422
|
-
|
|
423
|
-
<dl>
|
|
424
|
-
<dd>
|
|
425
|
-
|
|
426
|
-
```typescript
|
|
427
|
-
await client.copilots.removeCollectionFromCopilot({
|
|
428
|
-
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
429
|
-
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
```
|
|
433
|
-
</dd>
|
|
434
|
-
</dl>
|
|
435
|
-
</dd>
|
|
436
|
-
</dl>
|
|
437
|
-
|
|
438
|
-
#### ⚙️ Parameters
|
|
439
|
-
|
|
440
|
-
<dl>
|
|
441
|
-
<dd>
|
|
442
|
-
|
|
443
|
-
<dl>
|
|
444
|
-
<dd>
|
|
445
|
-
|
|
446
|
-
**request:** `Credal.RemoveCollectionFromCopilotRequest`
|
|
447
|
-
|
|
448
|
-
</dd>
|
|
449
|
-
</dl>
|
|
450
|
-
|
|
451
|
-
<dl>
|
|
452
|
-
<dd>
|
|
453
|
-
|
|
454
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
455
|
-
|
|
456
|
-
</dd>
|
|
457
|
-
</dl>
|
|
458
|
-
</dd>
|
|
459
|
-
</dl>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
</dd>
|
|
463
|
-
</dl>
|
|
464
|
-
</details>
|
|
465
|
-
|
|
466
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">updateConfiguration</a>({ ...params }) -> void</code></summary>
|
|
467
|
-
<dl>
|
|
468
|
-
<dd>
|
|
469
|
-
|
|
470
|
-
#### 📝 Description
|
|
471
|
-
|
|
472
|
-
<dl>
|
|
473
|
-
<dd>
|
|
474
|
-
|
|
475
|
-
<dl>
|
|
476
|
-
<dd>
|
|
477
|
-
|
|
478
|
-
Update the configuration for a agent
|
|
479
|
-
</dd>
|
|
480
|
-
</dl>
|
|
481
|
-
</dd>
|
|
482
|
-
</dl>
|
|
483
|
-
|
|
484
|
-
#### 🔌 Usage
|
|
485
|
-
|
|
486
|
-
<dl>
|
|
487
|
-
<dd>
|
|
488
|
-
|
|
489
|
-
<dl>
|
|
490
|
-
<dd>
|
|
491
|
-
|
|
492
|
-
```typescript
|
|
493
|
-
await client.copilots.updateConfiguration({
|
|
494
|
-
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
495
|
-
configuration: {
|
|
496
|
-
name: "Customer Agent",
|
|
497
|
-
description: "This agent is used to answer customer requests based on internal documentation.",
|
|
498
|
-
prompt: "You are a polite, helpful assistant used to answer customer requests.",
|
|
499
|
-
aiEndpointConfiguration: {
|
|
500
|
-
baseUrl: "https://api.openai.com/v1/",
|
|
501
|
-
apiKey: "<YOUR_API_KEY_HERE>"
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
|
-
|
|
506
|
-
```
|
|
507
|
-
</dd>
|
|
508
|
-
</dl>
|
|
509
|
-
</dd>
|
|
510
|
-
</dl>
|
|
511
|
-
|
|
512
|
-
#### ⚙️ Parameters
|
|
513
|
-
|
|
514
|
-
<dl>
|
|
515
|
-
<dd>
|
|
516
|
-
|
|
517
|
-
<dl>
|
|
518
|
-
<dd>
|
|
519
|
-
|
|
520
|
-
**request:** `Credal.UpdateConfigurationRequest`
|
|
521
|
-
|
|
522
|
-
</dd>
|
|
523
|
-
</dl>
|
|
524
|
-
|
|
525
|
-
<dl>
|
|
526
|
-
<dd>
|
|
527
|
-
|
|
528
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
529
|
-
|
|
530
|
-
</dd>
|
|
531
|
-
</dl>
|
|
532
|
-
</dd>
|
|
533
|
-
</dl>
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
</dd>
|
|
537
|
-
</dl>
|
|
538
|
-
</details>
|
|
539
|
-
|
|
540
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">deleteCopilot</a>({ ...params }) -> Credal.DeleteCopilotResponse</code></summary>
|
|
541
|
-
<dl>
|
|
542
|
-
<dd>
|
|
543
|
-
|
|
544
|
-
#### 🔌 Usage
|
|
545
|
-
|
|
546
|
-
<dl>
|
|
547
|
-
<dd>
|
|
548
|
-
|
|
549
|
-
<dl>
|
|
550
|
-
<dd>
|
|
551
|
-
|
|
552
|
-
```typescript
|
|
553
|
-
await client.copilots.deleteCopilot({
|
|
554
|
-
id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
|
|
555
|
-
});
|
|
556
|
-
|
|
557
|
-
```
|
|
558
|
-
</dd>
|
|
559
|
-
</dl>
|
|
560
|
-
</dd>
|
|
561
|
-
</dl>
|
|
562
|
-
|
|
563
|
-
#### ⚙️ Parameters
|
|
564
|
-
|
|
565
|
-
<dl>
|
|
566
|
-
<dd>
|
|
567
|
-
|
|
568
|
-
<dl>
|
|
569
|
-
<dd>
|
|
570
|
-
|
|
571
|
-
**request:** `Credal.DeleteCopilotRequest`
|
|
572
|
-
|
|
573
|
-
</dd>
|
|
574
|
-
</dl>
|
|
575
|
-
|
|
576
|
-
<dl>
|
|
577
|
-
<dd>
|
|
578
|
-
|
|
579
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
580
|
-
|
|
581
|
-
</dd>
|
|
582
|
-
</dl>
|
|
583
|
-
</dd>
|
|
584
|
-
</dl>
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
</dd>
|
|
588
|
-
</dl>
|
|
589
|
-
</details>
|
|
590
|
-
|
|
591
|
-
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">export</a>({ ...params }) -> Credal.ExportCopilotsResponse</code></summary>
|
|
592
|
-
<dl>
|
|
593
|
-
<dd>
|
|
594
|
-
|
|
595
|
-
#### 📝 Description
|
|
596
|
-
|
|
597
|
-
<dl>
|
|
598
|
-
<dd>
|
|
599
|
-
|
|
600
|
-
<dl>
|
|
601
|
-
<dd>
|
|
602
|
-
|
|
603
|
-
Export copilot configurations for backup or migration purposes.
|
|
604
|
-
|
|
605
|
-
**IMPORTANT**: This endpoint requires:
|
|
606
|
-
- Admin privileges
|
|
607
|
-
- The 'ai-usage-analytics-log.export' scope on the API key
|
|
608
|
-
|
|
609
|
-
Returns all deployed copilots with their full configuration including model settings, tools, and deployment details. Optional date filters can be applied to narrow down results.
|
|
610
|
-
</dd>
|
|
611
|
-
</dl>
|
|
612
|
-
</dd>
|
|
613
|
-
</dl>
|
|
614
|
-
|
|
615
|
-
#### 🔌 Usage
|
|
616
|
-
|
|
617
|
-
<dl>
|
|
618
|
-
<dd>
|
|
619
|
-
|
|
620
|
-
<dl>
|
|
621
|
-
<dd>
|
|
622
|
-
|
|
623
|
-
```typescript
|
|
624
|
-
await client.copilots.export({
|
|
625
|
-
agentCreatedFrom: "2024-01-01T00:00:00Z",
|
|
626
|
-
agentCreatedTo: "2024-12-31T23:59:59Z"
|
|
627
|
-
});
|
|
628
|
-
|
|
629
|
-
```
|
|
630
|
-
</dd>
|
|
631
|
-
</dl>
|
|
632
|
-
</dd>
|
|
633
|
-
</dl>
|
|
634
|
-
|
|
635
|
-
#### ⚙️ Parameters
|
|
636
|
-
|
|
637
|
-
<dl>
|
|
638
|
-
<dd>
|
|
639
|
-
|
|
640
|
-
<dl>
|
|
641
|
-
<dd>
|
|
642
|
-
|
|
643
|
-
**request:** `Credal.ExportCopilotsRequest`
|
|
644
|
-
|
|
645
|
-
</dd>
|
|
646
|
-
</dl>
|
|
647
|
-
|
|
648
|
-
<dl>
|
|
649
|
-
<dd>
|
|
650
|
-
|
|
651
|
-
**requestOptions:** `CopilotsClient.RequestOptions`
|
|
652
|
-
|
|
653
|
-
</dd>
|
|
654
|
-
</dl>
|
|
655
|
-
</dd>
|
|
656
|
-
</dl>
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
</dd>
|
|
660
|
-
</dl>
|
|
661
|
-
</details>
|
|
662
|
-
|
|
663
|
-
## DocumentCatalog
|
|
664
|
-
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">uploadDocumentContents</a>({ ...params }) -> Credal.UploadDocumentResponse</code></summary>
|
|
665
|
-
<dl>
|
|
666
|
-
<dd>
|
|
667
|
-
|
|
668
|
-
#### 🔌 Usage
|
|
669
|
-
|
|
670
|
-
<dl>
|
|
671
|
-
<dd>
|
|
672
|
-
|
|
673
|
-
<dl>
|
|
674
|
-
<dd>
|
|
675
|
-
|
|
676
|
-
```typescript
|
|
677
|
-
await client.documentCatalog.uploadDocumentContents({
|
|
678
|
-
documentName: "My Document",
|
|
679
|
-
documentContents: "Lorem ipsum...",
|
|
680
|
-
documentExternalId: "73eead26-d124-4940-b329-5f068a0a8db9",
|
|
681
|
-
allowedUsersEmailAddresses: ["jack@credal.ai", "ravin@credal.ai"],
|
|
682
|
-
uploadAsUserEmail: "jack@credal.ai"
|
|
683
|
-
});
|
|
684
|
-
|
|
685
|
-
```
|
|
686
|
-
</dd>
|
|
687
|
-
</dl>
|
|
688
|
-
</dd>
|
|
689
|
-
</dl>
|
|
690
|
-
|
|
691
|
-
#### ⚙️ Parameters
|
|
692
|
-
|
|
693
|
-
<dl>
|
|
694
|
-
<dd>
|
|
695
|
-
|
|
696
|
-
<dl>
|
|
697
|
-
<dd>
|
|
698
|
-
|
|
699
|
-
**request:** `Credal.UploadDocumentContentsRequest`
|
|
700
|
-
|
|
701
|
-
</dd>
|
|
702
|
-
</dl>
|
|
703
|
-
|
|
704
|
-
<dl>
|
|
705
|
-
<dd>
|
|
706
|
-
|
|
707
|
-
**requestOptions:** `DocumentCatalogClient.RequestOptions`
|
|
708
|
-
|
|
709
|
-
</dd>
|
|
710
|
-
</dl>
|
|
711
|
-
</dd>
|
|
712
|
-
</dl>
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
</dd>
|
|
716
|
-
</dl>
|
|
717
|
-
</details>
|
|
718
|
-
|
|
719
|
-
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">syncSourceByUrl</a>({ ...params }) -> Credal.SyncSourceByUrlResponse</code></summary>
|
|
720
|
-
<dl>
|
|
721
|
-
<dd>
|
|
722
|
-
|
|
723
|
-
#### 📝 Description
|
|
724
|
-
|
|
725
|
-
<dl>
|
|
726
|
-
<dd>
|
|
727
|
-
|
|
728
|
-
<dl>
|
|
729
|
-
<dd>
|
|
730
|
-
|
|
731
|
-
Sync a document from a source URL. Does not support recursive web search. Reach out to a Credal representative for access.
|
|
732
|
-
</dd>
|
|
733
|
-
</dl>
|
|
734
|
-
</dd>
|
|
735
|
-
</dl>
|
|
736
|
-
|
|
737
|
-
#### 🔌 Usage
|
|
738
|
-
|
|
739
|
-
<dl>
|
|
740
|
-
<dd>
|
|
741
|
-
|
|
742
|
-
<dl>
|
|
743
|
-
<dd>
|
|
744
|
-
|
|
745
|
-
```typescript
|
|
746
|
-
await client.documentCatalog.syncSourceByUrl({
|
|
747
|
-
sourceUrl: "https://drive.google.com/file/d/123456/view",
|
|
748
|
-
uploadAsUserEmail: "ria@credal.ai"
|
|
749
|
-
});
|
|
750
|
-
|
|
751
|
-
```
|
|
752
|
-
</dd>
|
|
753
|
-
</dl>
|
|
754
|
-
</dd>
|
|
755
|
-
</dl>
|
|
756
|
-
|
|
757
|
-
#### ⚙️ Parameters
|
|
758
|
-
|
|
759
|
-
<dl>
|
|
760
|
-
<dd>
|
|
761
|
-
|
|
762
|
-
<dl>
|
|
763
|
-
<dd>
|
|
764
|
-
|
|
765
|
-
**request:** `Credal.SyncSourceByUrlRequest`
|
|
766
|
-
|
|
767
|
-
</dd>
|
|
768
|
-
</dl>
|
|
769
|
-
|
|
770
|
-
<dl>
|
|
771
|
-
<dd>
|
|
772
|
-
|
|
773
|
-
**requestOptions:** `DocumentCatalogClient.RequestOptions`
|
|
774
|
-
|
|
775
|
-
</dd>
|
|
776
|
-
</dl>
|
|
777
|
-
</dd>
|
|
778
|
-
</dl>
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
</dd>
|
|
782
|
-
</dl>
|
|
783
|
-
</details>
|
|
784
|
-
|
|
785
|
-
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">metadata</a>({ ...params }) -> void</code></summary>
|
|
786
|
-
<dl>
|
|
787
|
-
<dd>
|
|
788
|
-
|
|
789
|
-
#### 📝 Description
|
|
790
|
-
|
|
791
|
-
<dl>
|
|
792
|
-
<dd>
|
|
793
|
-
|
|
794
|
-
<dl>
|
|
795
|
-
<dd>
|
|
796
|
-
|
|
797
|
-
Bulk patch metadata for documents, synced natively by Credal or manual API uploads
|
|
798
|
-
</dd>
|
|
799
|
-
</dl>
|
|
800
|
-
</dd>
|
|
801
|
-
</dl>
|
|
802
|
-
|
|
803
|
-
#### 🔌 Usage
|
|
804
|
-
|
|
805
|
-
<dl>
|
|
806
|
-
<dd>
|
|
807
|
-
|
|
808
|
-
<dl>
|
|
809
|
-
<dd>
|
|
810
|
-
|
|
811
|
-
```typescript
|
|
812
|
-
await client.documentCatalog.metadata({
|
|
813
|
-
sources: [{
|
|
814
|
-
metadata: {
|
|
815
|
-
"Department": "HR",
|
|
816
|
-
"Country": "United States"
|
|
817
|
-
},
|
|
818
|
-
resourceIdentifier: {
|
|
819
|
-
type: "external-resource-id",
|
|
820
|
-
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
821
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
822
|
-
}
|
|
823
|
-
}, {
|
|
824
|
-
metadata: {
|
|
825
|
-
"Department": "Sales",
|
|
826
|
-
"Vertical": "Healthcare"
|
|
827
|
-
},
|
|
828
|
-
resourceIdentifier: {
|
|
829
|
-
type: "external-resource-id",
|
|
830
|
-
externalResourceId: "123456",
|
|
831
|
-
resourceType: "ZENDESK_TICKET"
|
|
832
|
-
}
|
|
833
|
-
}],
|
|
834
|
-
uploadAsUserEmail: "ben@credal.ai"
|
|
835
|
-
});
|
|
836
|
-
|
|
837
|
-
```
|
|
838
|
-
</dd>
|
|
839
|
-
</dl>
|
|
840
|
-
</dd>
|
|
841
|
-
</dl>
|
|
842
|
-
|
|
843
|
-
#### ⚙️ Parameters
|
|
844
|
-
|
|
845
|
-
<dl>
|
|
846
|
-
<dd>
|
|
847
|
-
|
|
848
|
-
<dl>
|
|
849
|
-
<dd>
|
|
850
|
-
|
|
851
|
-
**request:** `Credal.DocumentMetadataPatchRequest`
|
|
852
|
-
|
|
853
|
-
</dd>
|
|
854
|
-
</dl>
|
|
855
|
-
|
|
856
|
-
<dl>
|
|
857
|
-
<dd>
|
|
858
|
-
|
|
859
|
-
**requestOptions:** `DocumentCatalogClient.RequestOptions`
|
|
860
|
-
|
|
861
|
-
</dd>
|
|
862
|
-
</dl>
|
|
863
|
-
</dd>
|
|
864
|
-
</dl>
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
</dd>
|
|
868
|
-
</dl>
|
|
869
|
-
</details>
|
|
870
|
-
|
|
871
|
-
## DocumentCollections
|
|
872
|
-
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">addDocumentsToCollection</a>({ ...params }) -> void</code></summary>
|
|
873
|
-
<dl>
|
|
874
|
-
<dd>
|
|
875
|
-
|
|
876
|
-
#### 📝 Description
|
|
877
|
-
|
|
878
|
-
<dl>
|
|
879
|
-
<dd>
|
|
880
|
-
|
|
881
|
-
<dl>
|
|
882
|
-
<dd>
|
|
883
|
-
|
|
884
|
-
Add documents to a document collection. Note that the documents must already exist in the document catalog to use this endpoint. If you want to upload a new document to a collection, use the `uploadDocumentContents` endpoint.
|
|
885
|
-
</dd>
|
|
886
|
-
</dl>
|
|
887
|
-
</dd>
|
|
888
|
-
</dl>
|
|
889
|
-
|
|
890
|
-
#### 🔌 Usage
|
|
891
|
-
|
|
892
|
-
<dl>
|
|
893
|
-
<dd>
|
|
894
|
-
|
|
895
|
-
<dl>
|
|
896
|
-
<dd>
|
|
897
|
-
|
|
898
|
-
```typescript
|
|
899
|
-
await client.documentCollections.addDocumentsToCollection({
|
|
900
|
-
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
901
|
-
resourceIdentifiers: [{
|
|
902
|
-
type: "external-resource-id",
|
|
903
|
-
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
904
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
905
|
-
}, {
|
|
906
|
-
type: "external-resource-id",
|
|
907
|
-
externalResourceId: "398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
|
|
908
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
909
|
-
}]
|
|
910
|
-
});
|
|
911
|
-
|
|
912
|
-
```
|
|
913
|
-
</dd>
|
|
914
|
-
</dl>
|
|
915
|
-
</dd>
|
|
916
|
-
</dl>
|
|
917
|
-
|
|
918
|
-
#### ⚙️ Parameters
|
|
919
|
-
|
|
920
|
-
<dl>
|
|
921
|
-
<dd>
|
|
922
|
-
|
|
923
|
-
<dl>
|
|
924
|
-
<dd>
|
|
925
|
-
|
|
926
|
-
**request:** `Credal.AddDocumentsToCollectionRequest`
|
|
927
|
-
|
|
928
|
-
</dd>
|
|
929
|
-
</dl>
|
|
930
|
-
|
|
931
|
-
<dl>
|
|
932
|
-
<dd>
|
|
933
|
-
|
|
934
|
-
**requestOptions:** `DocumentCollectionsClient.RequestOptions`
|
|
935
|
-
|
|
936
|
-
</dd>
|
|
937
|
-
</dl>
|
|
938
|
-
</dd>
|
|
939
|
-
</dl>
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
</dd>
|
|
943
|
-
</dl>
|
|
944
|
-
</details>
|
|
945
|
-
|
|
946
|
-
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">removeDocumentsFromCollection</a>({ ...params }) -> void</code></summary>
|
|
947
|
-
<dl>
|
|
948
|
-
<dd>
|
|
949
|
-
|
|
950
|
-
#### 📝 Description
|
|
951
|
-
|
|
952
|
-
<dl>
|
|
953
|
-
<dd>
|
|
954
|
-
|
|
955
|
-
<dl>
|
|
956
|
-
<dd>
|
|
957
|
-
|
|
958
|
-
Remove documents from a collection
|
|
959
|
-
</dd>
|
|
960
|
-
</dl>
|
|
961
|
-
</dd>
|
|
962
|
-
</dl>
|
|
963
|
-
|
|
964
|
-
#### 🔌 Usage
|
|
965
|
-
|
|
966
|
-
<dl>
|
|
967
|
-
<dd>
|
|
968
|
-
|
|
969
|
-
<dl>
|
|
970
|
-
<dd>
|
|
971
|
-
|
|
972
|
-
```typescript
|
|
973
|
-
await client.documentCollections.removeDocumentsFromCollection({
|
|
974
|
-
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
975
|
-
resourceIdentifiers: [{
|
|
976
|
-
type: "external-resource-id",
|
|
977
|
-
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
978
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
979
|
-
}, {
|
|
980
|
-
type: "external-resource-id",
|
|
981
|
-
externalResourceId: "398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
|
|
982
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
983
|
-
}]
|
|
984
|
-
});
|
|
985
|
-
|
|
986
|
-
```
|
|
987
|
-
</dd>
|
|
988
|
-
</dl>
|
|
989
|
-
</dd>
|
|
990
|
-
</dl>
|
|
991
|
-
|
|
992
|
-
#### ⚙️ Parameters
|
|
993
|
-
|
|
994
|
-
<dl>
|
|
995
|
-
<dd>
|
|
996
|
-
|
|
997
|
-
<dl>
|
|
998
|
-
<dd>
|
|
999
|
-
|
|
1000
|
-
**request:** `Credal.RemoveDocumentsFromCollectionRequest`
|
|
1001
|
-
|
|
1002
|
-
</dd>
|
|
1003
|
-
</dl>
|
|
1004
|
-
|
|
1005
|
-
<dl>
|
|
1006
|
-
<dd>
|
|
1007
|
-
|
|
1008
|
-
**requestOptions:** `DocumentCollectionsClient.RequestOptions`
|
|
1009
|
-
|
|
1010
|
-
</dd>
|
|
1011
|
-
</dl>
|
|
1012
|
-
</dd>
|
|
1013
|
-
</dl>
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
</dd>
|
|
1017
|
-
</dl>
|
|
1018
|
-
</details>
|
|
1019
|
-
|
|
1020
|
-
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">listDocumentsInCollection</a>({ ...params }) -> Credal.ListDocumentsInCollectionResponse</code></summary>
|
|
1021
|
-
<dl>
|
|
1022
|
-
<dd>
|
|
1023
|
-
|
|
1024
|
-
#### 📝 Description
|
|
1025
|
-
|
|
1026
|
-
<dl>
|
|
1027
|
-
<dd>
|
|
1028
|
-
|
|
1029
|
-
<dl>
|
|
1030
|
-
<dd>
|
|
1031
|
-
|
|
1032
|
-
List documents in a collection
|
|
1033
|
-
</dd>
|
|
1034
|
-
</dl>
|
|
1035
|
-
</dd>
|
|
1036
|
-
</dl>
|
|
1037
|
-
|
|
1038
|
-
#### 🔌 Usage
|
|
1039
|
-
|
|
1040
|
-
<dl>
|
|
1041
|
-
<dd>
|
|
1042
|
-
|
|
1043
|
-
<dl>
|
|
1044
|
-
<dd>
|
|
1045
|
-
|
|
1046
|
-
```typescript
|
|
1047
|
-
await client.documentCollections.listDocumentsInCollection({
|
|
1048
|
-
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24"
|
|
1049
|
-
});
|
|
1050
|
-
|
|
1051
|
-
```
|
|
1052
|
-
</dd>
|
|
1053
|
-
</dl>
|
|
1054
|
-
</dd>
|
|
1055
|
-
</dl>
|
|
1056
|
-
|
|
1057
|
-
#### ⚙️ Parameters
|
|
1058
|
-
|
|
1059
|
-
<dl>
|
|
1060
|
-
<dd>
|
|
1061
|
-
|
|
1062
|
-
<dl>
|
|
1063
|
-
<dd>
|
|
1064
|
-
|
|
1065
|
-
**request:** `Credal.ListDocumentsInCollectionRequest`
|
|
1066
|
-
|
|
1067
|
-
</dd>
|
|
1068
|
-
</dl>
|
|
1069
|
-
|
|
1070
|
-
<dl>
|
|
1071
|
-
<dd>
|
|
1072
|
-
|
|
1073
|
-
**requestOptions:** `DocumentCollectionsClient.RequestOptions`
|
|
1074
|
-
|
|
1075
|
-
</dd>
|
|
1076
|
-
</dl>
|
|
1077
|
-
</dd>
|
|
1078
|
-
</dl>
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
</dd>
|
|
1082
|
-
</dl>
|
|
1083
|
-
</details>
|
|
1084
|
-
|
|
1085
|
-
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">createCollection</a>({ ...params }) -> Credal.CreateCollectionResponse</code></summary>
|
|
1086
|
-
<dl>
|
|
1087
|
-
<dd>
|
|
1088
|
-
|
|
1089
|
-
#### 📝 Description
|
|
1090
|
-
|
|
1091
|
-
<dl>
|
|
1092
|
-
<dd>
|
|
1093
|
-
|
|
1094
|
-
<dl>
|
|
1095
|
-
<dd>
|
|
1096
|
-
|
|
1097
|
-
Create a new collection. The API key used will be added to the collection for future Requests
|
|
1098
|
-
</dd>
|
|
1099
|
-
</dl>
|
|
1100
|
-
</dd>
|
|
1101
|
-
</dl>
|
|
1102
|
-
|
|
1103
|
-
#### 🔌 Usage
|
|
1104
|
-
|
|
1105
|
-
<dl>
|
|
1106
|
-
<dd>
|
|
1107
|
-
|
|
1108
|
-
<dl>
|
|
1109
|
-
<dd>
|
|
1110
|
-
|
|
1111
|
-
```typescript
|
|
1112
|
-
await client.documentCollections.createCollection({
|
|
1113
|
-
name: "Customer Collection",
|
|
1114
|
-
description: "This collection is used to answer customer requests based on internal documentation.",
|
|
1115
|
-
collaborators: [{
|
|
1116
|
-
email: "test@gmail.com",
|
|
1117
|
-
role: "editor"
|
|
1118
|
-
}]
|
|
1119
|
-
});
|
|
1120
|
-
|
|
1121
|
-
```
|
|
1122
|
-
</dd>
|
|
1123
|
-
</dl>
|
|
1124
|
-
</dd>
|
|
1125
|
-
</dl>
|
|
1126
|
-
|
|
1127
|
-
#### ⚙️ Parameters
|
|
1128
|
-
|
|
1129
|
-
<dl>
|
|
1130
|
-
<dd>
|
|
1131
|
-
|
|
1132
|
-
<dl>
|
|
1133
|
-
<dd>
|
|
1134
|
-
|
|
1135
|
-
**request:** `Credal.CreateCollectionRequest`
|
|
1136
|
-
|
|
1137
|
-
</dd>
|
|
1138
|
-
</dl>
|
|
1139
|
-
|
|
1140
|
-
<dl>
|
|
1141
|
-
<dd>
|
|
1142
|
-
|
|
1143
|
-
**requestOptions:** `DocumentCollectionsClient.RequestOptions`
|
|
1144
|
-
|
|
1145
|
-
</dd>
|
|
1146
|
-
</dl>
|
|
1147
|
-
</dd>
|
|
1148
|
-
</dl>
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
</dd>
|
|
1152
|
-
</dl>
|
|
1153
|
-
</details>
|
|
1154
|
-
|
|
1155
|
-
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">deleteCollection</a>({ ...params }) -> Credal.DeleteCollectionResponse</code></summary>
|
|
1156
|
-
<dl>
|
|
1157
|
-
<dd>
|
|
1158
|
-
|
|
1159
|
-
#### 📝 Description
|
|
1160
|
-
|
|
1161
|
-
<dl>
|
|
1162
|
-
<dd>
|
|
1163
|
-
|
|
1164
|
-
<dl>
|
|
1165
|
-
<dd>
|
|
1166
|
-
|
|
1167
|
-
Delete the collection.
|
|
1168
|
-
</dd>
|
|
1169
|
-
</dl>
|
|
1170
|
-
</dd>
|
|
1171
|
-
</dl>
|
|
1172
|
-
|
|
1173
|
-
#### 🔌 Usage
|
|
1174
|
-
|
|
1175
|
-
<dl>
|
|
1176
|
-
<dd>
|
|
1177
|
-
|
|
1178
|
-
<dl>
|
|
1179
|
-
<dd>
|
|
1180
|
-
|
|
1181
|
-
```typescript
|
|
1182
|
-
await client.documentCollections.deleteCollection({
|
|
1183
|
-
collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
|
|
1184
|
-
});
|
|
1185
|
-
|
|
1186
|
-
```
|
|
1187
|
-
</dd>
|
|
1188
|
-
</dl>
|
|
1189
|
-
</dd>
|
|
1190
|
-
</dl>
|
|
1191
|
-
|
|
1192
|
-
#### ⚙️ Parameters
|
|
1193
|
-
|
|
1194
|
-
<dl>
|
|
1195
|
-
<dd>
|
|
1196
|
-
|
|
1197
|
-
<dl>
|
|
1198
|
-
<dd>
|
|
1199
|
-
|
|
1200
|
-
**request:** `Credal.DeleteCollectionRequest`
|
|
1201
|
-
|
|
1202
|
-
</dd>
|
|
1203
|
-
</dl>
|
|
1204
|
-
|
|
1205
|
-
<dl>
|
|
1206
|
-
<dd>
|
|
1207
|
-
|
|
1208
|
-
**requestOptions:** `DocumentCollectionsClient.RequestOptions`
|
|
1209
|
-
|
|
1210
|
-
</dd>
|
|
1211
|
-
</dl>
|
|
1212
|
-
</dd>
|
|
1213
|
-
</dl>
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
</dd>
|
|
1217
|
-
</dl>
|
|
1218
|
-
</details>
|
|
1219
|
-
|
|
1220
|
-
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">createMongoCollectionSync</a>({ ...params }) -> Credal.MongoCollectionSyncResponse</code></summary>
|
|
1221
|
-
<dl>
|
|
1222
|
-
<dd>
|
|
1223
|
-
|
|
1224
|
-
#### 📝 Description
|
|
1225
|
-
|
|
1226
|
-
<dl>
|
|
1227
|
-
<dd>
|
|
1228
|
-
|
|
1229
|
-
<dl>
|
|
1230
|
-
<dd>
|
|
1231
|
-
|
|
1232
|
-
Credal lets you easily sync your MongoDB data for use in Collections and Agents. Create a new sync from a MongoDB collection to a Credal collection.
|
|
1233
|
-
</dd>
|
|
1234
|
-
</dl>
|
|
1235
|
-
</dd>
|
|
1236
|
-
</dl>
|
|
1237
|
-
|
|
1238
|
-
#### 🔌 Usage
|
|
1239
|
-
|
|
1240
|
-
<dl>
|
|
1241
|
-
<dd>
|
|
1242
|
-
|
|
1243
|
-
<dl>
|
|
1244
|
-
<dd>
|
|
1245
|
-
|
|
1246
|
-
```typescript
|
|
1247
|
-
await client.documentCollections.createMongoCollectionSync({
|
|
1248
|
-
mongoURI: "mongodb+srv://cluster0.abcdefg.mongodb.net/Cluster0?retryWrites=true&w=majority",
|
|
1249
|
-
collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
|
|
1250
|
-
config: {
|
|
1251
|
-
syncName: "My sales transcripts",
|
|
1252
|
-
collectionName: "myCollection",
|
|
1253
|
-
filterExpression: {
|
|
1254
|
-
"status": {
|
|
1255
|
-
"$ne": "disabled"
|
|
1256
|
-
}
|
|
1257
|
-
},
|
|
1258
|
-
sourceFields: {
|
|
1259
|
-
body: "body",
|
|
1260
|
-
sourceName: "meetingName",
|
|
1261
|
-
sourceSystemUpdated: "transcriptDatetime",
|
|
1262
|
-
sourceUrl: "link"
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
});
|
|
1266
|
-
|
|
1267
|
-
```
|
|
1268
|
-
</dd>
|
|
1269
|
-
</dl>
|
|
1270
|
-
</dd>
|
|
1271
|
-
</dl>
|
|
1272
|
-
|
|
1273
|
-
#### ⚙️ Parameters
|
|
1274
|
-
|
|
1275
|
-
<dl>
|
|
1276
|
-
<dd>
|
|
1277
|
-
|
|
1278
|
-
<dl>
|
|
1279
|
-
<dd>
|
|
1280
|
-
|
|
1281
|
-
**request:** `Credal.CreateMongoCollectionSyncRequest`
|
|
1282
|
-
|
|
1283
|
-
</dd>
|
|
1284
|
-
</dl>
|
|
1285
|
-
|
|
1286
|
-
<dl>
|
|
1287
|
-
<dd>
|
|
1288
|
-
|
|
1289
|
-
**requestOptions:** `DocumentCollectionsClient.RequestOptions`
|
|
1290
|
-
|
|
1291
|
-
</dd>
|
|
1292
|
-
</dl>
|
|
1293
|
-
</dd>
|
|
1294
|
-
</dl>
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
</dd>
|
|
1298
|
-
</dl>
|
|
1299
|
-
</details>
|
|
1300
|
-
|
|
1301
|
-
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">updateMongoCollectionSync</a>({ ...params }) -> Credal.MongoCollectionSyncResponse</code></summary>
|
|
1302
|
-
<dl>
|
|
1303
|
-
<dd>
|
|
1304
|
-
|
|
1305
|
-
#### 📝 Description
|
|
1306
|
-
|
|
1307
|
-
<dl>
|
|
1308
|
-
<dd>
|
|
1309
|
-
|
|
1310
|
-
<dl>
|
|
1311
|
-
<dd>
|
|
1312
|
-
|
|
1313
|
-
Credal lets you easily sync your MongoDB data for use in Collections and Agents. Update an existing sync from a MongoDB collection to a Credal collection via the `mongoCredentialId`, to disambiguate between multiple potential syncs to a given collection.
|
|
1314
|
-
</dd>
|
|
1315
|
-
</dl>
|
|
1316
|
-
</dd>
|
|
1317
|
-
</dl>
|
|
1318
|
-
|
|
1319
7
|
#### 🔌 Usage
|
|
1320
8
|
|
|
1321
9
|
<dl>
|
|
@@ -1325,24 +13,12 @@ Credal lets you easily sync your MongoDB data for use in Collections and Agents.
|
|
|
1325
13
|
<dd>
|
|
1326
14
|
|
|
1327
15
|
```typescript
|
|
1328
|
-
await client.
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
filterExpression: {
|
|
1335
|
-
"transcriptDatetime": {
|
|
1336
|
-
"$gt": "2023-01-01T00:00:00.000Z"
|
|
1337
|
-
}
|
|
1338
|
-
},
|
|
1339
|
-
sourceFields: {
|
|
1340
|
-
body: "transcriptSummary",
|
|
1341
|
-
sourceName: "meetingName",
|
|
1342
|
-
sourceSystemUpdated: "transcriptDatetime",
|
|
1343
|
-
sourceUrl: "link"
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
16
|
+
await client.agents.sendMessage({
|
|
17
|
+
agentId: "cc3fd192-ea62-11f0-99fd-03d6b2458fff",
|
|
18
|
+
conversation: {
|
|
19
|
+
type: "new"
|
|
20
|
+
},
|
|
21
|
+
message: "What documents do we have about Q4 planning?"
|
|
1346
22
|
});
|
|
1347
23
|
|
|
1348
24
|
```
|
|
@@ -1359,7 +35,7 @@ await client.documentCollections.updateMongoCollectionSync({
|
|
|
1359
35
|
<dl>
|
|
1360
36
|
<dd>
|
|
1361
37
|
|
|
1362
|
-
**request:** `Credal.
|
|
38
|
+
**request:** `Credal.SendMessageAgentsRequest`
|
|
1363
39
|
|
|
1364
40
|
</dd>
|
|
1365
41
|
</dl>
|
|
@@ -1367,7 +43,7 @@ await client.documentCollections.updateMongoCollectionSync({
|
|
|
1367
43
|
<dl>
|
|
1368
44
|
<dd>
|
|
1369
45
|
|
|
1370
|
-
**requestOptions:** `
|
|
46
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
1371
47
|
|
|
1372
48
|
</dd>
|
|
1373
49
|
</dl>
|
|
@@ -1379,25 +55,10 @@ await client.documentCollections.updateMongoCollectionSync({
|
|
|
1379
55
|
</dl>
|
|
1380
56
|
</details>
|
|
1381
57
|
|
|
1382
|
-
|
|
1383
|
-
<details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">searchDocumentCollection</a>({ ...params }) -> Credal.SearchDocumentCollectionResponse</code></summary>
|
|
1384
|
-
<dl>
|
|
1385
|
-
<dd>
|
|
1386
|
-
|
|
1387
|
-
#### 📝 Description
|
|
1388
|
-
|
|
58
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">fetchResponse</a>({ ...params }) -> Credal.FetchResponseAgentsResponse</code></summary>
|
|
1389
59
|
<dl>
|
|
1390
60
|
<dd>
|
|
1391
61
|
|
|
1392
|
-
<dl>
|
|
1393
|
-
<dd>
|
|
1394
|
-
|
|
1395
|
-
Search across all documents in a document collection using the document metadata and contents.
|
|
1396
|
-
</dd>
|
|
1397
|
-
</dl>
|
|
1398
|
-
</dd>
|
|
1399
|
-
</dl>
|
|
1400
|
-
|
|
1401
62
|
#### 🔌 Usage
|
|
1402
63
|
|
|
1403
64
|
<dl>
|
|
@@ -1407,23 +68,8 @@ Search across all documents in a document collection using the document metadata
|
|
|
1407
68
|
<dd>
|
|
1408
69
|
|
|
1409
70
|
```typescript
|
|
1410
|
-
await client.
|
|
1411
|
-
|
|
1412
|
-
searchQuery: "ABC Corp",
|
|
1413
|
-
structuredQueryFilters: [{
|
|
1414
|
-
field: "status",
|
|
1415
|
-
operator: "==",
|
|
1416
|
-
value: "Open"
|
|
1417
|
-
}],
|
|
1418
|
-
userEmail: "jack@credal.ai",
|
|
1419
|
-
searchOptions: {
|
|
1420
|
-
maxChunks: 10,
|
|
1421
|
-
mergeContents: true,
|
|
1422
|
-
threshold: 0.8,
|
|
1423
|
-
enableSmartFiltering: true,
|
|
1424
|
-
enableQueryExtraction: true,
|
|
1425
|
-
enableReranking: true
|
|
1426
|
-
}
|
|
71
|
+
await client.agents.fetchResponse({
|
|
72
|
+
jobId: "jobId"
|
|
1427
73
|
});
|
|
1428
74
|
|
|
1429
75
|
```
|
|
@@ -1440,7 +86,7 @@ await client.search.searchDocumentCollection({
|
|
|
1440
86
|
<dl>
|
|
1441
87
|
<dd>
|
|
1442
88
|
|
|
1443
|
-
**request:** `Credal.
|
|
89
|
+
**request:** `Credal.FetchResponseAgentsRequest`
|
|
1444
90
|
|
|
1445
91
|
</dd>
|
|
1446
92
|
</dl>
|
|
@@ -1448,7 +94,7 @@ await client.search.searchDocumentCollection({
|
|
|
1448
94
|
<dl>
|
|
1449
95
|
<dd>
|
|
1450
96
|
|
|
1451
|
-
**requestOptions:** `
|
|
97
|
+
**requestOptions:** `AgentsClient.RequestOptions`
|
|
1452
98
|
|
|
1453
99
|
</dd>
|
|
1454
100
|
</dl>
|
|
@@ -1460,78 +106,3 @@ await client.search.searchDocumentCollection({
|
|
|
1460
106
|
</dl>
|
|
1461
107
|
</details>
|
|
1462
108
|
|
|
1463
|
-
## Users
|
|
1464
|
-
<details><summary><code>client.users.<a href="/src/api/resources/users/client/Client.ts">metadata</a>({ ...params }) -> void</code></summary>
|
|
1465
|
-
<dl>
|
|
1466
|
-
<dd>
|
|
1467
|
-
|
|
1468
|
-
#### 📝 Description
|
|
1469
|
-
|
|
1470
|
-
<dl>
|
|
1471
|
-
<dd>
|
|
1472
|
-
|
|
1473
|
-
<dl>
|
|
1474
|
-
<dd>
|
|
1475
|
-
|
|
1476
|
-
Bulk patch metadata for users
|
|
1477
|
-
</dd>
|
|
1478
|
-
</dl>
|
|
1479
|
-
</dd>
|
|
1480
|
-
</dl>
|
|
1481
|
-
|
|
1482
|
-
#### 🔌 Usage
|
|
1483
|
-
|
|
1484
|
-
<dl>
|
|
1485
|
-
<dd>
|
|
1486
|
-
|
|
1487
|
-
<dl>
|
|
1488
|
-
<dd>
|
|
1489
|
-
|
|
1490
|
-
```typescript
|
|
1491
|
-
await client.users.metadata([{
|
|
1492
|
-
metadata: {
|
|
1493
|
-
"State": "NY",
|
|
1494
|
-
"Job Role": "CEO"
|
|
1495
|
-
},
|
|
1496
|
-
userEmail: "ravin@credal.ai"
|
|
1497
|
-
}, {
|
|
1498
|
-
metadata: {
|
|
1499
|
-
"State": "NY",
|
|
1500
|
-
"Department": "Engineering"
|
|
1501
|
-
},
|
|
1502
|
-
userEmail: "jack@credal.ai"
|
|
1503
|
-
}]);
|
|
1504
|
-
|
|
1505
|
-
```
|
|
1506
|
-
</dd>
|
|
1507
|
-
</dl>
|
|
1508
|
-
</dd>
|
|
1509
|
-
</dl>
|
|
1510
|
-
|
|
1511
|
-
#### ⚙️ Parameters
|
|
1512
|
-
|
|
1513
|
-
<dl>
|
|
1514
|
-
<dd>
|
|
1515
|
-
|
|
1516
|
-
<dl>
|
|
1517
|
-
<dd>
|
|
1518
|
-
|
|
1519
|
-
**request:** `Credal.UserMetadataPatch[]`
|
|
1520
|
-
|
|
1521
|
-
</dd>
|
|
1522
|
-
</dl>
|
|
1523
|
-
|
|
1524
|
-
<dl>
|
|
1525
|
-
<dd>
|
|
1526
|
-
|
|
1527
|
-
**requestOptions:** `UsersClient.RequestOptions`
|
|
1528
|
-
|
|
1529
|
-
</dd>
|
|
1530
|
-
</dl>
|
|
1531
|
-
</dd>
|
|
1532
|
-
</dl>
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
</dd>
|
|
1536
|
-
</dl>
|
|
1537
|
-
</details>
|