@credal/sdk 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/api/resources/common/types/index.d.ts +1 -0
- package/api/resources/common/types/index.js +1 -0
- package/api/resources/copilots/client/Client.d.ts +25 -11
- package/api/resources/copilots/client/Client.js +119 -37
- package/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +1 -1
- package/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +1 -1
- package/api/resources/copilots/client/requests/SendMessageRequest.d.ts +14 -1
- package/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +60 -0
- package/api/resources/copilots/client/requests/StreamMessageRequest.js +5 -0
- package/api/resources/copilots/client/requests/index.d.ts +1 -0
- package/api/resources/copilots/types/BlockedChunk.d.ts +10 -0
- package/api/resources/copilots/types/BlockedChunk.js +5 -0
- package/api/resources/copilots/types/BooleanFieldSchema.d.ts +8 -0
- package/api/resources/copilots/types/BooleanFieldSchema.js +5 -0
- package/api/resources/copilots/types/CollectionFilteredData.d.ts +9 -0
- package/api/resources/copilots/types/CollectionFilteredData.js +5 -0
- package/api/resources/copilots/types/DataChunk.d.ts +6 -0
- package/api/resources/copilots/types/DataChunk.js +5 -0
- package/api/resources/copilots/types/DataFilter.d.ts +9 -0
- package/api/resources/copilots/types/DataFilter.js +5 -0
- package/api/resources/copilots/types/DatetimeFieldSchema.d.ts +9 -0
- package/api/resources/copilots/types/DatetimeFieldSchema.js +5 -0
- package/api/resources/copilots/types/Filter.d.ts +19 -0
- package/api/resources/copilots/types/Filter.js +5 -0
- package/api/resources/copilots/types/FinalChunk.d.ts +7 -0
- package/api/resources/copilots/types/FinalChunk.js +5 -0
- package/api/resources/copilots/types/InitialChunk.d.ts +10 -0
- package/api/resources/copilots/types/InitialChunk.js +5 -0
- package/api/resources/copilots/types/InputVariable.d.ts +7 -0
- package/api/resources/copilots/types/InputVariable.js +5 -0
- package/api/resources/copilots/types/MessageReply.d.ts +1 -0
- package/api/resources/copilots/types/NumberFieldSchema.d.ts +9 -0
- package/api/resources/copilots/types/NumberFieldSchema.js +5 -0
- package/api/resources/copilots/types/StreamingChunk.d.ts +5 -0
- package/api/resources/copilots/types/StreamingChunk.js +5 -0
- package/api/resources/copilots/types/StringFieldSchema.d.ts +9 -0
- package/api/resources/copilots/types/StringFieldSchema.js +5 -0
- package/api/resources/copilots/types/WebSearchResult.d.ts +8 -0
- package/api/resources/copilots/types/WebSearchResult.js +5 -0
- package/api/resources/copilots/types/index.d.ts +14 -0
- package/api/resources/copilots/types/index.js +14 -0
- package/api/resources/documentCatalog/client/Client.d.ts +7 -4
- package/api/resources/documentCatalog/client/Client.js +13 -13
- package/api/resources/documentCollections/client/Client.d.ts +14 -11
- package/api/resources/documentCollections/client/Client.js +39 -29
- package/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +2 -2
- package/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +1 -1
- package/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +2 -2
- package/api/resources/permissionsService/client/Client.d.ts +8 -5
- package/api/resources/permissionsService/client/Client.js +20 -14
- package/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.ts +1 -1
- package/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.ts +1 -1
- package/api/resources/search/client/Client.d.ts +5 -2
- package/api/resources/search/client/Client.js +7 -7
- package/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
- package/api/resources/search/types/index.d.ts +0 -1
- package/api/resources/search/types/index.js +0 -1
- package/api/resources/users/client/Client.d.ts +4 -1
- package/api/resources/users/client/Client.js +5 -3
- package/core/fetcher/Fetcher.d.ts +4 -1
- package/core/fetcher/Fetcher.js +19 -176
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +55 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +41 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +12 -1
- package/core/schemas/Schema.d.ts +8 -4
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/core/streaming-fetcher/Stream.d.ts +48 -0
- package/core/streaming-fetcher/Stream.js +170 -0
- package/core/streaming-fetcher/index.d.ts +1 -0
- package/core/streaming-fetcher/index.js +5 -0
- package/dist/Client.d.ts +3 -0
- package/dist/api/resources/common/types/index.d.ts +1 -0
- package/dist/api/resources/common/types/index.js +1 -0
- package/dist/api/resources/copilots/client/Client.d.ts +25 -11
- package/dist/api/resources/copilots/client/Client.js +119 -37
- package/dist/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +1 -1
- package/dist/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +1 -1
- package/dist/api/resources/copilots/client/requests/SendMessageRequest.d.ts +14 -1
- package/dist/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +60 -0
- package/dist/api/resources/copilots/client/requests/StreamMessageRequest.js +5 -0
- package/dist/api/resources/copilots/client/requests/index.d.ts +1 -0
- package/dist/api/resources/copilots/types/BlockedChunk.d.ts +10 -0
- package/dist/api/resources/copilots/types/BlockedChunk.js +5 -0
- package/dist/api/resources/copilots/types/BooleanFieldSchema.d.ts +8 -0
- package/dist/api/resources/copilots/types/BooleanFieldSchema.js +5 -0
- package/dist/api/resources/copilots/types/CollectionFilteredData.d.ts +9 -0
- package/dist/api/resources/copilots/types/CollectionFilteredData.js +5 -0
- package/dist/api/resources/copilots/types/DataChunk.d.ts +6 -0
- package/dist/api/resources/copilots/types/DataChunk.js +5 -0
- package/dist/api/resources/copilots/types/DataFilter.d.ts +9 -0
- package/dist/api/resources/copilots/types/DataFilter.js +5 -0
- package/dist/api/resources/copilots/types/DatetimeFieldSchema.d.ts +9 -0
- package/dist/api/resources/copilots/types/DatetimeFieldSchema.js +5 -0
- package/dist/api/resources/copilots/types/Filter.d.ts +19 -0
- package/dist/api/resources/copilots/types/Filter.js +5 -0
- package/dist/api/resources/copilots/types/FinalChunk.d.ts +7 -0
- package/dist/api/resources/copilots/types/FinalChunk.js +5 -0
- package/dist/api/resources/copilots/types/InitialChunk.d.ts +10 -0
- package/dist/api/resources/copilots/types/InitialChunk.js +5 -0
- package/dist/api/resources/copilots/types/InputVariable.d.ts +7 -0
- package/dist/api/resources/copilots/types/InputVariable.js +5 -0
- package/dist/api/resources/copilots/types/MessageReply.d.ts +1 -0
- package/dist/api/resources/copilots/types/NumberFieldSchema.d.ts +9 -0
- package/dist/api/resources/copilots/types/NumberFieldSchema.js +5 -0
- package/dist/api/resources/copilots/types/StreamingChunk.d.ts +5 -0
- package/dist/api/resources/copilots/types/StreamingChunk.js +5 -0
- package/dist/api/resources/copilots/types/StringFieldSchema.d.ts +9 -0
- package/dist/api/resources/copilots/types/StringFieldSchema.js +5 -0
- package/dist/api/resources/copilots/types/WebSearchResult.d.ts +8 -0
- package/dist/api/resources/copilots/types/WebSearchResult.js +5 -0
- package/dist/api/resources/copilots/types/index.d.ts +14 -0
- package/dist/api/resources/copilots/types/index.js +14 -0
- package/dist/api/resources/documentCatalog/client/Client.d.ts +7 -4
- package/dist/api/resources/documentCatalog/client/Client.js +13 -13
- package/dist/api/resources/documentCollections/client/Client.d.ts +14 -11
- package/dist/api/resources/documentCollections/client/Client.js +39 -29
- package/dist/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +2 -2
- package/dist/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +1 -1
- package/dist/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +2 -2
- package/dist/api/resources/permissionsService/client/Client.d.ts +8 -5
- package/dist/api/resources/permissionsService/client/Client.js +20 -14
- package/dist/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.ts +1 -1
- package/dist/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.ts +1 -1
- package/dist/api/resources/search/client/Client.d.ts +5 -2
- package/dist/api/resources/search/client/Client.js +7 -7
- package/dist/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
- package/dist/api/resources/search/types/index.d.ts +0 -1
- package/dist/api/resources/search/types/index.js +0 -1
- package/dist/api/resources/users/client/Client.d.ts +4 -1
- package/dist/api/resources/users/client/Client.js +5 -3
- package/dist/core/fetcher/Fetcher.d.ts +4 -1
- package/dist/core/fetcher/Fetcher.js +19 -176
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +55 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +41 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +12 -1
- package/dist/core/schemas/Schema.d.ts +8 -4
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/core/streaming-fetcher/Stream.d.ts +48 -0
- package/dist/core/streaming-fetcher/Stream.js +170 -0
- package/dist/core/streaming-fetcher/index.d.ts +1 -0
- package/dist/core/streaming-fetcher/index.js +5 -0
- package/dist/serialization/resources/common/types/index.d.ts +1 -0
- package/dist/serialization/resources/common/types/index.js +1 -0
- package/dist/serialization/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -0
- package/dist/serialization/resources/copilots/client/requests/SendMessageRequest.js +2 -0
- package/dist/serialization/resources/copilots/client/requests/StreamMessageRequest.d.ts +17 -0
- package/dist/serialization/resources/copilots/client/requests/StreamMessageRequest.js +38 -0
- package/dist/serialization/resources/copilots/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/copilots/client/requests/index.js +3 -1
- package/dist/serialization/resources/copilots/types/BlockedChunk.d.ts +16 -0
- package/dist/serialization/resources/copilots/types/BlockedChunk.js +37 -0
- package/dist/serialization/resources/copilots/types/BooleanFieldSchema.d.ts +14 -0
- package/dist/serialization/resources/copilots/types/BooleanFieldSchema.js +35 -0
- package/dist/serialization/resources/copilots/types/CollectionFilteredData.d.ts +15 -0
- package/dist/serialization/resources/copilots/types/CollectionFilteredData.js +36 -0
- package/dist/serialization/resources/copilots/types/DataChunk.d.ts +12 -0
- package/dist/serialization/resources/copilots/types/DataChunk.js +33 -0
- package/dist/serialization/resources/copilots/types/DataFilter.d.ts +15 -0
- package/dist/serialization/resources/copilots/types/DataFilter.js +36 -0
- package/dist/serialization/resources/copilots/types/DatetimeFieldSchema.d.ts +15 -0
- package/dist/serialization/resources/copilots/types/DatetimeFieldSchema.js +36 -0
- package/dist/serialization/resources/copilots/types/Filter.d.ts +26 -0
- package/dist/serialization/resources/copilots/types/Filter.js +45 -0
- package/dist/serialization/resources/copilots/types/FinalChunk.d.ts +13 -0
- package/dist/serialization/resources/copilots/types/FinalChunk.js +34 -0
- package/dist/serialization/resources/copilots/types/InitialChunk.d.ts +17 -0
- package/dist/serialization/resources/copilots/types/InitialChunk.js +38 -0
- package/dist/serialization/resources/copilots/types/InputVariable.d.ts +13 -0
- package/dist/serialization/resources/copilots/types/InputVariable.js +34 -0
- package/dist/serialization/resources/copilots/types/MessageReply.d.ts +2 -0
- package/dist/serialization/resources/copilots/types/MessageReply.js +2 -0
- package/dist/serialization/resources/copilots/types/NumberFieldSchema.d.ts +15 -0
- package/dist/serialization/resources/copilots/types/NumberFieldSchema.js +36 -0
- package/dist/serialization/resources/copilots/types/StreamingChunk.d.ts +14 -0
- package/dist/serialization/resources/copilots/types/StreamingChunk.js +35 -0
- package/dist/serialization/resources/copilots/types/StringFieldSchema.d.ts +15 -0
- package/dist/serialization/resources/copilots/types/StringFieldSchema.js +36 -0
- package/dist/serialization/resources/copilots/types/WebSearchResult.d.ts +14 -0
- package/dist/serialization/resources/copilots/types/WebSearchResult.js +35 -0
- package/dist/serialization/resources/copilots/types/index.d.ts +14 -0
- package/dist/serialization/resources/copilots/types/index.js +14 -0
- package/dist/serialization/resources/search/types/SingleFieldFilter.d.ts +1 -1
- package/dist/serialization/resources/search/types/SingleFieldFilter.js +1 -1
- package/dist/serialization/resources/search/types/index.d.ts +0 -1
- package/dist/serialization/resources/search/types/index.js +0 -1
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/package.json +12 -2
- package/reference.md +203 -511
- package/serialization/resources/common/types/index.d.ts +1 -0
- package/serialization/resources/common/types/index.js +1 -0
- package/serialization/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -0
- package/serialization/resources/copilots/client/requests/SendMessageRequest.js +2 -0
- package/serialization/resources/copilots/client/requests/StreamMessageRequest.d.ts +17 -0
- package/serialization/resources/copilots/client/requests/StreamMessageRequest.js +38 -0
- package/serialization/resources/copilots/client/requests/index.d.ts +1 -0
- package/serialization/resources/copilots/client/requests/index.js +3 -1
- package/serialization/resources/copilots/types/BlockedChunk.d.ts +16 -0
- package/serialization/resources/copilots/types/BlockedChunk.js +37 -0
- package/serialization/resources/copilots/types/BooleanFieldSchema.d.ts +14 -0
- package/serialization/resources/copilots/types/BooleanFieldSchema.js +35 -0
- package/serialization/resources/copilots/types/CollectionFilteredData.d.ts +15 -0
- package/serialization/resources/copilots/types/CollectionFilteredData.js +36 -0
- package/serialization/resources/copilots/types/DataChunk.d.ts +12 -0
- package/serialization/resources/copilots/types/DataChunk.js +33 -0
- package/serialization/resources/copilots/types/DataFilter.d.ts +15 -0
- package/serialization/resources/copilots/types/DataFilter.js +36 -0
- package/serialization/resources/copilots/types/DatetimeFieldSchema.d.ts +15 -0
- package/serialization/resources/copilots/types/DatetimeFieldSchema.js +36 -0
- package/serialization/resources/copilots/types/Filter.d.ts +26 -0
- package/serialization/resources/copilots/types/Filter.js +45 -0
- package/serialization/resources/copilots/types/FinalChunk.d.ts +13 -0
- package/serialization/resources/copilots/types/FinalChunk.js +34 -0
- package/serialization/resources/copilots/types/InitialChunk.d.ts +17 -0
- package/serialization/resources/copilots/types/InitialChunk.js +38 -0
- package/serialization/resources/copilots/types/InputVariable.d.ts +13 -0
- package/serialization/resources/copilots/types/InputVariable.js +34 -0
- package/serialization/resources/copilots/types/MessageReply.d.ts +2 -0
- package/serialization/resources/copilots/types/MessageReply.js +2 -0
- package/serialization/resources/copilots/types/NumberFieldSchema.d.ts +15 -0
- package/serialization/resources/copilots/types/NumberFieldSchema.js +36 -0
- package/serialization/resources/copilots/types/StreamingChunk.d.ts +14 -0
- package/serialization/resources/copilots/types/StreamingChunk.js +35 -0
- package/serialization/resources/copilots/types/StringFieldSchema.d.ts +15 -0
- package/serialization/resources/copilots/types/StringFieldSchema.js +36 -0
- package/serialization/resources/copilots/types/WebSearchResult.d.ts +14 -0
- package/serialization/resources/copilots/types/WebSearchResult.js +35 -0
- package/serialization/resources/copilots/types/index.d.ts +14 -0
- package/serialization/resources/copilots/types/index.js +14 -0
- package/serialization/resources/search/types/SingleFieldFilter.d.ts +1 -1
- package/serialization/resources/search/types/SingleFieldFilter.js +1 -1
- package/serialization/resources/search/types/index.d.ts +0 -1
- package/serialization/resources/search/types/index.js +0 -1
- package/version.d.ts +1 -0
- package/version.js +4 -0
- /package/api/resources/{search → common}/types/Operator.d.ts +0 -0
- /package/api/resources/{search → common}/types/Operator.js +0 -0
- /package/dist/api/resources/{search → common}/types/Operator.d.ts +0 -0
- /package/dist/api/resources/{search → common}/types/Operator.js +0 -0
- /package/dist/serialization/resources/{search → common}/types/Operator.d.ts +0 -0
- /package/dist/serialization/resources/{search → common}/types/Operator.js +0 -0
- /package/serialization/resources/{search → common}/types/Operator.d.ts +0 -0
- /package/serialization/resources/{search → common}/types/Operator.js +0 -0
package/reference.md
CHANGED
|
@@ -1,531 +1,504 @@
|
|
|
1
|
-
|
|
1
|
+
# Reference
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Copilots
|
|
4
4
|
|
|
5
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">createCopilot</a>({ ...params }) -> Credal.CreateCopilotResponse</code></summary>
|
|
5
6
|
<dl>
|
|
6
|
-
|
|
7
7
|
<dd>
|
|
8
8
|
|
|
9
9
|
#### 📝 Description
|
|
10
10
|
|
|
11
11
|
<dl>
|
|
12
|
-
|
|
13
12
|
<dd>
|
|
14
13
|
|
|
15
14
|
<dl>
|
|
16
|
-
|
|
17
15
|
<dd>
|
|
18
16
|
|
|
19
17
|
Create a new copilot. The API key used will be added to the copilot for future Requests
|
|
20
18
|
|
|
21
19
|
</dd>
|
|
22
|
-
|
|
23
20
|
</dl>
|
|
24
|
-
|
|
25
21
|
</dd>
|
|
26
|
-
|
|
27
22
|
</dl>
|
|
28
23
|
|
|
29
24
|
#### 🔌 Usage
|
|
30
25
|
|
|
31
26
|
<dl>
|
|
32
|
-
|
|
33
27
|
<dd>
|
|
34
28
|
|
|
35
29
|
<dl>
|
|
36
|
-
|
|
37
30
|
<dd>
|
|
38
31
|
|
|
39
|
-
```
|
|
40
|
-
await
|
|
32
|
+
```typescript
|
|
33
|
+
await client.copilots.createCopilot({
|
|
41
34
|
name: "Customer Copilot",
|
|
42
35
|
description: "This copilot is used to answer customer requests based on internal documentation.",
|
|
43
36
|
collaborators: [
|
|
44
37
|
{
|
|
45
38
|
email: "test@gmail.com",
|
|
46
|
-
role:
|
|
39
|
+
role: "editor",
|
|
47
40
|
},
|
|
48
41
|
],
|
|
49
42
|
});
|
|
50
43
|
```
|
|
51
44
|
|
|
52
45
|
</dd>
|
|
53
|
-
|
|
54
46
|
</dl>
|
|
55
|
-
|
|
56
47
|
</dd>
|
|
57
|
-
|
|
58
48
|
</dl>
|
|
59
49
|
|
|
60
50
|
#### ⚙️ Parameters
|
|
61
51
|
|
|
62
52
|
<dl>
|
|
63
|
-
|
|
64
53
|
<dd>
|
|
65
54
|
|
|
66
55
|
<dl>
|
|
67
|
-
|
|
68
56
|
<dd>
|
|
69
57
|
|
|
70
|
-
**request
|
|
58
|
+
**request:** `Credal.CreateCopilotRequest`
|
|
71
59
|
|
|
72
60
|
</dd>
|
|
73
|
-
|
|
74
61
|
</dl>
|
|
75
62
|
|
|
76
63
|
<dl>
|
|
77
|
-
|
|
78
64
|
<dd>
|
|
79
65
|
|
|
80
|
-
**requestOptions
|
|
66
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
81
67
|
|
|
82
68
|
</dd>
|
|
83
|
-
|
|
84
69
|
</dl>
|
|
85
|
-
|
|
86
70
|
</dd>
|
|
87
|
-
|
|
88
71
|
</dl>
|
|
89
72
|
|
|
90
73
|
</dd>
|
|
91
|
-
|
|
92
74
|
</dl>
|
|
93
75
|
</details>
|
|
94
76
|
|
|
95
|
-
<details><summary
|
|
96
|
-
|
|
77
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">createConversation</a>({ ...params }) -> Credal.CreateConversationResponse</code></summary>
|
|
97
78
|
<dl>
|
|
98
|
-
|
|
99
79
|
<dd>
|
|
100
80
|
|
|
101
81
|
#### 📝 Description
|
|
102
82
|
|
|
103
83
|
<dl>
|
|
104
|
-
|
|
105
84
|
<dd>
|
|
106
85
|
|
|
107
86
|
<dl>
|
|
108
|
-
|
|
109
87
|
<dd>
|
|
110
88
|
|
|
111
89
|
OPTIONAL. Create a new conversation with the Copilot. 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.
|
|
112
90
|
|
|
113
91
|
</dd>
|
|
114
|
-
|
|
115
92
|
</dl>
|
|
116
|
-
|
|
117
93
|
</dd>
|
|
118
|
-
|
|
119
94
|
</dl>
|
|
120
95
|
|
|
121
96
|
#### 🔌 Usage
|
|
122
97
|
|
|
123
98
|
<dl>
|
|
124
|
-
|
|
125
99
|
<dd>
|
|
126
100
|
|
|
127
101
|
<dl>
|
|
128
|
-
|
|
129
102
|
<dd>
|
|
130
103
|
|
|
131
|
-
```
|
|
132
|
-
await
|
|
104
|
+
```typescript
|
|
105
|
+
await client.copilots.createConversation({
|
|
133
106
|
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
134
107
|
userEmail: "ravin@credal.ai",
|
|
135
108
|
});
|
|
136
109
|
```
|
|
137
110
|
|
|
138
111
|
</dd>
|
|
139
|
-
|
|
140
112
|
</dl>
|
|
141
|
-
|
|
142
113
|
</dd>
|
|
143
|
-
|
|
144
114
|
</dl>
|
|
145
115
|
|
|
146
116
|
#### ⚙️ Parameters
|
|
147
117
|
|
|
148
118
|
<dl>
|
|
149
|
-
|
|
150
119
|
<dd>
|
|
151
120
|
|
|
152
121
|
<dl>
|
|
153
|
-
|
|
154
122
|
<dd>
|
|
155
123
|
|
|
156
|
-
**request
|
|
124
|
+
**request:** `Credal.CreateConversationRequest`
|
|
157
125
|
|
|
158
126
|
</dd>
|
|
159
|
-
|
|
160
127
|
</dl>
|
|
161
128
|
|
|
162
129
|
<dl>
|
|
163
|
-
|
|
164
130
|
<dd>
|
|
165
131
|
|
|
166
|
-
**requestOptions
|
|
132
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
167
133
|
|
|
168
134
|
</dd>
|
|
169
|
-
|
|
170
135
|
</dl>
|
|
171
|
-
|
|
172
136
|
</dd>
|
|
173
|
-
|
|
174
137
|
</dl>
|
|
175
138
|
|
|
176
139
|
</dd>
|
|
177
|
-
|
|
178
140
|
</dl>
|
|
179
141
|
</details>
|
|
180
142
|
|
|
181
|
-
<details><summary
|
|
182
|
-
|
|
143
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">provideMessageFeedback</a>({ ...params }) -> void</code></summary>
|
|
183
144
|
<dl>
|
|
184
|
-
|
|
185
145
|
<dd>
|
|
186
146
|
|
|
187
147
|
#### 🔌 Usage
|
|
188
148
|
|
|
189
149
|
<dl>
|
|
190
|
-
|
|
191
150
|
<dd>
|
|
192
151
|
|
|
193
152
|
<dl>
|
|
194
|
-
|
|
195
153
|
<dd>
|
|
196
154
|
|
|
197
|
-
```
|
|
198
|
-
await
|
|
155
|
+
```typescript
|
|
156
|
+
await client.copilots.provideMessageFeedback({
|
|
199
157
|
userEmail: "ravin@credal.ai",
|
|
200
158
|
messageId: "dd721cd8-4bf2-4b94-9869-258df3dab9dc",
|
|
201
159
|
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
202
160
|
messageFeedback: {
|
|
203
|
-
feedback:
|
|
161
|
+
feedback: "NEGATIVE",
|
|
204
162
|
suggestedAnswer: "Yes, Credal is SOC 2 compliant.",
|
|
205
163
|
},
|
|
206
164
|
});
|
|
207
165
|
```
|
|
208
166
|
|
|
209
167
|
</dd>
|
|
210
|
-
|
|
211
168
|
</dl>
|
|
212
|
-
|
|
213
169
|
</dd>
|
|
214
|
-
|
|
215
170
|
</dl>
|
|
216
171
|
|
|
217
172
|
#### ⚙️ Parameters
|
|
218
173
|
|
|
219
174
|
<dl>
|
|
220
|
-
|
|
221
175
|
<dd>
|
|
222
176
|
|
|
223
177
|
<dl>
|
|
224
|
-
|
|
225
178
|
<dd>
|
|
226
179
|
|
|
227
|
-
**request
|
|
180
|
+
**request:** `Credal.ProvideMessageFeedbackRequest`
|
|
228
181
|
|
|
229
182
|
</dd>
|
|
230
|
-
|
|
231
183
|
</dl>
|
|
232
184
|
|
|
233
185
|
<dl>
|
|
234
|
-
|
|
235
186
|
<dd>
|
|
236
187
|
|
|
237
|
-
**requestOptions
|
|
188
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
238
189
|
|
|
239
190
|
</dd>
|
|
240
|
-
|
|
241
191
|
</dl>
|
|
242
|
-
|
|
243
192
|
</dd>
|
|
244
|
-
|
|
245
193
|
</dl>
|
|
246
194
|
|
|
247
195
|
</dd>
|
|
248
|
-
|
|
249
196
|
</dl>
|
|
250
197
|
</details>
|
|
251
198
|
|
|
252
|
-
<details><summary
|
|
253
|
-
|
|
199
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">sendMessage</a>({ ...params }) -> Credal.SendAgentMessageResponse</code></summary>
|
|
254
200
|
<dl>
|
|
255
|
-
|
|
256
201
|
<dd>
|
|
257
202
|
|
|
258
203
|
#### 🔌 Usage
|
|
259
204
|
|
|
260
205
|
<dl>
|
|
261
|
-
|
|
262
206
|
<dd>
|
|
263
207
|
|
|
264
208
|
<dl>
|
|
265
|
-
|
|
266
209
|
<dd>
|
|
267
210
|
|
|
268
|
-
```
|
|
269
|
-
await
|
|
211
|
+
```typescript
|
|
212
|
+
await client.copilots.sendMessage({
|
|
270
213
|
agentId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
271
214
|
message: "Is Credal SOC 2 compliant?",
|
|
272
215
|
userEmail: "ravin@credal.ai",
|
|
216
|
+
inputVariables: [
|
|
217
|
+
{
|
|
218
|
+
name: "input1",
|
|
219
|
+
urls: ["https://drive.google.com/file/d/123456/view"],
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "input2",
|
|
223
|
+
urls: ["https://drive.google.com/file/d/123457/view", "https://drive.google.com/file/d/123458/view"],
|
|
224
|
+
},
|
|
225
|
+
],
|
|
273
226
|
});
|
|
274
227
|
```
|
|
275
228
|
|
|
276
229
|
</dd>
|
|
277
|
-
|
|
278
230
|
</dl>
|
|
279
|
-
|
|
280
231
|
</dd>
|
|
281
|
-
|
|
282
232
|
</dl>
|
|
283
233
|
|
|
284
234
|
#### ⚙️ Parameters
|
|
285
235
|
|
|
286
236
|
<dl>
|
|
287
|
-
|
|
288
237
|
<dd>
|
|
289
238
|
|
|
290
239
|
<dl>
|
|
240
|
+
<dd>
|
|
291
241
|
|
|
242
|
+
**request:** `Credal.SendMessageRequest`
|
|
243
|
+
|
|
244
|
+
</dd>
|
|
245
|
+
</dl>
|
|
246
|
+
|
|
247
|
+
<dl>
|
|
292
248
|
<dd>
|
|
293
249
|
|
|
294
|
-
**
|
|
250
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
295
251
|
|
|
296
252
|
</dd>
|
|
253
|
+
</dl>
|
|
254
|
+
</dd>
|
|
255
|
+
</dl>
|
|
297
256
|
|
|
257
|
+
</dd>
|
|
298
258
|
</dl>
|
|
259
|
+
</details>
|
|
299
260
|
|
|
261
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">streamMessage</a>({ ...params }) -> core.Stream<Credal.StreamingChunk></code></summary>
|
|
300
262
|
<dl>
|
|
263
|
+
<dd>
|
|
264
|
+
|
|
265
|
+
#### 📝 Description
|
|
301
266
|
|
|
267
|
+
<dl>
|
|
302
268
|
<dd>
|
|
303
269
|
|
|
304
|
-
|
|
270
|
+
<dl>
|
|
271
|
+
<dd>
|
|
305
272
|
|
|
306
|
-
|
|
273
|
+
This endpoint allows you to send a message to a specific copilot and get the response back as a streamed set of Server-Sent Events.
|
|
307
274
|
|
|
275
|
+
</dd>
|
|
276
|
+
</dl>
|
|
277
|
+
</dd>
|
|
308
278
|
</dl>
|
|
309
279
|
|
|
280
|
+
#### 🔌 Usage
|
|
281
|
+
|
|
282
|
+
<dl>
|
|
283
|
+
<dd>
|
|
284
|
+
|
|
285
|
+
<dl>
|
|
286
|
+
<dd>
|
|
287
|
+
|
|
288
|
+
```typescript
|
|
289
|
+
const response = await client.copilots.streamMessage({
|
|
290
|
+
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
291
|
+
message: "Is Credal SOC 2 compliant?",
|
|
292
|
+
email: "ravin@credal.ai",
|
|
293
|
+
inputVariables: [
|
|
294
|
+
{
|
|
295
|
+
name: "input1",
|
|
296
|
+
urls: ["https://drive.google.com/file/d/123456/view"],
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "input2",
|
|
300
|
+
urls: ["https://drive.google.com/file/d/123457/view", "https://drive.google.com/file/d/123458/view"],
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
});
|
|
304
|
+
for await (const item of response) {
|
|
305
|
+
console.log(item);
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
310
309
|
</dd>
|
|
310
|
+
</dl>
|
|
311
|
+
</dd>
|
|
312
|
+
</dl>
|
|
313
|
+
|
|
314
|
+
#### ⚙️ Parameters
|
|
315
|
+
|
|
316
|
+
<dl>
|
|
317
|
+
<dd>
|
|
318
|
+
|
|
319
|
+
<dl>
|
|
320
|
+
<dd>
|
|
311
321
|
|
|
322
|
+
**request:** `Credal.StreamMessageRequest`
|
|
323
|
+
|
|
324
|
+
</dd>
|
|
312
325
|
</dl>
|
|
313
326
|
|
|
327
|
+
<dl>
|
|
328
|
+
<dd>
|
|
329
|
+
|
|
330
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
331
|
+
|
|
332
|
+
</dd>
|
|
333
|
+
</dl>
|
|
314
334
|
</dd>
|
|
335
|
+
</dl>
|
|
315
336
|
|
|
337
|
+
</dd>
|
|
316
338
|
</dl>
|
|
317
339
|
</details>
|
|
318
340
|
|
|
319
|
-
<details><summary
|
|
320
|
-
|
|
341
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">addCollectionToCopilot</a>({ ...params }) -> void</code></summary>
|
|
321
342
|
<dl>
|
|
322
|
-
|
|
323
343
|
<dd>
|
|
324
344
|
|
|
325
345
|
#### 📝 Description
|
|
326
346
|
|
|
327
347
|
<dl>
|
|
328
|
-
|
|
329
348
|
<dd>
|
|
330
349
|
|
|
331
350
|
<dl>
|
|
332
|
-
|
|
333
351
|
<dd>
|
|
334
352
|
|
|
335
353
|
Link a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
|
|
336
354
|
|
|
337
355
|
</dd>
|
|
338
|
-
|
|
339
356
|
</dl>
|
|
340
|
-
|
|
341
357
|
</dd>
|
|
342
|
-
|
|
343
358
|
</dl>
|
|
344
359
|
|
|
345
360
|
#### 🔌 Usage
|
|
346
361
|
|
|
347
362
|
<dl>
|
|
348
|
-
|
|
349
363
|
<dd>
|
|
350
364
|
|
|
351
365
|
<dl>
|
|
352
|
-
|
|
353
366
|
<dd>
|
|
354
367
|
|
|
355
|
-
```
|
|
356
|
-
await
|
|
368
|
+
```typescript
|
|
369
|
+
await client.copilots.addCollectionToCopilot({
|
|
357
370
|
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
358
371
|
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e",
|
|
359
372
|
});
|
|
360
373
|
```
|
|
361
374
|
|
|
362
375
|
</dd>
|
|
363
|
-
|
|
364
376
|
</dl>
|
|
365
|
-
|
|
366
377
|
</dd>
|
|
367
|
-
|
|
368
378
|
</dl>
|
|
369
379
|
|
|
370
380
|
#### ⚙️ Parameters
|
|
371
381
|
|
|
372
382
|
<dl>
|
|
373
|
-
|
|
374
383
|
<dd>
|
|
375
384
|
|
|
376
385
|
<dl>
|
|
377
|
-
|
|
378
386
|
<dd>
|
|
379
387
|
|
|
380
|
-
**request
|
|
388
|
+
**request:** `Credal.AddCollectionToCopilotRequest`
|
|
381
389
|
|
|
382
390
|
</dd>
|
|
383
|
-
|
|
384
391
|
</dl>
|
|
385
392
|
|
|
386
393
|
<dl>
|
|
387
|
-
|
|
388
394
|
<dd>
|
|
389
395
|
|
|
390
|
-
**requestOptions
|
|
396
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
391
397
|
|
|
392
398
|
</dd>
|
|
393
|
-
|
|
394
399
|
</dl>
|
|
395
|
-
|
|
396
400
|
</dd>
|
|
397
|
-
|
|
398
401
|
</dl>
|
|
399
402
|
|
|
400
403
|
</dd>
|
|
401
|
-
|
|
402
404
|
</dl>
|
|
403
405
|
</details>
|
|
404
406
|
|
|
405
|
-
<details><summary
|
|
406
|
-
|
|
407
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">removeCollectionFromCopilot</a>({ ...params }) -> void</code></summary>
|
|
407
408
|
<dl>
|
|
408
|
-
|
|
409
409
|
<dd>
|
|
410
410
|
|
|
411
411
|
#### 📝 Description
|
|
412
412
|
|
|
413
413
|
<dl>
|
|
414
|
-
|
|
415
414
|
<dd>
|
|
416
415
|
|
|
417
416
|
<dl>
|
|
418
|
-
|
|
419
417
|
<dd>
|
|
420
418
|
|
|
421
419
|
Unlink a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
|
|
422
420
|
|
|
423
421
|
</dd>
|
|
424
|
-
|
|
425
422
|
</dl>
|
|
426
|
-
|
|
427
423
|
</dd>
|
|
428
|
-
|
|
429
424
|
</dl>
|
|
430
425
|
|
|
431
426
|
#### 🔌 Usage
|
|
432
427
|
|
|
433
428
|
<dl>
|
|
434
|
-
|
|
435
429
|
<dd>
|
|
436
430
|
|
|
437
431
|
<dl>
|
|
438
|
-
|
|
439
432
|
<dd>
|
|
440
433
|
|
|
441
|
-
```
|
|
442
|
-
await
|
|
434
|
+
```typescript
|
|
435
|
+
await client.copilots.removeCollectionFromCopilot({
|
|
443
436
|
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
444
437
|
collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e",
|
|
445
438
|
});
|
|
446
439
|
```
|
|
447
440
|
|
|
448
441
|
</dd>
|
|
449
|
-
|
|
450
442
|
</dl>
|
|
451
|
-
|
|
452
443
|
</dd>
|
|
453
|
-
|
|
454
444
|
</dl>
|
|
455
445
|
|
|
456
446
|
#### ⚙️ Parameters
|
|
457
447
|
|
|
458
448
|
<dl>
|
|
459
|
-
|
|
460
449
|
<dd>
|
|
461
450
|
|
|
462
451
|
<dl>
|
|
463
|
-
|
|
464
452
|
<dd>
|
|
465
453
|
|
|
466
|
-
**request
|
|
454
|
+
**request:** `Credal.RemoveCollectionFromCopilotRequest`
|
|
467
455
|
|
|
468
456
|
</dd>
|
|
469
|
-
|
|
470
457
|
</dl>
|
|
471
458
|
|
|
472
459
|
<dl>
|
|
473
|
-
|
|
474
460
|
<dd>
|
|
475
461
|
|
|
476
|
-
**requestOptions
|
|
462
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
477
463
|
|
|
478
464
|
</dd>
|
|
479
|
-
|
|
480
465
|
</dl>
|
|
481
|
-
|
|
482
466
|
</dd>
|
|
483
|
-
|
|
484
467
|
</dl>
|
|
485
468
|
|
|
486
469
|
</dd>
|
|
487
|
-
|
|
488
470
|
</dl>
|
|
489
471
|
</details>
|
|
490
472
|
|
|
491
|
-
<details><summary
|
|
492
|
-
|
|
473
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">updateConfiguration</a>({ ...params }) -> void</code></summary>
|
|
493
474
|
<dl>
|
|
494
|
-
|
|
495
475
|
<dd>
|
|
496
476
|
|
|
497
477
|
#### 📝 Description
|
|
498
478
|
|
|
499
479
|
<dl>
|
|
500
|
-
|
|
501
480
|
<dd>
|
|
502
481
|
|
|
503
482
|
<dl>
|
|
504
|
-
|
|
505
483
|
<dd>
|
|
506
484
|
|
|
507
485
|
Update the configuration for a copilot
|
|
508
486
|
|
|
509
487
|
</dd>
|
|
510
|
-
|
|
511
488
|
</dl>
|
|
512
|
-
|
|
513
489
|
</dd>
|
|
514
|
-
|
|
515
490
|
</dl>
|
|
516
491
|
|
|
517
492
|
#### 🔌 Usage
|
|
518
493
|
|
|
519
494
|
<dl>
|
|
520
|
-
|
|
521
495
|
<dd>
|
|
522
496
|
|
|
523
497
|
<dl>
|
|
524
|
-
|
|
525
498
|
<dd>
|
|
526
499
|
|
|
527
|
-
```
|
|
528
|
-
await
|
|
500
|
+
```typescript
|
|
501
|
+
await client.copilots.updateConfiguration({
|
|
529
502
|
copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
530
503
|
configuration: {
|
|
531
504
|
name: "Customer Copilot",
|
|
@@ -540,133 +513,103 @@ await credal.copilots.updateConfiguration({
|
|
|
540
513
|
```
|
|
541
514
|
|
|
542
515
|
</dd>
|
|
543
|
-
|
|
544
516
|
</dl>
|
|
545
|
-
|
|
546
517
|
</dd>
|
|
547
|
-
|
|
548
518
|
</dl>
|
|
549
519
|
|
|
550
520
|
#### ⚙️ Parameters
|
|
551
521
|
|
|
552
522
|
<dl>
|
|
553
|
-
|
|
554
523
|
<dd>
|
|
555
524
|
|
|
556
525
|
<dl>
|
|
557
|
-
|
|
558
526
|
<dd>
|
|
559
527
|
|
|
560
|
-
**request
|
|
528
|
+
**request:** `Credal.UpdateConfigurationRequest`
|
|
561
529
|
|
|
562
530
|
</dd>
|
|
563
|
-
|
|
564
531
|
</dl>
|
|
565
532
|
|
|
566
533
|
<dl>
|
|
567
|
-
|
|
568
534
|
<dd>
|
|
569
535
|
|
|
570
|
-
**requestOptions
|
|
536
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
571
537
|
|
|
572
538
|
</dd>
|
|
573
|
-
|
|
574
539
|
</dl>
|
|
575
|
-
|
|
576
540
|
</dd>
|
|
577
|
-
|
|
578
541
|
</dl>
|
|
579
542
|
|
|
580
543
|
</dd>
|
|
581
|
-
|
|
582
544
|
</dl>
|
|
583
545
|
</details>
|
|
584
546
|
|
|
585
|
-
<details><summary
|
|
586
|
-
|
|
547
|
+
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">deleteCopilot</a>({ ...params }) -> Credal.DeleteCopilotResponse</code></summary>
|
|
587
548
|
<dl>
|
|
588
|
-
|
|
589
549
|
<dd>
|
|
590
550
|
|
|
591
551
|
#### 🔌 Usage
|
|
592
552
|
|
|
593
553
|
<dl>
|
|
594
|
-
|
|
595
554
|
<dd>
|
|
596
555
|
|
|
597
556
|
<dl>
|
|
598
|
-
|
|
599
557
|
<dd>
|
|
600
558
|
|
|
601
|
-
```
|
|
602
|
-
await
|
|
559
|
+
```typescript
|
|
560
|
+
await client.copilots.deleteCopilot({
|
|
603
561
|
id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
|
|
604
562
|
});
|
|
605
563
|
```
|
|
606
564
|
|
|
607
565
|
</dd>
|
|
608
|
-
|
|
609
566
|
</dl>
|
|
610
|
-
|
|
611
567
|
</dd>
|
|
612
|
-
|
|
613
568
|
</dl>
|
|
614
569
|
|
|
615
570
|
#### ⚙️ Parameters
|
|
616
571
|
|
|
617
572
|
<dl>
|
|
618
|
-
|
|
619
573
|
<dd>
|
|
620
574
|
|
|
621
575
|
<dl>
|
|
622
|
-
|
|
623
576
|
<dd>
|
|
624
577
|
|
|
625
|
-
**request
|
|
578
|
+
**request:** `Credal.DeleteCopilotRequest`
|
|
626
579
|
|
|
627
580
|
</dd>
|
|
628
|
-
|
|
629
581
|
</dl>
|
|
630
582
|
|
|
631
583
|
<dl>
|
|
632
|
-
|
|
633
584
|
<dd>
|
|
634
585
|
|
|
635
|
-
**requestOptions
|
|
586
|
+
**requestOptions:** `Copilots.RequestOptions`
|
|
636
587
|
|
|
637
588
|
</dd>
|
|
638
|
-
|
|
639
589
|
</dl>
|
|
640
|
-
|
|
641
590
|
</dd>
|
|
642
|
-
|
|
643
591
|
</dl>
|
|
644
592
|
|
|
645
593
|
</dd>
|
|
646
|
-
|
|
647
594
|
</dl>
|
|
648
595
|
</details>
|
|
649
596
|
|
|
650
597
|
## DocumentCatalog
|
|
651
598
|
|
|
652
|
-
<details><summary
|
|
653
|
-
|
|
599
|
+
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">uploadDocumentContents</a>({ ...params }) -> Credal.UploadDocumentResponse</code></summary>
|
|
654
600
|
<dl>
|
|
655
|
-
|
|
656
601
|
<dd>
|
|
657
602
|
|
|
658
603
|
#### 🔌 Usage
|
|
659
604
|
|
|
660
605
|
<dl>
|
|
661
|
-
|
|
662
606
|
<dd>
|
|
663
607
|
|
|
664
608
|
<dl>
|
|
665
|
-
|
|
666
609
|
<dd>
|
|
667
610
|
|
|
668
|
-
```
|
|
669
|
-
await
|
|
611
|
+
```typescript
|
|
612
|
+
await client.documentCatalog.uploadDocumentContents({
|
|
670
613
|
documentName: "My Document",
|
|
671
614
|
documentContents:
|
|
672
615
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
@@ -677,86 +620,66 @@ await credal.documentCatalog.uploadDocumentContents({
|
|
|
677
620
|
```
|
|
678
621
|
|
|
679
622
|
</dd>
|
|
680
|
-
|
|
681
623
|
</dl>
|
|
682
|
-
|
|
683
624
|
</dd>
|
|
684
|
-
|
|
685
625
|
</dl>
|
|
686
626
|
|
|
687
627
|
#### ⚙️ Parameters
|
|
688
628
|
|
|
689
629
|
<dl>
|
|
690
|
-
|
|
691
630
|
<dd>
|
|
692
631
|
|
|
693
632
|
<dl>
|
|
694
|
-
|
|
695
633
|
<dd>
|
|
696
634
|
|
|
697
|
-
**request
|
|
635
|
+
**request:** `Credal.UploadDocumentContentsRequest`
|
|
698
636
|
|
|
699
637
|
</dd>
|
|
700
|
-
|
|
701
638
|
</dl>
|
|
702
639
|
|
|
703
640
|
<dl>
|
|
704
|
-
|
|
705
641
|
<dd>
|
|
706
642
|
|
|
707
|
-
**requestOptions
|
|
643
|
+
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
708
644
|
|
|
709
645
|
</dd>
|
|
710
|
-
|
|
711
646
|
</dl>
|
|
712
|
-
|
|
713
647
|
</dd>
|
|
714
|
-
|
|
715
648
|
</dl>
|
|
716
649
|
|
|
717
650
|
</dd>
|
|
718
|
-
|
|
719
651
|
</dl>
|
|
720
652
|
</details>
|
|
721
653
|
|
|
722
|
-
<details><summary
|
|
723
|
-
|
|
654
|
+
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">metadata</a>({ ...params }) -> void</code></summary>
|
|
724
655
|
<dl>
|
|
725
|
-
|
|
726
656
|
<dd>
|
|
727
657
|
|
|
728
658
|
#### 📝 Description
|
|
729
659
|
|
|
730
660
|
<dl>
|
|
731
|
-
|
|
732
661
|
<dd>
|
|
733
662
|
|
|
734
663
|
<dl>
|
|
735
|
-
|
|
736
664
|
<dd>
|
|
737
665
|
|
|
738
666
|
Bulk patch metadata for documents, synced natively by Credal or manual API uploads
|
|
739
667
|
|
|
740
668
|
</dd>
|
|
741
|
-
|
|
742
669
|
</dl>
|
|
743
|
-
|
|
744
670
|
</dd>
|
|
745
|
-
|
|
746
671
|
</dl>
|
|
747
672
|
|
|
748
673
|
#### 🔌 Usage
|
|
749
674
|
|
|
750
675
|
<dl>
|
|
751
|
-
|
|
752
676
|
<dd>
|
|
753
677
|
|
|
754
678
|
<dl>
|
|
755
|
-
|
|
756
679
|
<dd>
|
|
757
680
|
|
|
758
|
-
```
|
|
759
|
-
await
|
|
681
|
+
```typescript
|
|
682
|
+
await client.documentCatalog.metadata({
|
|
760
683
|
sources: [
|
|
761
684
|
{
|
|
762
685
|
metadata: {
|
|
@@ -766,7 +689,7 @@ await credal.documentCatalog.metadata({
|
|
|
766
689
|
resourceIdentifier: {
|
|
767
690
|
type: "external-resource-id",
|
|
768
691
|
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
769
|
-
resourceType:
|
|
692
|
+
resourceType: "GOOGLE_DRIVE_ITEM",
|
|
770
693
|
},
|
|
771
694
|
},
|
|
772
695
|
{
|
|
@@ -777,7 +700,7 @@ await credal.documentCatalog.metadata({
|
|
|
777
700
|
resourceIdentifier: {
|
|
778
701
|
type: "external-resource-id",
|
|
779
702
|
externalResourceId: "123456",
|
|
780
|
-
resourceType:
|
|
703
|
+
resourceType: "ZENDESK_TICKET",
|
|
781
704
|
},
|
|
782
705
|
},
|
|
783
706
|
],
|
|
@@ -786,459 +709,359 @@ await credal.documentCatalog.metadata({
|
|
|
786
709
|
```
|
|
787
710
|
|
|
788
711
|
</dd>
|
|
789
|
-
|
|
790
712
|
</dl>
|
|
791
|
-
|
|
792
713
|
</dd>
|
|
793
|
-
|
|
794
714
|
</dl>
|
|
795
715
|
|
|
796
716
|
#### ⚙️ Parameters
|
|
797
717
|
|
|
798
718
|
<dl>
|
|
799
|
-
|
|
800
719
|
<dd>
|
|
801
720
|
|
|
802
721
|
<dl>
|
|
803
|
-
|
|
804
722
|
<dd>
|
|
805
723
|
|
|
806
|
-
**request
|
|
724
|
+
**request:** `Credal.DocumentMetadataPatchRequest`
|
|
807
725
|
|
|
808
726
|
</dd>
|
|
809
|
-
|
|
810
727
|
</dl>
|
|
811
728
|
|
|
812
729
|
<dl>
|
|
813
|
-
|
|
814
730
|
<dd>
|
|
815
731
|
|
|
816
|
-
**requestOptions
|
|
732
|
+
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
817
733
|
|
|
818
734
|
</dd>
|
|
819
|
-
|
|
820
735
|
</dl>
|
|
821
|
-
|
|
822
736
|
</dd>
|
|
823
|
-
|
|
824
737
|
</dl>
|
|
825
738
|
|
|
826
739
|
</dd>
|
|
827
|
-
|
|
828
740
|
</dl>
|
|
829
741
|
</details>
|
|
830
742
|
|
|
831
743
|
## DocumentCollections
|
|
832
744
|
|
|
833
|
-
<details><summary
|
|
834
|
-
|
|
745
|
+
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">addDocumentsToCollection</a>({ ...params }) -> void</code></summary>
|
|
835
746
|
<dl>
|
|
836
|
-
|
|
837
747
|
<dd>
|
|
838
748
|
|
|
839
749
|
#### 📝 Description
|
|
840
750
|
|
|
841
751
|
<dl>
|
|
842
|
-
|
|
843
752
|
<dd>
|
|
844
753
|
|
|
845
754
|
<dl>
|
|
846
|
-
|
|
847
755
|
<dd>
|
|
848
756
|
|
|
849
757
|
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.
|
|
850
758
|
|
|
851
759
|
</dd>
|
|
852
|
-
|
|
853
760
|
</dl>
|
|
854
|
-
|
|
855
761
|
</dd>
|
|
856
|
-
|
|
857
762
|
</dl>
|
|
858
763
|
|
|
859
764
|
#### 🔌 Usage
|
|
860
765
|
|
|
861
766
|
<dl>
|
|
862
|
-
|
|
863
767
|
<dd>
|
|
864
768
|
|
|
865
769
|
<dl>
|
|
866
|
-
|
|
867
770
|
<dd>
|
|
868
771
|
|
|
869
|
-
```
|
|
870
|
-
await
|
|
772
|
+
```typescript
|
|
773
|
+
await client.documentCollections.addDocumentsToCollection({
|
|
871
774
|
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
872
775
|
resourceIdentifiers: [
|
|
873
776
|
{
|
|
874
777
|
type: "external-resource-id",
|
|
875
778
|
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
876
|
-
resourceType:
|
|
779
|
+
resourceType: "GOOGLE_DRIVE_ITEM",
|
|
877
780
|
},
|
|
878
781
|
{
|
|
879
782
|
type: "external-resource-id",
|
|
880
783
|
externalResourceId: "398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
|
|
881
|
-
resourceType:
|
|
784
|
+
resourceType: "GOOGLE_DRIVE_ITEM",
|
|
882
785
|
},
|
|
883
786
|
],
|
|
884
787
|
});
|
|
885
788
|
```
|
|
886
789
|
|
|
887
790
|
</dd>
|
|
888
|
-
|
|
889
791
|
</dl>
|
|
890
|
-
|
|
891
792
|
</dd>
|
|
892
|
-
|
|
893
793
|
</dl>
|
|
894
794
|
|
|
895
795
|
#### ⚙️ Parameters
|
|
896
796
|
|
|
897
797
|
<dl>
|
|
898
|
-
|
|
899
798
|
<dd>
|
|
900
799
|
|
|
901
800
|
<dl>
|
|
902
|
-
|
|
903
801
|
<dd>
|
|
904
802
|
|
|
905
|
-
**request
|
|
803
|
+
**request:** `Credal.AddDocumentsToCollectionRequest`
|
|
906
804
|
|
|
907
805
|
</dd>
|
|
908
|
-
|
|
909
806
|
</dl>
|
|
910
807
|
|
|
911
808
|
<dl>
|
|
912
|
-
|
|
913
809
|
<dd>
|
|
914
810
|
|
|
915
|
-
**requestOptions
|
|
811
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
916
812
|
|
|
917
813
|
</dd>
|
|
918
|
-
|
|
919
814
|
</dl>
|
|
920
|
-
|
|
921
815
|
</dd>
|
|
922
|
-
|
|
923
816
|
</dl>
|
|
924
817
|
|
|
925
818
|
</dd>
|
|
926
|
-
|
|
927
819
|
</dl>
|
|
928
820
|
</details>
|
|
929
821
|
|
|
930
|
-
<details><summary
|
|
931
|
-
|
|
822
|
+
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">removeDocumentsFromCollection</a>({ ...params }) -> void</code></summary>
|
|
932
823
|
<dl>
|
|
933
|
-
|
|
934
824
|
<dd>
|
|
935
825
|
|
|
936
826
|
#### 📝 Description
|
|
937
827
|
|
|
938
828
|
<dl>
|
|
939
|
-
|
|
940
829
|
<dd>
|
|
941
830
|
|
|
942
831
|
<dl>
|
|
943
|
-
|
|
944
832
|
<dd>
|
|
945
833
|
|
|
946
834
|
Remove documents from a collection
|
|
947
835
|
|
|
948
836
|
</dd>
|
|
949
|
-
|
|
950
837
|
</dl>
|
|
951
|
-
|
|
952
838
|
</dd>
|
|
953
|
-
|
|
954
839
|
</dl>
|
|
955
840
|
|
|
956
841
|
#### 🔌 Usage
|
|
957
842
|
|
|
958
843
|
<dl>
|
|
959
|
-
|
|
960
844
|
<dd>
|
|
961
845
|
|
|
962
846
|
<dl>
|
|
963
|
-
|
|
964
847
|
<dd>
|
|
965
848
|
|
|
966
|
-
```
|
|
967
|
-
await
|
|
849
|
+
```typescript
|
|
850
|
+
await client.documentCollections.removeDocumentsFromCollection({
|
|
968
851
|
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
969
852
|
resourceIdentifiers: [
|
|
970
853
|
{
|
|
971
854
|
type: "external-resource-id",
|
|
972
855
|
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
973
|
-
resourceType:
|
|
856
|
+
resourceType: "GOOGLE_DRIVE_ITEM",
|
|
974
857
|
},
|
|
975
858
|
{
|
|
976
859
|
type: "external-resource-id",
|
|
977
860
|
externalResourceId: "398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
|
|
978
|
-
resourceType:
|
|
861
|
+
resourceType: "GOOGLE_DRIVE_ITEM",
|
|
979
862
|
},
|
|
980
863
|
],
|
|
981
864
|
});
|
|
982
865
|
```
|
|
983
866
|
|
|
984
867
|
</dd>
|
|
985
|
-
|
|
986
868
|
</dl>
|
|
987
|
-
|
|
988
869
|
</dd>
|
|
989
|
-
|
|
990
870
|
</dl>
|
|
991
871
|
|
|
992
872
|
#### ⚙️ Parameters
|
|
993
873
|
|
|
994
874
|
<dl>
|
|
995
|
-
|
|
996
875
|
<dd>
|
|
997
876
|
|
|
998
877
|
<dl>
|
|
999
|
-
|
|
1000
878
|
<dd>
|
|
1001
879
|
|
|
1002
|
-
**request
|
|
880
|
+
**request:** `Credal.RemoveDocumentsFromCollectionRequest`
|
|
1003
881
|
|
|
1004
882
|
</dd>
|
|
1005
|
-
|
|
1006
883
|
</dl>
|
|
1007
884
|
|
|
1008
885
|
<dl>
|
|
1009
|
-
|
|
1010
886
|
<dd>
|
|
1011
887
|
|
|
1012
|
-
**requestOptions
|
|
888
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1013
889
|
|
|
1014
890
|
</dd>
|
|
1015
|
-
|
|
1016
891
|
</dl>
|
|
1017
|
-
|
|
1018
892
|
</dd>
|
|
1019
|
-
|
|
1020
893
|
</dl>
|
|
1021
894
|
|
|
1022
895
|
</dd>
|
|
1023
|
-
|
|
1024
896
|
</dl>
|
|
1025
897
|
</details>
|
|
1026
898
|
|
|
1027
|
-
<details><summary
|
|
1028
|
-
|
|
899
|
+
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">createCollection</a>({ ...params }) -> Credal.CreateCollectionResponse</code></summary>
|
|
1029
900
|
<dl>
|
|
1030
|
-
|
|
1031
901
|
<dd>
|
|
1032
902
|
|
|
1033
903
|
#### 📝 Description
|
|
1034
904
|
|
|
1035
905
|
<dl>
|
|
1036
|
-
|
|
1037
906
|
<dd>
|
|
1038
907
|
|
|
1039
908
|
<dl>
|
|
1040
|
-
|
|
1041
909
|
<dd>
|
|
1042
910
|
|
|
1043
911
|
Create a new copilot. The API key used will be added to the copilot for future Requests
|
|
1044
912
|
|
|
1045
913
|
</dd>
|
|
1046
|
-
|
|
1047
914
|
</dl>
|
|
1048
|
-
|
|
1049
915
|
</dd>
|
|
1050
|
-
|
|
1051
916
|
</dl>
|
|
1052
917
|
|
|
1053
918
|
#### 🔌 Usage
|
|
1054
919
|
|
|
1055
920
|
<dl>
|
|
1056
|
-
|
|
1057
921
|
<dd>
|
|
1058
922
|
|
|
1059
923
|
<dl>
|
|
1060
|
-
|
|
1061
924
|
<dd>
|
|
1062
925
|
|
|
1063
|
-
```
|
|
1064
|
-
await
|
|
926
|
+
```typescript
|
|
927
|
+
await client.documentCollections.createCollection({
|
|
1065
928
|
name: "Customer Collection",
|
|
1066
929
|
description: "This collection is used to answer customer requests based on internal documentation.",
|
|
1067
930
|
collaborators: [
|
|
1068
931
|
{
|
|
1069
932
|
email: "test@gmail.com",
|
|
1070
|
-
role:
|
|
933
|
+
role: "editor",
|
|
1071
934
|
},
|
|
1072
935
|
],
|
|
1073
936
|
});
|
|
1074
937
|
```
|
|
1075
938
|
|
|
1076
939
|
</dd>
|
|
1077
|
-
|
|
1078
940
|
</dl>
|
|
1079
|
-
|
|
1080
941
|
</dd>
|
|
1081
|
-
|
|
1082
942
|
</dl>
|
|
1083
943
|
|
|
1084
944
|
#### ⚙️ Parameters
|
|
1085
945
|
|
|
1086
946
|
<dl>
|
|
1087
|
-
|
|
1088
947
|
<dd>
|
|
1089
948
|
|
|
1090
949
|
<dl>
|
|
1091
|
-
|
|
1092
950
|
<dd>
|
|
1093
951
|
|
|
1094
|
-
**request
|
|
952
|
+
**request:** `Credal.CreateCollectionRequest`
|
|
1095
953
|
|
|
1096
954
|
</dd>
|
|
1097
|
-
|
|
1098
955
|
</dl>
|
|
1099
956
|
|
|
1100
957
|
<dl>
|
|
1101
|
-
|
|
1102
958
|
<dd>
|
|
1103
959
|
|
|
1104
|
-
**requestOptions
|
|
960
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1105
961
|
|
|
1106
962
|
</dd>
|
|
1107
|
-
|
|
1108
963
|
</dl>
|
|
1109
|
-
|
|
1110
964
|
</dd>
|
|
1111
|
-
|
|
1112
965
|
</dl>
|
|
1113
966
|
|
|
1114
967
|
</dd>
|
|
1115
|
-
|
|
1116
968
|
</dl>
|
|
1117
969
|
</details>
|
|
1118
970
|
|
|
1119
|
-
<details><summary
|
|
1120
|
-
|
|
971
|
+
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">deleteCollection</a>({ ...params }) -> Credal.DeleteCollectionResponse</code></summary>
|
|
1121
972
|
<dl>
|
|
1122
|
-
|
|
1123
973
|
<dd>
|
|
1124
974
|
|
|
1125
975
|
#### 📝 Description
|
|
1126
976
|
|
|
1127
977
|
<dl>
|
|
1128
|
-
|
|
1129
978
|
<dd>
|
|
1130
979
|
|
|
1131
980
|
<dl>
|
|
1132
|
-
|
|
1133
981
|
<dd>
|
|
1134
982
|
|
|
1135
983
|
Delete the collection.
|
|
1136
984
|
|
|
1137
985
|
</dd>
|
|
1138
|
-
|
|
1139
986
|
</dl>
|
|
1140
|
-
|
|
1141
987
|
</dd>
|
|
1142
|
-
|
|
1143
988
|
</dl>
|
|
1144
989
|
|
|
1145
990
|
#### 🔌 Usage
|
|
1146
991
|
|
|
1147
992
|
<dl>
|
|
1148
|
-
|
|
1149
993
|
<dd>
|
|
1150
994
|
|
|
1151
995
|
<dl>
|
|
1152
|
-
|
|
1153
996
|
<dd>
|
|
1154
997
|
|
|
1155
|
-
```
|
|
1156
|
-
await
|
|
998
|
+
```typescript
|
|
999
|
+
await client.documentCollections.deleteCollection({
|
|
1157
1000
|
collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
|
|
1158
1001
|
});
|
|
1159
1002
|
```
|
|
1160
1003
|
|
|
1161
1004
|
</dd>
|
|
1162
|
-
|
|
1163
1005
|
</dl>
|
|
1164
|
-
|
|
1165
1006
|
</dd>
|
|
1166
|
-
|
|
1167
1007
|
</dl>
|
|
1168
1008
|
|
|
1169
1009
|
#### ⚙️ Parameters
|
|
1170
1010
|
|
|
1171
1011
|
<dl>
|
|
1172
|
-
|
|
1173
1012
|
<dd>
|
|
1174
1013
|
|
|
1175
1014
|
<dl>
|
|
1176
|
-
|
|
1177
1015
|
<dd>
|
|
1178
1016
|
|
|
1179
|
-
**request
|
|
1017
|
+
**request:** `Credal.DeleteCollectionRequest`
|
|
1180
1018
|
|
|
1181
1019
|
</dd>
|
|
1182
|
-
|
|
1183
1020
|
</dl>
|
|
1184
1021
|
|
|
1185
1022
|
<dl>
|
|
1186
|
-
|
|
1187
1023
|
<dd>
|
|
1188
1024
|
|
|
1189
|
-
**requestOptions
|
|
1025
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1190
1026
|
|
|
1191
1027
|
</dd>
|
|
1192
|
-
|
|
1193
1028
|
</dl>
|
|
1194
|
-
|
|
1195
1029
|
</dd>
|
|
1196
|
-
|
|
1197
1030
|
</dl>
|
|
1198
1031
|
|
|
1199
1032
|
</dd>
|
|
1200
|
-
|
|
1201
1033
|
</dl>
|
|
1202
1034
|
</details>
|
|
1203
1035
|
|
|
1204
|
-
<details><summary
|
|
1205
|
-
|
|
1036
|
+
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">createMongoCollectionSync</a>({ ...params }) -> Credal.MongoCollectionSyncResponse</code></summary>
|
|
1206
1037
|
<dl>
|
|
1207
|
-
|
|
1208
1038
|
<dd>
|
|
1209
1039
|
|
|
1210
1040
|
#### 📝 Description
|
|
1211
1041
|
|
|
1212
1042
|
<dl>
|
|
1213
|
-
|
|
1214
1043
|
<dd>
|
|
1215
1044
|
|
|
1216
1045
|
<dl>
|
|
1217
|
-
|
|
1218
1046
|
<dd>
|
|
1219
1047
|
|
|
1220
1048
|
Credal lets you easily sync your MongoDB data for use in Collections and Copilots. Create a new sync from a MongoDB collection to a Credal collection.
|
|
1221
1049
|
|
|
1222
1050
|
</dd>
|
|
1223
|
-
|
|
1224
1051
|
</dl>
|
|
1225
|
-
|
|
1226
1052
|
</dd>
|
|
1227
|
-
|
|
1228
1053
|
</dl>
|
|
1229
1054
|
|
|
1230
1055
|
#### 🔌 Usage
|
|
1231
1056
|
|
|
1232
1057
|
<dl>
|
|
1233
|
-
|
|
1234
1058
|
<dd>
|
|
1235
1059
|
|
|
1236
1060
|
<dl>
|
|
1237
|
-
|
|
1238
1061
|
<dd>
|
|
1239
1062
|
|
|
1240
|
-
```
|
|
1241
|
-
await
|
|
1063
|
+
```typescript
|
|
1064
|
+
await client.documentCollections.createMongoCollectionSync({
|
|
1242
1065
|
mongoUri: "mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
|
|
1243
1066
|
collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
|
|
1244
1067
|
config: {
|
|
@@ -1260,86 +1083,66 @@ await credal.documentCollections.createMongoCollectionSync({
|
|
|
1260
1083
|
```
|
|
1261
1084
|
|
|
1262
1085
|
</dd>
|
|
1263
|
-
|
|
1264
1086
|
</dl>
|
|
1265
|
-
|
|
1266
1087
|
</dd>
|
|
1267
|
-
|
|
1268
1088
|
</dl>
|
|
1269
1089
|
|
|
1270
1090
|
#### ⚙️ Parameters
|
|
1271
1091
|
|
|
1272
1092
|
<dl>
|
|
1273
|
-
|
|
1274
1093
|
<dd>
|
|
1275
1094
|
|
|
1276
1095
|
<dl>
|
|
1277
|
-
|
|
1278
1096
|
<dd>
|
|
1279
1097
|
|
|
1280
|
-
**request
|
|
1098
|
+
**request:** `Credal.CreateMongoCollectionSyncRequest`
|
|
1281
1099
|
|
|
1282
1100
|
</dd>
|
|
1283
|
-
|
|
1284
1101
|
</dl>
|
|
1285
1102
|
|
|
1286
1103
|
<dl>
|
|
1287
|
-
|
|
1288
1104
|
<dd>
|
|
1289
1105
|
|
|
1290
|
-
**requestOptions
|
|
1106
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1291
1107
|
|
|
1292
1108
|
</dd>
|
|
1293
|
-
|
|
1294
1109
|
</dl>
|
|
1295
|
-
|
|
1296
1110
|
</dd>
|
|
1297
|
-
|
|
1298
1111
|
</dl>
|
|
1299
1112
|
|
|
1300
1113
|
</dd>
|
|
1301
|
-
|
|
1302
1114
|
</dl>
|
|
1303
1115
|
</details>
|
|
1304
1116
|
|
|
1305
|
-
<details><summary
|
|
1306
|
-
|
|
1117
|
+
<details><summary><code>client.documentCollections.<a href="/src/api/resources/documentCollections/client/Client.ts">updateMongoCollectionSync</a>({ ...params }) -> Credal.MongoCollectionSyncResponse</code></summary>
|
|
1307
1118
|
<dl>
|
|
1308
|
-
|
|
1309
1119
|
<dd>
|
|
1310
1120
|
|
|
1311
1121
|
#### 📝 Description
|
|
1312
1122
|
|
|
1313
1123
|
<dl>
|
|
1314
|
-
|
|
1315
1124
|
<dd>
|
|
1316
1125
|
|
|
1317
1126
|
<dl>
|
|
1318
|
-
|
|
1319
1127
|
<dd>
|
|
1320
1128
|
|
|
1321
1129
|
Credal lets you easily sync your MongoDB data for use in Collections and Copilots. 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.
|
|
1322
1130
|
|
|
1323
1131
|
</dd>
|
|
1324
|
-
|
|
1325
1132
|
</dl>
|
|
1326
|
-
|
|
1327
1133
|
</dd>
|
|
1328
|
-
|
|
1329
1134
|
</dl>
|
|
1330
1135
|
|
|
1331
1136
|
#### 🔌 Usage
|
|
1332
1137
|
|
|
1333
1138
|
<dl>
|
|
1334
|
-
|
|
1335
1139
|
<dd>
|
|
1336
1140
|
|
|
1337
1141
|
<dl>
|
|
1338
|
-
|
|
1339
1142
|
<dd>
|
|
1340
1143
|
|
|
1341
|
-
```
|
|
1342
|
-
await
|
|
1144
|
+
```typescript
|
|
1145
|
+
await client.documentCollections.updateMongoCollectionSync({
|
|
1343
1146
|
mongoUri: "mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
|
|
1344
1147
|
mongoCredentialId: "5988ed76-6ee1-11ef-97dd-1fca54b7c4bc",
|
|
1345
1148
|
config: {
|
|
@@ -1361,178 +1164,138 @@ await credal.documentCollections.updateMongoCollectionSync({
|
|
|
1361
1164
|
```
|
|
1362
1165
|
|
|
1363
1166
|
</dd>
|
|
1364
|
-
|
|
1365
1167
|
</dl>
|
|
1366
|
-
|
|
1367
1168
|
</dd>
|
|
1368
|
-
|
|
1369
1169
|
</dl>
|
|
1370
1170
|
|
|
1371
1171
|
#### ⚙️ Parameters
|
|
1372
1172
|
|
|
1373
1173
|
<dl>
|
|
1374
|
-
|
|
1375
1174
|
<dd>
|
|
1376
1175
|
|
|
1377
1176
|
<dl>
|
|
1378
|
-
|
|
1379
1177
|
<dd>
|
|
1380
1178
|
|
|
1381
|
-
**request
|
|
1179
|
+
**request:** `Credal.UpdateMongoCollectionSyncRequest`
|
|
1382
1180
|
|
|
1383
1181
|
</dd>
|
|
1384
|
-
|
|
1385
1182
|
</dl>
|
|
1386
1183
|
|
|
1387
1184
|
<dl>
|
|
1388
|
-
|
|
1389
1185
|
<dd>
|
|
1390
1186
|
|
|
1391
|
-
**requestOptions
|
|
1187
|
+
**requestOptions:** `DocumentCollections.RequestOptions`
|
|
1392
1188
|
|
|
1393
1189
|
</dd>
|
|
1394
|
-
|
|
1395
1190
|
</dl>
|
|
1396
|
-
|
|
1397
1191
|
</dd>
|
|
1398
|
-
|
|
1399
1192
|
</dl>
|
|
1400
1193
|
|
|
1401
1194
|
</dd>
|
|
1402
|
-
|
|
1403
1195
|
</dl>
|
|
1404
1196
|
</details>
|
|
1405
1197
|
|
|
1406
1198
|
## PermissionsService
|
|
1407
1199
|
|
|
1408
|
-
<details><summary
|
|
1409
|
-
|
|
1200
|
+
<details><summary><code>client.permissionsService.<a href="/src/api/resources/permissionsService/client/Client.ts">checkResourceAuthorizationForUser</a>({ ...params }) -> Credal.CheckResourceAuthorizationResponse</code></summary>
|
|
1410
1201
|
<dl>
|
|
1411
|
-
|
|
1412
1202
|
<dd>
|
|
1413
1203
|
|
|
1414
1204
|
#### 📝 Description
|
|
1415
1205
|
|
|
1416
1206
|
<dl>
|
|
1417
|
-
|
|
1418
1207
|
<dd>
|
|
1419
1208
|
|
|
1420
1209
|
<dl>
|
|
1421
|
-
|
|
1422
1210
|
<dd>
|
|
1423
1211
|
|
|
1424
1212
|
Admin endpoint to check whether the specified user is authorized to read the specified resource.
|
|
1425
1213
|
|
|
1426
1214
|
</dd>
|
|
1427
|
-
|
|
1428
1215
|
</dl>
|
|
1429
|
-
|
|
1430
1216
|
</dd>
|
|
1431
|
-
|
|
1432
1217
|
</dl>
|
|
1433
1218
|
|
|
1434
1219
|
#### 🔌 Usage
|
|
1435
1220
|
|
|
1436
1221
|
<dl>
|
|
1437
|
-
|
|
1438
1222
|
<dd>
|
|
1439
1223
|
|
|
1440
1224
|
<dl>
|
|
1441
|
-
|
|
1442
1225
|
<dd>
|
|
1443
1226
|
|
|
1444
|
-
```
|
|
1445
|
-
await
|
|
1227
|
+
```typescript
|
|
1228
|
+
await client.permissionsService.checkResourceAuthorizationForUser({
|
|
1446
1229
|
resourceIdentifier: {
|
|
1447
1230
|
type: "external-resource-id",
|
|
1448
1231
|
externalResourceId: "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
|
|
1449
|
-
resourceType:
|
|
1232
|
+
resourceType: "GOOGLE_DRIVE_ITEM",
|
|
1450
1233
|
},
|
|
1451
1234
|
userEmail: "john.smith@foo.com",
|
|
1452
1235
|
});
|
|
1453
1236
|
```
|
|
1454
1237
|
|
|
1455
1238
|
</dd>
|
|
1456
|
-
|
|
1457
1239
|
</dl>
|
|
1458
|
-
|
|
1459
1240
|
</dd>
|
|
1460
|
-
|
|
1461
1241
|
</dl>
|
|
1462
1242
|
|
|
1463
1243
|
#### ⚙️ Parameters
|
|
1464
1244
|
|
|
1465
1245
|
<dl>
|
|
1466
|
-
|
|
1467
1246
|
<dd>
|
|
1468
1247
|
|
|
1469
1248
|
<dl>
|
|
1470
|
-
|
|
1471
1249
|
<dd>
|
|
1472
1250
|
|
|
1473
|
-
**request
|
|
1251
|
+
**request:** `Credal.CheckResourceAuthorizationForUserRequest`
|
|
1474
1252
|
|
|
1475
1253
|
</dd>
|
|
1476
|
-
|
|
1477
1254
|
</dl>
|
|
1478
1255
|
|
|
1479
1256
|
<dl>
|
|
1480
|
-
|
|
1481
1257
|
<dd>
|
|
1482
1258
|
|
|
1483
|
-
**requestOptions
|
|
1259
|
+
**requestOptions:** `PermissionsService.RequestOptions`
|
|
1484
1260
|
|
|
1485
1261
|
</dd>
|
|
1486
|
-
|
|
1487
1262
|
</dl>
|
|
1488
|
-
|
|
1489
1263
|
</dd>
|
|
1490
|
-
|
|
1491
1264
|
</dl>
|
|
1492
1265
|
|
|
1493
1266
|
</dd>
|
|
1494
|
-
|
|
1495
1267
|
</dl>
|
|
1496
1268
|
</details>
|
|
1497
1269
|
|
|
1498
|
-
<details><summary
|
|
1499
|
-
|
|
1270
|
+
<details><summary><code>client.permissionsService.<a href="/src/api/resources/permissionsService/client/Client.ts">checkBulkResourcesAuthorizationForUser</a>({ ...params }) -> Credal.CheckBulkResourcesAuthorizationResponse</code></summary>
|
|
1500
1271
|
<dl>
|
|
1501
|
-
|
|
1502
1272
|
<dd>
|
|
1503
1273
|
|
|
1504
1274
|
#### 📝 Description
|
|
1505
1275
|
|
|
1506
1276
|
<dl>
|
|
1507
|
-
|
|
1508
1277
|
<dd>
|
|
1509
1278
|
|
|
1510
1279
|
<dl>
|
|
1511
|
-
|
|
1512
1280
|
<dd>
|
|
1513
1281
|
|
|
1514
1282
|
Admin endpoint to check whether the specified user is authorized to read the specified set of resources.
|
|
1515
1283
|
|
|
1516
1284
|
</dd>
|
|
1517
|
-
|
|
1518
1285
|
</dl>
|
|
1519
|
-
|
|
1520
1286
|
</dd>
|
|
1521
|
-
|
|
1522
1287
|
</dl>
|
|
1523
1288
|
|
|
1524
1289
|
#### 🔌 Usage
|
|
1525
1290
|
|
|
1526
1291
|
<dl>
|
|
1527
|
-
|
|
1528
1292
|
<dd>
|
|
1529
1293
|
|
|
1530
1294
|
<dl>
|
|
1531
|
-
|
|
1532
1295
|
<dd>
|
|
1533
1296
|
|
|
1534
|
-
```
|
|
1535
|
-
await
|
|
1297
|
+
```typescript
|
|
1298
|
+
await client.permissionsService.checkBulkResourcesAuthorizationForUser({
|
|
1536
1299
|
resourceIdentifiers: [
|
|
1537
1300
|
{
|
|
1538
1301
|
type: "url",
|
|
@@ -1541,7 +1304,7 @@ await credal.permissionsService.checkBulkResourcesAuthorizationForUser({
|
|
|
1541
1304
|
{
|
|
1542
1305
|
type: "external-resource-id",
|
|
1543
1306
|
externalResourceId: "sfsdfvr54UvyslPVWkQFOA0dfsdfsdflgNycFmdZJQr",
|
|
1544
|
-
resourceType:
|
|
1307
|
+
resourceType: "ZENDESK_TICKET",
|
|
1545
1308
|
},
|
|
1546
1309
|
],
|
|
1547
1310
|
userEmail: "john.smith@foo.com",
|
|
@@ -1549,179 +1312,139 @@ await credal.permissionsService.checkBulkResourcesAuthorizationForUser({
|
|
|
1549
1312
|
```
|
|
1550
1313
|
|
|
1551
1314
|
</dd>
|
|
1552
|
-
|
|
1553
1315
|
</dl>
|
|
1554
|
-
|
|
1555
1316
|
</dd>
|
|
1556
|
-
|
|
1557
1317
|
</dl>
|
|
1558
1318
|
|
|
1559
1319
|
#### ⚙️ Parameters
|
|
1560
1320
|
|
|
1561
1321
|
<dl>
|
|
1562
|
-
|
|
1563
1322
|
<dd>
|
|
1564
1323
|
|
|
1565
1324
|
<dl>
|
|
1566
|
-
|
|
1567
1325
|
<dd>
|
|
1568
1326
|
|
|
1569
|
-
**request
|
|
1327
|
+
**request:** `Credal.CheckBulkResourcesAuthorizationForUserRequest`
|
|
1570
1328
|
|
|
1571
1329
|
</dd>
|
|
1572
|
-
|
|
1573
1330
|
</dl>
|
|
1574
1331
|
|
|
1575
1332
|
<dl>
|
|
1576
|
-
|
|
1577
1333
|
<dd>
|
|
1578
1334
|
|
|
1579
|
-
**requestOptions
|
|
1335
|
+
**requestOptions:** `PermissionsService.RequestOptions`
|
|
1580
1336
|
|
|
1581
1337
|
</dd>
|
|
1582
|
-
|
|
1583
1338
|
</dl>
|
|
1584
|
-
|
|
1585
1339
|
</dd>
|
|
1586
|
-
|
|
1587
1340
|
</dl>
|
|
1588
1341
|
|
|
1589
1342
|
</dd>
|
|
1590
|
-
|
|
1591
1343
|
</dl>
|
|
1592
1344
|
</details>
|
|
1593
1345
|
|
|
1594
|
-
<details><summary
|
|
1595
|
-
|
|
1346
|
+
<details><summary><code>client.permissionsService.<a href="/src/api/resources/permissionsService/client/Client.ts">listCachedAuthorizedResourcesForUser</a>({ ...params }) -> Credal.AuthorizedResourceListPage</code></summary>
|
|
1596
1347
|
<dl>
|
|
1597
|
-
|
|
1598
1348
|
<dd>
|
|
1599
1349
|
|
|
1600
1350
|
#### 📝 Description
|
|
1601
1351
|
|
|
1602
1352
|
<dl>
|
|
1603
|
-
|
|
1604
1353
|
<dd>
|
|
1605
1354
|
|
|
1606
1355
|
<dl>
|
|
1607
|
-
|
|
1608
1356
|
<dd>
|
|
1609
1357
|
|
|
1610
1358
|
Admin endpoint to list all resources that the specified user is authorized to read. Note this endpoint returns cached results and may not be up-to-date. You can use the checkResourceAuthorizationForUser endpoint with disableCache set to true to get the most up-to-date results.
|
|
1611
1359
|
|
|
1612
1360
|
</dd>
|
|
1613
|
-
|
|
1614
1361
|
</dl>
|
|
1615
|
-
|
|
1616
1362
|
</dd>
|
|
1617
|
-
|
|
1618
1363
|
</dl>
|
|
1619
1364
|
|
|
1620
1365
|
#### 🔌 Usage
|
|
1621
1366
|
|
|
1622
1367
|
<dl>
|
|
1623
|
-
|
|
1624
1368
|
<dd>
|
|
1625
1369
|
|
|
1626
1370
|
<dl>
|
|
1627
|
-
|
|
1628
1371
|
<dd>
|
|
1629
1372
|
|
|
1630
|
-
```
|
|
1631
|
-
await
|
|
1373
|
+
```typescript
|
|
1374
|
+
await client.permissionsService.listCachedAuthorizedResourcesForUser({
|
|
1632
1375
|
userEmail: "john.smith@foo.com",
|
|
1633
1376
|
});
|
|
1634
1377
|
```
|
|
1635
1378
|
|
|
1636
1379
|
</dd>
|
|
1637
|
-
|
|
1638
1380
|
</dl>
|
|
1639
|
-
|
|
1640
1381
|
</dd>
|
|
1641
|
-
|
|
1642
1382
|
</dl>
|
|
1643
1383
|
|
|
1644
1384
|
#### ⚙️ Parameters
|
|
1645
1385
|
|
|
1646
1386
|
<dl>
|
|
1647
|
-
|
|
1648
1387
|
<dd>
|
|
1649
1388
|
|
|
1650
1389
|
<dl>
|
|
1651
|
-
|
|
1652
1390
|
<dd>
|
|
1653
1391
|
|
|
1654
|
-
**request
|
|
1392
|
+
**request:** `Credal.ListCachedAuthorizedResourcesForUserRequest`
|
|
1655
1393
|
|
|
1656
1394
|
</dd>
|
|
1657
|
-
|
|
1658
1395
|
</dl>
|
|
1659
1396
|
|
|
1660
1397
|
<dl>
|
|
1661
|
-
|
|
1662
1398
|
<dd>
|
|
1663
1399
|
|
|
1664
|
-
**requestOptions
|
|
1400
|
+
**requestOptions:** `PermissionsService.RequestOptions`
|
|
1665
1401
|
|
|
1666
1402
|
</dd>
|
|
1667
|
-
|
|
1668
1403
|
</dl>
|
|
1669
|
-
|
|
1670
1404
|
</dd>
|
|
1671
|
-
|
|
1672
1405
|
</dl>
|
|
1673
1406
|
|
|
1674
1407
|
</dd>
|
|
1675
|
-
|
|
1676
1408
|
</dl>
|
|
1677
1409
|
</details>
|
|
1678
1410
|
|
|
1679
1411
|
## Search
|
|
1680
1412
|
|
|
1681
|
-
<details><summary
|
|
1682
|
-
|
|
1413
|
+
<details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">searchDocumentCollection</a>({ ...params }) -> Credal.SearchDocumentCollectionResponse</code></summary>
|
|
1683
1414
|
<dl>
|
|
1684
|
-
|
|
1685
1415
|
<dd>
|
|
1686
1416
|
|
|
1687
1417
|
#### 📝 Description
|
|
1688
1418
|
|
|
1689
1419
|
<dl>
|
|
1690
|
-
|
|
1691
1420
|
<dd>
|
|
1692
1421
|
|
|
1693
1422
|
<dl>
|
|
1694
|
-
|
|
1695
1423
|
<dd>
|
|
1696
1424
|
|
|
1697
1425
|
Search across all documents in a document collection using the document metadata and contents.
|
|
1698
1426
|
|
|
1699
1427
|
</dd>
|
|
1700
|
-
|
|
1701
1428
|
</dl>
|
|
1702
|
-
|
|
1703
1429
|
</dd>
|
|
1704
|
-
|
|
1705
1430
|
</dl>
|
|
1706
1431
|
|
|
1707
1432
|
#### 🔌 Usage
|
|
1708
1433
|
|
|
1709
1434
|
<dl>
|
|
1710
|
-
|
|
1711
1435
|
<dd>
|
|
1712
1436
|
|
|
1713
1437
|
<dl>
|
|
1714
|
-
|
|
1715
1438
|
<dd>
|
|
1716
1439
|
|
|
1717
|
-
```
|
|
1718
|
-
await
|
|
1440
|
+
```typescript
|
|
1441
|
+
await client.search.searchDocumentCollection({
|
|
1719
1442
|
collectionId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
|
|
1720
1443
|
searchQuery: "ABC Corp",
|
|
1721
1444
|
structuredQueryFilters: [
|
|
1722
1445
|
{
|
|
1723
1446
|
field: "status",
|
|
1724
|
-
operator:
|
|
1447
|
+
operator: "==",
|
|
1725
1448
|
value: "Open",
|
|
1726
1449
|
},
|
|
1727
1450
|
],
|
|
@@ -1738,88 +1461,68 @@ await credal.search.searchDocumentCollection({
|
|
|
1738
1461
|
```
|
|
1739
1462
|
|
|
1740
1463
|
</dd>
|
|
1741
|
-
|
|
1742
1464
|
</dl>
|
|
1743
|
-
|
|
1744
1465
|
</dd>
|
|
1745
|
-
|
|
1746
1466
|
</dl>
|
|
1747
1467
|
|
|
1748
1468
|
#### ⚙️ Parameters
|
|
1749
1469
|
|
|
1750
1470
|
<dl>
|
|
1751
|
-
|
|
1752
1471
|
<dd>
|
|
1753
1472
|
|
|
1754
1473
|
<dl>
|
|
1755
|
-
|
|
1756
1474
|
<dd>
|
|
1757
1475
|
|
|
1758
|
-
**request
|
|
1476
|
+
**request:** `Credal.SearchDocumentCollectionRequest`
|
|
1759
1477
|
|
|
1760
1478
|
</dd>
|
|
1761
|
-
|
|
1762
1479
|
</dl>
|
|
1763
1480
|
|
|
1764
1481
|
<dl>
|
|
1765
|
-
|
|
1766
1482
|
<dd>
|
|
1767
1483
|
|
|
1768
|
-
**requestOptions
|
|
1484
|
+
**requestOptions:** `Search.RequestOptions`
|
|
1769
1485
|
|
|
1770
1486
|
</dd>
|
|
1771
|
-
|
|
1772
1487
|
</dl>
|
|
1773
|
-
|
|
1774
1488
|
</dd>
|
|
1775
|
-
|
|
1776
1489
|
</dl>
|
|
1777
1490
|
|
|
1778
1491
|
</dd>
|
|
1779
|
-
|
|
1780
1492
|
</dl>
|
|
1781
1493
|
</details>
|
|
1782
1494
|
|
|
1783
1495
|
## Users
|
|
1784
1496
|
|
|
1785
|
-
<details><summary
|
|
1786
|
-
|
|
1497
|
+
<details><summary><code>client.users.<a href="/src/api/resources/users/client/Client.ts">metadata</a>({ ...params }) -> void</code></summary>
|
|
1787
1498
|
<dl>
|
|
1788
|
-
|
|
1789
1499
|
<dd>
|
|
1790
1500
|
|
|
1791
1501
|
#### 📝 Description
|
|
1792
1502
|
|
|
1793
1503
|
<dl>
|
|
1794
|
-
|
|
1795
1504
|
<dd>
|
|
1796
1505
|
|
|
1797
1506
|
<dl>
|
|
1798
|
-
|
|
1799
1507
|
<dd>
|
|
1800
1508
|
|
|
1801
1509
|
Bulk patch metadata for users
|
|
1802
1510
|
|
|
1803
1511
|
</dd>
|
|
1804
|
-
|
|
1805
1512
|
</dl>
|
|
1806
|
-
|
|
1807
1513
|
</dd>
|
|
1808
|
-
|
|
1809
1514
|
</dl>
|
|
1810
1515
|
|
|
1811
1516
|
#### 🔌 Usage
|
|
1812
1517
|
|
|
1813
1518
|
<dl>
|
|
1814
|
-
|
|
1815
1519
|
<dd>
|
|
1816
1520
|
|
|
1817
1521
|
<dl>
|
|
1818
|
-
|
|
1819
1522
|
<dd>
|
|
1820
1523
|
|
|
1821
|
-
```
|
|
1822
|
-
await
|
|
1524
|
+
```typescript
|
|
1525
|
+
await client.users.metadata([
|
|
1823
1526
|
{
|
|
1824
1527
|
metadata: {
|
|
1825
1528
|
State: "NY",
|
|
@@ -1838,44 +1541,33 @@ await credal.users.metadata([
|
|
|
1838
1541
|
```
|
|
1839
1542
|
|
|
1840
1543
|
</dd>
|
|
1841
|
-
|
|
1842
1544
|
</dl>
|
|
1843
|
-
|
|
1844
1545
|
</dd>
|
|
1845
|
-
|
|
1846
1546
|
</dl>
|
|
1847
1547
|
|
|
1848
1548
|
#### ⚙️ Parameters
|
|
1849
1549
|
|
|
1850
1550
|
<dl>
|
|
1851
|
-
|
|
1852
1551
|
<dd>
|
|
1853
1552
|
|
|
1854
1553
|
<dl>
|
|
1855
|
-
|
|
1856
1554
|
<dd>
|
|
1857
1555
|
|
|
1858
|
-
**request
|
|
1556
|
+
**request:** `Credal.UserMetadataPatch[]`
|
|
1859
1557
|
|
|
1860
1558
|
</dd>
|
|
1861
|
-
|
|
1862
1559
|
</dl>
|
|
1863
1560
|
|
|
1864
1561
|
<dl>
|
|
1865
|
-
|
|
1866
1562
|
<dd>
|
|
1867
1563
|
|
|
1868
|
-
**requestOptions
|
|
1564
|
+
**requestOptions:** `Users.RequestOptions`
|
|
1869
1565
|
|
|
1870
1566
|
</dd>
|
|
1871
|
-
|
|
1872
1567
|
</dl>
|
|
1873
|
-
|
|
1874
1568
|
</dd>
|
|
1875
|
-
|
|
1876
1569
|
</dl>
|
|
1877
1570
|
|
|
1878
1571
|
</dd>
|
|
1879
|
-
|
|
1880
1572
|
</dl>
|
|
1881
1573
|
</details>
|