@credal/sdk 0.1.8 → 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 +2 -2
- package/dist/cjs/Client.d.ts +1 -1
- package/dist/cjs/Client.js +4 -4
- package/dist/cjs/api/resources/common/types/Collaborator.d.ts +1 -1
- package/dist/cjs/api/resources/common/types/ExternalResourceId.d.ts +1 -1
- package/dist/cjs/api/resources/common/types/ResourceIdentifier.d.ts +1 -1
- 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 +1 -1
- package/dist/cjs/api/resources/copilots/client/Client.js +12 -12
- package/dist/cjs/api/resources/copilots/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +1 -1
- 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/CollectionFilteredData.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/Configuration.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/DataFilter.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.d.ts +1 -2
- package/dist/cjs/api/resources/copilots/types/ErrorChunk.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/Filter.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/FinalChunk.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/InitialChunk.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/MessageBlocked.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/MessageFeedback.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/MessageReply.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/ReferencedSource.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/SendMessageResponse.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/StreamingChunk.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/StringFieldSchema.d.ts +1 -1
- package/dist/cjs/api/resources/copilots/types/index.d.ts +24 -24
- package/dist/cjs/api/resources/copilots/types/index.js +24 -24
- package/dist/cjs/api/resources/documentCatalog/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/documentCatalog/client/Client.js +6 -6
- package/dist/cjs/api/resources/documentCatalog/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +1 -1
- 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 -1
- package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.ts +1 -1
- 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 +1 -1
- package/dist/cjs/api/resources/documentCollections/client/Client.js +11 -11
- package/dist/cjs/api/resources/documentCollections/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +1 -1
- 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/ListDocumentsInCollectionResponse.d.ts +1 -1
- package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +1 -1
- 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 +1 -1
- package/dist/cjs/api/resources/search/client/Client.js +4 -4
- package/dist/cjs/api/resources/search/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
- 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/DocumentCollectionSearchResult.d.ts +1 -1
- package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.d.ts +1 -1
- package/dist/cjs/api/resources/search/types/SingleFieldFilter.d.ts +1 -1
- 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 +1 -1
- package/dist/cjs/api/resources/users/client/Client.js +4 -4
- package/dist/cjs/api/resources/users/index.d.ts +1 -1
- package/dist/cjs/api/resources/users/index.js +1 -1
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +1 -1
- package/dist/cjs/core/fetcher/Fetcher.js +2 -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/errors/CredalError.d.ts +1 -1
- package/dist/cjs/errors/CredalError.js +1 -1
- package/dist/cjs/index.d.ts +2 -2
- 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 +2 -2
- package/dist/esm/BaseClient.mjs +1 -2
- package/dist/esm/Client.d.mts +1 -1
- package/dist/esm/Client.mjs +4 -5
- package/dist/esm/api/resources/common/types/Collaborator.d.mts +1 -1
- package/dist/esm/api/resources/common/types/Collaborator.mjs +1 -1
- package/dist/esm/api/resources/common/types/ExternalResourceId.d.mts +1 -1
- package/dist/esm/api/resources/common/types/ExternalResourceId.mjs +1 -1
- package/dist/esm/api/resources/common/types/ResourceIdentifier.d.mts +1 -1
- package/dist/esm/api/resources/common/types/ResourceIdentifier.mjs +1 -1
- 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 +1 -1
- package/dist/esm/api/resources/copilots/client/Client.mjs +12 -13
- package/dist/esm/api/resources/copilots/client/index.d.mts +0 -1
- package/dist/esm/api/resources/copilots/client/index.mjs +0 -1
- package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.d.mts +1 -1
- package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.mjs +1 -1
- package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.mts +1 -1
- package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.mjs +1 -1
- package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.d.mts +1 -1
- package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.mjs +1 -1
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.d.mts +1 -1
- package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.mjs +1 -1
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.mts +1 -1
- package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.mjs +1 -1
- package/dist/esm/api/resources/copilots/client/requests/index.d.mts +9 -9
- package/dist/esm/api/resources/copilots/client/requests/index.mjs +1 -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/CollectionFilteredData.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/CollectionFilteredData.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/Configuration.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/Configuration.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/DataFilter.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/DataFilter.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.d.mts +1 -2
- package/dist/esm/api/resources/copilots/types/ErrorChunk.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/ErrorChunk.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/Filter.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/Filter.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/FinalChunk.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/FinalChunk.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/InitialChunk.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/InitialChunk.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/MessageBlocked.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/MessageBlocked.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/MessageFeedback.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/MessageFeedback.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/MessageReply.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/MessageReply.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/NumberFieldSchema.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/ReferencedSource.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/ReferencedSource.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/SendMessageResponse.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/StreamingChunk.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/StreamingChunk.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.d.mts +1 -1
- package/dist/esm/api/resources/copilots/types/StringFieldSchema.mjs +1 -1
- package/dist/esm/api/resources/copilots/types/index.d.mts +24 -24
- package/dist/esm/api/resources/copilots/types/index.mjs +24 -24
- package/dist/esm/api/resources/documentCatalog/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/documentCatalog/client/Client.mjs +6 -7
- 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 +1 -1
- package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.mjs +1 -1
- package/dist/esm/api/resources/documentCatalog/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/documentCatalog/client/requests/index.mjs +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 -1
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.mjs +1 -1
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.mts +1 -1
- package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.mjs +1 -1
- 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 +1 -1
- package/dist/esm/api/resources/documentCollections/client/Client.mjs +11 -12
- 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 +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.mjs +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.mjs +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.mjs +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.mjs +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.mjs +1 -1
- package/dist/esm/api/resources/documentCollections/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/documentCollections/client/requests/index.mjs +1 -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/ListDocumentsInCollectionResponse.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.mjs +1 -1
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.mts +1 -1
- package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.mjs +1 -1
- 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 +1 -1
- package/dist/esm/api/resources/search/client/Client.mjs +4 -5
- 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 +1 -1
- package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.mjs +1 -1
- package/dist/esm/api/resources/search/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/search/client/requests/index.mjs +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/DocumentCollectionSearchResult.d.mts +1 -1
- package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.mjs +1 -1
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.d.mts +1 -1
- package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.mjs +1 -1
- package/dist/esm/api/resources/search/types/SingleFieldFilter.d.mts +1 -1
- package/dist/esm/api/resources/search/types/SingleFieldFilter.mjs +1 -1
- 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 +1 -1
- package/dist/esm/api/resources/users/client/Client.mjs +4 -5
- package/dist/esm/api/resources/users/index.d.mts +1 -1
- package/dist/esm/api/resources/users/index.mjs +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -1
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -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/errors/CredalError.d.mts +1 -1
- package/dist/esm/errors/CredalError.mjs +1 -2
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +1 -2
- 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/reference.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Reference
|
|
2
|
-
|
|
3
2
|
## Copilots
|
|
4
|
-
|
|
5
3
|
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">createCopilot</a>({ ...params }) -> Credal.CreateCopilotResponse</code></summary>
|
|
6
4
|
<dl>
|
|
7
5
|
<dd>
|
|
@@ -15,7 +13,6 @@
|
|
|
15
13
|
<dd>
|
|
16
14
|
|
|
17
15
|
Create a new agent. The API key used will be added to the agent for future Requests
|
|
18
|
-
|
|
19
16
|
</dd>
|
|
20
17
|
</dl>
|
|
21
18
|
</dd>
|
|
@@ -33,15 +30,13 @@ Create a new agent. The API key used will be added to the agent for future Reque
|
|
|
33
30
|
await client.copilots.createCopilot({
|
|
34
31
|
name: "Customer Agent",
|
|
35
32
|
description: "This agent is used to answer customer requests based on internal documentation.",
|
|
36
|
-
collaborators: [
|
|
37
|
-
{
|
|
33
|
+
collaborators: [{
|
|
38
34
|
email: "test@gmail.com",
|
|
39
|
-
role: "editor"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
35
|
+
role: "editor"
|
|
36
|
+
}]
|
|
42
37
|
});
|
|
43
|
-
```
|
|
44
38
|
|
|
39
|
+
```
|
|
45
40
|
</dd>
|
|
46
41
|
</dl>
|
|
47
42
|
</dd>
|
|
@@ -55,21 +50,22 @@ await client.copilots.createCopilot({
|
|
|
55
50
|
<dl>
|
|
56
51
|
<dd>
|
|
57
52
|
|
|
58
|
-
**request:** `Credal.CreateCopilotRequest`
|
|
59
|
-
|
|
53
|
+
**request:** `Credal.CreateCopilotRequest`
|
|
54
|
+
|
|
60
55
|
</dd>
|
|
61
56
|
</dl>
|
|
62
57
|
|
|
63
58
|
<dl>
|
|
64
59
|
<dd>
|
|
65
60
|
|
|
66
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
67
|
-
|
|
61
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
62
|
+
|
|
68
63
|
</dd>
|
|
69
64
|
</dl>
|
|
70
65
|
</dd>
|
|
71
66
|
</dl>
|
|
72
67
|
|
|
68
|
+
|
|
73
69
|
</dd>
|
|
74
70
|
</dl>
|
|
75
71
|
</details>
|
|
@@ -87,7 +83,6 @@ await client.copilots.createCopilot({
|
|
|
87
83
|
<dd>
|
|
88
84
|
|
|
89
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.
|
|
90
|
-
|
|
91
86
|
</dd>
|
|
92
87
|
</dl>
|
|
93
88
|
</dd>
|
|
@@ -104,10 +99,10 @@ OPTIONAL. Create a new conversation with the Agent. The conversation ID can be u
|
|
|
104
99
|
```typescript
|
|
105
100
|
await client.copilots.createConversation({
|
|
106
101
|
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
107
|
-
userEmail: "ravin@credal.ai"
|
|
102
|
+
userEmail: "ravin@credal.ai"
|
|
108
103
|
});
|
|
109
|
-
```
|
|
110
104
|
|
|
105
|
+
```
|
|
111
106
|
</dd>
|
|
112
107
|
</dl>
|
|
113
108
|
</dd>
|
|
@@ -121,21 +116,22 @@ await client.copilots.createConversation({
|
|
|
121
116
|
<dl>
|
|
122
117
|
<dd>
|
|
123
118
|
|
|
124
|
-
**request:** `Credal.CreateConversationRequest`
|
|
125
|
-
|
|
119
|
+
**request:** `Credal.CreateConversationRequest`
|
|
120
|
+
|
|
126
121
|
</dd>
|
|
127
122
|
</dl>
|
|
128
123
|
|
|
129
124
|
<dl>
|
|
130
125
|
<dd>
|
|
131
126
|
|
|
132
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
133
|
-
|
|
127
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
128
|
+
|
|
134
129
|
</dd>
|
|
135
130
|
</dl>
|
|
136
131
|
</dd>
|
|
137
132
|
</dl>
|
|
138
133
|
|
|
134
|
+
|
|
139
135
|
</dd>
|
|
140
136
|
</dl>
|
|
141
137
|
</details>
|
|
@@ -160,11 +156,11 @@ await client.copilots.provideMessageFeedback({
|
|
|
160
156
|
messageFeedback: {
|
|
161
157
|
feedback: "NEGATIVE",
|
|
162
158
|
suggestedAnswer: "Yes, Credal is SOC 2 compliant.",
|
|
163
|
-
descriptiveFeedback: "The response should be extremely clear and concise."
|
|
164
|
-
}
|
|
159
|
+
descriptiveFeedback: "The response should be extremely clear and concise."
|
|
160
|
+
}
|
|
165
161
|
});
|
|
166
|
-
```
|
|
167
162
|
|
|
163
|
+
```
|
|
168
164
|
</dd>
|
|
169
165
|
</dl>
|
|
170
166
|
</dd>
|
|
@@ -178,21 +174,22 @@ await client.copilots.provideMessageFeedback({
|
|
|
178
174
|
<dl>
|
|
179
175
|
<dd>
|
|
180
176
|
|
|
181
|
-
**request:** `Credal.ProvideMessageFeedbackRequest`
|
|
182
|
-
|
|
177
|
+
**request:** `Credal.ProvideMessageFeedbackRequest`
|
|
178
|
+
|
|
183
179
|
</dd>
|
|
184
180
|
</dl>
|
|
185
181
|
|
|
186
182
|
<dl>
|
|
187
183
|
<dd>
|
|
188
184
|
|
|
189
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
190
|
-
|
|
185
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
186
|
+
|
|
191
187
|
</dd>
|
|
192
188
|
</dl>
|
|
193
189
|
</dd>
|
|
194
190
|
</dl>
|
|
195
191
|
|
|
192
|
+
|
|
196
193
|
</dd>
|
|
197
194
|
</dl>
|
|
198
195
|
</details>
|
|
@@ -214,19 +211,16 @@ await client.copilots.sendMessage({
|
|
|
214
211
|
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
215
212
|
message: "Is Credal SOC 2 compliant?",
|
|
216
213
|
userEmail: "ravin@credal.ai",
|
|
217
|
-
inputVariables: [
|
|
218
|
-
{
|
|
214
|
+
inputVariables: [{
|
|
219
215
|
name: "input1",
|
|
220
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"]
|
|
221
|
-
},
|
|
222
|
-
{
|
|
216
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"]
|
|
217
|
+
}, {
|
|
223
218
|
name: "input2",
|
|
224
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"]
|
|
225
|
-
}
|
|
226
|
-
],
|
|
219
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"]
|
|
220
|
+
}]
|
|
227
221
|
});
|
|
228
|
-
```
|
|
229
222
|
|
|
223
|
+
```
|
|
230
224
|
</dd>
|
|
231
225
|
</dl>
|
|
232
226
|
</dd>
|
|
@@ -240,21 +234,22 @@ await client.copilots.sendMessage({
|
|
|
240
234
|
<dl>
|
|
241
235
|
<dd>
|
|
242
236
|
|
|
243
|
-
**request:** `Credal.SendMessageRequest`
|
|
244
|
-
|
|
237
|
+
**request:** `Credal.SendMessageRequest`
|
|
238
|
+
|
|
245
239
|
</dd>
|
|
246
240
|
</dl>
|
|
247
241
|
|
|
248
242
|
<dl>
|
|
249
243
|
<dd>
|
|
250
244
|
|
|
251
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
252
|
-
|
|
245
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
246
|
+
|
|
253
247
|
</dd>
|
|
254
248
|
</dl>
|
|
255
249
|
</dd>
|
|
256
250
|
</dl>
|
|
257
251
|
|
|
252
|
+
|
|
258
253
|
</dd>
|
|
259
254
|
</dl>
|
|
260
255
|
</details>
|
|
@@ -272,7 +267,6 @@ await client.copilots.sendMessage({
|
|
|
272
267
|
<dd>
|
|
273
268
|
|
|
274
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.
|
|
275
|
-
|
|
276
270
|
</dd>
|
|
277
271
|
</dl>
|
|
278
272
|
</dd>
|
|
@@ -291,22 +285,19 @@ const response = await client.copilots.streamMessage({
|
|
|
291
285
|
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
292
286
|
message: "Is Credal SOC 2 compliant?",
|
|
293
287
|
email: "ravin@credal.ai",
|
|
294
|
-
inputVariables: [
|
|
295
|
-
{
|
|
288
|
+
inputVariables: [{
|
|
296
289
|
name: "input1",
|
|
297
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"]
|
|
298
|
-
},
|
|
299
|
-
{
|
|
290
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"]
|
|
291
|
+
}, {
|
|
300
292
|
name: "input2",
|
|
301
|
-
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"]
|
|
302
|
-
}
|
|
303
|
-
],
|
|
293
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"]
|
|
294
|
+
}]
|
|
304
295
|
});
|
|
305
296
|
for await (const item of response) {
|
|
306
297
|
console.log(item);
|
|
307
298
|
}
|
|
308
|
-
```
|
|
309
299
|
|
|
300
|
+
```
|
|
310
301
|
</dd>
|
|
311
302
|
</dl>
|
|
312
303
|
</dd>
|
|
@@ -320,21 +311,22 @@ for await (const item of response) {
|
|
|
320
311
|
<dl>
|
|
321
312
|
<dd>
|
|
322
313
|
|
|
323
|
-
**request:** `Credal.StreamMessageRequest`
|
|
324
|
-
|
|
314
|
+
**request:** `Credal.StreamMessageRequest`
|
|
315
|
+
|
|
325
316
|
</dd>
|
|
326
317
|
</dl>
|
|
327
318
|
|
|
328
319
|
<dl>
|
|
329
320
|
<dd>
|
|
330
321
|
|
|
331
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
332
|
-
|
|
322
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
323
|
+
|
|
333
324
|
</dd>
|
|
334
325
|
</dl>
|
|
335
326
|
</dd>
|
|
336
327
|
</dl>
|
|
337
328
|
|
|
329
|
+
|
|
338
330
|
</dd>
|
|
339
331
|
</dl>
|
|
340
332
|
</details>
|
|
@@ -352,7 +344,6 @@ for await (const item of response) {
|
|
|
352
344
|
<dd>
|
|
353
345
|
|
|
354
346
|
Link a collection with a agent. The API Key used must be added to both the collection and the agent beforehand.
|
|
355
|
-
|
|
356
347
|
</dd>
|
|
357
348
|
</dl>
|
|
358
349
|
</dd>
|
|
@@ -369,10 +360,10 @@ Link a collection with a agent. The API Key used must be added to both the colle
|
|
|
369
360
|
```typescript
|
|
370
361
|
await client.copilots.addCollectionToCopilot({
|
|
371
362
|
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
372
|
-
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
|
|
363
|
+
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
|
|
373
364
|
});
|
|
374
|
-
```
|
|
375
365
|
|
|
366
|
+
```
|
|
376
367
|
</dd>
|
|
377
368
|
</dl>
|
|
378
369
|
</dd>
|
|
@@ -386,21 +377,22 @@ await client.copilots.addCollectionToCopilot({
|
|
|
386
377
|
<dl>
|
|
387
378
|
<dd>
|
|
388
379
|
|
|
389
|
-
**request:** `Credal.AddCollectionToCopilotRequest`
|
|
390
|
-
|
|
380
|
+
**request:** `Credal.AddCollectionToCopilotRequest`
|
|
381
|
+
|
|
391
382
|
</dd>
|
|
392
383
|
</dl>
|
|
393
384
|
|
|
394
385
|
<dl>
|
|
395
386
|
<dd>
|
|
396
387
|
|
|
397
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
398
|
-
|
|
388
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
389
|
+
|
|
399
390
|
</dd>
|
|
400
391
|
</dl>
|
|
401
392
|
</dd>
|
|
402
393
|
</dl>
|
|
403
394
|
|
|
395
|
+
|
|
404
396
|
</dd>
|
|
405
397
|
</dl>
|
|
406
398
|
</details>
|
|
@@ -418,7 +410,6 @@ await client.copilots.addCollectionToCopilot({
|
|
|
418
410
|
<dd>
|
|
419
411
|
|
|
420
412
|
Unlink a collection with a agent. The API Key used must be added to both the collection and the agent beforehand.
|
|
421
|
-
|
|
422
413
|
</dd>
|
|
423
414
|
</dl>
|
|
424
415
|
</dd>
|
|
@@ -435,10 +426,10 @@ Unlink a collection with a agent. The API Key used must be added to both the col
|
|
|
435
426
|
```typescript
|
|
436
427
|
await client.copilots.removeCollectionFromCopilot({
|
|
437
428
|
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
438
|
-
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
|
|
429
|
+
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
|
|
439
430
|
});
|
|
440
|
-
```
|
|
441
431
|
|
|
432
|
+
```
|
|
442
433
|
</dd>
|
|
443
434
|
</dl>
|
|
444
435
|
</dd>
|
|
@@ -452,21 +443,22 @@ await client.copilots.removeCollectionFromCopilot({
|
|
|
452
443
|
<dl>
|
|
453
444
|
<dd>
|
|
454
445
|
|
|
455
|
-
**request:** `Credal.RemoveCollectionFromCopilotRequest`
|
|
456
|
-
|
|
446
|
+
**request:** `Credal.RemoveCollectionFromCopilotRequest`
|
|
447
|
+
|
|
457
448
|
</dd>
|
|
458
449
|
</dl>
|
|
459
450
|
|
|
460
451
|
<dl>
|
|
461
452
|
<dd>
|
|
462
453
|
|
|
463
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
464
|
-
|
|
454
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
455
|
+
|
|
465
456
|
</dd>
|
|
466
457
|
</dl>
|
|
467
458
|
</dd>
|
|
468
459
|
</dl>
|
|
469
460
|
|
|
461
|
+
|
|
470
462
|
</dd>
|
|
471
463
|
</dl>
|
|
472
464
|
</details>
|
|
@@ -484,7 +476,6 @@ await client.copilots.removeCollectionFromCopilot({
|
|
|
484
476
|
<dd>
|
|
485
477
|
|
|
486
478
|
Update the configuration for a agent
|
|
487
|
-
|
|
488
479
|
</dd>
|
|
489
480
|
</dl>
|
|
490
481
|
</dd>
|
|
@@ -507,12 +498,12 @@ await client.copilots.updateConfiguration({
|
|
|
507
498
|
prompt: "You are a polite, helpful assistant used to answer customer requests.",
|
|
508
499
|
aiEndpointConfiguration: {
|
|
509
500
|
baseUrl: "https://api.openai.com/v1/",
|
|
510
|
-
apiKey: "<YOUR_API_KEY_HERE>"
|
|
511
|
-
}
|
|
512
|
-
}
|
|
501
|
+
apiKey: "<YOUR_API_KEY_HERE>"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
513
504
|
});
|
|
514
|
-
```
|
|
515
505
|
|
|
506
|
+
```
|
|
516
507
|
</dd>
|
|
517
508
|
</dl>
|
|
518
509
|
</dd>
|
|
@@ -526,21 +517,22 @@ await client.copilots.updateConfiguration({
|
|
|
526
517
|
<dl>
|
|
527
518
|
<dd>
|
|
528
519
|
|
|
529
|
-
**request:** `Credal.UpdateConfigurationRequest`
|
|
530
|
-
|
|
520
|
+
**request:** `Credal.UpdateConfigurationRequest`
|
|
521
|
+
|
|
531
522
|
</dd>
|
|
532
523
|
</dl>
|
|
533
524
|
|
|
534
525
|
<dl>
|
|
535
526
|
<dd>
|
|
536
527
|
|
|
537
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
538
|
-
|
|
528
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
529
|
+
|
|
539
530
|
</dd>
|
|
540
531
|
</dl>
|
|
541
532
|
</dd>
|
|
542
533
|
</dl>
|
|
543
534
|
|
|
535
|
+
|
|
544
536
|
</dd>
|
|
545
537
|
</dl>
|
|
546
538
|
</details>
|
|
@@ -559,10 +551,10 @@ await client.copilots.updateConfiguration({
|
|
|
559
551
|
|
|
560
552
|
```typescript
|
|
561
553
|
await client.copilots.deleteCopilot({
|
|
562
|
-
id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
|
|
554
|
+
id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
|
|
563
555
|
});
|
|
564
|
-
```
|
|
565
556
|
|
|
557
|
+
```
|
|
566
558
|
</dd>
|
|
567
559
|
</dl>
|
|
568
560
|
</dd>
|
|
@@ -576,27 +568,27 @@ await client.copilots.deleteCopilot({
|
|
|
576
568
|
<dl>
|
|
577
569
|
<dd>
|
|
578
570
|
|
|
579
|
-
**request:** `Credal.DeleteCopilotRequest`
|
|
580
|
-
|
|
571
|
+
**request:** `Credal.DeleteCopilotRequest`
|
|
572
|
+
|
|
581
573
|
</dd>
|
|
582
574
|
</dl>
|
|
583
575
|
|
|
584
576
|
<dl>
|
|
585
577
|
<dd>
|
|
586
578
|
|
|
587
|
-
**requestOptions:** `Copilots.RequestOptions`
|
|
588
|
-
|
|
579
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
580
|
+
|
|
589
581
|
</dd>
|
|
590
582
|
</dl>
|
|
591
583
|
</dd>
|
|
592
584
|
</dl>
|
|
593
585
|
|
|
586
|
+
|
|
594
587
|
</dd>
|
|
595
588
|
</dl>
|
|
596
589
|
</details>
|
|
597
590
|
|
|
598
591
|
## DocumentCatalog
|
|
599
|
-
|
|
600
592
|
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">uploadDocumentContents</a>({ ...params }) -> Credal.UploadDocumentResponse</code></summary>
|
|
601
593
|
<dl>
|
|
602
594
|
<dd>
|
|
@@ -615,10 +607,10 @@ await client.documentCatalog.uploadDocumentContents({
|
|
|
615
607
|
documentContents: "Lorem ipsum...",
|
|
616
608
|
documentExternalId: "73eead26-d124-4940-b329-5f068a0a8db9",
|
|
617
609
|
allowedUsersEmailAddresses: ["jack@credal.ai", "ravin@credal.ai"],
|
|
618
|
-
uploadAsUserEmail: "jack@credal.ai"
|
|
610
|
+
uploadAsUserEmail: "jack@credal.ai"
|
|
619
611
|
});
|
|
620
|
-
```
|
|
621
612
|
|
|
613
|
+
```
|
|
622
614
|
</dd>
|
|
623
615
|
</dl>
|
|
624
616
|
</dd>
|
|
@@ -632,21 +624,22 @@ await client.documentCatalog.uploadDocumentContents({
|
|
|
632
624
|
<dl>
|
|
633
625
|
<dd>
|
|
634
626
|
|
|
635
|
-
**request:** `Credal.UploadDocumentContentsRequest`
|
|
636
|
-
|
|
627
|
+
**request:** `Credal.UploadDocumentContentsRequest`
|
|
628
|
+
|
|
637
629
|
</dd>
|
|
638
630
|
</dl>
|
|
639
631
|
|
|
640
632
|
<dl>
|
|
641
633
|
<dd>
|
|
642
634
|
|
|
643
|
-
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
644
|
-
|
|
635
|
+
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
636
|
+
|
|
645
637
|
</dd>
|
|
646
638
|
</dl>
|
|
647
639
|
</dd>
|
|
648
640
|
</dl>
|
|
649
641
|
|
|
642
|
+
|
|
650
643
|
</dd>
|
|
651
644
|
</dl>
|
|
652
645
|
</details>
|
|
@@ -664,7 +657,6 @@ await client.documentCatalog.uploadDocumentContents({
|
|
|
664
657
|
<dd>
|
|
665
658
|
|
|
666
659
|
Sync a document from a source URL. Does not support recursive web search. Reach out to a Credal representative for access.
|
|
667
|
-
|
|
668
660
|
</dd>
|
|
669
661
|
</dl>
|
|
670
662
|
</dd>
|
|
@@ -681,10 +673,10 @@ Sync a document from a source URL. Does not support recursive web search. Reach
|
|
|
681
673
|
```typescript
|
|
682
674
|
await client.documentCatalog.syncSourceByUrl({
|
|
683
675
|
sourceUrl: "https://drive.google.com/file/d/123456/view",
|
|
684
|
-
uploadAsUserEmail: "ria@credal.ai"
|
|
676
|
+
uploadAsUserEmail: "ria@credal.ai"
|
|
685
677
|
});
|
|
686
|
-
```
|
|
687
678
|
|
|
679
|
+
```
|
|
688
680
|
</dd>
|
|
689
681
|
</dl>
|
|
690
682
|
</dd>
|
|
@@ -698,21 +690,22 @@ await client.documentCatalog.syncSourceByUrl({
|
|
|
698
690
|
<dl>
|
|
699
691
|
<dd>
|
|
700
692
|
|
|
701
|
-
**request:** `Credal.SyncSourceByUrlRequest`
|
|
702
|
-
|
|
693
|
+
**request:** `Credal.SyncSourceByUrlRequest`
|
|
694
|
+
|
|
703
695
|
</dd>
|
|
704
696
|
</dl>
|
|
705
697
|
|
|
706
698
|
<dl>
|
|
707
699
|
<dd>
|
|
708
700
|
|
|
709
|
-
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
710
|
-
|
|
701
|
+
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
702
|
+
|
|
711
703
|
</dd>
|
|
712
704
|
</dl>
|
|
713
705
|
</dd>
|
|
714
706
|
</dl>
|
|
715
707
|
|
|
708
|
+
|
|
716
709
|
</dd>
|
|
717
710
|
</dl>
|
|
718
711
|
</details>
|
|
@@ -730,7 +723,6 @@ await client.documentCatalog.syncSourceByUrl({
|
|
|
730
723
|
<dd>
|
|
731
724
|
|
|
732
725
|
Bulk patch metadata for documents, synced natively by Credal or manual API uploads
|
|
733
|
-
|
|
734
726
|
</dd>
|
|
735
727
|
</dl>
|
|
736
728
|
</dd>
|
|
@@ -746,34 +738,31 @@ Bulk patch metadata for documents, synced natively by Credal or manual API uploa
|
|
|
746
738
|
|
|
747
739
|
```typescript
|
|
748
740
|
await client.documentCatalog.metadata({
|
|
749
|
-
sources: [
|
|
750
|
-
{
|
|
741
|
+
sources: [{
|
|
751
742
|
metadata: {
|
|
752
|
-
Department: "HR",
|
|
753
|
-
Country: "United States"
|
|
743
|
+
"Department": "HR",
|
|
744
|
+
"Country": "United States"
|
|
754
745
|
},
|
|
755
746
|
resourceIdentifier: {
|
|
756
747
|
type: "external-resource-id",
|
|
757
748
|
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
758
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
759
|
-
}
|
|
760
|
-
},
|
|
761
|
-
{
|
|
749
|
+
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
750
|
+
}
|
|
751
|
+
}, {
|
|
762
752
|
metadata: {
|
|
763
|
-
Department: "Sales",
|
|
764
|
-
Vertical: "Healthcare"
|
|
753
|
+
"Department": "Sales",
|
|
754
|
+
"Vertical": "Healthcare"
|
|
765
755
|
},
|
|
766
756
|
resourceIdentifier: {
|
|
767
757
|
type: "external-resource-id",
|
|
768
758
|
externalResourceId: "123456",
|
|
769
|
-
resourceType: "ZENDESK_TICKET"
|
|
770
|
-
}
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
uploadAsUserEmail: "ben@credal.ai",
|
|
759
|
+
resourceType: "ZENDESK_TICKET"
|
|
760
|
+
}
|
|
761
|
+
}],
|
|
762
|
+
uploadAsUserEmail: "ben@credal.ai"
|
|
774
763
|
});
|
|
775
|
-
```
|
|
776
764
|
|
|
765
|
+
```
|
|
777
766
|
</dd>
|
|
778
767
|
</dl>
|
|
779
768
|
</dd>
|
|
@@ -787,27 +776,27 @@ await client.documentCatalog.metadata({
|
|
|
787
776
|
<dl>
|
|
788
777
|
<dd>
|
|
789
778
|
|
|
790
|
-
**request:** `Credal.DocumentMetadataPatchRequest`
|
|
791
|
-
|
|
779
|
+
**request:** `Credal.DocumentMetadataPatchRequest`
|
|
780
|
+
|
|
792
781
|
</dd>
|
|
793
782
|
</dl>
|
|
794
783
|
|
|
795
784
|
<dl>
|
|
796
785
|
<dd>
|
|
797
786
|
|
|
798
|
-
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
799
|
-
|
|
787
|
+
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
788
|
+
|
|
800
789
|
</dd>
|
|
801
790
|
</dl>
|
|
802
791
|
</dd>
|
|
803
792
|
</dl>
|
|
804
793
|
|
|
794
|
+
|
|
805
795
|
</dd>
|
|
806
796
|
</dl>
|
|
807
797
|
</details>
|
|
808
798
|
|
|
809
799
|
## DocumentCollections
|
|
810
|
-
|
|
811
800
|
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">addDocumentsToCollection</a>({ ...params }) -> void</code></summary>
|
|
812
801
|
<dl>
|
|
813
802
|
<dd>
|
|
@@ -821,7 +810,6 @@ await client.documentCatalog.metadata({
|
|
|
821
810
|
<dd>
|
|
822
811
|
|
|
823
812
|
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.
|
|
824
|
-
|
|
825
813
|
</dd>
|
|
826
814
|
</dl>
|
|
827
815
|
</dd>
|
|
@@ -838,21 +826,18 @@ Add documents to a document collection. Note that the documents must already exi
|
|
|
838
826
|
```typescript
|
|
839
827
|
await client.documentCollections.addDocumentsToCollection({
|
|
840
828
|
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
841
|
-
resourceIdentifiers: [
|
|
842
|
-
{
|
|
829
|
+
resourceIdentifiers: [{
|
|
843
830
|
type: "external-resource-id",
|
|
844
831
|
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
845
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
846
|
-
},
|
|
847
|
-
{
|
|
832
|
+
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
833
|
+
}, {
|
|
848
834
|
type: "external-resource-id",
|
|
849
835
|
externalResourceId: "398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
|
|
850
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
851
|
-
}
|
|
852
|
-
],
|
|
836
|
+
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
837
|
+
}]
|
|
853
838
|
});
|
|
854
|
-
```
|
|
855
839
|
|
|
840
|
+
```
|
|
856
841
|
</dd>
|
|
857
842
|
</dl>
|
|
858
843
|
</dd>
|
|
@@ -866,21 +851,22 @@ await client.documentCollections.addDocumentsToCollection({
|
|
|
866
851
|
<dl>
|
|
867
852
|
<dd>
|
|
868
853
|
|
|
869
|
-
**request:** `Credal.AddDocumentsToCollectionRequest`
|
|
870
|
-
|
|
854
|
+
**request:** `Credal.AddDocumentsToCollectionRequest`
|
|
855
|
+
|
|
871
856
|
</dd>
|
|
872
857
|
</dl>
|
|
873
858
|
|
|
874
859
|
<dl>
|
|
875
860
|
<dd>
|
|
876
861
|
|
|
877
|
-
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
878
|
-
|
|
862
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
863
|
+
|
|
879
864
|
</dd>
|
|
880
865
|
</dl>
|
|
881
866
|
</dd>
|
|
882
867
|
</dl>
|
|
883
868
|
|
|
869
|
+
|
|
884
870
|
</dd>
|
|
885
871
|
</dl>
|
|
886
872
|
</details>
|
|
@@ -898,7 +884,6 @@ await client.documentCollections.addDocumentsToCollection({
|
|
|
898
884
|
<dd>
|
|
899
885
|
|
|
900
886
|
Remove documents from a collection
|
|
901
|
-
|
|
902
887
|
</dd>
|
|
903
888
|
</dl>
|
|
904
889
|
</dd>
|
|
@@ -915,21 +900,18 @@ Remove documents from a collection
|
|
|
915
900
|
```typescript
|
|
916
901
|
await client.documentCollections.removeDocumentsFromCollection({
|
|
917
902
|
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
918
|
-
resourceIdentifiers: [
|
|
919
|
-
{
|
|
903
|
+
resourceIdentifiers: [{
|
|
920
904
|
type: "external-resource-id",
|
|
921
905
|
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
922
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
923
|
-
},
|
|
924
|
-
{
|
|
906
|
+
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
907
|
+
}, {
|
|
925
908
|
type: "external-resource-id",
|
|
926
909
|
externalResourceId: "398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
|
|
927
|
-
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
928
|
-
}
|
|
929
|
-
],
|
|
910
|
+
resourceType: "GOOGLE_DRIVE_ITEM"
|
|
911
|
+
}]
|
|
930
912
|
});
|
|
931
|
-
```
|
|
932
913
|
|
|
914
|
+
```
|
|
933
915
|
</dd>
|
|
934
916
|
</dl>
|
|
935
917
|
</dd>
|
|
@@ -943,21 +925,22 @@ await client.documentCollections.removeDocumentsFromCollection({
|
|
|
943
925
|
<dl>
|
|
944
926
|
<dd>
|
|
945
927
|
|
|
946
|
-
**request:** `Credal.RemoveDocumentsFromCollectionRequest`
|
|
947
|
-
|
|
928
|
+
**request:** `Credal.RemoveDocumentsFromCollectionRequest`
|
|
929
|
+
|
|
948
930
|
</dd>
|
|
949
931
|
</dl>
|
|
950
932
|
|
|
951
933
|
<dl>
|
|
952
934
|
<dd>
|
|
953
935
|
|
|
954
|
-
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
955
|
-
|
|
936
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
937
|
+
|
|
956
938
|
</dd>
|
|
957
939
|
</dl>
|
|
958
940
|
</dd>
|
|
959
941
|
</dl>
|
|
960
942
|
|
|
943
|
+
|
|
961
944
|
</dd>
|
|
962
945
|
</dl>
|
|
963
946
|
</details>
|
|
@@ -975,7 +958,6 @@ await client.documentCollections.removeDocumentsFromCollection({
|
|
|
975
958
|
<dd>
|
|
976
959
|
|
|
977
960
|
List documents in a collection
|
|
978
|
-
|
|
979
961
|
</dd>
|
|
980
962
|
</dl>
|
|
981
963
|
</dd>
|
|
@@ -991,10 +973,10 @@ List documents in a collection
|
|
|
991
973
|
|
|
992
974
|
```typescript
|
|
993
975
|
await client.documentCollections.listDocumentsInCollection({
|
|
994
|
-
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24"
|
|
976
|
+
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24"
|
|
995
977
|
});
|
|
996
|
-
```
|
|
997
978
|
|
|
979
|
+
```
|
|
998
980
|
</dd>
|
|
999
981
|
</dl>
|
|
1000
982
|
</dd>
|
|
@@ -1008,21 +990,22 @@ await client.documentCollections.listDocumentsInCollection({
|
|
|
1008
990
|
<dl>
|
|
1009
991
|
<dd>
|
|
1010
992
|
|
|
1011
|
-
**request:** `Credal.ListDocumentsInCollectionRequest`
|
|
1012
|
-
|
|
993
|
+
**request:** `Credal.ListDocumentsInCollectionRequest`
|
|
994
|
+
|
|
1013
995
|
</dd>
|
|
1014
996
|
</dl>
|
|
1015
997
|
|
|
1016
998
|
<dl>
|
|
1017
999
|
<dd>
|
|
1018
1000
|
|
|
1019
|
-
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1020
|
-
|
|
1001
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1002
|
+
|
|
1021
1003
|
</dd>
|
|
1022
1004
|
</dl>
|
|
1023
1005
|
</dd>
|
|
1024
1006
|
</dl>
|
|
1025
1007
|
|
|
1008
|
+
|
|
1026
1009
|
</dd>
|
|
1027
1010
|
</dl>
|
|
1028
1011
|
</details>
|
|
@@ -1040,7 +1023,6 @@ await client.documentCollections.listDocumentsInCollection({
|
|
|
1040
1023
|
<dd>
|
|
1041
1024
|
|
|
1042
1025
|
Create a new collection. The API key used will be added to the collection for future Requests
|
|
1043
|
-
|
|
1044
1026
|
</dd>
|
|
1045
1027
|
</dl>
|
|
1046
1028
|
</dd>
|
|
@@ -1058,15 +1040,13 @@ Create a new collection. The API key used will be added to the collection for fu
|
|
|
1058
1040
|
await client.documentCollections.createCollection({
|
|
1059
1041
|
name: "Customer Collection",
|
|
1060
1042
|
description: "This collection is used to answer customer requests based on internal documentation.",
|
|
1061
|
-
collaborators: [
|
|
1062
|
-
{
|
|
1043
|
+
collaborators: [{
|
|
1063
1044
|
email: "test@gmail.com",
|
|
1064
|
-
role: "editor"
|
|
1065
|
-
}
|
|
1066
|
-
],
|
|
1045
|
+
role: "editor"
|
|
1046
|
+
}]
|
|
1067
1047
|
});
|
|
1068
|
-
```
|
|
1069
1048
|
|
|
1049
|
+
```
|
|
1070
1050
|
</dd>
|
|
1071
1051
|
</dl>
|
|
1072
1052
|
</dd>
|
|
@@ -1080,21 +1060,22 @@ await client.documentCollections.createCollection({
|
|
|
1080
1060
|
<dl>
|
|
1081
1061
|
<dd>
|
|
1082
1062
|
|
|
1083
|
-
**request:** `Credal.CreateCollectionRequest`
|
|
1084
|
-
|
|
1063
|
+
**request:** `Credal.CreateCollectionRequest`
|
|
1064
|
+
|
|
1085
1065
|
</dd>
|
|
1086
1066
|
</dl>
|
|
1087
1067
|
|
|
1088
1068
|
<dl>
|
|
1089
1069
|
<dd>
|
|
1090
1070
|
|
|
1091
|
-
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1092
|
-
|
|
1071
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1072
|
+
|
|
1093
1073
|
</dd>
|
|
1094
1074
|
</dl>
|
|
1095
1075
|
</dd>
|
|
1096
1076
|
</dl>
|
|
1097
1077
|
|
|
1078
|
+
|
|
1098
1079
|
</dd>
|
|
1099
1080
|
</dl>
|
|
1100
1081
|
</details>
|
|
@@ -1112,7 +1093,6 @@ await client.documentCollections.createCollection({
|
|
|
1112
1093
|
<dd>
|
|
1113
1094
|
|
|
1114
1095
|
Delete the collection.
|
|
1115
|
-
|
|
1116
1096
|
</dd>
|
|
1117
1097
|
</dl>
|
|
1118
1098
|
</dd>
|
|
@@ -1128,10 +1108,10 @@ Delete the collection.
|
|
|
1128
1108
|
|
|
1129
1109
|
```typescript
|
|
1130
1110
|
await client.documentCollections.deleteCollection({
|
|
1131
|
-
collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
|
|
1111
|
+
collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
|
|
1132
1112
|
});
|
|
1133
|
-
```
|
|
1134
1113
|
|
|
1114
|
+
```
|
|
1135
1115
|
</dd>
|
|
1136
1116
|
</dl>
|
|
1137
1117
|
</dd>
|
|
@@ -1145,21 +1125,22 @@ await client.documentCollections.deleteCollection({
|
|
|
1145
1125
|
<dl>
|
|
1146
1126
|
<dd>
|
|
1147
1127
|
|
|
1148
|
-
**request:** `Credal.DeleteCollectionRequest`
|
|
1149
|
-
|
|
1128
|
+
**request:** `Credal.DeleteCollectionRequest`
|
|
1129
|
+
|
|
1150
1130
|
</dd>
|
|
1151
1131
|
</dl>
|
|
1152
1132
|
|
|
1153
1133
|
<dl>
|
|
1154
1134
|
<dd>
|
|
1155
1135
|
|
|
1156
|
-
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1157
|
-
|
|
1136
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1137
|
+
|
|
1158
1138
|
</dd>
|
|
1159
1139
|
</dl>
|
|
1160
1140
|
</dd>
|
|
1161
1141
|
</dl>
|
|
1162
1142
|
|
|
1143
|
+
|
|
1163
1144
|
</dd>
|
|
1164
1145
|
</dl>
|
|
1165
1146
|
</details>
|
|
@@ -1177,7 +1158,6 @@ await client.documentCollections.deleteCollection({
|
|
|
1177
1158
|
<dd>
|
|
1178
1159
|
|
|
1179
1160
|
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.
|
|
1180
|
-
|
|
1181
1161
|
</dd>
|
|
1182
1162
|
</dl>
|
|
1183
1163
|
</dd>
|
|
@@ -1199,20 +1179,20 @@ await client.documentCollections.createMongoCollectionSync({
|
|
|
1199
1179
|
syncName: "My sales transcripts",
|
|
1200
1180
|
collectionName: "myCollection",
|
|
1201
1181
|
filterExpression: {
|
|
1202
|
-
status: {
|
|
1203
|
-
$ne: "disabled"
|
|
1204
|
-
}
|
|
1182
|
+
"status": {
|
|
1183
|
+
"$ne": "disabled"
|
|
1184
|
+
}
|
|
1205
1185
|
},
|
|
1206
1186
|
sourceFields: {
|
|
1207
1187
|
body: "body",
|
|
1208
1188
|
sourceName: "meetingName",
|
|
1209
1189
|
sourceSystemUpdated: "transcriptDatetime",
|
|
1210
|
-
sourceUrl: "link"
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1190
|
+
sourceUrl: "link"
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1213
1193
|
});
|
|
1214
|
-
```
|
|
1215
1194
|
|
|
1195
|
+
```
|
|
1216
1196
|
</dd>
|
|
1217
1197
|
</dl>
|
|
1218
1198
|
</dd>
|
|
@@ -1226,21 +1206,22 @@ await client.documentCollections.createMongoCollectionSync({
|
|
|
1226
1206
|
<dl>
|
|
1227
1207
|
<dd>
|
|
1228
1208
|
|
|
1229
|
-
**request:** `Credal.CreateMongoCollectionSyncRequest`
|
|
1230
|
-
|
|
1209
|
+
**request:** `Credal.CreateMongoCollectionSyncRequest`
|
|
1210
|
+
|
|
1231
1211
|
</dd>
|
|
1232
1212
|
</dl>
|
|
1233
1213
|
|
|
1234
1214
|
<dl>
|
|
1235
1215
|
<dd>
|
|
1236
1216
|
|
|
1237
|
-
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1238
|
-
|
|
1217
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1218
|
+
|
|
1239
1219
|
</dd>
|
|
1240
1220
|
</dl>
|
|
1241
1221
|
</dd>
|
|
1242
1222
|
</dl>
|
|
1243
1223
|
|
|
1224
|
+
|
|
1244
1225
|
</dd>
|
|
1245
1226
|
</dl>
|
|
1246
1227
|
</details>
|
|
@@ -1258,7 +1239,6 @@ await client.documentCollections.createMongoCollectionSync({
|
|
|
1258
1239
|
<dd>
|
|
1259
1240
|
|
|
1260
1241
|
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.
|
|
1261
|
-
|
|
1262
1242
|
</dd>
|
|
1263
1243
|
</dl>
|
|
1264
1244
|
</dd>
|
|
@@ -1280,20 +1260,20 @@ await client.documentCollections.updateMongoCollectionSync({
|
|
|
1280
1260
|
syncName: "My recent summarized sales transcripts",
|
|
1281
1261
|
collectionName: "myCollection",
|
|
1282
1262
|
filterExpression: {
|
|
1283
|
-
transcriptDatetime: {
|
|
1284
|
-
$gt: "2023-01-01T00:00:00.000Z"
|
|
1285
|
-
}
|
|
1263
|
+
"transcriptDatetime": {
|
|
1264
|
+
"$gt": "2023-01-01T00:00:00.000Z"
|
|
1265
|
+
}
|
|
1286
1266
|
},
|
|
1287
1267
|
sourceFields: {
|
|
1288
1268
|
body: "transcriptSummary",
|
|
1289
1269
|
sourceName: "meetingName",
|
|
1290
1270
|
sourceSystemUpdated: "transcriptDatetime",
|
|
1291
|
-
sourceUrl: "link"
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1271
|
+
sourceUrl: "link"
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1294
1274
|
});
|
|
1295
|
-
```
|
|
1296
1275
|
|
|
1276
|
+
```
|
|
1297
1277
|
</dd>
|
|
1298
1278
|
</dl>
|
|
1299
1279
|
</dd>
|
|
@@ -1307,27 +1287,27 @@ await client.documentCollections.updateMongoCollectionSync({
|
|
|
1307
1287
|
<dl>
|
|
1308
1288
|
<dd>
|
|
1309
1289
|
|
|
1310
|
-
**request:** `Credal.UpdateMongoCollectionSyncRequest`
|
|
1311
|
-
|
|
1290
|
+
**request:** `Credal.UpdateMongoCollectionSyncRequest`
|
|
1291
|
+
|
|
1312
1292
|
</dd>
|
|
1313
1293
|
</dl>
|
|
1314
1294
|
|
|
1315
1295
|
<dl>
|
|
1316
1296
|
<dd>
|
|
1317
1297
|
|
|
1318
|
-
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1319
|
-
|
|
1298
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1299
|
+
|
|
1320
1300
|
</dd>
|
|
1321
1301
|
</dl>
|
|
1322
1302
|
</dd>
|
|
1323
1303
|
</dl>
|
|
1324
1304
|
|
|
1305
|
+
|
|
1325
1306
|
</dd>
|
|
1326
1307
|
</dl>
|
|
1327
1308
|
</details>
|
|
1328
1309
|
|
|
1329
1310
|
## Search
|
|
1330
|
-
|
|
1331
1311
|
<details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">searchDocumentCollection</a>({ ...params }) -> Credal.SearchDocumentCollectionResponse</code></summary>
|
|
1332
1312
|
<dl>
|
|
1333
1313
|
<dd>
|
|
@@ -1341,7 +1321,6 @@ await client.documentCollections.updateMongoCollectionSync({
|
|
|
1341
1321
|
<dd>
|
|
1342
1322
|
|
|
1343
1323
|
Search across all documents in a document collection using the document metadata and contents.
|
|
1344
|
-
|
|
1345
1324
|
</dd>
|
|
1346
1325
|
</dl>
|
|
1347
1326
|
</dd>
|
|
@@ -1359,13 +1338,11 @@ Search across all documents in a document collection using the document metadata
|
|
|
1359
1338
|
await client.search.searchDocumentCollection({
|
|
1360
1339
|
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
1361
1340
|
searchQuery: "ABC Corp",
|
|
1362
|
-
structuredQueryFilters: [
|
|
1363
|
-
{
|
|
1341
|
+
structuredQueryFilters: [{
|
|
1364
1342
|
field: "status",
|
|
1365
1343
|
operator: "==",
|
|
1366
|
-
value: "Open"
|
|
1367
|
-
},
|
|
1368
|
-
],
|
|
1344
|
+
value: "Open"
|
|
1345
|
+
}],
|
|
1369
1346
|
userEmail: "jack@credal.ai",
|
|
1370
1347
|
searchOptions: {
|
|
1371
1348
|
maxChunks: 10,
|
|
@@ -1373,11 +1350,11 @@ await client.search.searchDocumentCollection({
|
|
|
1373
1350
|
threshold: 0.8,
|
|
1374
1351
|
enableSmartFiltering: true,
|
|
1375
1352
|
enableQueryExtraction: true,
|
|
1376
|
-
enableReranking: true
|
|
1377
|
-
}
|
|
1353
|
+
enableReranking: true
|
|
1354
|
+
}
|
|
1378
1355
|
});
|
|
1379
|
-
```
|
|
1380
1356
|
|
|
1357
|
+
```
|
|
1381
1358
|
</dd>
|
|
1382
1359
|
</dl>
|
|
1383
1360
|
</dd>
|
|
@@ -1391,27 +1368,27 @@ await client.search.searchDocumentCollection({
|
|
|
1391
1368
|
<dl>
|
|
1392
1369
|
<dd>
|
|
1393
1370
|
|
|
1394
|
-
**request:** `Credal.SearchDocumentCollectionRequest`
|
|
1395
|
-
|
|
1371
|
+
**request:** `Credal.SearchDocumentCollectionRequest`
|
|
1372
|
+
|
|
1396
1373
|
</dd>
|
|
1397
1374
|
</dl>
|
|
1398
1375
|
|
|
1399
1376
|
<dl>
|
|
1400
1377
|
<dd>
|
|
1401
1378
|
|
|
1402
|
-
**requestOptions:** `Search.RequestOptions`
|
|
1403
|
-
|
|
1379
|
+
**requestOptions:** `Search.RequestOptions`
|
|
1380
|
+
|
|
1404
1381
|
</dd>
|
|
1405
1382
|
</dl>
|
|
1406
1383
|
</dd>
|
|
1407
1384
|
</dl>
|
|
1408
1385
|
|
|
1386
|
+
|
|
1409
1387
|
</dd>
|
|
1410
1388
|
</dl>
|
|
1411
1389
|
</details>
|
|
1412
1390
|
|
|
1413
1391
|
## Users
|
|
1414
|
-
|
|
1415
1392
|
<details><summary><code>client.users.<a href="/src/api/resources/users/client/Client.ts">metadata</a>({ ...params }) -> void</code></summary>
|
|
1416
1393
|
<dl>
|
|
1417
1394
|
<dd>
|
|
@@ -1425,7 +1402,6 @@ await client.search.searchDocumentCollection({
|
|
|
1425
1402
|
<dd>
|
|
1426
1403
|
|
|
1427
1404
|
Bulk patch metadata for users
|
|
1428
|
-
|
|
1429
1405
|
</dd>
|
|
1430
1406
|
</dl>
|
|
1431
1407
|
</dd>
|
|
@@ -1440,24 +1416,21 @@ Bulk patch metadata for users
|
|
|
1440
1416
|
<dd>
|
|
1441
1417
|
|
|
1442
1418
|
```typescript
|
|
1443
|
-
await client.users.metadata([
|
|
1444
|
-
{
|
|
1419
|
+
await client.users.metadata([{
|
|
1445
1420
|
metadata: {
|
|
1446
|
-
State: "NY",
|
|
1447
|
-
"Job Role": "CEO"
|
|
1421
|
+
"State": "NY",
|
|
1422
|
+
"Job Role": "CEO"
|
|
1448
1423
|
},
|
|
1449
|
-
userEmail: "ravin@credal.ai"
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1424
|
+
userEmail: "ravin@credal.ai"
|
|
1425
|
+
}, {
|
|
1452
1426
|
metadata: {
|
|
1453
|
-
State: "NY",
|
|
1454
|
-
Department: "Engineering"
|
|
1427
|
+
"State": "NY",
|
|
1428
|
+
"Department": "Engineering"
|
|
1455
1429
|
},
|
|
1456
|
-
userEmail: "jack@credal.ai"
|
|
1457
|
-
}
|
|
1458
|
-
]);
|
|
1459
|
-
```
|
|
1430
|
+
userEmail: "jack@credal.ai"
|
|
1431
|
+
}]);
|
|
1460
1432
|
|
|
1433
|
+
```
|
|
1461
1434
|
</dd>
|
|
1462
1435
|
</dl>
|
|
1463
1436
|
</dd>
|
|
@@ -1471,21 +1444,22 @@ await client.users.metadata([
|
|
|
1471
1444
|
<dl>
|
|
1472
1445
|
<dd>
|
|
1473
1446
|
|
|
1474
|
-
**request:** `Credal.UserMetadataPatch[]`
|
|
1475
|
-
|
|
1447
|
+
**request:** `Credal.UserMetadataPatch[]`
|
|
1448
|
+
|
|
1476
1449
|
</dd>
|
|
1477
1450
|
</dl>
|
|
1478
1451
|
|
|
1479
1452
|
<dl>
|
|
1480
1453
|
<dd>
|
|
1481
1454
|
|
|
1482
|
-
**requestOptions:** `Users.RequestOptions`
|
|
1483
|
-
|
|
1455
|
+
**requestOptions:** `Users.RequestOptions`
|
|
1456
|
+
|
|
1484
1457
|
</dd>
|
|
1485
1458
|
</dl>
|
|
1486
1459
|
</dd>
|
|
1487
1460
|
</dl>
|
|
1488
1461
|
|
|
1462
|
+
|
|
1489
1463
|
</dd>
|
|
1490
1464
|
</dl>
|
|
1491
1465
|
</details>
|