@gleanwork/api-client 0.13.18 → 0.13.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/dist/commonjs/__tests__/clientchat.test.js +0 -1344
- package/dist/commonjs/__tests__/clientchat.test.js.map +1 -1
- package/dist/commonjs/funcs/clientAnswersList.d.ts +2 -0
- package/dist/commonjs/funcs/clientAnswersList.d.ts.map +1 -1
- package/dist/commonjs/funcs/clientAnswersList.js +2 -0
- package/dist/commonjs/funcs/clientAnswersList.js.map +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesDownload.js +2 -2
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesDownload.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/sdks.js +2 -2
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/components/answer.d.ts +0 -3
- package/dist/commonjs/models/components/answer.d.ts.map +1 -1
- package/dist/commonjs/models/components/answer.js +0 -3
- package/dist/commonjs/models/components/answer.js.map +1 -1
- package/dist/commonjs/models/components/dlpfindingfilter.d.ts +2 -0
- package/dist/commonjs/models/components/dlpfindingfilter.d.ts.map +1 -1
- package/dist/commonjs/models/components/dlpfindingfilter.js +2 -0
- package/dist/commonjs/models/components/dlpfindingfilter.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/insightsoverviewresponse.d.ts +12 -0
- package/dist/commonjs/models/components/insightsoverviewresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/insightsoverviewresponse.js +14 -0
- package/dist/commonjs/models/components/insightsoverviewresponse.js.map +1 -1
- package/dist/commonjs/models/components/meeting.d.ts +25 -0
- package/dist/commonjs/models/components/meeting.d.ts.map +1 -1
- package/dist/commonjs/models/components/meeting.js +10 -0
- package/dist/commonjs/models/components/meeting.js.map +1 -1
- package/dist/commonjs/models/components/structuredresult.d.ts +0 -3
- package/dist/commonjs/models/components/structuredresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/structuredresult.js +0 -3
- package/dist/commonjs/models/components/structuredresult.js.map +1 -1
- package/dist/commonjs/react-query/_types.d.ts +7 -0
- package/dist/commonjs/react-query/_types.d.ts.map +1 -1
- package/dist/commonjs/react-query/_types.js +11 -0
- package/dist/commonjs/react-query/_types.js.map +1 -1
- package/dist/commonjs/react-query/clientAgentsRetrieve.core.d.ts +14 -0
- package/dist/commonjs/react-query/clientAgentsRetrieve.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientAgentsRetrieve.core.js +34 -0
- package/dist/commonjs/react-query/clientAgentsRetrieve.core.js.map +1 -0
- package/dist/commonjs/react-query/clientAgentsRetrieve.d.ts +3 -13
- package/dist/commonjs/react-query/clientAgentsRetrieve.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientAgentsRetrieve.js +8 -30
- package/dist/commonjs/react-query/clientAgentsRetrieve.js.map +1 -1
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.core.d.ts +14 -0
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.core.js +40 -0
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.core.js.map +1 -0
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.d.ts +3 -13
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.js +8 -36
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.js.map +1 -1
- package/dist/commonjs/react-query/clientAnswersList.d.ts +2 -0
- package/dist/commonjs/react-query/clientAnswersList.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientAnswersList.js +2 -0
- package/dist/commonjs/react-query/clientAnswersList.js.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.core.d.ts +11 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.core.js +34 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.core.js.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.d.ts +3 -10
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.js +8 -30
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.js.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.core.d.ts +15 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.core.js +34 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.core.js.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.d.ts +3 -14
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.js +8 -30
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.js.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.core.d.ts +14 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.core.js +34 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.core.js.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.d.ts +3 -13
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.js +8 -30
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.js.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.core.d.ts +11 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.core.js +34 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.core.js.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.d.ts +3 -10
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.js +8 -30
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.js.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.core.d.ts +12 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.core.js +34 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.d.ts +3 -11
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.js +8 -30
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.js.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.d.ts +14 -0
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.js +36 -0
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.js.map +1 -0
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.d.ts +3 -13
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.js +8 -32
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.js.map +1 -1
- package/dist/commonjs/react-query/clientToolsList.core.d.ts +14 -0
- package/dist/commonjs/react-query/clientToolsList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientToolsList.core.js +34 -0
- package/dist/commonjs/react-query/clientToolsList.core.js.map +1 -0
- package/dist/commonjs/react-query/clientToolsList.d.ts +3 -13
- package/dist/commonjs/react-query/clientToolsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/clientToolsList.js +8 -30
- package/dist/commonjs/react-query/clientToolsList.js.map +1 -1
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.core.d.ts +11 -0
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.core.js +34 -0
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.core.js.map +1 -0
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.d.ts +3 -10
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.d.ts.map +1 -1
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.js +8 -30
- package/dist/commonjs/react-query/governanceDownloadfindingsexport.js.map +1 -1
- package/dist/commonjs/react-query/governanceListfindingsexports.core.d.ts +12 -0
- package/dist/commonjs/react-query/governanceListfindingsexports.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/governanceListfindingsexports.core.js +34 -0
- package/dist/commonjs/react-query/governanceListfindingsexports.core.js.map +1 -0
- package/dist/commonjs/react-query/governanceListfindingsexports.d.ts +3 -11
- package/dist/commonjs/react-query/governanceListfindingsexports.d.ts.map +1 -1
- package/dist/commonjs/react-query/governanceListfindingsexports.js +8 -30
- package/dist/commonjs/react-query/governanceListfindingsexports.js.map +1 -1
- package/dist/commonjs/sdk/answers.d.ts +2 -0
- package/dist/commonjs/sdk/answers.d.ts.map +1 -1
- package/dist/commonjs/sdk/answers.js +2 -0
- package/dist/commonjs/sdk/answers.js.map +1 -1
- package/dist/esm/__tests__/clientchat.test.js +0 -1344
- package/dist/esm/__tests__/clientchat.test.js.map +1 -1
- package/dist/esm/funcs/clientAnswersList.d.ts +2 -0
- package/dist/esm/funcs/clientAnswersList.d.ts.map +1 -1
- package/dist/esm/funcs/clientAnswersList.js +2 -0
- package/dist/esm/funcs/clientAnswersList.js.map +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesDownload.js +2 -2
- package/dist/esm/funcs/clientGovernanceDataPoliciesDownload.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/sdks.js +2 -2
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/components/answer.d.ts +0 -3
- package/dist/esm/models/components/answer.d.ts.map +1 -1
- package/dist/esm/models/components/answer.js +0 -3
- package/dist/esm/models/components/answer.js.map +1 -1
- package/dist/esm/models/components/dlpfindingfilter.d.ts +2 -0
- package/dist/esm/models/components/dlpfindingfilter.d.ts.map +1 -1
- package/dist/esm/models/components/dlpfindingfilter.js +2 -0
- package/dist/esm/models/components/dlpfindingfilter.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/insightsoverviewresponse.d.ts +12 -0
- package/dist/esm/models/components/insightsoverviewresponse.d.ts.map +1 -1
- package/dist/esm/models/components/insightsoverviewresponse.js +14 -0
- package/dist/esm/models/components/insightsoverviewresponse.js.map +1 -1
- package/dist/esm/models/components/meeting.d.ts +25 -0
- package/dist/esm/models/components/meeting.d.ts.map +1 -1
- package/dist/esm/models/components/meeting.js +10 -0
- package/dist/esm/models/components/meeting.js.map +1 -1
- package/dist/esm/models/components/structuredresult.d.ts +0 -3
- package/dist/esm/models/components/structuredresult.d.ts.map +1 -1
- package/dist/esm/models/components/structuredresult.js +0 -3
- package/dist/esm/models/components/structuredresult.js.map +1 -1
- package/dist/esm/react-query/_types.d.ts +7 -0
- package/dist/esm/react-query/_types.d.ts.map +1 -1
- package/dist/esm/react-query/_types.js +10 -1
- package/dist/esm/react-query/_types.js.map +1 -1
- package/dist/esm/react-query/clientAgentsRetrieve.core.d.ts +14 -0
- package/dist/esm/react-query/clientAgentsRetrieve.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientAgentsRetrieve.core.js +29 -0
- package/dist/esm/react-query/clientAgentsRetrieve.core.js.map +1 -0
- package/dist/esm/react-query/clientAgentsRetrieve.d.ts +3 -13
- package/dist/esm/react-query/clientAgentsRetrieve.d.ts.map +1 -1
- package/dist/esm/react-query/clientAgentsRetrieve.js +2 -24
- package/dist/esm/react-query/clientAgentsRetrieve.js.map +1 -1
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.core.d.ts +14 -0
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.core.js +35 -0
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.core.js.map +1 -0
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.d.ts +3 -13
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.d.ts.map +1 -1
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.js +2 -30
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.js.map +1 -1
- package/dist/esm/react-query/clientAnswersList.d.ts +2 -0
- package/dist/esm/react-query/clientAnswersList.d.ts.map +1 -1
- package/dist/esm/react-query/clientAnswersList.js +2 -0
- package/dist/esm/react-query/clientAnswersList.js.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.core.d.ts +11 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.core.js +29 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.core.js.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.d.ts +3 -10
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.d.ts.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.js +2 -24
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.js.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.core.d.ts +15 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.core.js +29 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.core.js.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.d.ts +3 -14
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.d.ts.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.js +2 -24
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.js.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.core.d.ts +14 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.core.js +29 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.core.js.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.d.ts +3 -13
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.d.ts.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.js +2 -24
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.js.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.core.d.ts +11 -0
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.core.js +29 -0
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.core.js.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.d.ts +3 -10
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.d.ts.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.js +2 -24
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.js.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.core.d.ts +12 -0
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.core.js +29 -0
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.core.js.map +1 -0
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.d.ts +3 -11
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.d.ts.map +1 -1
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.js +2 -24
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.js.map +1 -1
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.d.ts +14 -0
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.js +31 -0
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.js.map +1 -0
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.d.ts +3 -13
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.d.ts.map +1 -1
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.js +2 -26
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.js.map +1 -1
- package/dist/esm/react-query/clientToolsList.core.d.ts +14 -0
- package/dist/esm/react-query/clientToolsList.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientToolsList.core.js +29 -0
- package/dist/esm/react-query/clientToolsList.core.js.map +1 -0
- package/dist/esm/react-query/clientToolsList.d.ts +3 -13
- package/dist/esm/react-query/clientToolsList.d.ts.map +1 -1
- package/dist/esm/react-query/clientToolsList.js +2 -24
- package/dist/esm/react-query/clientToolsList.js.map +1 -1
- package/dist/esm/react-query/governanceDownloadfindingsexport.core.d.ts +11 -0
- package/dist/esm/react-query/governanceDownloadfindingsexport.core.d.ts.map +1 -0
- package/dist/esm/react-query/governanceDownloadfindingsexport.core.js +29 -0
- package/dist/esm/react-query/governanceDownloadfindingsexport.core.js.map +1 -0
- package/dist/esm/react-query/governanceDownloadfindingsexport.d.ts +3 -10
- package/dist/esm/react-query/governanceDownloadfindingsexport.d.ts.map +1 -1
- package/dist/esm/react-query/governanceDownloadfindingsexport.js +2 -24
- package/dist/esm/react-query/governanceDownloadfindingsexport.js.map +1 -1
- package/dist/esm/react-query/governanceListfindingsexports.core.d.ts +12 -0
- package/dist/esm/react-query/governanceListfindingsexports.core.d.ts.map +1 -0
- package/dist/esm/react-query/governanceListfindingsexports.core.js +29 -0
- package/dist/esm/react-query/governanceListfindingsexports.core.js.map +1 -0
- package/dist/esm/react-query/governanceListfindingsexports.d.ts +3 -11
- package/dist/esm/react-query/governanceListfindingsexports.d.ts.map +1 -1
- package/dist/esm/react-query/governanceListfindingsexports.js +2 -24
- package/dist/esm/react-query/governanceListfindingsexports.js.map +1 -1
- package/dist/esm/sdk/answers.d.ts +2 -0
- package/dist/esm/sdk/answers.d.ts.map +1 -1
- package/dist/esm/sdk/answers.js +2 -0
- package/dist/esm/sdk/answers.js.map +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/clientchat.test.ts +0 -1365
- package/src/funcs/clientAnswersList.ts +2 -0
- package/src/funcs/clientGovernanceDataPoliciesDownload.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/answer.ts +0 -10
- package/src/models/components/dlpfindingfilter.ts +4 -0
- package/src/models/components/index.ts +0 -1
- package/src/models/components/insightsoverviewresponse.ts +26 -0
- package/src/models/components/meeting.ts +35 -0
- package/src/models/components/structuredresult.ts +0 -10
- package/src/react-query/_types.ts +13 -0
- package/src/react-query/clientAgentsRetrieve.core.ts +77 -0
- package/src/react-query/clientAgentsRetrieve.ts +12 -64
- package/src/react-query/clientAgentsRetrieveSchemas.core.ts +83 -0
- package/src/react-query/clientAgentsRetrieveSchemas.ts +12 -70
- package/src/react-query/clientAnswersList.ts +2 -0
- package/src/react-query/clientGovernanceDataPoliciesDownload.core.ts +71 -0
- package/src/react-query/clientGovernanceDataPoliciesDownload.ts +12 -58
- package/src/react-query/clientGovernanceDataPoliciesList.core.ts +80 -0
- package/src/react-query/clientGovernanceDataPoliciesList.ts +12 -67
- package/src/react-query/clientGovernanceDataPoliciesRetrieve.core.ts +78 -0
- package/src/react-query/clientGovernanceDataPoliciesRetrieve.ts +12 -65
- package/src/react-query/clientGovernanceDataReportsDownload.core.ts +71 -0
- package/src/react-query/clientGovernanceDataReportsDownload.ts +12 -58
- package/src/react-query/clientGovernanceDataReportsStatus.core.ts +73 -0
- package/src/react-query/clientGovernanceDataReportsStatus.ts +12 -60
- package/src/react-query/clientGovernanceDocumentsVisibilityoverridesList.core.ts +76 -0
- package/src/react-query/clientGovernanceDocumentsVisibilityoverridesList.ts +12 -63
- package/src/react-query/clientToolsList.core.ts +70 -0
- package/src/react-query/clientToolsList.ts +12 -57
- package/src/react-query/governanceDownloadfindingsexport.core.ts +69 -0
- package/src/react-query/governanceDownloadfindingsexport.ts +12 -56
- package/src/react-query/governanceListfindingsexports.core.ts +67 -0
- package/src/react-query/governanceListfindingsexports.ts +12 -54
- package/src/sdk/answers.ts +2 -0
- package/dist/commonjs/models/components/answerboard.d.ts +0 -69
- package/dist/commonjs/models/components/answerboard.d.ts.map +0 -1
- package/dist/commonjs/models/components/answerboard.js +0 -92
- package/dist/commonjs/models/components/answerboard.js.map +0 -1
- package/dist/esm/models/components/answerboard.d.ts +0 -69
- package/dist/esm/models/components/answerboard.d.ts.map +0 -1
- package/dist/esm/models/components/answerboard.js +0 -54
- package/dist/esm/models/components/answerboard.js.map +0 -1
- package/src/models/components/answerboard.ts +0 -149
|
@@ -29,6 +29,8 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
* List Answers created by the current user.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
34
|
*/
|
|
33
35
|
export function clientAnswersList(
|
|
34
36
|
client: GleanCore,
|
|
@@ -141,7 +141,7 @@ async function $do(
|
|
|
141
141
|
|
|
142
142
|
const doResult = await client._do(req, {
|
|
143
143
|
context,
|
|
144
|
-
errorCodes: ["403", "4XX", "500", "5XX"],
|
|
144
|
+
errorCodes: ["400", "403", "4XX", "500", "5XX"],
|
|
145
145
|
retryConfig: context.retryConfig,
|
|
146
146
|
retryCodes: context.retryCodes,
|
|
147
147
|
});
|
|
@@ -162,7 +162,7 @@ async function $do(
|
|
|
162
162
|
| SDKValidationError
|
|
163
163
|
>(
|
|
164
164
|
M.text(200, z.string(), { ctype: "text/csv; charset=UTF-8" }),
|
|
165
|
-
M.fail([403, "4XX"]),
|
|
165
|
+
M.fail([400, 403, "4XX"]),
|
|
166
166
|
M.fail([500, "5XX"]),
|
|
167
167
|
)(response, req);
|
|
168
168
|
if (!result.ok) {
|
package/src/lib/config.ts
CHANGED
|
@@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "0.9.0",
|
|
71
|
-
sdkVersion: "0.13.
|
|
72
|
-
genVersion: "2.
|
|
71
|
+
sdkVersion: "0.13.19",
|
|
72
|
+
genVersion: "2.794.1",
|
|
73
73
|
userAgent:
|
|
74
|
-
"speakeasy-sdk/typescript 0.13.
|
|
74
|
+
"speakeasy-sdk/typescript 0.13.19 2.794.1 0.9.0 @gleanwork/api-client",
|
|
75
75
|
} as const;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -308,9 +308,9 @@ export class ClientSDK {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
const jsonLikeContentTypeRE =
|
|
311
|
+
const jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
|
|
312
312
|
const jsonlLikeContentTypeRE =
|
|
313
|
-
|
|
313
|
+
/^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
|
|
314
314
|
async function logRequest(logger: Logger | undefined, req: Request) {
|
|
315
315
|
if (!logger) {
|
|
316
316
|
return;
|
|
@@ -7,12 +7,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
AnswerBoard,
|
|
12
|
-
AnswerBoard$inboundSchema,
|
|
13
|
-
AnswerBoard$Outbound,
|
|
14
|
-
AnswerBoard$outboundSchema,
|
|
15
|
-
} from "./answerboard.js";
|
|
16
10
|
import {
|
|
17
11
|
AnswerLikes,
|
|
18
12
|
AnswerLikes$inboundSchema,
|
|
@@ -136,7 +130,6 @@ export type Answer = {
|
|
|
136
130
|
updateTime?: Date | undefined;
|
|
137
131
|
updatedBy?: Person | undefined;
|
|
138
132
|
verification?: Verification | undefined;
|
|
139
|
-
board?: AnswerBoard | undefined;
|
|
140
133
|
/**
|
|
141
134
|
* The collections to which the answer belongs.
|
|
142
135
|
*/
|
|
@@ -187,7 +180,6 @@ export const Answer$inboundSchema: z.ZodType<Answer, z.ZodTypeDef, unknown> = z
|
|
|
187
180
|
).optional(),
|
|
188
181
|
updatedBy: z.lazy(() => Person$inboundSchema).optional(),
|
|
189
182
|
verification: z.lazy(() => Verification$inboundSchema).optional(),
|
|
190
|
-
board: z.lazy(() => AnswerBoard$inboundSchema).optional(),
|
|
191
183
|
collections: z.array(z.lazy(() => Collection$inboundSchema)).optional(),
|
|
192
184
|
documentCategory: z.string().optional(),
|
|
193
185
|
sourceDocument: z.lazy(() => Document$inboundSchema).optional(),
|
|
@@ -214,7 +206,6 @@ export type Answer$Outbound = {
|
|
|
214
206
|
updateTime?: string | undefined;
|
|
215
207
|
updatedBy?: Person$Outbound | undefined;
|
|
216
208
|
verification?: Verification$Outbound | undefined;
|
|
217
|
-
board?: AnswerBoard$Outbound | undefined;
|
|
218
209
|
collections?: Array<Collection$Outbound> | undefined;
|
|
219
210
|
documentCategory?: string | undefined;
|
|
220
211
|
sourceDocument?: Document$Outbound | undefined;
|
|
@@ -248,7 +239,6 @@ export const Answer$outboundSchema: z.ZodType<
|
|
|
248
239
|
updateTime: z.date().transform(v => v.toISOString()).optional(),
|
|
249
240
|
updatedBy: z.lazy(() => Person$outboundSchema).optional(),
|
|
250
241
|
verification: z.lazy(() => Verification$outboundSchema).optional(),
|
|
251
|
-
board: z.lazy(() => AnswerBoard$outboundSchema).optional(),
|
|
252
242
|
collections: z.array(z.lazy(() => Collection$outboundSchema)).optional(),
|
|
253
243
|
documentCategory: z.string().optional(),
|
|
254
244
|
sourceDocument: z.lazy(() => Document$outboundSchema).optional(),
|
|
@@ -31,6 +31,7 @@ export type DlpFindingFilter = {
|
|
|
31
31
|
severity?: DlpSeverity | undefined;
|
|
32
32
|
documentSeverity?: Array<DlpSeverity> | undefined;
|
|
33
33
|
timeRange?: TimeRangeFilter | undefined;
|
|
34
|
+
archived?: boolean | undefined;
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
/** @internal */
|
|
@@ -48,6 +49,7 @@ export const DlpFindingFilter$inboundSchema: z.ZodType<
|
|
|
48
49
|
severity: DlpSeverity$inboundSchema.optional(),
|
|
49
50
|
documentSeverity: z.array(DlpSeverity$inboundSchema).optional(),
|
|
50
51
|
timeRange: TimeRangeFilter$inboundSchema.optional(),
|
|
52
|
+
archived: z.boolean().optional(),
|
|
51
53
|
});
|
|
52
54
|
/** @internal */
|
|
53
55
|
export type DlpFindingFilter$Outbound = {
|
|
@@ -60,6 +62,7 @@ export type DlpFindingFilter$Outbound = {
|
|
|
60
62
|
severity?: string | undefined;
|
|
61
63
|
documentSeverity?: Array<string> | undefined;
|
|
62
64
|
timeRange?: TimeRangeFilter$Outbound | undefined;
|
|
65
|
+
archived?: boolean | undefined;
|
|
63
66
|
};
|
|
64
67
|
|
|
65
68
|
/** @internal */
|
|
@@ -77,6 +80,7 @@ export const DlpFindingFilter$outboundSchema: z.ZodType<
|
|
|
77
80
|
severity: DlpSeverity$outboundSchema.optional(),
|
|
78
81
|
documentSeverity: z.array(DlpSeverity$outboundSchema).optional(),
|
|
79
82
|
timeRange: TimeRangeFilter$outboundSchema.optional(),
|
|
83
|
+
archived: z.boolean().optional(),
|
|
80
84
|
});
|
|
81
85
|
|
|
82
86
|
export function dlpFindingFilterToJSON(
|
|
@@ -27,7 +27,6 @@ export * from "./allowlistoptions.js";
|
|
|
27
27
|
export * from "./announcement.js";
|
|
28
28
|
export * from "./anonymousevent.js";
|
|
29
29
|
export * from "./answer.js";
|
|
30
|
-
export * from "./answerboard.js";
|
|
31
30
|
export * from "./answercreationdata.js";
|
|
32
31
|
export * from "./answerlike.js";
|
|
33
32
|
export * from "./answerlikes.js";
|
|
@@ -63,6 +63,18 @@ export type InsightsOverviewResponse = {
|
|
|
63
63
|
monthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
64
64
|
weeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
65
65
|
dailyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
66
|
+
searchMonthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
67
|
+
searchWeeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
68
|
+
searchDailyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
69
|
+
assistantMonthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
70
|
+
assistantWeeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
71
|
+
assistantDailyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
72
|
+
agentsMonthlyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
73
|
+
agentsWeeklyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
74
|
+
agentsDailyActiveUserTimeseries?: LabeledCountInfo | undefined;
|
|
75
|
+
searchesTimeseries?: LabeledCountInfo | undefined;
|
|
76
|
+
assistantInteractionsTimeseries?: LabeledCountInfo | undefined;
|
|
77
|
+
agentRunsTimeseries?: LabeledCountInfo | undefined;
|
|
66
78
|
/**
|
|
67
79
|
* Counts of search result clicks, by datasource, over the specified time period in the specified departments.
|
|
68
80
|
*/
|
|
@@ -97,6 +109,20 @@ export const InsightsOverviewResponse$inboundSchema: z.ZodType<
|
|
|
97
109
|
monthlyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
98
110
|
weeklyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
99
111
|
dailyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
112
|
+
searchMonthlyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
113
|
+
searchWeeklyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
114
|
+
searchDailyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
115
|
+
assistantMonthlyActiveUserTimeseries: LabeledCountInfo$inboundSchema
|
|
116
|
+
.optional(),
|
|
117
|
+
assistantWeeklyActiveUserTimeseries: LabeledCountInfo$inboundSchema
|
|
118
|
+
.optional(),
|
|
119
|
+
assistantDailyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
120
|
+
agentsMonthlyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
121
|
+
agentsWeeklyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
122
|
+
agentsDailyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
123
|
+
searchesTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
124
|
+
assistantInteractionsTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
125
|
+
agentRunsTimeseries: LabeledCountInfo$inboundSchema.optional(),
|
|
100
126
|
searchDatasourceCounts: z.record(z.number().int()).optional(),
|
|
101
127
|
chatDatasourceCounts: z.record(z.number().int()).optional(),
|
|
102
128
|
perUserInsights: z.array(PerUserInsight$inboundSchema).optional(),
|
|
@@ -21,6 +21,26 @@ export type Meeting = {
|
|
|
21
21
|
startTime?: Date | undefined;
|
|
22
22
|
endTime?: Date | undefined;
|
|
23
23
|
attendees?: CalendarAttendees | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the meeting has been cancelled
|
|
26
|
+
*/
|
|
27
|
+
isCancelled?: boolean | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The location/venue of the meeting
|
|
30
|
+
*/
|
|
31
|
+
location?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The current user's response status (accepted, declined, tentativelyAccepted, none)
|
|
34
|
+
*/
|
|
35
|
+
responseStatus?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The meeting join link (Teams, Zoom, etc.)
|
|
38
|
+
*/
|
|
39
|
+
conferenceUri?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The conference provider (e.g., "Microsoft Teams", "Zoom")
|
|
42
|
+
*/
|
|
43
|
+
conferenceProvider?: string | undefined;
|
|
24
44
|
};
|
|
25
45
|
|
|
26
46
|
/** @internal */
|
|
@@ -35,6 +55,11 @@ export const Meeting$inboundSchema: z.ZodType<Meeting, z.ZodTypeDef, unknown> =
|
|
|
35
55
|
endTime: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
36
56
|
.optional(),
|
|
37
57
|
attendees: z.lazy(() => CalendarAttendees$inboundSchema).optional(),
|
|
58
|
+
isCancelled: z.boolean().optional(),
|
|
59
|
+
location: z.string().optional(),
|
|
60
|
+
responseStatus: z.string().optional(),
|
|
61
|
+
conferenceUri: z.string().optional(),
|
|
62
|
+
conferenceProvider: z.string().optional(),
|
|
38
63
|
});
|
|
39
64
|
/** @internal */
|
|
40
65
|
export type Meeting$Outbound = {
|
|
@@ -45,6 +70,11 @@ export type Meeting$Outbound = {
|
|
|
45
70
|
startTime?: string | undefined;
|
|
46
71
|
endTime?: string | undefined;
|
|
47
72
|
attendees?: CalendarAttendees$Outbound | undefined;
|
|
73
|
+
isCancelled?: boolean | undefined;
|
|
74
|
+
location?: string | undefined;
|
|
75
|
+
responseStatus?: string | undefined;
|
|
76
|
+
conferenceUri?: string | undefined;
|
|
77
|
+
conferenceProvider?: string | undefined;
|
|
48
78
|
};
|
|
49
79
|
|
|
50
80
|
/** @internal */
|
|
@@ -60,6 +90,11 @@ export const Meeting$outboundSchema: z.ZodType<
|
|
|
60
90
|
startTime: z.date().transform(v => v.toISOString()).optional(),
|
|
61
91
|
endTime: z.date().transform(v => v.toISOString()).optional(),
|
|
62
92
|
attendees: z.lazy(() => CalendarAttendees$outboundSchema).optional(),
|
|
93
|
+
isCancelled: z.boolean().optional(),
|
|
94
|
+
location: z.string().optional(),
|
|
95
|
+
responseStatus: z.string().optional(),
|
|
96
|
+
conferenceUri: z.string().optional(),
|
|
97
|
+
conferenceProvider: z.string().optional(),
|
|
63
98
|
});
|
|
64
99
|
|
|
65
100
|
export function meetingToJSON(meeting: Meeting): string {
|
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
Answer$Outbound,
|
|
14
14
|
Answer$outboundSchema,
|
|
15
15
|
} from "./answer.js";
|
|
16
|
-
import {
|
|
17
|
-
AnswerBoard,
|
|
18
|
-
AnswerBoard$inboundSchema,
|
|
19
|
-
AnswerBoard$Outbound,
|
|
20
|
-
AnswerBoard$outboundSchema,
|
|
21
|
-
} from "./answerboard.js";
|
|
22
16
|
import {
|
|
23
17
|
AppResult,
|
|
24
18
|
AppResult$inboundSchema,
|
|
@@ -179,7 +173,6 @@ export type StructuredResult = {
|
|
|
179
173
|
meeting?: Meeting | undefined;
|
|
180
174
|
app?: AppResult | undefined;
|
|
181
175
|
collection?: Collection | undefined;
|
|
182
|
-
answerBoard?: AnswerBoard | undefined;
|
|
183
176
|
code?: Code | undefined;
|
|
184
177
|
shortcut?: Shortcut | undefined;
|
|
185
178
|
querySuggestions?: QuerySuggestionList | undefined;
|
|
@@ -247,7 +240,6 @@ export const StructuredResult$inboundSchema: z.ZodType<
|
|
|
247
240
|
meeting: z.lazy(() => Meeting$inboundSchema).optional(),
|
|
248
241
|
app: AppResult$inboundSchema.optional(),
|
|
249
242
|
collection: z.lazy(() => Collection$inboundSchema).optional(),
|
|
250
|
-
answerBoard: z.lazy(() => AnswerBoard$inboundSchema).optional(),
|
|
251
243
|
code: z.lazy(() => Code$inboundSchema).optional(),
|
|
252
244
|
shortcut: z.lazy(() => Shortcut$inboundSchema).optional(),
|
|
253
245
|
querySuggestions: z.lazy(() => QuerySuggestionList$inboundSchema).optional(),
|
|
@@ -274,7 +266,6 @@ export type StructuredResult$Outbound = {
|
|
|
274
266
|
meeting?: Meeting$Outbound | undefined;
|
|
275
267
|
app?: AppResult$Outbound | undefined;
|
|
276
268
|
collection?: Collection$Outbound | undefined;
|
|
277
|
-
answerBoard?: AnswerBoard$Outbound | undefined;
|
|
278
269
|
code?: Code$Outbound | undefined;
|
|
279
270
|
shortcut?: Shortcut$Outbound | undefined;
|
|
280
271
|
querySuggestions?: QuerySuggestionList$Outbound | undefined;
|
|
@@ -305,7 +296,6 @@ export const StructuredResult$outboundSchema: z.ZodType<
|
|
|
305
296
|
meeting: z.lazy(() => Meeting$outboundSchema).optional(),
|
|
306
297
|
app: AppResult$outboundSchema.optional(),
|
|
307
298
|
collection: z.lazy(() => Collection$outboundSchema).optional(),
|
|
308
|
-
answerBoard: z.lazy(() => AnswerBoard$outboundSchema).optional(),
|
|
309
299
|
code: z.lazy(() => Code$outboundSchema).optional(),
|
|
310
300
|
shortcut: z.lazy(() => Shortcut$outboundSchema).optional(),
|
|
311
301
|
querySuggestions: z.lazy(() => QuerySuggestionList$outboundSchema).optional(),
|
|
@@ -160,3 +160,16 @@ export type MutationHookOptions<
|
|
|
160
160
|
"mutationKey" | "mutationFn" | keyof RequestOptions
|
|
161
161
|
>
|
|
162
162
|
& RequestOptions;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Removes non-serializable properties (functions and symbols) from a PageIterator for SSR hydration.
|
|
166
|
+
* React Server Components cannot serialize functions or Symbol properties across the server/client boundary.
|
|
167
|
+
*/
|
|
168
|
+
export function pageIteratorToJSON<T extends { "~next"?: unknown }>(
|
|
169
|
+
page: T,
|
|
170
|
+
): T {
|
|
171
|
+
const { next: _, ...rest } = page as T & { next?: unknown };
|
|
172
|
+
// Symbol properties are copied by spread but can't be serialized for RSC
|
|
173
|
+
delete (rest as Record<symbol, unknown>)[Symbol.asyncIterator];
|
|
174
|
+
return rest as T;
|
|
175
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
QueryClient,
|
|
7
|
+
QueryFunctionContext,
|
|
8
|
+
QueryKey,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { GleanCore } from "../core.js";
|
|
11
|
+
import { clientAgentsRetrieve } from "../funcs/clientAgentsRetrieve.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
16
|
+
export type ClientAgentsRetrieveQueryData = components.Agent;
|
|
17
|
+
|
|
18
|
+
export function prefetchClientAgentsRetrieve(
|
|
19
|
+
queryClient: QueryClient,
|
|
20
|
+
client$: GleanCore,
|
|
21
|
+
agentId: string,
|
|
22
|
+
timezoneOffset?: number | undefined,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<void> {
|
|
25
|
+
return queryClient.prefetchQuery({
|
|
26
|
+
...buildClientAgentsRetrieveQuery(
|
|
27
|
+
client$,
|
|
28
|
+
agentId,
|
|
29
|
+
timezoneOffset,
|
|
30
|
+
options,
|
|
31
|
+
),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function buildClientAgentsRetrieveQuery(
|
|
36
|
+
client$: GleanCore,
|
|
37
|
+
agentId: string,
|
|
38
|
+
timezoneOffset?: number | undefined,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): {
|
|
41
|
+
queryKey: QueryKey;
|
|
42
|
+
queryFn: (
|
|
43
|
+
context: QueryFunctionContext,
|
|
44
|
+
) => Promise<ClientAgentsRetrieveQueryData>;
|
|
45
|
+
} {
|
|
46
|
+
return {
|
|
47
|
+
queryKey: queryKeyClientAgentsRetrieve(agentId, { timezoneOffset }),
|
|
48
|
+
queryFn: async function clientAgentsRetrieveQueryFn(
|
|
49
|
+
ctx,
|
|
50
|
+
): Promise<ClientAgentsRetrieveQueryData> {
|
|
51
|
+
const sig = combineSignals(
|
|
52
|
+
ctx.signal,
|
|
53
|
+
options?.signal,
|
|
54
|
+
options?.fetchOptions?.signal,
|
|
55
|
+
);
|
|
56
|
+
const mergedOptions = {
|
|
57
|
+
...options?.fetchOptions,
|
|
58
|
+
...options,
|
|
59
|
+
signal: sig,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return unwrapAsync(clientAgentsRetrieve(
|
|
63
|
+
client$,
|
|
64
|
+
agentId,
|
|
65
|
+
timezoneOffset,
|
|
66
|
+
mergedOptions,
|
|
67
|
+
));
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function queryKeyClientAgentsRetrieve(
|
|
73
|
+
agentId: string,
|
|
74
|
+
parameters: { timezoneOffset?: number | undefined },
|
|
75
|
+
): QueryKey {
|
|
76
|
+
return ["@gleanwork/api-client", "agents", "retrieve", agentId, parameters];
|
|
77
|
+
}
|
|
@@ -5,27 +5,29 @@
|
|
|
5
5
|
import {
|
|
6
6
|
InvalidateQueryFilters,
|
|
7
7
|
QueryClient,
|
|
8
|
-
QueryFunctionContext,
|
|
9
|
-
QueryKey,
|
|
10
8
|
useQuery,
|
|
11
9
|
UseQueryResult,
|
|
12
10
|
useSuspenseQuery,
|
|
13
11
|
UseSuspenseQueryResult,
|
|
14
12
|
} from "@tanstack/react-query";
|
|
15
|
-
import { GleanCore } from "../core.js";
|
|
16
|
-
import { clientAgentsRetrieve } from "../funcs/clientAgentsRetrieve.js";
|
|
17
|
-
import { combineSignals } from "../lib/primitives.js";
|
|
18
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
19
|
-
import * as components from "../models/components/index.js";
|
|
20
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
21
13
|
import { useGleanContext } from "./_context.js";
|
|
22
14
|
import {
|
|
23
15
|
QueryHookOptions,
|
|
24
16
|
SuspenseQueryHookOptions,
|
|
25
17
|
TupleToPrefixes,
|
|
26
18
|
} from "./_types.js";
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
import {
|
|
20
|
+
buildClientAgentsRetrieveQuery,
|
|
21
|
+
ClientAgentsRetrieveQueryData,
|
|
22
|
+
prefetchClientAgentsRetrieve,
|
|
23
|
+
queryKeyClientAgentsRetrieve,
|
|
24
|
+
} from "./clientAgentsRetrieve.core.js";
|
|
25
|
+
export {
|
|
26
|
+
buildClientAgentsRetrieveQuery,
|
|
27
|
+
type ClientAgentsRetrieveQueryData,
|
|
28
|
+
prefetchClientAgentsRetrieve,
|
|
29
|
+
queryKeyClientAgentsRetrieve,
|
|
30
|
+
};
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
33
|
* Retrieve an agent
|
|
@@ -73,21 +75,6 @@ export function useClientAgentsRetrieveSuspense(
|
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
export function prefetchClientAgentsRetrieve(
|
|
77
|
-
queryClient: QueryClient,
|
|
78
|
-
client$: GleanCore,
|
|
79
|
-
agentId: string,
|
|
80
|
-
timezoneOffset?: number | undefined,
|
|
81
|
-
): Promise<void> {
|
|
82
|
-
return queryClient.prefetchQuery({
|
|
83
|
-
...buildClientAgentsRetrieveQuery(
|
|
84
|
-
client$,
|
|
85
|
-
agentId,
|
|
86
|
-
timezoneOffset,
|
|
87
|
-
),
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
78
|
export function setClientAgentsRetrieveData(
|
|
92
79
|
client: QueryClient,
|
|
93
80
|
queryKeyBase: [
|
|
@@ -123,42 +110,3 @@ export function invalidateAllClientAgentsRetrieve(
|
|
|
123
110
|
queryKey: ["@gleanwork/api-client", "agents", "retrieve"],
|
|
124
111
|
});
|
|
125
112
|
}
|
|
126
|
-
|
|
127
|
-
export function buildClientAgentsRetrieveQuery(
|
|
128
|
-
client$: GleanCore,
|
|
129
|
-
agentId: string,
|
|
130
|
-
timezoneOffset?: number | undefined,
|
|
131
|
-
options?: RequestOptions,
|
|
132
|
-
): {
|
|
133
|
-
queryKey: QueryKey;
|
|
134
|
-
queryFn: (
|
|
135
|
-
context: QueryFunctionContext,
|
|
136
|
-
) => Promise<ClientAgentsRetrieveQueryData>;
|
|
137
|
-
} {
|
|
138
|
-
return {
|
|
139
|
-
queryKey: queryKeyClientAgentsRetrieve(agentId, { timezoneOffset }),
|
|
140
|
-
queryFn: async function clientAgentsRetrieveQueryFn(
|
|
141
|
-
ctx,
|
|
142
|
-
): Promise<ClientAgentsRetrieveQueryData> {
|
|
143
|
-
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
144
|
-
const mergedOptions = {
|
|
145
|
-
...options,
|
|
146
|
-
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
return unwrapAsync(clientAgentsRetrieve(
|
|
150
|
-
client$,
|
|
151
|
-
agentId,
|
|
152
|
-
timezoneOffset,
|
|
153
|
-
mergedOptions,
|
|
154
|
-
));
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export function queryKeyClientAgentsRetrieve(
|
|
160
|
-
agentId: string,
|
|
161
|
-
parameters: { timezoneOffset?: number | undefined },
|
|
162
|
-
): QueryKey {
|
|
163
|
-
return ["@gleanwork/api-client", "agents", "retrieve", agentId, parameters];
|
|
164
|
-
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
QueryClient,
|
|
7
|
+
QueryFunctionContext,
|
|
8
|
+
QueryKey,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { GleanCore } from "../core.js";
|
|
11
|
+
import { clientAgentsRetrieveSchemas } from "../funcs/clientAgentsRetrieveSchemas.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
16
|
+
export type ClientAgentsRetrieveSchemasQueryData = components.AgentSchemas;
|
|
17
|
+
|
|
18
|
+
export function prefetchClientAgentsRetrieveSchemas(
|
|
19
|
+
queryClient: QueryClient,
|
|
20
|
+
client$: GleanCore,
|
|
21
|
+
agentId: string,
|
|
22
|
+
timezoneOffset?: number | undefined,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<void> {
|
|
25
|
+
return queryClient.prefetchQuery({
|
|
26
|
+
...buildClientAgentsRetrieveSchemasQuery(
|
|
27
|
+
client$,
|
|
28
|
+
agentId,
|
|
29
|
+
timezoneOffset,
|
|
30
|
+
options,
|
|
31
|
+
),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function buildClientAgentsRetrieveSchemasQuery(
|
|
36
|
+
client$: GleanCore,
|
|
37
|
+
agentId: string,
|
|
38
|
+
timezoneOffset?: number | undefined,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): {
|
|
41
|
+
queryKey: QueryKey;
|
|
42
|
+
queryFn: (
|
|
43
|
+
context: QueryFunctionContext,
|
|
44
|
+
) => Promise<ClientAgentsRetrieveSchemasQueryData>;
|
|
45
|
+
} {
|
|
46
|
+
return {
|
|
47
|
+
queryKey: queryKeyClientAgentsRetrieveSchemas(agentId, { timezoneOffset }),
|
|
48
|
+
queryFn: async function clientAgentsRetrieveSchemasQueryFn(
|
|
49
|
+
ctx,
|
|
50
|
+
): Promise<ClientAgentsRetrieveSchemasQueryData> {
|
|
51
|
+
const sig = combineSignals(
|
|
52
|
+
ctx.signal,
|
|
53
|
+
options?.signal,
|
|
54
|
+
options?.fetchOptions?.signal,
|
|
55
|
+
);
|
|
56
|
+
const mergedOptions = {
|
|
57
|
+
...options?.fetchOptions,
|
|
58
|
+
...options,
|
|
59
|
+
signal: sig,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return unwrapAsync(clientAgentsRetrieveSchemas(
|
|
63
|
+
client$,
|
|
64
|
+
agentId,
|
|
65
|
+
timezoneOffset,
|
|
66
|
+
mergedOptions,
|
|
67
|
+
));
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function queryKeyClientAgentsRetrieveSchemas(
|
|
73
|
+
agentId: string,
|
|
74
|
+
parameters: { timezoneOffset?: number | undefined },
|
|
75
|
+
): QueryKey {
|
|
76
|
+
return [
|
|
77
|
+
"@gleanwork/api-client",
|
|
78
|
+
"agents",
|
|
79
|
+
"retrieveSchemas",
|
|
80
|
+
agentId,
|
|
81
|
+
parameters,
|
|
82
|
+
];
|
|
83
|
+
}
|
|
@@ -5,27 +5,29 @@
|
|
|
5
5
|
import {
|
|
6
6
|
InvalidateQueryFilters,
|
|
7
7
|
QueryClient,
|
|
8
|
-
QueryFunctionContext,
|
|
9
|
-
QueryKey,
|
|
10
8
|
useQuery,
|
|
11
9
|
UseQueryResult,
|
|
12
10
|
useSuspenseQuery,
|
|
13
11
|
UseSuspenseQueryResult,
|
|
14
12
|
} from "@tanstack/react-query";
|
|
15
|
-
import { GleanCore } from "../core.js";
|
|
16
|
-
import { clientAgentsRetrieveSchemas } from "../funcs/clientAgentsRetrieveSchemas.js";
|
|
17
|
-
import { combineSignals } from "../lib/primitives.js";
|
|
18
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
19
|
-
import * as components from "../models/components/index.js";
|
|
20
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
21
13
|
import { useGleanContext } from "./_context.js";
|
|
22
14
|
import {
|
|
23
15
|
QueryHookOptions,
|
|
24
16
|
SuspenseQueryHookOptions,
|
|
25
17
|
TupleToPrefixes,
|
|
26
18
|
} from "./_types.js";
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
import {
|
|
20
|
+
buildClientAgentsRetrieveSchemasQuery,
|
|
21
|
+
ClientAgentsRetrieveSchemasQueryData,
|
|
22
|
+
prefetchClientAgentsRetrieveSchemas,
|
|
23
|
+
queryKeyClientAgentsRetrieveSchemas,
|
|
24
|
+
} from "./clientAgentsRetrieveSchemas.core.js";
|
|
25
|
+
export {
|
|
26
|
+
buildClientAgentsRetrieveSchemasQuery,
|
|
27
|
+
type ClientAgentsRetrieveSchemasQueryData,
|
|
28
|
+
prefetchClientAgentsRetrieveSchemas,
|
|
29
|
+
queryKeyClientAgentsRetrieveSchemas,
|
|
30
|
+
};
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
33
|
* List an agent's schemas
|
|
@@ -73,21 +75,6 @@ export function useClientAgentsRetrieveSchemasSuspense(
|
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
export function prefetchClientAgentsRetrieveSchemas(
|
|
77
|
-
queryClient: QueryClient,
|
|
78
|
-
client$: GleanCore,
|
|
79
|
-
agentId: string,
|
|
80
|
-
timezoneOffset?: number | undefined,
|
|
81
|
-
): Promise<void> {
|
|
82
|
-
return queryClient.prefetchQuery({
|
|
83
|
-
...buildClientAgentsRetrieveSchemasQuery(
|
|
84
|
-
client$,
|
|
85
|
-
agentId,
|
|
86
|
-
timezoneOffset,
|
|
87
|
-
),
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
78
|
export function setClientAgentsRetrieveSchemasData(
|
|
92
79
|
client: QueryClient,
|
|
93
80
|
queryKeyBase: [
|
|
@@ -128,48 +115,3 @@ export function invalidateAllClientAgentsRetrieveSchemas(
|
|
|
128
115
|
queryKey: ["@gleanwork/api-client", "agents", "retrieveSchemas"],
|
|
129
116
|
});
|
|
130
117
|
}
|
|
131
|
-
|
|
132
|
-
export function buildClientAgentsRetrieveSchemasQuery(
|
|
133
|
-
client$: GleanCore,
|
|
134
|
-
agentId: string,
|
|
135
|
-
timezoneOffset?: number | undefined,
|
|
136
|
-
options?: RequestOptions,
|
|
137
|
-
): {
|
|
138
|
-
queryKey: QueryKey;
|
|
139
|
-
queryFn: (
|
|
140
|
-
context: QueryFunctionContext,
|
|
141
|
-
) => Promise<ClientAgentsRetrieveSchemasQueryData>;
|
|
142
|
-
} {
|
|
143
|
-
return {
|
|
144
|
-
queryKey: queryKeyClientAgentsRetrieveSchemas(agentId, { timezoneOffset }),
|
|
145
|
-
queryFn: async function clientAgentsRetrieveSchemasQueryFn(
|
|
146
|
-
ctx,
|
|
147
|
-
): Promise<ClientAgentsRetrieveSchemasQueryData> {
|
|
148
|
-
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
149
|
-
const mergedOptions = {
|
|
150
|
-
...options,
|
|
151
|
-
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
return unwrapAsync(clientAgentsRetrieveSchemas(
|
|
155
|
-
client$,
|
|
156
|
-
agentId,
|
|
157
|
-
timezoneOffset,
|
|
158
|
-
mergedOptions,
|
|
159
|
-
));
|
|
160
|
-
},
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export function queryKeyClientAgentsRetrieveSchemas(
|
|
165
|
-
agentId: string,
|
|
166
|
-
parameters: { timezoneOffset?: number | undefined },
|
|
167
|
-
): QueryKey {
|
|
168
|
-
return [
|
|
169
|
-
"@gleanwork/api-client",
|
|
170
|
-
"agents",
|
|
171
|
-
"retrieveSchemas",
|
|
172
|
-
agentId,
|
|
173
|
-
parameters,
|
|
174
|
-
];
|
|
175
|
-
}
|
|
@@ -28,6 +28,8 @@ export type ClientAnswersListMutationData = components.ListAnswersResponse;
|
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
30
|
* List Answers created by the current user.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
33
|
*/
|
|
32
34
|
export function useClientAnswersListMutation(
|
|
33
35
|
options?: MutationHookOptions<
|