@gleanwork/api-client 0.8.1 → 0.9.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/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/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/chatmessage.js +2 -2
- package/dist/commonjs/models/components/chatmessage.js.map +1 -1
- package/dist/commonjs/models/components/chatmessagefragment.d.ts +6 -0
- 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/documentdefinition.d.ts +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/generatedqna.js +2 -2
- package/dist/commonjs/models/components/generatedqna.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/manualfeedbackinfo.d.ts +8 -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/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/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/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/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/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/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/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/chatmessage.js +2 -2
- package/dist/esm/models/components/chatmessage.js.map +1 -1
- package/dist/esm/models/components/chatmessagefragment.d.ts +6 -0
- 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/documentdefinition.d.ts +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/generatedqna.js +2 -2
- package/dist/esm/models/components/generatedqna.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/manualfeedbackinfo.d.ts +8 -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/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/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/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/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/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/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/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/authconfig.ts +1 -0
- package/src/models/components/chatmessage.ts +2 -2
- package/src/models/components/chatmessagefragment.ts +13 -0
- package/src/models/components/chatrequest.ts +1 -1
- package/src/models/components/documentdefinition.ts +1 -1
- package/src/models/components/feedback.ts +15 -0
- package/src/models/components/generatedqna.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/manualfeedbackinfo.ts +16 -15
- package/src/models/components/manualfeedbacksidebysideinfo.ts +200 -0
- package/src/models/components/searchrequest.ts +0 -13
- package/src/models/components/searchresponsemetadata.ts +7 -0
- package/src/models/components/sidebysideimplementation.ts +175 -0
- package/src/models/components/structuredresult.ts +10 -0
- 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/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
|
@@ -0,0 +1,200 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
SideBySideImplementation,
|
|
12
|
+
SideBySideImplementation$inboundSchema,
|
|
13
|
+
SideBySideImplementation$Outbound,
|
|
14
|
+
SideBySideImplementation$outboundSchema,
|
|
15
|
+
} from "./sidebysideimplementation.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The source associated with the side-by-side feedback event.
|
|
19
|
+
*/
|
|
20
|
+
export const ManualFeedbackSideBySideInfoSource = {
|
|
21
|
+
LiveEval: "LIVE_EVAL",
|
|
22
|
+
Chat: "CHAT",
|
|
23
|
+
Search: "SEARCH",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* The source associated with the side-by-side feedback event.
|
|
27
|
+
*/
|
|
28
|
+
export type ManualFeedbackSideBySideInfoSource = ClosedEnum<
|
|
29
|
+
typeof ManualFeedbackSideBySideInfoSource
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The vote for this specific implementation.
|
|
34
|
+
*/
|
|
35
|
+
export const ManualFeedbackSideBySideInfoVote = {
|
|
36
|
+
Upvote: "UPVOTE",
|
|
37
|
+
Downvote: "DOWNVOTE",
|
|
38
|
+
Neutral: "NEUTRAL",
|
|
39
|
+
} as const;
|
|
40
|
+
/**
|
|
41
|
+
* The vote for this specific implementation.
|
|
42
|
+
*/
|
|
43
|
+
export type ManualFeedbackSideBySideInfoVote = ClosedEnum<
|
|
44
|
+
typeof ManualFeedbackSideBySideInfoVote
|
|
45
|
+
>;
|
|
46
|
+
|
|
47
|
+
export type ManualFeedbackSideBySideInfo = {
|
|
48
|
+
/**
|
|
49
|
+
* The email address of the user who submitted the side-by-side feedback.
|
|
50
|
+
*/
|
|
51
|
+
email?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The source associated with the side-by-side feedback event.
|
|
54
|
+
*/
|
|
55
|
+
source?: ManualFeedbackSideBySideInfoSource | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The query or prompt that was evaluated across multiple implementations.
|
|
58
|
+
*/
|
|
59
|
+
query?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Array of implementations that were compared side-by-side.
|
|
62
|
+
*/
|
|
63
|
+
implementations?: Array<SideBySideImplementation> | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Unique identifier for this evaluation session to group related feedback events.
|
|
66
|
+
*/
|
|
67
|
+
evaluationSessionId?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the implementation this specific feedback event is for.
|
|
70
|
+
*/
|
|
71
|
+
implementationId?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The vote for this specific implementation.
|
|
74
|
+
*/
|
|
75
|
+
vote?: ManualFeedbackSideBySideInfoVote | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Specific feedback comments for this implementation.
|
|
78
|
+
*/
|
|
79
|
+
comments?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const ManualFeedbackSideBySideInfoSource$inboundSchema: z.ZodNativeEnum<
|
|
84
|
+
typeof ManualFeedbackSideBySideInfoSource
|
|
85
|
+
> = z.nativeEnum(ManualFeedbackSideBySideInfoSource);
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const ManualFeedbackSideBySideInfoSource$outboundSchema: z.ZodNativeEnum<
|
|
89
|
+
typeof ManualFeedbackSideBySideInfoSource
|
|
90
|
+
> = ManualFeedbackSideBySideInfoSource$inboundSchema;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
+
*/
|
|
96
|
+
export namespace ManualFeedbackSideBySideInfoSource$ {
|
|
97
|
+
/** @deprecated use `ManualFeedbackSideBySideInfoSource$inboundSchema` instead. */
|
|
98
|
+
export const inboundSchema = ManualFeedbackSideBySideInfoSource$inboundSchema;
|
|
99
|
+
/** @deprecated use `ManualFeedbackSideBySideInfoSource$outboundSchema` instead. */
|
|
100
|
+
export const outboundSchema =
|
|
101
|
+
ManualFeedbackSideBySideInfoSource$outboundSchema;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const ManualFeedbackSideBySideInfoVote$inboundSchema: z.ZodNativeEnum<
|
|
106
|
+
typeof ManualFeedbackSideBySideInfoVote
|
|
107
|
+
> = z.nativeEnum(ManualFeedbackSideBySideInfoVote);
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const ManualFeedbackSideBySideInfoVote$outboundSchema: z.ZodNativeEnum<
|
|
111
|
+
typeof ManualFeedbackSideBySideInfoVote
|
|
112
|
+
> = ManualFeedbackSideBySideInfoVote$inboundSchema;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
117
|
+
*/
|
|
118
|
+
export namespace ManualFeedbackSideBySideInfoVote$ {
|
|
119
|
+
/** @deprecated use `ManualFeedbackSideBySideInfoVote$inboundSchema` instead. */
|
|
120
|
+
export const inboundSchema = ManualFeedbackSideBySideInfoVote$inboundSchema;
|
|
121
|
+
/** @deprecated use `ManualFeedbackSideBySideInfoVote$outboundSchema` instead. */
|
|
122
|
+
export const outboundSchema = ManualFeedbackSideBySideInfoVote$outboundSchema;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const ManualFeedbackSideBySideInfo$inboundSchema: z.ZodType<
|
|
127
|
+
ManualFeedbackSideBySideInfo,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
unknown
|
|
130
|
+
> = z.object({
|
|
131
|
+
email: z.string().optional(),
|
|
132
|
+
source: ManualFeedbackSideBySideInfoSource$inboundSchema.optional(),
|
|
133
|
+
query: z.string().optional(),
|
|
134
|
+
implementations: z.array(SideBySideImplementation$inboundSchema).optional(),
|
|
135
|
+
evaluationSessionId: z.string().optional(),
|
|
136
|
+
implementationId: z.string().optional(),
|
|
137
|
+
vote: ManualFeedbackSideBySideInfoVote$inboundSchema.optional(),
|
|
138
|
+
comments: z.string().optional(),
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
/** @internal */
|
|
142
|
+
export type ManualFeedbackSideBySideInfo$Outbound = {
|
|
143
|
+
email?: string | undefined;
|
|
144
|
+
source?: string | undefined;
|
|
145
|
+
query?: string | undefined;
|
|
146
|
+
implementations?: Array<SideBySideImplementation$Outbound> | undefined;
|
|
147
|
+
evaluationSessionId?: string | undefined;
|
|
148
|
+
implementationId?: string | undefined;
|
|
149
|
+
vote?: string | undefined;
|
|
150
|
+
comments?: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const ManualFeedbackSideBySideInfo$outboundSchema: z.ZodType<
|
|
155
|
+
ManualFeedbackSideBySideInfo$Outbound,
|
|
156
|
+
z.ZodTypeDef,
|
|
157
|
+
ManualFeedbackSideBySideInfo
|
|
158
|
+
> = z.object({
|
|
159
|
+
email: z.string().optional(),
|
|
160
|
+
source: ManualFeedbackSideBySideInfoSource$outboundSchema.optional(),
|
|
161
|
+
query: z.string().optional(),
|
|
162
|
+
implementations: z.array(SideBySideImplementation$outboundSchema).optional(),
|
|
163
|
+
evaluationSessionId: z.string().optional(),
|
|
164
|
+
implementationId: z.string().optional(),
|
|
165
|
+
vote: ManualFeedbackSideBySideInfoVote$outboundSchema.optional(),
|
|
166
|
+
comments: z.string().optional(),
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @internal
|
|
171
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
172
|
+
*/
|
|
173
|
+
export namespace ManualFeedbackSideBySideInfo$ {
|
|
174
|
+
/** @deprecated use `ManualFeedbackSideBySideInfo$inboundSchema` instead. */
|
|
175
|
+
export const inboundSchema = ManualFeedbackSideBySideInfo$inboundSchema;
|
|
176
|
+
/** @deprecated use `ManualFeedbackSideBySideInfo$outboundSchema` instead. */
|
|
177
|
+
export const outboundSchema = ManualFeedbackSideBySideInfo$outboundSchema;
|
|
178
|
+
/** @deprecated use `ManualFeedbackSideBySideInfo$Outbound` instead. */
|
|
179
|
+
export type Outbound = ManualFeedbackSideBySideInfo$Outbound;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function manualFeedbackSideBySideInfoToJSON(
|
|
183
|
+
manualFeedbackSideBySideInfo: ManualFeedbackSideBySideInfo,
|
|
184
|
+
): string {
|
|
185
|
+
return JSON.stringify(
|
|
186
|
+
ManualFeedbackSideBySideInfo$outboundSchema.parse(
|
|
187
|
+
manualFeedbackSideBySideInfo,
|
|
188
|
+
),
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function manualFeedbackSideBySideInfoFromJSON(
|
|
193
|
+
jsonString: string,
|
|
194
|
+
): SafeParseResult<ManualFeedbackSideBySideInfo, SDKValidationError> {
|
|
195
|
+
return safeParse(
|
|
196
|
+
jsonString,
|
|
197
|
+
(x) => ManualFeedbackSideBySideInfo$inboundSchema.parse(JSON.parse(x)),
|
|
198
|
+
`Failed to parse 'ManualFeedbackSideBySideInfo' from JSON`,
|
|
199
|
+
);
|
|
200
|
+
}
|
|
@@ -12,12 +12,6 @@ import {
|
|
|
12
12
|
Document$Outbound,
|
|
13
13
|
Document$outboundSchema,
|
|
14
14
|
} from "./document.js";
|
|
15
|
-
import {
|
|
16
|
-
Person,
|
|
17
|
-
Person$inboundSchema,
|
|
18
|
-
Person$Outbound,
|
|
19
|
-
Person$outboundSchema,
|
|
20
|
-
} from "./person.js";
|
|
21
15
|
import {
|
|
22
16
|
SearchRequestInputDetails,
|
|
23
17
|
SearchRequestInputDetails$inboundSchema,
|
|
@@ -74,10 +68,6 @@ export type SearchRequest = {
|
|
|
74
68
|
* Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
|
|
75
69
|
*/
|
|
76
70
|
timeoutMillis?: number | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* People associated with the search request. Hints to the server to fetch additional information for these people. Note that in this request, an email may be used as a person's obfuscatedId value.
|
|
79
|
-
*/
|
|
80
|
-
people?: Array<Person> | undefined;
|
|
81
71
|
/**
|
|
82
72
|
* Whether or not to disable spellcheck.
|
|
83
73
|
*/
|
|
@@ -103,7 +93,6 @@ export const SearchRequest$inboundSchema: z.ZodType<
|
|
|
103
93
|
inputDetails: SearchRequestInputDetails$inboundSchema.optional(),
|
|
104
94
|
requestOptions: SearchRequestOptions$inboundSchema.optional(),
|
|
105
95
|
timeoutMillis: z.number().int().optional(),
|
|
106
|
-
people: z.array(Person$inboundSchema).optional(),
|
|
107
96
|
disableSpellcheck: z.boolean().optional(),
|
|
108
97
|
});
|
|
109
98
|
|
|
@@ -121,7 +110,6 @@ export type SearchRequest$Outbound = {
|
|
|
121
110
|
inputDetails?: SearchRequestInputDetails$Outbound | undefined;
|
|
122
111
|
requestOptions?: SearchRequestOptions$Outbound | undefined;
|
|
123
112
|
timeoutMillis?: number | undefined;
|
|
124
|
-
people?: Array<Person$Outbound> | undefined;
|
|
125
113
|
disableSpellcheck?: boolean | undefined;
|
|
126
114
|
};
|
|
127
115
|
|
|
@@ -143,7 +131,6 @@ export const SearchRequest$outboundSchema: z.ZodType<
|
|
|
143
131
|
inputDetails: SearchRequestInputDetails$outboundSchema.optional(),
|
|
144
132
|
requestOptions: SearchRequestOptions$outboundSchema.optional(),
|
|
145
133
|
timeoutMillis: z.number().int().optional(),
|
|
146
|
-
people: z.array(Person$outboundSchema).optional(),
|
|
147
134
|
disableSpellcheck: z.boolean().optional(),
|
|
148
135
|
});
|
|
149
136
|
|
|
@@ -40,6 +40,10 @@ export type SearchResponseMetadata = {
|
|
|
40
40
|
* The actual query used to perform search and return results.
|
|
41
41
|
*/
|
|
42
42
|
searchedQuery?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The query used to perform search and return results, with negated terms and facets removed.
|
|
45
|
+
*/
|
|
46
|
+
searchedQueryWithoutNegation?: string | undefined;
|
|
43
47
|
/**
|
|
44
48
|
* The bolded ranges within the searched query.
|
|
45
49
|
*/
|
|
@@ -81,6 +85,7 @@ export const SearchResponseMetadata$inboundSchema: z.ZodType<
|
|
|
81
85
|
> = z.object({
|
|
82
86
|
rewrittenQuery: z.string().optional(),
|
|
83
87
|
searchedQuery: z.string().optional(),
|
|
88
|
+
searchedQueryWithoutNegation: z.string().optional(),
|
|
84
89
|
searchedQueryRanges: z.array(TextRange$inboundSchema).optional(),
|
|
85
90
|
originalQuery: z.string().optional(),
|
|
86
91
|
querySuggestion: QuerySuggestion$inboundSchema.optional(),
|
|
@@ -97,6 +102,7 @@ export const SearchResponseMetadata$inboundSchema: z.ZodType<
|
|
|
97
102
|
export type SearchResponseMetadata$Outbound = {
|
|
98
103
|
rewrittenQuery?: string | undefined;
|
|
99
104
|
searchedQuery?: string | undefined;
|
|
105
|
+
searchedQueryWithoutNegation?: string | undefined;
|
|
100
106
|
searchedQueryRanges?: Array<TextRange$Outbound> | undefined;
|
|
101
107
|
originalQuery?: string | undefined;
|
|
102
108
|
querySuggestion?: QuerySuggestion$Outbound | undefined;
|
|
@@ -117,6 +123,7 @@ export const SearchResponseMetadata$outboundSchema: z.ZodType<
|
|
|
117
123
|
> = z.object({
|
|
118
124
|
rewrittenQuery: z.string().optional(),
|
|
119
125
|
searchedQuery: z.string().optional(),
|
|
126
|
+
searchedQueryWithoutNegation: z.string().optional(),
|
|
120
127
|
searchedQueryRanges: z.array(TextRange$outboundSchema).optional(),
|
|
121
128
|
originalQuery: z.string().optional(),
|
|
122
129
|
querySuggestion: QuerySuggestion$outboundSchema.optional(),
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
* Metadata about the response (e.g., latency, token count).
|
|
12
|
+
*/
|
|
13
|
+
export type ResponseMetadata = {
|
|
14
|
+
/**
|
|
15
|
+
* Time taken to generate the response in milliseconds.
|
|
16
|
+
*/
|
|
17
|
+
latencyMs?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Number of tokens in the response.
|
|
20
|
+
*/
|
|
21
|
+
tokenCount?: number | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The specific model version used.
|
|
24
|
+
*/
|
|
25
|
+
modelUsed?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type SideBySideImplementation = {
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for this implementation variant.
|
|
31
|
+
*/
|
|
32
|
+
implementationId?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Human-readable name for this implementation (e.g., "Variant A", "GPT-4", "Claude").
|
|
35
|
+
*/
|
|
36
|
+
implementationName?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The search/chat parameters used for this implementation.
|
|
39
|
+
*/
|
|
40
|
+
searchParams?: { [k: string]: string } | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The full response generated by this implementation.
|
|
43
|
+
*/
|
|
44
|
+
response?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Metadata about the response (e.g., latency, token count).
|
|
47
|
+
*/
|
|
48
|
+
responseMetadata?: ResponseMetadata | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const ResponseMetadata$inboundSchema: z.ZodType<
|
|
53
|
+
ResponseMetadata,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({
|
|
57
|
+
latencyMs: z.number().int().optional(),
|
|
58
|
+
tokenCount: z.number().int().optional(),
|
|
59
|
+
modelUsed: z.string().optional(),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type ResponseMetadata$Outbound = {
|
|
64
|
+
latencyMs?: number | undefined;
|
|
65
|
+
tokenCount?: number | undefined;
|
|
66
|
+
modelUsed?: string | undefined;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const ResponseMetadata$outboundSchema: z.ZodType<
|
|
71
|
+
ResponseMetadata$Outbound,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
ResponseMetadata
|
|
74
|
+
> = z.object({
|
|
75
|
+
latencyMs: z.number().int().optional(),
|
|
76
|
+
tokenCount: z.number().int().optional(),
|
|
77
|
+
modelUsed: z.string().optional(),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export namespace ResponseMetadata$ {
|
|
85
|
+
/** @deprecated use `ResponseMetadata$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema = ResponseMetadata$inboundSchema;
|
|
87
|
+
/** @deprecated use `ResponseMetadata$outboundSchema` instead. */
|
|
88
|
+
export const outboundSchema = ResponseMetadata$outboundSchema;
|
|
89
|
+
/** @deprecated use `ResponseMetadata$Outbound` instead. */
|
|
90
|
+
export type Outbound = ResponseMetadata$Outbound;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function responseMetadataToJSON(
|
|
94
|
+
responseMetadata: ResponseMetadata,
|
|
95
|
+
): string {
|
|
96
|
+
return JSON.stringify(
|
|
97
|
+
ResponseMetadata$outboundSchema.parse(responseMetadata),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function responseMetadataFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<ResponseMetadata, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => ResponseMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'ResponseMetadata' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const SideBySideImplementation$inboundSchema: z.ZodType<
|
|
113
|
+
SideBySideImplementation,
|
|
114
|
+
z.ZodTypeDef,
|
|
115
|
+
unknown
|
|
116
|
+
> = z.object({
|
|
117
|
+
implementationId: z.string().optional(),
|
|
118
|
+
implementationName: z.string().optional(),
|
|
119
|
+
searchParams: z.record(z.string()).optional(),
|
|
120
|
+
response: z.string().optional(),
|
|
121
|
+
responseMetadata: z.lazy(() => ResponseMetadata$inboundSchema).optional(),
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export type SideBySideImplementation$Outbound = {
|
|
126
|
+
implementationId?: string | undefined;
|
|
127
|
+
implementationName?: string | undefined;
|
|
128
|
+
searchParams?: { [k: string]: string } | undefined;
|
|
129
|
+
response?: string | undefined;
|
|
130
|
+
responseMetadata?: ResponseMetadata$Outbound | undefined;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const SideBySideImplementation$outboundSchema: z.ZodType<
|
|
135
|
+
SideBySideImplementation$Outbound,
|
|
136
|
+
z.ZodTypeDef,
|
|
137
|
+
SideBySideImplementation
|
|
138
|
+
> = z.object({
|
|
139
|
+
implementationId: z.string().optional(),
|
|
140
|
+
implementationName: z.string().optional(),
|
|
141
|
+
searchParams: z.record(z.string()).optional(),
|
|
142
|
+
response: z.string().optional(),
|
|
143
|
+
responseMetadata: z.lazy(() => ResponseMetadata$outboundSchema).optional(),
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
149
|
+
*/
|
|
150
|
+
export namespace SideBySideImplementation$ {
|
|
151
|
+
/** @deprecated use `SideBySideImplementation$inboundSchema` instead. */
|
|
152
|
+
export const inboundSchema = SideBySideImplementation$inboundSchema;
|
|
153
|
+
/** @deprecated use `SideBySideImplementation$outboundSchema` instead. */
|
|
154
|
+
export const outboundSchema = SideBySideImplementation$outboundSchema;
|
|
155
|
+
/** @deprecated use `SideBySideImplementation$Outbound` instead. */
|
|
156
|
+
export type Outbound = SideBySideImplementation$Outbound;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function sideBySideImplementationToJSON(
|
|
160
|
+
sideBySideImplementation: SideBySideImplementation,
|
|
161
|
+
): string {
|
|
162
|
+
return JSON.stringify(
|
|
163
|
+
SideBySideImplementation$outboundSchema.parse(sideBySideImplementation),
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function sideBySideImplementationFromJSON(
|
|
168
|
+
jsonString: string,
|
|
169
|
+
): SafeParseResult<SideBySideImplementation, SDKValidationError> {
|
|
170
|
+
return safeParse(
|
|
171
|
+
jsonString,
|
|
172
|
+
(x) => SideBySideImplementation$inboundSchema.parse(JSON.parse(x)),
|
|
173
|
+
`Failed to parse 'SideBySideImplementation' from JSON`,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
@@ -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(),
|
|
@@ -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<
|