@gleanwork/api-client 0.8.1 → 0.10.1
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/commonjs/__tests__/announcements.test.js +2 -2
- package/dist/commonjs/__tests__/announcements.test.js.map +1 -1
- package/dist/commonjs/__tests__/answers.test.js +2 -2
- package/dist/commonjs/__tests__/answers.test.js.map +1 -1
- package/dist/commonjs/__tests__/clientchat.test.js +24 -24
- package/dist/commonjs/__tests__/clientchat.test.js.map +1 -1
- package/dist/commonjs/__tests__/clientshortcuts.test.js +2 -2
- package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
- package/dist/commonjs/__tests__/collections.test.js +2 -2
- package/dist/commonjs/__tests__/collections.test.js.map +1 -1
- package/dist/commonjs/__tests__/search.test.js +1 -1
- package/dist/commonjs/__tests__/search.test.js.map +1 -1
- package/dist/commonjs/__tests__/summarize.test.js +8 -2
- package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
- package/dist/commonjs/funcs/clientCollectionsCreate.d.ts +2 -1
- package/dist/commonjs/funcs/clientCollectionsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/clientCollectionsCreate.js +2 -1
- package/dist/commonjs/funcs/clientCollectionsCreate.js.map +1 -1
- package/dist/commonjs/funcs/indexingAuthenticationRotateToken.d.ts +1 -1
- package/dist/commonjs/funcs/indexingAuthenticationRotateToken.js +1 -1
- package/dist/commonjs/funcs/indexingDatasourceStatus.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDatasourceStatus.js +1 -1
- package/dist/commonjs/funcs/indexingDocumentsBulkIndex.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDocumentsBulkIndex.js +1 -1
- package/dist/commonjs/funcs/indexingDocumentsCheckAccess.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDocumentsCheckAccess.js +1 -1
- package/dist/commonjs/funcs/indexingDocumentsCount.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDocumentsCount.js +1 -1
- package/dist/commonjs/funcs/indexingDocumentsDebug.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDocumentsDebug.js +1 -1
- package/dist/commonjs/funcs/indexingDocumentsDebugMany.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDocumentsDebugMany.js +1 -1
- package/dist/commonjs/funcs/indexingDocumentsIndex.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDocumentsIndex.js +1 -1
- package/dist/commonjs/funcs/indexingDocumentsStatus.d.ts +1 -1
- package/dist/commonjs/funcs/indexingDocumentsStatus.js +1 -1
- package/dist/commonjs/funcs/indexingPeopleBulkIndex.d.ts +1 -1
- package/dist/commonjs/funcs/indexingPeopleBulkIndex.js +1 -1
- package/dist/commonjs/funcs/indexingPeopleBulkIndexTeams.d.ts +1 -1
- package/dist/commonjs/funcs/indexingPeopleBulkIndexTeams.js +1 -1
- package/dist/commonjs/funcs/indexingPeopleCount.d.ts +1 -1
- package/dist/commonjs/funcs/indexingPeopleCount.js +1 -1
- package/dist/commonjs/funcs/indexingPeopleDebug.d.ts +1 -1
- package/dist/commonjs/funcs/indexingPeopleDebug.js +1 -1
- package/dist/commonjs/funcs/indexingPermissionsBulkIndexGroups.d.ts +1 -1
- package/dist/commonjs/funcs/indexingPermissionsBulkIndexGroups.js +1 -1
- package/dist/commonjs/funcs/indexingPermissionsBulkIndexMemberships.d.ts +1 -1
- package/dist/commonjs/funcs/indexingPermissionsBulkIndexMemberships.js +1 -1
- package/dist/commonjs/funcs/indexingPermissionsBulkIndexUsers.d.ts +1 -1
- package/dist/commonjs/funcs/indexingPermissionsBulkIndexUsers.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/components/agentconfig.d.ts +12 -0
- package/dist/commonjs/models/components/agentconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentconfig.js +5 -0
- package/dist/commonjs/models/components/agentconfig.js.map +1 -1
- package/dist/commonjs/models/components/authconfig.d.ts +3 -0
- package/dist/commonjs/models/components/authconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/authconfig.js +1 -0
- package/dist/commonjs/models/components/authconfig.js.map +1 -1
- package/dist/commonjs/models/components/chat.d.ts +9 -0
- package/dist/commonjs/models/components/chat.d.ts.map +1 -1
- package/dist/commonjs/models/components/chat.js +6 -0
- package/dist/commonjs/models/components/chat.js.map +1 -1
- package/dist/commonjs/models/components/chatmessage.d.ts +3 -0
- package/dist/commonjs/models/components/chatmessage.d.ts.map +1 -1
- package/dist/commonjs/models/components/chatmessage.js +1 -0
- package/dist/commonjs/models/components/chatmessage.js.map +1 -1
- package/dist/commonjs/models/components/chatmessagefragment.d.ts +7 -1
- package/dist/commonjs/models/components/chatmessagefragment.d.ts.map +1 -1
- package/dist/commonjs/models/components/chatmessagefragment.js +3 -0
- package/dist/commonjs/models/components/chatmessagefragment.js.map +1 -1
- package/dist/commonjs/models/components/chatrequest.d.ts +1 -1
- package/dist/commonjs/models/components/chatsuggestion.d.ts +37 -0
- package/dist/commonjs/models/components/chatsuggestion.d.ts.map +1 -0
- package/dist/commonjs/models/components/chatsuggestion.js +71 -0
- package/dist/commonjs/models/components/chatsuggestion.js.map +1 -0
- package/dist/commonjs/models/components/clustertypeenum.d.ts +6 -0
- package/dist/commonjs/models/components/clustertypeenum.d.ts.map +1 -1
- package/dist/commonjs/models/components/clustertypeenum.js +2 -0
- package/dist/commonjs/models/components/clustertypeenum.js.map +1 -1
- package/dist/commonjs/models/components/customdatasourceconfig.d.ts +3 -0
- package/dist/commonjs/models/components/customdatasourceconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/customdatasourceconfig.js +1 -0
- package/dist/commonjs/models/components/customdatasourceconfig.js.map +1 -1
- package/dist/commonjs/models/components/digest.d.ts +48 -0
- package/dist/commonjs/models/components/digest.d.ts.map +1 -0
- package/dist/commonjs/models/components/digest.js +77 -0
- package/dist/commonjs/models/components/digest.js.map +1 -0
- package/dist/commonjs/models/components/digestsection.d.ts +64 -0
- package/dist/commonjs/models/components/digestsection.d.ts.map +1 -0
- package/dist/commonjs/models/components/digestsection.js +83 -0
- package/dist/commonjs/models/components/digestsection.js.map +1 -0
- package/dist/commonjs/models/components/digestupdate.d.ts +53 -0
- package/dist/commonjs/models/components/digestupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/digestupdate.js +78 -0
- package/dist/commonjs/models/components/digestupdate.js.map +1 -0
- package/dist/commonjs/models/components/documentdefinition.d.ts +1 -1
- package/dist/commonjs/models/components/documentspecunion.d.ts +99 -18
- package/dist/commonjs/models/components/documentspecunion.d.ts.map +1 -1
- package/dist/commonjs/models/components/documentspecunion.js +78 -19
- package/dist/commonjs/models/components/documentspecunion.js.map +1 -1
- package/dist/commonjs/models/components/feedback.d.ts +6 -0
- package/dist/commonjs/models/components/feedback.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedback.js +6 -0
- package/dist/commonjs/models/components/feedback.js.map +1 -1
- package/dist/commonjs/models/components/feedentry.d.ts +12 -0
- package/dist/commonjs/models/components/feedentry.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedentry.js +8 -0
- package/dist/commonjs/models/components/feedentry.js.map +1 -1
- package/dist/commonjs/models/components/feedrequest.d.ts +6 -0
- package/dist/commonjs/models/components/feedrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedrequest.js +2 -0
- package/dist/commonjs/models/components/feedrequest.js.map +1 -1
- package/dist/commonjs/models/components/feedresult.d.ts +6 -0
- package/dist/commonjs/models/components/feedresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedresult.js +2 -0
- package/dist/commonjs/models/components/feedresult.js.map +1 -1
- package/dist/commonjs/models/components/generatedqna.js +2 -2
- package/dist/commonjs/models/components/generatedqna.js.map +1 -1
- package/dist/commonjs/models/components/getchatfilesrequest.d.ts +5 -0
- package/dist/commonjs/models/components/getchatfilesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/getchatfilesrequest.js +2 -0
- package/dist/commonjs/models/components/getchatfilesrequest.js.map +1 -1
- package/dist/commonjs/models/components/group.d.ts +10 -0
- package/dist/commonjs/models/components/group.d.ts.map +1 -1
- package/dist/commonjs/models/components/group.js +4 -0
- package/dist/commonjs/models/components/group.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +9 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +9 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/manualfeedbackinfo.d.ts +10 -8
- package/dist/commonjs/models/components/manualfeedbackinfo.d.ts.map +1 -1
- package/dist/commonjs/models/components/manualfeedbackinfo.js +13 -13
- package/dist/commonjs/models/components/manualfeedbackinfo.js.map +1 -1
- package/dist/commonjs/models/components/manualfeedbacksidebysideinfo.d.ts +137 -0
- package/dist/commonjs/models/components/manualfeedbacksidebysideinfo.d.ts.map +1 -0
- package/dist/commonjs/models/components/manualfeedbacksidebysideinfo.js +130 -0
- package/dist/commonjs/models/components/manualfeedbacksidebysideinfo.js.map +1 -0
- package/dist/commonjs/models/components/objectdefinition.d.ts +3 -0
- package/dist/commonjs/models/components/objectdefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/objectdefinition.js +1 -0
- package/dist/commonjs/models/components/objectdefinition.js.map +1 -1
- package/dist/commonjs/models/components/searchrequest.d.ts +0 -6
- package/dist/commonjs/models/components/searchrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/searchrequest.js +0 -3
- package/dist/commonjs/models/components/searchrequest.js.map +1 -1
- package/dist/commonjs/models/components/searchrequestoptions.d.ts +1 -1
- package/dist/commonjs/models/components/searchresponsemetadata.d.ts +5 -0
- package/dist/commonjs/models/components/searchresponsemetadata.d.ts.map +1 -1
- package/dist/commonjs/models/components/searchresponsemetadata.js +2 -0
- package/dist/commonjs/models/components/searchresponsemetadata.js.map +1 -1
- package/dist/commonjs/models/components/searchresultsnippet.d.ts +7 -5
- package/dist/commonjs/models/components/searchresultsnippet.d.ts.map +1 -1
- package/dist/commonjs/models/components/searchresultsnippet.js +2 -2
- package/dist/commonjs/models/components/searchresultsnippet.js.map +1 -1
- package/dist/commonjs/models/components/sectiontype.d.ts +37 -0
- package/dist/commonjs/models/components/sectiontype.d.ts.map +1 -0
- package/dist/commonjs/models/components/sectiontype.js +65 -0
- package/dist/commonjs/models/components/sectiontype.js.map +1 -0
- package/dist/commonjs/models/components/sidebysideimplementation.d.ts +97 -0
- package/dist/commonjs/models/components/sidebysideimplementation.d.ts.map +1 -0
- package/dist/commonjs/models/components/sidebysideimplementation.js +108 -0
- package/dist/commonjs/models/components/sidebysideimplementation.js.map +1 -0
- package/dist/commonjs/models/components/structuredresult.d.ts +3 -0
- package/dist/commonjs/models/components/structuredresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/structuredresult.js +3 -0
- package/dist/commonjs/models/components/structuredresult.js.map +1 -1
- package/dist/commonjs/models/components/toolsets.d.ts +40 -0
- package/dist/commonjs/models/components/toolsets.d.ts.map +1 -0
- package/dist/commonjs/models/components/toolsets.js +71 -0
- package/dist/commonjs/models/components/toolsets.js.map +1 -0
- package/dist/commonjs/models/components/updatetype.d.ts +34 -0
- package/dist/commonjs/models/components/updatetype.d.ts.map +1 -0
- package/dist/commonjs/models/components/updatetype.js +64 -0
- package/dist/commonjs/models/components/updatetype.js.map +1 -0
- package/dist/commonjs/models/operations/createcollection.d.ts +83 -0
- package/dist/commonjs/models/operations/createcollection.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createcollection.js +130 -0
- package/dist/commonjs/models/operations/createcollection.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/clientCollectionsCreate.d.ts +2 -1
- package/dist/commonjs/react-query/clientCollectionsCreate.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientCollectionsCreate.js.map +1 -1
- package/dist/commonjs/react-query/indexingAuthenticationRotateToken.d.ts +1 -1
- package/dist/commonjs/react-query/indexingAuthenticationRotateToken.js +1 -1
- package/dist/commonjs/react-query/indexingDatasourceStatus.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDatasourceStatus.js +1 -1
- package/dist/commonjs/react-query/indexingDocumentsBulkIndex.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDocumentsBulkIndex.js +1 -1
- package/dist/commonjs/react-query/indexingDocumentsCheckAccess.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDocumentsCheckAccess.js +1 -1
- package/dist/commonjs/react-query/indexingDocumentsCount.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDocumentsCount.js +1 -1
- package/dist/commonjs/react-query/indexingDocumentsDebug.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDocumentsDebug.js +1 -1
- package/dist/commonjs/react-query/indexingDocumentsDebugMany.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDocumentsDebugMany.js +1 -1
- package/dist/commonjs/react-query/indexingDocumentsIndex.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDocumentsIndex.js +1 -1
- package/dist/commonjs/react-query/indexingDocumentsStatus.d.ts +1 -1
- package/dist/commonjs/react-query/indexingDocumentsStatus.js +1 -1
- package/dist/commonjs/react-query/indexingPeopleBulkIndex.d.ts +1 -1
- package/dist/commonjs/react-query/indexingPeopleBulkIndex.js +1 -1
- package/dist/commonjs/react-query/indexingPeopleBulkIndexTeams.d.ts +1 -1
- package/dist/commonjs/react-query/indexingPeopleBulkIndexTeams.js +1 -1
- package/dist/commonjs/react-query/indexingPeopleCount.d.ts +1 -1
- package/dist/commonjs/react-query/indexingPeopleCount.js +1 -1
- package/dist/commonjs/react-query/indexingPeopleDebug.d.ts +1 -1
- package/dist/commonjs/react-query/indexingPeopleDebug.js +1 -1
- package/dist/commonjs/react-query/indexingPermissionsBulkIndexGroups.d.ts +1 -1
- package/dist/commonjs/react-query/indexingPermissionsBulkIndexGroups.js +1 -1
- package/dist/commonjs/react-query/indexingPermissionsBulkIndexMemberships.d.ts +1 -1
- package/dist/commonjs/react-query/indexingPermissionsBulkIndexMemberships.js +1 -1
- package/dist/commonjs/react-query/indexingPermissionsBulkIndexUsers.d.ts +1 -1
- package/dist/commonjs/react-query/indexingPermissionsBulkIndexUsers.js +1 -1
- package/dist/commonjs/sdk/collections.d.ts +2 -1
- package/dist/commonjs/sdk/collections.d.ts.map +1 -1
- package/dist/commonjs/sdk/collections.js.map +1 -1
- package/dist/commonjs/sdk/datasource.d.ts +1 -1
- package/dist/commonjs/sdk/datasource.js +1 -1
- package/dist/commonjs/sdk/indexingauthentication.d.ts +1 -1
- package/dist/commonjs/sdk/indexingauthentication.js +1 -1
- package/dist/commonjs/sdk/indexingdocuments.d.ts +7 -7
- package/dist/commonjs/sdk/indexingdocuments.js +7 -7
- package/dist/commonjs/sdk/people.d.ts +4 -4
- package/dist/commonjs/sdk/people.js +4 -4
- package/dist/commonjs/sdk/permissions.d.ts +3 -3
- package/dist/commonjs/sdk/permissions.js +3 -3
- package/dist/esm/__tests__/announcements.test.js +2 -2
- package/dist/esm/__tests__/announcements.test.js.map +1 -1
- package/dist/esm/__tests__/answers.test.js +2 -2
- package/dist/esm/__tests__/answers.test.js.map +1 -1
- package/dist/esm/__tests__/clientchat.test.js +24 -24
- package/dist/esm/__tests__/clientchat.test.js.map +1 -1
- package/dist/esm/__tests__/clientshortcuts.test.js +2 -2
- package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
- package/dist/esm/__tests__/collections.test.js +2 -2
- package/dist/esm/__tests__/collections.test.js.map +1 -1
- package/dist/esm/__tests__/search.test.js +1 -1
- package/dist/esm/__tests__/search.test.js.map +1 -1
- package/dist/esm/__tests__/summarize.test.js +8 -2
- package/dist/esm/__tests__/summarize.test.js.map +1 -1
- package/dist/esm/funcs/clientCollectionsCreate.d.ts +2 -1
- package/dist/esm/funcs/clientCollectionsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/clientCollectionsCreate.js +2 -1
- package/dist/esm/funcs/clientCollectionsCreate.js.map +1 -1
- package/dist/esm/funcs/indexingAuthenticationRotateToken.d.ts +1 -1
- package/dist/esm/funcs/indexingAuthenticationRotateToken.js +1 -1
- package/dist/esm/funcs/indexingDatasourceStatus.d.ts +1 -1
- package/dist/esm/funcs/indexingDatasourceStatus.js +1 -1
- package/dist/esm/funcs/indexingDocumentsBulkIndex.d.ts +1 -1
- package/dist/esm/funcs/indexingDocumentsBulkIndex.js +1 -1
- package/dist/esm/funcs/indexingDocumentsCheckAccess.d.ts +1 -1
- package/dist/esm/funcs/indexingDocumentsCheckAccess.js +1 -1
- package/dist/esm/funcs/indexingDocumentsCount.d.ts +1 -1
- package/dist/esm/funcs/indexingDocumentsCount.js +1 -1
- package/dist/esm/funcs/indexingDocumentsDebug.d.ts +1 -1
- package/dist/esm/funcs/indexingDocumentsDebug.js +1 -1
- package/dist/esm/funcs/indexingDocumentsDebugMany.d.ts +1 -1
- package/dist/esm/funcs/indexingDocumentsDebugMany.js +1 -1
- package/dist/esm/funcs/indexingDocumentsIndex.d.ts +1 -1
- package/dist/esm/funcs/indexingDocumentsIndex.js +1 -1
- package/dist/esm/funcs/indexingDocumentsStatus.d.ts +1 -1
- package/dist/esm/funcs/indexingDocumentsStatus.js +1 -1
- package/dist/esm/funcs/indexingPeopleBulkIndex.d.ts +1 -1
- package/dist/esm/funcs/indexingPeopleBulkIndex.js +1 -1
- package/dist/esm/funcs/indexingPeopleBulkIndexTeams.d.ts +1 -1
- package/dist/esm/funcs/indexingPeopleBulkIndexTeams.js +1 -1
- package/dist/esm/funcs/indexingPeopleCount.d.ts +1 -1
- package/dist/esm/funcs/indexingPeopleCount.js +1 -1
- package/dist/esm/funcs/indexingPeopleDebug.d.ts +1 -1
- package/dist/esm/funcs/indexingPeopleDebug.js +1 -1
- package/dist/esm/funcs/indexingPermissionsBulkIndexGroups.d.ts +1 -1
- package/dist/esm/funcs/indexingPermissionsBulkIndexGroups.js +1 -1
- package/dist/esm/funcs/indexingPermissionsBulkIndexMemberships.d.ts +1 -1
- package/dist/esm/funcs/indexingPermissionsBulkIndexMemberships.js +1 -1
- package/dist/esm/funcs/indexingPermissionsBulkIndexUsers.d.ts +1 -1
- package/dist/esm/funcs/indexingPermissionsBulkIndexUsers.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/components/agentconfig.d.ts +12 -0
- package/dist/esm/models/components/agentconfig.d.ts.map +1 -1
- package/dist/esm/models/components/agentconfig.js +5 -0
- package/dist/esm/models/components/agentconfig.js.map +1 -1
- package/dist/esm/models/components/authconfig.d.ts +3 -0
- package/dist/esm/models/components/authconfig.d.ts.map +1 -1
- package/dist/esm/models/components/authconfig.js +1 -0
- package/dist/esm/models/components/authconfig.js.map +1 -1
- package/dist/esm/models/components/chat.d.ts +9 -0
- package/dist/esm/models/components/chat.d.ts.map +1 -1
- package/dist/esm/models/components/chat.js +6 -0
- package/dist/esm/models/components/chat.js.map +1 -1
- package/dist/esm/models/components/chatmessage.d.ts +3 -0
- package/dist/esm/models/components/chatmessage.d.ts.map +1 -1
- package/dist/esm/models/components/chatmessage.js +1 -0
- package/dist/esm/models/components/chatmessage.js.map +1 -1
- package/dist/esm/models/components/chatmessagefragment.d.ts +7 -1
- package/dist/esm/models/components/chatmessagefragment.d.ts.map +1 -1
- package/dist/esm/models/components/chatmessagefragment.js +3 -0
- package/dist/esm/models/components/chatmessagefragment.js.map +1 -1
- package/dist/esm/models/components/chatrequest.d.ts +1 -1
- package/dist/esm/models/components/chatsuggestion.d.ts +37 -0
- package/dist/esm/models/components/chatsuggestion.d.ts.map +1 -0
- package/dist/esm/models/components/chatsuggestion.js +33 -0
- package/dist/esm/models/components/chatsuggestion.js.map +1 -0
- package/dist/esm/models/components/clustertypeenum.d.ts +6 -0
- package/dist/esm/models/components/clustertypeenum.d.ts.map +1 -1
- package/dist/esm/models/components/clustertypeenum.js +2 -0
- package/dist/esm/models/components/clustertypeenum.js.map +1 -1
- package/dist/esm/models/components/customdatasourceconfig.d.ts +3 -0
- package/dist/esm/models/components/customdatasourceconfig.d.ts.map +1 -1
- package/dist/esm/models/components/customdatasourceconfig.js +1 -0
- package/dist/esm/models/components/customdatasourceconfig.js.map +1 -1
- package/dist/esm/models/components/digest.d.ts +48 -0
- package/dist/esm/models/components/digest.d.ts.map +1 -0
- package/dist/esm/models/components/digest.js +39 -0
- package/dist/esm/models/components/digest.js.map +1 -0
- package/dist/esm/models/components/digestsection.d.ts +64 -0
- package/dist/esm/models/components/digestsection.d.ts.map +1 -0
- package/dist/esm/models/components/digestsection.js +45 -0
- package/dist/esm/models/components/digestsection.js.map +1 -0
- package/dist/esm/models/components/digestupdate.d.ts +53 -0
- package/dist/esm/models/components/digestupdate.d.ts.map +1 -0
- package/dist/esm/models/components/digestupdate.js +40 -0
- package/dist/esm/models/components/digestupdate.js.map +1 -0
- package/dist/esm/models/components/documentdefinition.d.ts +1 -1
- package/dist/esm/models/components/documentspecunion.d.ts +99 -18
- package/dist/esm/models/components/documentspecunion.d.ts.map +1 -1
- package/dist/esm/models/components/documentspecunion.js +75 -18
- package/dist/esm/models/components/documentspecunion.js.map +1 -1
- package/dist/esm/models/components/feedback.d.ts +6 -0
- package/dist/esm/models/components/feedback.d.ts.map +1 -1
- package/dist/esm/models/components/feedback.js +6 -0
- package/dist/esm/models/components/feedback.js.map +1 -1
- package/dist/esm/models/components/feedentry.d.ts +12 -0
- package/dist/esm/models/components/feedentry.d.ts.map +1 -1
- package/dist/esm/models/components/feedentry.js +8 -0
- package/dist/esm/models/components/feedentry.js.map +1 -1
- package/dist/esm/models/components/feedrequest.d.ts +6 -0
- package/dist/esm/models/components/feedrequest.d.ts.map +1 -1
- package/dist/esm/models/components/feedrequest.js +2 -0
- package/dist/esm/models/components/feedrequest.js.map +1 -1
- package/dist/esm/models/components/feedresult.d.ts +6 -0
- package/dist/esm/models/components/feedresult.d.ts.map +1 -1
- package/dist/esm/models/components/feedresult.js +2 -0
- package/dist/esm/models/components/feedresult.js.map +1 -1
- package/dist/esm/models/components/generatedqna.js +2 -2
- package/dist/esm/models/components/generatedqna.js.map +1 -1
- package/dist/esm/models/components/getchatfilesrequest.d.ts +5 -0
- package/dist/esm/models/components/getchatfilesrequest.d.ts.map +1 -1
- package/dist/esm/models/components/getchatfilesrequest.js +2 -0
- package/dist/esm/models/components/getchatfilesrequest.js.map +1 -1
- package/dist/esm/models/components/group.d.ts +10 -0
- package/dist/esm/models/components/group.d.ts.map +1 -1
- package/dist/esm/models/components/group.js +4 -0
- package/dist/esm/models/components/group.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +9 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +9 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/manualfeedbackinfo.d.ts +10 -8
- package/dist/esm/models/components/manualfeedbackinfo.d.ts.map +1 -1
- package/dist/esm/models/components/manualfeedbackinfo.js +12 -12
- package/dist/esm/models/components/manualfeedbackinfo.js.map +1 -1
- package/dist/esm/models/components/manualfeedbacksidebysideinfo.d.ts +137 -0
- package/dist/esm/models/components/manualfeedbacksidebysideinfo.d.ts.map +1 -0
- package/dist/esm/models/components/manualfeedbacksidebysideinfo.js +92 -0
- package/dist/esm/models/components/manualfeedbacksidebysideinfo.js.map +1 -0
- package/dist/esm/models/components/objectdefinition.d.ts +3 -0
- package/dist/esm/models/components/objectdefinition.d.ts.map +1 -1
- package/dist/esm/models/components/objectdefinition.js +1 -0
- package/dist/esm/models/components/objectdefinition.js.map +1 -1
- package/dist/esm/models/components/searchrequest.d.ts +0 -6
- package/dist/esm/models/components/searchrequest.d.ts.map +1 -1
- package/dist/esm/models/components/searchrequest.js +0 -3
- package/dist/esm/models/components/searchrequest.js.map +1 -1
- package/dist/esm/models/components/searchrequestoptions.d.ts +1 -1
- package/dist/esm/models/components/searchresponsemetadata.d.ts +5 -0
- package/dist/esm/models/components/searchresponsemetadata.d.ts.map +1 -1
- package/dist/esm/models/components/searchresponsemetadata.js +2 -0
- package/dist/esm/models/components/searchresponsemetadata.js.map +1 -1
- package/dist/esm/models/components/searchresultsnippet.d.ts +7 -5
- package/dist/esm/models/components/searchresultsnippet.d.ts.map +1 -1
- package/dist/esm/models/components/searchresultsnippet.js +2 -2
- package/dist/esm/models/components/searchresultsnippet.js.map +1 -1
- package/dist/esm/models/components/sectiontype.d.ts +37 -0
- package/dist/esm/models/components/sectiontype.d.ts.map +1 -0
- package/dist/esm/models/components/sectiontype.js +29 -0
- package/dist/esm/models/components/sectiontype.js.map +1 -0
- package/dist/esm/models/components/sidebysideimplementation.d.ts +97 -0
- package/dist/esm/models/components/sidebysideimplementation.d.ts.map +1 -0
- package/dist/esm/models/components/sidebysideimplementation.js +68 -0
- package/dist/esm/models/components/sidebysideimplementation.js.map +1 -0
- package/dist/esm/models/components/structuredresult.d.ts +3 -0
- package/dist/esm/models/components/structuredresult.d.ts.map +1 -1
- package/dist/esm/models/components/structuredresult.js +3 -0
- package/dist/esm/models/components/structuredresult.js.map +1 -1
- package/dist/esm/models/components/toolsets.d.ts +40 -0
- package/dist/esm/models/components/toolsets.d.ts.map +1 -0
- package/dist/esm/models/components/toolsets.js +33 -0
- package/dist/esm/models/components/toolsets.js.map +1 -0
- package/dist/esm/models/components/updatetype.d.ts +34 -0
- package/dist/esm/models/components/updatetype.d.ts.map +1 -0
- package/dist/esm/models/components/updatetype.js +28 -0
- package/dist/esm/models/components/updatetype.js.map +1 -0
- package/dist/esm/models/operations/createcollection.d.ts +83 -0
- package/dist/esm/models/operations/createcollection.d.ts.map +1 -0
- package/dist/esm/models/operations/createcollection.js +88 -0
- package/dist/esm/models/operations/createcollection.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/clientCollectionsCreate.d.ts +2 -1
- package/dist/esm/react-query/clientCollectionsCreate.d.ts.map +1 -1
- package/dist/esm/react-query/clientCollectionsCreate.js.map +1 -1
- package/dist/esm/react-query/indexingAuthenticationRotateToken.d.ts +1 -1
- package/dist/esm/react-query/indexingAuthenticationRotateToken.js +1 -1
- package/dist/esm/react-query/indexingDatasourceStatus.d.ts +1 -1
- package/dist/esm/react-query/indexingDatasourceStatus.js +1 -1
- package/dist/esm/react-query/indexingDocumentsBulkIndex.d.ts +1 -1
- package/dist/esm/react-query/indexingDocumentsBulkIndex.js +1 -1
- package/dist/esm/react-query/indexingDocumentsCheckAccess.d.ts +1 -1
- package/dist/esm/react-query/indexingDocumentsCheckAccess.js +1 -1
- package/dist/esm/react-query/indexingDocumentsCount.d.ts +1 -1
- package/dist/esm/react-query/indexingDocumentsCount.js +1 -1
- package/dist/esm/react-query/indexingDocumentsDebug.d.ts +1 -1
- package/dist/esm/react-query/indexingDocumentsDebug.js +1 -1
- package/dist/esm/react-query/indexingDocumentsDebugMany.d.ts +1 -1
- package/dist/esm/react-query/indexingDocumentsDebugMany.js +1 -1
- package/dist/esm/react-query/indexingDocumentsIndex.d.ts +1 -1
- package/dist/esm/react-query/indexingDocumentsIndex.js +1 -1
- package/dist/esm/react-query/indexingDocumentsStatus.d.ts +1 -1
- package/dist/esm/react-query/indexingDocumentsStatus.js +1 -1
- package/dist/esm/react-query/indexingPeopleBulkIndex.d.ts +1 -1
- package/dist/esm/react-query/indexingPeopleBulkIndex.js +1 -1
- package/dist/esm/react-query/indexingPeopleBulkIndexTeams.d.ts +1 -1
- package/dist/esm/react-query/indexingPeopleBulkIndexTeams.js +1 -1
- package/dist/esm/react-query/indexingPeopleCount.d.ts +1 -1
- package/dist/esm/react-query/indexingPeopleCount.js +1 -1
- package/dist/esm/react-query/indexingPeopleDebug.d.ts +1 -1
- package/dist/esm/react-query/indexingPeopleDebug.js +1 -1
- package/dist/esm/react-query/indexingPermissionsBulkIndexGroups.d.ts +1 -1
- package/dist/esm/react-query/indexingPermissionsBulkIndexGroups.js +1 -1
- package/dist/esm/react-query/indexingPermissionsBulkIndexMemberships.d.ts +1 -1
- package/dist/esm/react-query/indexingPermissionsBulkIndexMemberships.js +1 -1
- package/dist/esm/react-query/indexingPermissionsBulkIndexUsers.d.ts +1 -1
- package/dist/esm/react-query/indexingPermissionsBulkIndexUsers.js +1 -1
- package/dist/esm/sdk/collections.d.ts +2 -1
- package/dist/esm/sdk/collections.d.ts.map +1 -1
- package/dist/esm/sdk/collections.js.map +1 -1
- package/dist/esm/sdk/datasource.d.ts +1 -1
- package/dist/esm/sdk/datasource.js +1 -1
- package/dist/esm/sdk/indexingauthentication.d.ts +1 -1
- package/dist/esm/sdk/indexingauthentication.js +1 -1
- package/dist/esm/sdk/indexingdocuments.d.ts +7 -7
- package/dist/esm/sdk/indexingdocuments.js +7 -7
- package/dist/esm/sdk/people.d.ts +4 -4
- package/dist/esm/sdk/people.js +4 -4
- package/dist/esm/sdk/permissions.d.ts +3 -3
- package/dist/esm/sdk/permissions.js +3 -3
- package/docs/sdks/announcements/README.md +70 -70
- package/docs/sdks/answers/README.md +8 -8
- package/docs/sdks/clientdocuments/README.md +22 -6
- package/docs/sdks/clientshortcuts/README.md +14 -14
- package/docs/sdks/collections/README.md +11 -11
- package/docs/sdks/datasource/README.md +1 -1
- package/docs/sdks/indexingauthentication/README.md +1 -1
- package/docs/sdks/indexingdocuments/README.md +7 -7
- package/docs/sdks/people/README.md +4 -4
- package/docs/sdks/permissions/README.md +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/announcements.test.ts +2 -2
- package/src/__tests__/answers.test.ts +2 -2
- package/src/__tests__/clientchat.test.ts +24 -24
- package/src/__tests__/clientshortcuts.test.ts +2 -2
- package/src/__tests__/collections.test.ts +2 -2
- package/src/__tests__/search.test.ts +1 -1
- package/src/__tests__/summarize.test.ts +8 -2
- package/src/funcs/clientCollectionsCreate.ts +5 -4
- package/src/funcs/indexingAuthenticationRotateToken.ts +1 -1
- package/src/funcs/indexingDatasourceStatus.ts +1 -1
- package/src/funcs/indexingDocumentsBulkIndex.ts +1 -1
- package/src/funcs/indexingDocumentsCheckAccess.ts +1 -1
- package/src/funcs/indexingDocumentsCount.ts +1 -1
- package/src/funcs/indexingDocumentsDebug.ts +1 -1
- package/src/funcs/indexingDocumentsDebugMany.ts +1 -1
- package/src/funcs/indexingDocumentsIndex.ts +1 -1
- package/src/funcs/indexingDocumentsStatus.ts +1 -1
- package/src/funcs/indexingPeopleBulkIndex.ts +1 -1
- package/src/funcs/indexingPeopleBulkIndexTeams.ts +1 -1
- package/src/funcs/indexingPeopleCount.ts +1 -1
- package/src/funcs/indexingPeopleDebug.ts +1 -1
- package/src/funcs/indexingPermissionsBulkIndexGroups.ts +1 -1
- package/src/funcs/indexingPermissionsBulkIndexMemberships.ts +1 -1
- package/src/funcs/indexingPermissionsBulkIndexUsers.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentconfig.ts +15 -0
- package/src/models/components/authconfig.ts +1 -0
- package/src/models/components/chat.ts +23 -0
- package/src/models/components/chatmessage.ts +1 -0
- package/src/models/components/chatmessagefragment.ts +14 -1
- package/src/models/components/chatrequest.ts +1 -1
- package/src/models/components/chatsuggestion.ts +72 -0
- package/src/models/components/clustertypeenum.ts +2 -0
- package/src/models/components/customdatasourceconfig.ts +1 -0
- package/src/models/components/digest.ts +89 -0
- package/src/models/components/digestsection.ts +118 -0
- package/src/models/components/digestupdate.ts +98 -0
- package/src/models/components/documentdefinition.ts +1 -1
- package/src/models/components/documentspecunion.ts +147 -32
- package/src/models/components/feedback.ts +15 -0
- package/src/models/components/feedentry.ts +22 -0
- package/src/models/components/feedrequest.ts +2 -0
- package/src/models/components/feedresult.ts +2 -0
- package/src/models/components/generatedqna.ts +2 -2
- package/src/models/components/getchatfilesrequest.ts +7 -0
- package/src/models/components/group.ts +14 -0
- package/src/models/components/index.ts +9 -1
- package/src/models/components/manualfeedbackinfo.ts +18 -15
- package/src/models/components/manualfeedbacksidebysideinfo.ts +200 -0
- package/src/models/components/objectdefinition.ts +1 -0
- package/src/models/components/searchrequest.ts +0 -13
- package/src/models/components/searchrequestoptions.ts +1 -1
- package/src/models/components/searchresponsemetadata.ts +7 -0
- package/src/models/components/searchresultsnippet.ts +9 -7
- package/src/models/components/sectiontype.ts +38 -0
- package/src/models/components/sidebysideimplementation.ts +175 -0
- package/src/models/components/structuredresult.ts +10 -0
- package/src/models/components/toolsets.ts +75 -0
- package/src/models/components/updatetype.ts +37 -0
- package/src/models/operations/createcollection.ts +186 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/clientCollectionsCreate.ts +2 -1
- package/src/react-query/indexingAuthenticationRotateToken.ts +1 -1
- package/src/react-query/indexingDatasourceStatus.ts +1 -1
- package/src/react-query/indexingDocumentsBulkIndex.ts +1 -1
- package/src/react-query/indexingDocumentsCheckAccess.ts +1 -1
- package/src/react-query/indexingDocumentsCount.ts +1 -1
- package/src/react-query/indexingDocumentsDebug.ts +1 -1
- package/src/react-query/indexingDocumentsDebugMany.ts +1 -1
- package/src/react-query/indexingDocumentsIndex.ts +1 -1
- package/src/react-query/indexingDocumentsStatus.ts +1 -1
- package/src/react-query/indexingPeopleBulkIndex.ts +1 -1
- package/src/react-query/indexingPeopleBulkIndexTeams.ts +1 -1
- package/src/react-query/indexingPeopleCount.ts +1 -1
- package/src/react-query/indexingPeopleDebug.ts +1 -1
- package/src/react-query/indexingPermissionsBulkIndexGroups.ts +1 -1
- package/src/react-query/indexingPermissionsBulkIndexMemberships.ts +1 -1
- package/src/react-query/indexingPermissionsBulkIndexUsers.ts +1 -1
- package/src/sdk/collections.ts +2 -1
- package/src/sdk/datasource.ts +1 -1
- package/src/sdk/indexingauthentication.ts +1 -1
- package/src/sdk/indexingdocuments.ts +7 -7
- package/src/sdk/people.ts +4 -4
- package/src/sdk/permissions.ts +3 -3
- package/dist/commonjs/models/components/createcollectionresponse.d.ts +0 -177
- package/dist/commonjs/models/components/createcollectionresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/createcollectionresponse.js +0 -154
- package/dist/commonjs/models/components/createcollectionresponse.js.map +0 -1
- package/dist/esm/models/components/createcollectionresponse.d.ts +0 -177
- package/dist/esm/models/components/createcollectionresponse.d.ts.map +0 -1
- package/dist/esm/models/components/createcollectionresponse.js +0 -116
- package/dist/esm/models/components/createcollectionresponse.js.map +0 -1
- package/src/models/components/createcollectionresponse.ts +0 -306
|
@@ -67,6 +67,12 @@ import {
|
|
|
67
67
|
ExtractedQnA$Outbound,
|
|
68
68
|
ExtractedQnA$outboundSchema,
|
|
69
69
|
} from "./extractedqna.js";
|
|
70
|
+
import {
|
|
71
|
+
GeneratedQna,
|
|
72
|
+
GeneratedQna$inboundSchema,
|
|
73
|
+
GeneratedQna$Outbound,
|
|
74
|
+
GeneratedQna$outboundSchema,
|
|
75
|
+
} from "./generatedqna.js";
|
|
70
76
|
import {
|
|
71
77
|
Meeting,
|
|
72
78
|
Meeting$inboundSchema,
|
|
@@ -151,6 +157,7 @@ export type StructuredResult = {
|
|
|
151
157
|
team?: Team | undefined;
|
|
152
158
|
customEntity?: CustomEntity | undefined;
|
|
153
159
|
answer?: Answer | undefined;
|
|
160
|
+
generatedQna?: GeneratedQna | undefined;
|
|
154
161
|
extractedQnA?: ExtractedQnA | undefined;
|
|
155
162
|
meeting?: Meeting | undefined;
|
|
156
163
|
app?: AppResult | undefined;
|
|
@@ -238,6 +245,7 @@ export const StructuredResult$inboundSchema: z.ZodType<
|
|
|
238
245
|
team: z.lazy(() => Team$inboundSchema).optional(),
|
|
239
246
|
customEntity: z.lazy(() => CustomEntity$inboundSchema).optional(),
|
|
240
247
|
answer: z.lazy(() => Answer$inboundSchema).optional(),
|
|
248
|
+
generatedQna: z.lazy(() => GeneratedQna$inboundSchema).optional(),
|
|
241
249
|
extractedQnA: z.lazy(() => ExtractedQnA$inboundSchema).optional(),
|
|
242
250
|
meeting: z.lazy(() => Meeting$inboundSchema).optional(),
|
|
243
251
|
app: AppResult$inboundSchema.optional(),
|
|
@@ -264,6 +272,7 @@ export type StructuredResult$Outbound = {
|
|
|
264
272
|
team?: Team$Outbound | undefined;
|
|
265
273
|
customEntity?: CustomEntity$Outbound | undefined;
|
|
266
274
|
answer?: Answer$Outbound | undefined;
|
|
275
|
+
generatedQna?: GeneratedQna$Outbound | undefined;
|
|
267
276
|
extractedQnA?: ExtractedQnA$Outbound | undefined;
|
|
268
277
|
meeting?: Meeting$Outbound | undefined;
|
|
269
278
|
app?: AppResult$Outbound | undefined;
|
|
@@ -293,6 +302,7 @@ export const StructuredResult$outboundSchema: z.ZodType<
|
|
|
293
302
|
team: z.lazy(() => Team$outboundSchema).optional(),
|
|
294
303
|
customEntity: z.lazy(() => CustomEntity$outboundSchema).optional(),
|
|
295
304
|
answer: z.lazy(() => Answer$outboundSchema).optional(),
|
|
305
|
+
generatedQna: z.lazy(() => GeneratedQna$outboundSchema).optional(),
|
|
296
306
|
extractedQnA: z.lazy(() => ExtractedQnA$outboundSchema).optional(),
|
|
297
307
|
meeting: z.lazy(() => Meeting$outboundSchema).optional(),
|
|
298
308
|
app: AppResult$outboundSchema.optional(),
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values
|
|
12
|
+
*/
|
|
13
|
+
export type ToolSets = {
|
|
14
|
+
/**
|
|
15
|
+
* Whether the agent is allowed to use web search (default: true).
|
|
16
|
+
*/
|
|
17
|
+
enableWebSearch?: boolean | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the agent is allowed to search internal company resources (default: true).
|
|
20
|
+
*/
|
|
21
|
+
enableCompanyTools?: boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ToolSets$inboundSchema: z.ZodType<
|
|
26
|
+
ToolSets,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
enableWebSearch: z.boolean().optional(),
|
|
31
|
+
enableCompanyTools: z.boolean().optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type ToolSets$Outbound = {
|
|
36
|
+
enableWebSearch?: boolean | undefined;
|
|
37
|
+
enableCompanyTools?: boolean | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ToolSets$outboundSchema: z.ZodType<
|
|
42
|
+
ToolSets$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
ToolSets
|
|
45
|
+
> = z.object({
|
|
46
|
+
enableWebSearch: z.boolean().optional(),
|
|
47
|
+
enableCompanyTools: z.boolean().optional(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace ToolSets$ {
|
|
55
|
+
/** @deprecated use `ToolSets$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = ToolSets$inboundSchema;
|
|
57
|
+
/** @deprecated use `ToolSets$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = ToolSets$outboundSchema;
|
|
59
|
+
/** @deprecated use `ToolSets$Outbound` instead. */
|
|
60
|
+
export type Outbound = ToolSets$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function toolSetsToJSON(toolSets: ToolSets): string {
|
|
64
|
+
return JSON.stringify(ToolSets$outboundSchema.parse(toolSets));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function toolSetsFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<ToolSets, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => ToolSets$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'ToolSets' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Optional type classification for the update.
|
|
10
|
+
*/
|
|
11
|
+
export const UpdateType = {
|
|
12
|
+
Actionable: "ACTIONABLE",
|
|
13
|
+
Informative: "INFORMATIVE",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Optional type classification for the update.
|
|
17
|
+
*/
|
|
18
|
+
export type UpdateType = ClosedEnum<typeof UpdateType>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UpdateType$inboundSchema: z.ZodNativeEnum<typeof UpdateType> = z
|
|
22
|
+
.nativeEnum(UpdateType);
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const UpdateType$outboundSchema: z.ZodNativeEnum<typeof UpdateType> =
|
|
26
|
+
UpdateType$inboundSchema;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export namespace UpdateType$ {
|
|
33
|
+
/** @deprecated use `UpdateType$inboundSchema` instead. */
|
|
34
|
+
export const inboundSchema = UpdateType$inboundSchema;
|
|
35
|
+
/** @deprecated use `UpdateType$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema = UpdateType$outboundSchema;
|
|
37
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as components from "../components/index.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ResponseBody2 = {
|
|
12
|
+
collection?: components.Collection | undefined;
|
|
13
|
+
error: components.CollectionError;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type ResponseBody1 = {
|
|
17
|
+
collection: components.Collection;
|
|
18
|
+
error?: components.CollectionError | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* OK
|
|
23
|
+
*/
|
|
24
|
+
export type CreatecollectionResponse = ResponseBody1 | ResponseBody2;
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ResponseBody2$inboundSchema: z.ZodType<
|
|
28
|
+
ResponseBody2,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
collection: components.Collection$inboundSchema.optional(),
|
|
33
|
+
error: components.CollectionError$inboundSchema,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type ResponseBody2$Outbound = {
|
|
38
|
+
collection?: components.Collection$Outbound | undefined;
|
|
39
|
+
error: components.CollectionError$Outbound;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ResponseBody2$outboundSchema: z.ZodType<
|
|
44
|
+
ResponseBody2$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
ResponseBody2
|
|
47
|
+
> = z.object({
|
|
48
|
+
collection: components.Collection$outboundSchema.optional(),
|
|
49
|
+
error: components.CollectionError$outboundSchema,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace ResponseBody2$ {
|
|
57
|
+
/** @deprecated use `ResponseBody2$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = ResponseBody2$inboundSchema;
|
|
59
|
+
/** @deprecated use `ResponseBody2$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = ResponseBody2$outboundSchema;
|
|
61
|
+
/** @deprecated use `ResponseBody2$Outbound` instead. */
|
|
62
|
+
export type Outbound = ResponseBody2$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function responseBody2ToJSON(responseBody2: ResponseBody2): string {
|
|
66
|
+
return JSON.stringify(ResponseBody2$outboundSchema.parse(responseBody2));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function responseBody2FromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<ResponseBody2, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'ResponseBody2' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const ResponseBody1$inboundSchema: z.ZodType<
|
|
81
|
+
ResponseBody1,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.object({
|
|
85
|
+
collection: components.Collection$inboundSchema,
|
|
86
|
+
error: components.CollectionError$inboundSchema.optional(),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export type ResponseBody1$Outbound = {
|
|
91
|
+
collection: components.Collection$Outbound;
|
|
92
|
+
error?: components.CollectionError$Outbound | undefined;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const ResponseBody1$outboundSchema: z.ZodType<
|
|
97
|
+
ResponseBody1$Outbound,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
ResponseBody1
|
|
100
|
+
> = z.object({
|
|
101
|
+
collection: components.Collection$outboundSchema,
|
|
102
|
+
error: components.CollectionError$outboundSchema.optional(),
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
+
*/
|
|
109
|
+
export namespace ResponseBody1$ {
|
|
110
|
+
/** @deprecated use `ResponseBody1$inboundSchema` instead. */
|
|
111
|
+
export const inboundSchema = ResponseBody1$inboundSchema;
|
|
112
|
+
/** @deprecated use `ResponseBody1$outboundSchema` instead. */
|
|
113
|
+
export const outboundSchema = ResponseBody1$outboundSchema;
|
|
114
|
+
/** @deprecated use `ResponseBody1$Outbound` instead. */
|
|
115
|
+
export type Outbound = ResponseBody1$Outbound;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function responseBody1ToJSON(responseBody1: ResponseBody1): string {
|
|
119
|
+
return JSON.stringify(ResponseBody1$outboundSchema.parse(responseBody1));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function responseBody1FromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<ResponseBody1, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'ResponseBody1' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export const CreatecollectionResponse$inboundSchema: z.ZodType<
|
|
134
|
+
CreatecollectionResponse,
|
|
135
|
+
z.ZodTypeDef,
|
|
136
|
+
unknown
|
|
137
|
+
> = z.union([
|
|
138
|
+
z.lazy(() => ResponseBody1$inboundSchema),
|
|
139
|
+
z.lazy(() => ResponseBody2$inboundSchema),
|
|
140
|
+
]);
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export type CreatecollectionResponse$Outbound =
|
|
144
|
+
| ResponseBody1$Outbound
|
|
145
|
+
| ResponseBody2$Outbound;
|
|
146
|
+
|
|
147
|
+
/** @internal */
|
|
148
|
+
export const CreatecollectionResponse$outboundSchema: z.ZodType<
|
|
149
|
+
CreatecollectionResponse$Outbound,
|
|
150
|
+
z.ZodTypeDef,
|
|
151
|
+
CreatecollectionResponse
|
|
152
|
+
> = z.union([
|
|
153
|
+
z.lazy(() => ResponseBody1$outboundSchema),
|
|
154
|
+
z.lazy(() => ResponseBody2$outboundSchema),
|
|
155
|
+
]);
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @internal
|
|
159
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
160
|
+
*/
|
|
161
|
+
export namespace CreatecollectionResponse$ {
|
|
162
|
+
/** @deprecated use `CreatecollectionResponse$inboundSchema` instead. */
|
|
163
|
+
export const inboundSchema = CreatecollectionResponse$inboundSchema;
|
|
164
|
+
/** @deprecated use `CreatecollectionResponse$outboundSchema` instead. */
|
|
165
|
+
export const outboundSchema = CreatecollectionResponse$outboundSchema;
|
|
166
|
+
/** @deprecated use `CreatecollectionResponse$Outbound` instead. */
|
|
167
|
+
export type Outbound = CreatecollectionResponse$Outbound;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function createcollectionResponseToJSON(
|
|
171
|
+
createcollectionResponse: CreatecollectionResponse,
|
|
172
|
+
): string {
|
|
173
|
+
return JSON.stringify(
|
|
174
|
+
CreatecollectionResponse$outboundSchema.parse(createcollectionResponse),
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export function createcollectionResponseFromJSON(
|
|
179
|
+
jsonString: string,
|
|
180
|
+
): SafeParseResult<CreatecollectionResponse, SDKValidationError> {
|
|
181
|
+
return safeParse(
|
|
182
|
+
jsonString,
|
|
183
|
+
(x) => CreatecollectionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
184
|
+
`Failed to parse 'CreatecollectionResponse' from JSON`,
|
|
185
|
+
);
|
|
186
|
+
}
|
|
@@ -12,6 +12,7 @@ import { clientCollectionsCreate } from "../funcs/clientCollectionsCreate.js";
|
|
|
12
12
|
import { combineSignals } from "../lib/primitives.js";
|
|
13
13
|
import { RequestOptions } from "../lib/sdks.js";
|
|
14
14
|
import * as components from "../models/components/index.js";
|
|
15
|
+
import * as operations from "../models/operations/index.js";
|
|
15
16
|
import { unwrapAsync } from "../types/fp.js";
|
|
16
17
|
import { useGleanContext } from "./_context.js";
|
|
17
18
|
import { MutationHookOptions } from "./_types.js";
|
|
@@ -22,7 +23,7 @@ export type ClientCollectionsCreateMutationVariables = {
|
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export type ClientCollectionsCreateMutationData =
|
|
25
|
-
|
|
26
|
+
operations.CreatecollectionResponse;
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* Create Collection
|
|
@@ -27,7 +27,7 @@ export type IndexingAuthenticationRotateTokenMutationData =
|
|
|
27
27
|
* Rotate token
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/
|
|
30
|
+
* Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingAuthenticationRotateTokenMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -30,7 +30,7 @@ export type IndexingDatasourceStatusMutationData =
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice.
|
|
32
32
|
*
|
|
33
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
33
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
34
34
|
*/
|
|
35
35
|
export function useIndexingDatasourceStatusMutation(
|
|
36
36
|
options?: MutationHookOptions<
|
|
@@ -27,7 +27,7 @@ export type IndexingDocumentsBulkIndexMutationData = void;
|
|
|
27
27
|
* Bulk index documents
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
30
|
+
* Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingDocumentsBulkIndexMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -30,7 +30,7 @@ export type IndexingDocumentsCheckAccessMutationData =
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Check if a given user has access to access a document in a custom datasource
|
|
32
32
|
*
|
|
33
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
33
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
34
34
|
*/
|
|
35
35
|
export function useIndexingDocumentsCheckAccessMutation(
|
|
36
36
|
options?: MutationHookOptions<
|
|
@@ -30,7 +30,7 @@ export type IndexingDocumentsCountMutationData =
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Fetches document count for the specified custom datasource.
|
|
32
32
|
*
|
|
33
|
-
* Tip: Use [/debug/{datasource}/status](https://developers.glean.com/
|
|
33
|
+
* Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.
|
|
34
34
|
*
|
|
35
35
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
36
|
*/
|
|
@@ -31,7 +31,7 @@ export type IndexingDocumentsDebugMutationData =
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice.
|
|
33
33
|
*
|
|
34
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
34
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
35
35
|
*/
|
|
36
36
|
export function useIndexingDocumentsDebugMutation(
|
|
37
37
|
options?: MutationHookOptions<
|
|
@@ -31,7 +31,7 @@ export type IndexingDocumentsDebugManyMutationData =
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice.
|
|
33
33
|
*
|
|
34
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
34
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
35
35
|
*/
|
|
36
36
|
export function useIndexingDocumentsDebugManyMutation(
|
|
37
37
|
options?: MutationHookOptions<
|
|
@@ -27,7 +27,7 @@ export type IndexingDocumentsIndexMutationData = void;
|
|
|
27
27
|
* Index documents
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
30
|
+
* Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingDocumentsIndexMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -30,7 +30,7 @@ export type IndexingDocumentsStatusMutationData =
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Intended for debugging/validation. Fetches the current upload and indexing status of documents.
|
|
32
32
|
*
|
|
33
|
-
* Tip: Use [/debug/{datasource}/document](https://developers.glean.com/
|
|
33
|
+
* Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information.
|
|
34
34
|
*
|
|
35
35
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
36
|
*/
|
|
@@ -27,7 +27,7 @@ export type IndexingPeopleBulkIndexMutationData = void;
|
|
|
27
27
|
* Bulk index employees
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
30
|
+
* Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingPeopleBulkIndexMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -27,7 +27,7 @@ export type IndexingPeopleBulkIndexTeamsMutationData = void;
|
|
|
27
27
|
* Bulk index teams
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
30
|
+
* Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingPeopleBulkIndexTeamsMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -29,7 +29,7 @@ export type IndexingPeopleCountMutationData = components.GetUserCountResponse;
|
|
|
29
29
|
* @remarks
|
|
30
30
|
* Fetches user count for the specified custom datasource.
|
|
31
31
|
*
|
|
32
|
-
* Tip: Use [/debug/{datasource}/status](https://developers.glean.com/
|
|
32
|
+
* Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.
|
|
33
33
|
*
|
|
34
34
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
35
35
|
*/
|
|
@@ -30,7 +30,7 @@ export type IndexingPeopleDebugMutationData = components.DebugUserResponse;
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Gives various information that would help in debugging related to a particular user. Currently in beta, might undergo breaking changes without prior notice.
|
|
32
32
|
*
|
|
33
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
33
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
34
34
|
*/
|
|
35
35
|
export function useIndexingPeopleDebugMutation(
|
|
36
36
|
options?: MutationHookOptions<
|
|
@@ -27,7 +27,7 @@ export type IndexingPermissionsBulkIndexGroupsMutationData = void;
|
|
|
27
27
|
* Bulk index groups
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
30
|
+
* Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingPermissionsBulkIndexGroupsMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -27,7 +27,7 @@ export type IndexingPermissionsBulkIndexMembershipsMutationData = void;
|
|
|
27
27
|
* Bulk index memberships for a group
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
30
|
+
* Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingPermissionsBulkIndexMembershipsMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -27,7 +27,7 @@ export type IndexingPermissionsBulkIndexUsersMutationData = void;
|
|
|
27
27
|
* Bulk index users
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
30
|
+
* Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
31
31
|
*/
|
|
32
32
|
export function useIndexingPermissionsBulkIndexUsersMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
package/src/sdk/collections.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { clientCollectionsUpdate } from "../funcs/clientCollectionsUpdate.js";
|
|
|
12
12
|
import { clientCollectionsUpdateItem } from "../funcs/clientCollectionsUpdateItem.js";
|
|
13
13
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
14
14
|
import * as components from "../models/components/index.js";
|
|
15
|
+
import * as operations from "../models/operations/index.js";
|
|
15
16
|
import { unwrapAsync } from "../types/fp.js";
|
|
16
17
|
|
|
17
18
|
export class Collections extends ClientSDK {
|
|
@@ -41,7 +42,7 @@ export class Collections extends ClientSDK {
|
|
|
41
42
|
async create(
|
|
42
43
|
request: components.CreateCollectionRequest,
|
|
43
44
|
options?: RequestOptions,
|
|
44
|
-
): Promise<
|
|
45
|
+
): Promise<operations.CreatecollectionResponse> {
|
|
45
46
|
return unwrapAsync(clientCollectionsCreate(
|
|
46
47
|
this,
|
|
47
48
|
request,
|
package/src/sdk/datasource.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Datasource extends ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice.
|
|
16
16
|
*
|
|
17
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
17
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
18
18
|
*/
|
|
19
19
|
async status(
|
|
20
20
|
datasource: string,
|
|
@@ -12,7 +12,7 @@ export class IndexingAuthentication extends ClientSDK {
|
|
|
12
12
|
* Rotate token
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/
|
|
15
|
+
* Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information.
|
|
16
16
|
*/
|
|
17
17
|
async rotateToken(
|
|
18
18
|
options?: RequestOptions,
|
|
@@ -38,7 +38,7 @@ export class IndexingDocuments extends ClientSDK {
|
|
|
38
38
|
* Index documents
|
|
39
39
|
*
|
|
40
40
|
* @remarks
|
|
41
|
-
* Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
41
|
+
* Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint.
|
|
42
42
|
*/
|
|
43
43
|
async index(
|
|
44
44
|
request: components.IndexDocumentsRequest,
|
|
@@ -55,7 +55,7 @@ export class IndexingDocuments extends ClientSDK {
|
|
|
55
55
|
* Bulk index documents
|
|
56
56
|
*
|
|
57
57
|
* @remarks
|
|
58
|
-
* Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/
|
|
58
|
+
* Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
59
59
|
*/
|
|
60
60
|
async bulkIndex(
|
|
61
61
|
request: components.BulkIndexDocumentsRequest,
|
|
@@ -118,7 +118,7 @@ export class IndexingDocuments extends ClientSDK {
|
|
|
118
118
|
* @remarks
|
|
119
119
|
* Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice.
|
|
120
120
|
*
|
|
121
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
121
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
122
122
|
*/
|
|
123
123
|
async debug(
|
|
124
124
|
debugDocumentRequest: components.DebugDocumentRequest,
|
|
@@ -139,7 +139,7 @@ export class IndexingDocuments extends ClientSDK {
|
|
|
139
139
|
* @remarks
|
|
140
140
|
* Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice.
|
|
141
141
|
*
|
|
142
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
142
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
143
143
|
*/
|
|
144
144
|
async debugMany(
|
|
145
145
|
debugDocumentsRequest: components.DebugDocumentsRequest,
|
|
@@ -160,7 +160,7 @@ export class IndexingDocuments extends ClientSDK {
|
|
|
160
160
|
* @remarks
|
|
161
161
|
* Check if a given user has access to access a document in a custom datasource
|
|
162
162
|
*
|
|
163
|
-
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/
|
|
163
|
+
* Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
|
|
164
164
|
*/
|
|
165
165
|
async checkAccess(
|
|
166
166
|
request: components.CheckDocumentAccessRequest,
|
|
@@ -179,7 +179,7 @@ export class IndexingDocuments extends ClientSDK {
|
|
|
179
179
|
* @remarks
|
|
180
180
|
* Intended for debugging/validation. Fetches the current upload and indexing status of documents.
|
|
181
181
|
*
|
|
182
|
-
* Tip: Use [/debug/{datasource}/document](https://developers.glean.com/
|
|
182
|
+
* Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information.
|
|
183
183
|
*
|
|
184
184
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
185
185
|
*/
|
|
@@ -200,7 +200,7 @@ export class IndexingDocuments extends ClientSDK {
|
|
|
200
200
|
* @remarks
|
|
201
201
|
* Fetches document count for the specified custom datasource.
|
|
202
202
|
*
|
|
203
|
-
* Tip: Use [/debug/{datasource}/status](https://developers.glean.com/
|
|
203
|
+
* Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.
|
|
204
204
|
*
|
|
205
205
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
206
206
|
*/
|