From 27f1f1e697b53688ac2ca80b61a2573f390a4c3c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 May 2025 14:44:03 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.541.2 --- .gitignore | 2 + .speakeasy/gen.lock | 95 +--- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 211 ++------ .speakeasy/workflow.lock | 14 +- RELEASES.md | 12 +- .../operations/addcollectionitemsrequest.md | 21 - .../addverificationreminderrequest.md | 21 - docs/models/operations/adminsearchrequest.md | 50 -- docs/models/operations/autocompleterequest.md | 24 - docs/models/operations/chatrequest.md | 10 +- .../operations/createannouncementrequest.md | 43 -- docs/models/operations/createanswerrequest.md | 63 --- .../operations/createauthtokenrequest.md | 16 - .../operations/createcollectionrequest.md | 50 -- .../operations/createshortcutrequest.md | 36 -- .../operations/deleteallchatsrequest.md | 8 +- .../operations/deleteannouncementrequest.md | 21 - docs/models/operations/deleteanswerrequest.md | 22 - .../operations/deletechatfilesrequest.md | 10 +- docs/models/operations/deletechatsrequest.md | 10 +- .../operations/deletecollectionitemrequest.md | 22 - .../operations/deletecollectionrequest.md | 23 - .../operations/deleteshortcutrequest.md | 21 - docs/models/operations/editanswerrequest.md | 63 --- .../operations/editcollectionitemrequest.md | 22 - .../operations/editcollectionrequest.md | 51 -- docs/models/operations/editpinrequest.md | 35 -- docs/models/operations/feedbackrequest.md | 10 +- docs/models/operations/feedrequest.md | 21 - .../operations/getagentinputsrequest.md | 10 +- docs/models/operations/getanswerrequest.md | 22 - .../operations/getchatapplicationrequest.md | 10 +- docs/models/operations/getchatfilesrequest.md | 10 +- docs/models/operations/getchatrequest.md | 10 +- .../models/operations/getcollectionrequest.md | 21 - .../operations/getdocpermissionsrequest.md | 19 - .../operations/getdocumentsbyfacetsrequest.md | 39 -- docs/models/operations/getdocumentsrequest.md | 17 - docs/models/operations/getpinrequest.md | 19 - docs/models/operations/getshortcutrequest.md | 19 - docs/models/operations/insightsrequest.md | 23 - docs/models/operations/listagentsrequest.md | 10 +- docs/models/operations/listanswersrequest.md | 19 - docs/models/operations/listchatsrequest.md | 8 +- .../operations/listcollectionsrequest.md | 19 - docs/models/operations/listentitiesrequest.md | 36 -- docs/models/operations/listpinsrequest.md | 13 +- docs/models/operations/listpinsrequestbody.md | 16 - .../models/operations/listshortcutsrequest.md | 36 -- .../operations/listverificationsrequest.md | 8 +- docs/models/operations/messagesrequest.md | 22 - docs/models/operations/peoplerequest.md | 24 - docs/models/operations/pinrequest.md | 35 -- .../operations/recommendationsrequest.md | 72 --- docs/models/operations/runagentrequest.md | 10 +- docs/models/operations/searchrequest.md | 50 -- docs/models/operations/summarizerequest.md | 23 - docs/models/operations/unpinrequest.md | 19 - .../operations/updateannouncementrequest.md | 44 -- .../operations/updateshortcutrequest.md | 35 -- .../operations/uploadchatfilesrequest.md | 10 +- docs/models/operations/verifyrequest.md | 21 - docs/sdks/activities/README.md | 2 - docs/sdks/agents/README.md | 6 - docs/sdks/announcements/README.md | 12 +- docs/sdks/answers/README.md | 20 +- docs/sdks/chat/README.md | 18 - docs/sdks/clientauthentication/README.md | 2 - docs/sdks/clientdocuments/README.md | 12 +- docs/sdks/clientshortcuts/README.md | 20 +- docs/sdks/collections/README.md | 32 +- docs/sdks/entities/README.md | 18 +- docs/sdks/insights/README.md | 4 +- docs/sdks/messages/README.md | 4 +- docs/sdks/pins/README.md | 20 +- docs/sdks/search/README.md | 50 +- docs/sdks/summarize/README.md | 4 +- docs/sdks/verification/README.md | 10 +- eslint.config.mjs | 1 + jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- speakeasyusagegen/.speakeasy/logs/naming.log | 478 ++++++++---------- .../models/operations/addcollectionitems.go | 30 -- .../operations/addverificationreminder.go | 30 -- .../sdk/models/operations/adminsearch.go | 30 -- .../sdk/models/operations/autocomplete.go | 30 -- .../internal/sdk/models/operations/chat.go | 18 - .../models/operations/createannouncement.go | 30 -- .../sdk/models/operations/createanswer.go | 30 -- .../sdk/models/operations/createauthtoken.go | 21 - .../sdk/models/operations/createcollection.go | 30 -- .../sdk/models/operations/createshortcut.go | 30 -- .../sdk/models/operations/deleteallchats.go | 18 - .../models/operations/deleteannouncement.go | 30 -- .../sdk/models/operations/deleteanswer.go | 30 -- .../sdk/models/operations/deletechatfiles.go | 18 - .../sdk/models/operations/deletechats.go | 18 - .../sdk/models/operations/deletecollection.go | 30 -- .../models/operations/deletecollectionitem.go | 30 -- .../sdk/models/operations/deleteshortcut.go | 30 -- .../sdk/models/operations/editanswer.go | 30 -- .../sdk/models/operations/editcollection.go | 30 -- .../models/operations/editcollectionitem.go | 30 -- .../internal/sdk/models/operations/editpin.go | 30 -- .../internal/sdk/models/operations/feed.go | 30 -- .../sdk/models/operations/feedback.go | 18 - .../sdk/models/operations/getagentinputs.go | 18 - .../sdk/models/operations/getanswer.go | 30 -- .../internal/sdk/models/operations/getchat.go | 18 - .../models/operations/getchatapplication.go | 18 - .../sdk/models/operations/getchatfiles.go | 18 - .../sdk/models/operations/getcollection.go | 30 -- .../models/operations/getdocpermissions.go | 30 -- .../sdk/models/operations/getdocuments.go | 30 -- .../models/operations/getdocumentsbyfacets.go | 30 -- .../internal/sdk/models/operations/getpin.go | 30 -- .../sdk/models/operations/getshortcut.go | 30 -- .../sdk/models/operations/insights.go | 30 -- .../sdk/models/operations/listagents.go | 18 - .../sdk/models/operations/listanswers.go | 30 -- .../sdk/models/operations/listchats.go | 18 - .../sdk/models/operations/listcollections.go | 30 -- .../sdk/models/operations/listentities.go | 30 -- .../sdk/models/operations/listpins.go | 32 +- .../sdk/models/operations/listshortcuts.go | 30 -- .../models/operations/listverifications.go | 18 - .../sdk/models/operations/messages.go | 30 -- .../internal/sdk/models/operations/people.go | 30 -- .../internal/sdk/models/operations/pin.go | 30 -- .../sdk/models/operations/recommendations.go | 30 -- .../sdk/models/operations/runagent.go | 18 - .../internal/sdk/models/operations/search.go | 30 -- .../sdk/models/operations/summarize.go | 30 -- .../internal/sdk/models/operations/unpin.go | 30 -- .../models/operations/updateannouncement.go | 30 -- .../sdk/models/operations/updateshortcut.go | 30 -- .../sdk/models/operations/uploadchatfiles.go | 18 - .../internal/sdk/models/operations/verify.go | 30 -- src/funcs/agentsGetagentinputs.ts | 19 +- src/funcs/agentsListagents.ts | 19 +- src/funcs/agentsRunagent.ts | 19 +- src/funcs/clientActivitiesReportActivity.ts | 19 +- src/funcs/clientAnnouncementsCreate.ts | 38 +- src/funcs/clientAnnouncementsDelete.ts | 38 +- src/funcs/clientAnnouncementsUpdate.ts | 38 +- src/funcs/clientAnswersCreate.ts | 38 +- src/funcs/clientAnswersDelete.ts | 38 +- src/funcs/clientAnswersEdit.ts | 36 +- src/funcs/clientAnswersGet.ts | 36 +- src/funcs/clientAnswersList.ts | 38 +- src/funcs/clientAuthenticationCreateToken.ts | 35 -- src/funcs/clientChatDelete.ts | 19 +- src/funcs/clientChatDeleteAll.ts | 19 +- src/funcs/clientChatDeleteFiles.ts | 19 +- src/funcs/clientChatGet.ts | 19 +- src/funcs/clientChatGetApplication.ts | 19 +- src/funcs/clientChatGetFiles.ts | 19 +- src/funcs/clientChatList.ts | 19 +- src/funcs/clientChatStart.ts | 19 +- src/funcs/clientChatUploadFiles.ts | 19 +- src/funcs/clientCollectionsAddItems.ts | 38 +- src/funcs/clientCollectionsCreate.ts | 38 +- src/funcs/clientCollectionsDelete.ts | 38 +- src/funcs/clientCollectionsDeleteItem.ts | 38 +- src/funcs/clientCollectionsEditItem.ts | 38 +- src/funcs/clientCollectionsGet.ts | 38 +- src/funcs/clientCollectionsList.ts | 38 +- src/funcs/clientCollectionsUpdate.ts | 38 +- src/funcs/clientDocumentsGet.ts | 41 +- src/funcs/clientDocumentsGetByFacets.ts | 46 +- src/funcs/clientDocumentsGetPermissions.ts | 38 +- src/funcs/clientEntitiesList.ts | 38 +- src/funcs/clientEntitiesReadPeople.ts | 36 +- src/funcs/clientInsightsGet.ts | 36 +- src/funcs/clientMessagesGet.ts | 36 +- src/funcs/clientPinsCreate.ts | 36 +- src/funcs/clientPinsEdit.ts | 36 +- src/funcs/clientPinsGet.ts | 36 +- src/funcs/clientPinsList.ts | 41 +- src/funcs/clientPinsRemove.ts | 36 +- src/funcs/clientSearchAdmin.ts | 38 +- src/funcs/clientSearchAutocomplete.ts | 38 +- src/funcs/clientSearchExecute.ts | 38 +- src/funcs/clientSearchGetFeed.ts | 36 +- src/funcs/clientSearchRecommendations.ts | 41 +- src/funcs/clientShortcutsCreate.ts | 38 +- src/funcs/clientShortcutsDelete.ts | 38 +- src/funcs/clientShortcutsGet.ts | 38 +- src/funcs/clientShortcutsList.ts | 39 +- src/funcs/clientShortcutsUpdate.ts | 38 +- src/funcs/clientSummarizeGenerate.ts | 36 +- src/funcs/clientVerificationAddReminder.ts | 37 +- src/funcs/clientVerificationList.ts | 19 +- src/funcs/clientVerificationVerify.ts | 36 +- src/lib/config.ts | 6 +- src/models/operations/addcollectionitems.ts | 98 ---- .../operations/addverificationreminder.ts | 99 ---- src/models/operations/adminsearch.ts | 97 ---- src/models/operations/autocomplete.ts | 97 ---- src/models/operations/chat.ts | 18 - src/models/operations/createannouncement.ts | 98 ---- src/models/operations/createanswer.ts | 97 ---- src/models/operations/createauthtoken.ts | 87 ---- src/models/operations/createcollection.ts | 97 ---- src/models/operations/createshortcut.ts | 97 ---- src/models/operations/deleteallchats.ts | 25 - src/models/operations/deleteannouncement.ts | 98 ---- src/models/operations/deleteanswer.ts | 97 ---- src/models/operations/deletechatfiles.ts | 18 - src/models/operations/deletechats.ts | 18 - src/models/operations/deletecollection.ts | 97 ---- src/models/operations/deletecollectionitem.ts | 101 ---- src/models/operations/deleteshortcut.ts | 97 ---- src/models/operations/editanswer.ts | 97 ---- src/models/operations/editcollection.ts | 97 ---- src/models/operations/editcollectionitem.ts | 98 ---- src/models/operations/editpin.ts | 93 ---- src/models/operations/feed.ts | 93 ---- src/models/operations/feedback.ts | 18 - src/models/operations/getagentinputs.ts | 18 - src/models/operations/getanswer.ts | 97 ---- src/models/operations/getchat.ts | 18 - src/models/operations/getchatapplication.ts | 18 - src/models/operations/getchatfiles.ts | 18 - src/models/operations/getcollection.ts | 97 ---- src/models/operations/getdocpermissions.ts | 97 ---- src/models/operations/getdocuments.ts | 97 ---- src/models/operations/getdocumentsbyfacets.ts | 105 ---- src/models/operations/getpin.ts | 93 ---- src/models/operations/getshortcut.ts | 97 ---- src/models/operations/index.ts | 41 -- src/models/operations/insights.ts | 95 ---- src/models/operations/listagents.ts | 18 - src/models/operations/listanswers.ts | 97 ---- src/models/operations/listchats.ts | 25 - src/models/operations/listcollections.ts | 97 ---- src/models/operations/listentities.ts | 97 ---- src/models/operations/listpins.ts | 96 +--- src/models/operations/listshortcuts.ts | 100 ---- src/models/operations/listverifications.ts | 25 - src/models/operations/messages.ts | 95 ---- src/models/operations/people.ts | 93 ---- src/models/operations/pin.ts | 93 ---- src/models/operations/recommendations.ts | 101 ---- src/models/operations/runagent.ts | 18 - src/models/operations/search.ts | 93 ---- src/models/operations/summarize.ts | 97 ---- src/models/operations/unpin.ts | 93 ---- src/models/operations/updateannouncement.ts | 98 ---- src/models/operations/updateshortcut.ts | 97 ---- src/models/operations/uploadchatfiles.ts | 18 - src/models/operations/verify.ts | 93 ---- src/react-query/agentsGetagentinputs.ts | 6 - src/react-query/agentsListagents.ts | 6 - src/react-query/agentsRunagent.ts | 6 - .../clientActivitiesReportActivity.ts | 6 - src/react-query/clientAnnouncementsCreate.ts | 12 +- src/react-query/clientAnnouncementsDelete.ts | 12 +- src/react-query/clientAnnouncementsUpdate.ts | 12 +- src/react-query/clientAnswersCreate.ts | 12 +- src/react-query/clientAnswersDelete.ts | 12 +- src/react-query/clientAnswersEdit.ts | 12 +- src/react-query/clientAnswersGet.ts | 12 +- src/react-query/clientAnswersList.ts | 12 +- .../clientAuthenticationCreateToken.ts | 6 - src/react-query/clientChatDelete.ts | 6 - src/react-query/clientChatDeleteAll.ts | 6 - src/react-query/clientChatDeleteFiles.ts | 6 - src/react-query/clientChatGet.ts | 6 - src/react-query/clientChatGetApplication.ts | 6 - src/react-query/clientChatGetFiles.ts | 6 - src/react-query/clientChatList.ts | 6 - src/react-query/clientChatStart.ts | 6 - src/react-query/clientChatUploadFiles.ts | 6 - src/react-query/clientCollectionsAddItems.ts | 12 +- src/react-query/clientCollectionsCreate.ts | 12 +- src/react-query/clientCollectionsDelete.ts | 12 +- .../clientCollectionsDeleteItem.ts | 12 +- src/react-query/clientCollectionsEditItem.ts | 12 +- src/react-query/clientCollectionsGet.ts | 12 +- src/react-query/clientCollectionsList.ts | 12 +- src/react-query/clientCollectionsUpdate.ts | 12 +- src/react-query/clientDocumentsGet.ts | 12 +- src/react-query/clientDocumentsGetByFacets.ts | 14 +- .../clientDocumentsGetPermissions.ts | 12 +- src/react-query/clientEntitiesList.ts | 12 +- src/react-query/clientEntitiesReadPeople.ts | 12 +- src/react-query/clientInsightsGet.ts | 12 +- src/react-query/clientMessagesGet.ts | 12 +- src/react-query/clientPinsCreate.ts | 12 +- src/react-query/clientPinsEdit.ts | 12 +- src/react-query/clientPinsGet.ts | 12 +- src/react-query/clientPinsList.ts | 12 +- src/react-query/clientPinsRemove.ts | 12 +- src/react-query/clientSearchAdmin.ts | 12 +- src/react-query/clientSearchAutocomplete.ts | 12 +- src/react-query/clientSearchExecute.ts | 12 +- src/react-query/clientSearchGetFeed.ts | 12 +- .../clientSearchRecommendations.ts | 12 +- src/react-query/clientShortcutsCreate.ts | 12 +- src/react-query/clientShortcutsDelete.ts | 12 +- src/react-query/clientShortcutsGet.ts | 12 +- src/react-query/clientShortcutsList.ts | 12 +- src/react-query/clientShortcutsUpdate.ts | 12 +- src/react-query/clientSummarizeGenerate.ts | 12 +- .../clientVerificationAddReminder.ts | 12 +- src/react-query/clientVerificationList.ts | 6 - src/react-query/clientVerificationVerify.ts | 12 +- src/sdk/activities.ts | 4 - src/sdk/agents.ts | 12 - src/sdk/announcements.ts | 24 +- src/sdk/answers.ts | 40 +- src/sdk/chat.ts | 36 -- src/sdk/clientauthentication.ts | 4 - src/sdk/clientdocuments.ts | 26 +- src/sdk/clientshortcuts.ts | 40 +- src/sdk/collections.ts | 64 +-- src/sdk/entities.ts | 16 +- src/sdk/insights.ts | 8 +- src/sdk/messages.ts | 8 +- src/sdk/pins.ts | 40 +- src/sdk/search.ts | 40 +- src/sdk/summarize.ts | 8 +- src/sdk/verification.ts | 20 +- 326 files changed, 936 insertions(+), 10247 deletions(-) delete mode 100644 docs/models/operations/addcollectionitemsrequest.md delete mode 100644 docs/models/operations/addverificationreminderrequest.md delete mode 100644 docs/models/operations/adminsearchrequest.md delete mode 100644 docs/models/operations/autocompleterequest.md delete mode 100644 docs/models/operations/createannouncementrequest.md delete mode 100644 docs/models/operations/createanswerrequest.md delete mode 100644 docs/models/operations/createauthtokenrequest.md delete mode 100644 docs/models/operations/createcollectionrequest.md delete mode 100644 docs/models/operations/createshortcutrequest.md delete mode 100644 docs/models/operations/deleteannouncementrequest.md delete mode 100644 docs/models/operations/deleteanswerrequest.md delete mode 100644 docs/models/operations/deletecollectionitemrequest.md delete mode 100644 docs/models/operations/deletecollectionrequest.md delete mode 100644 docs/models/operations/deleteshortcutrequest.md delete mode 100644 docs/models/operations/editanswerrequest.md delete mode 100644 docs/models/operations/editcollectionitemrequest.md delete mode 100644 docs/models/operations/editcollectionrequest.md delete mode 100644 docs/models/operations/editpinrequest.md delete mode 100644 docs/models/operations/feedrequest.md delete mode 100644 docs/models/operations/getanswerrequest.md delete mode 100644 docs/models/operations/getcollectionrequest.md delete mode 100644 docs/models/operations/getdocpermissionsrequest.md delete mode 100644 docs/models/operations/getdocumentsbyfacetsrequest.md delete mode 100644 docs/models/operations/getdocumentsrequest.md delete mode 100644 docs/models/operations/getpinrequest.md delete mode 100644 docs/models/operations/getshortcutrequest.md delete mode 100644 docs/models/operations/insightsrequest.md delete mode 100644 docs/models/operations/listanswersrequest.md delete mode 100644 docs/models/operations/listcollectionsrequest.md delete mode 100644 docs/models/operations/listentitiesrequest.md delete mode 100644 docs/models/operations/listpinsrequestbody.md delete mode 100644 docs/models/operations/listshortcutsrequest.md delete mode 100644 docs/models/operations/messagesrequest.md delete mode 100644 docs/models/operations/peoplerequest.md delete mode 100644 docs/models/operations/pinrequest.md delete mode 100644 docs/models/operations/recommendationsrequest.md delete mode 100644 docs/models/operations/searchrequest.md delete mode 100644 docs/models/operations/summarizerequest.md delete mode 100644 docs/models/operations/unpinrequest.md delete mode 100644 docs/models/operations/updateannouncementrequest.md delete mode 100644 docs/models/operations/updateshortcutrequest.md delete mode 100644 docs/models/operations/verifyrequest.md delete mode 100644 src/models/operations/addcollectionitems.ts delete mode 100644 src/models/operations/addverificationreminder.ts delete mode 100644 src/models/operations/adminsearch.ts delete mode 100644 src/models/operations/autocomplete.ts delete mode 100644 src/models/operations/createannouncement.ts delete mode 100644 src/models/operations/createanswer.ts delete mode 100644 src/models/operations/createauthtoken.ts delete mode 100644 src/models/operations/createcollection.ts delete mode 100644 src/models/operations/createshortcut.ts delete mode 100644 src/models/operations/deleteannouncement.ts delete mode 100644 src/models/operations/deleteanswer.ts delete mode 100644 src/models/operations/deletecollection.ts delete mode 100644 src/models/operations/deletecollectionitem.ts delete mode 100644 src/models/operations/deleteshortcut.ts delete mode 100644 src/models/operations/editanswer.ts delete mode 100644 src/models/operations/editcollection.ts delete mode 100644 src/models/operations/editcollectionitem.ts delete mode 100644 src/models/operations/editpin.ts delete mode 100644 src/models/operations/feed.ts delete mode 100644 src/models/operations/getanswer.ts delete mode 100644 src/models/operations/getcollection.ts delete mode 100644 src/models/operations/getdocpermissions.ts delete mode 100644 src/models/operations/getdocuments.ts delete mode 100644 src/models/operations/getdocumentsbyfacets.ts delete mode 100644 src/models/operations/getpin.ts delete mode 100644 src/models/operations/getshortcut.ts delete mode 100644 src/models/operations/insights.ts delete mode 100644 src/models/operations/listanswers.ts delete mode 100644 src/models/operations/listcollections.ts delete mode 100644 src/models/operations/listentities.ts delete mode 100644 src/models/operations/listshortcuts.ts delete mode 100644 src/models/operations/messages.ts delete mode 100644 src/models/operations/people.ts delete mode 100644 src/models/operations/pin.ts delete mode 100644 src/models/operations/recommendations.ts delete mode 100644 src/models/operations/search.ts delete mode 100644 src/models/operations/summarize.ts delete mode 100644 src/models/operations/unpin.ts delete mode 100644 src/models/operations/updateannouncement.ts delete mode 100644 src/models/operations/updateshortcut.ts delete mode 100644 src/models/operations/verify.ts diff --git a/.gitignore b/.gitignore index 1c3719ee..c6325d3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +**/.speakeasy/temp/ +**/.speakeasy/logs/ .speakeasy/logs/ .speakeasy/temp/ .DS_Store diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6cd28a15..d0ad58ec 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 9e4b1e83-7853-4088-b960-4cbc5769b62c management: - docChecksum: 5f39e048571bfcd8aae3cc610c7d8852 + docChecksum: 1cc19604b6542fcea54e78c6786aba78 docVersion: 0.9.0 - speakeasyVersion: 1.541.0 - generationVersion: 2.595.2 - releaseVersion: 0.1.0-beta.1 - configChecksum: 4d72514137c7e0629ea2992e39a79487 + speakeasyVersion: 1.541.2 + generationVersion: 2.595.4 + releaseVersion: 0.1.0-beta.2 + configChecksum: 0e38427161a2776fba7cd61456c3315c repoURL: https://github.com/gleanwork/api-client-typescript.git installationURL: https://github.com/gleanwork/api-client-typescript published: true @@ -15,7 +15,7 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.1.1 constsAndDefaults: 0.1.11 - core: 3.21.6 + core: 3.21.7 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 devContainers: 2.90.0 @@ -525,67 +525,25 @@ generatedFiles: - docs/models/components/writepermission.md - docs/models/errors/collectionerror.md - docs/models/errors/gleandataerror.md - - docs/models/operations/addcollectionitemsrequest.md - - docs/models/operations/addverificationreminderrequest.md - - docs/models/operations/adminsearchrequest.md - - docs/models/operations/autocompleterequest.md - docs/models/operations/chatrequest.md - - docs/models/operations/createannouncementrequest.md - - docs/models/operations/createanswerrequest.md - - docs/models/operations/createauthtokenrequest.md - - docs/models/operations/createcollectionrequest.md - - docs/models/operations/createshortcutrequest.md - docs/models/operations/deleteallchatsrequest.md - - docs/models/operations/deleteannouncementrequest.md - - docs/models/operations/deleteanswerrequest.md - docs/models/operations/deletechatfilesrequest.md - docs/models/operations/deletechatsrequest.md - - docs/models/operations/deletecollectionitemrequest.md - - docs/models/operations/deletecollectionrequest.md - - docs/models/operations/deleteshortcutrequest.md - - docs/models/operations/editanswerrequest.md - - docs/models/operations/editcollectionitemrequest.md - - docs/models/operations/editcollectionrequest.md - - docs/models/operations/editpinrequest.md - docs/models/operations/feedbackrequest.md - - docs/models/operations/feedrequest.md - docs/models/operations/getagentinputsrequest.md - - docs/models/operations/getanswerrequest.md - docs/models/operations/getchatapplicationrequest.md - docs/models/operations/getchatfilesrequest.md - docs/models/operations/getchatrequest.md - - docs/models/operations/getcollectionrequest.md - - docs/models/operations/getdocpermissionsrequest.md - - docs/models/operations/getdocumentsbyfacetsrequest.md - - docs/models/operations/getdocumentsrequest.md - - docs/models/operations/getpinrequest.md - - docs/models/operations/getshortcutrequest.md - - docs/models/operations/insightsrequest.md - docs/models/operations/listagentsrequest.md - - docs/models/operations/listanswersrequest.md - docs/models/operations/listchatsrequest.md - - docs/models/operations/listcollectionsrequest.md - - docs/models/operations/listentitiesrequest.md - docs/models/operations/listpinsrequest.md - - docs/models/operations/listpinsrequestbody.md - - docs/models/operations/listshortcutsrequest.md - docs/models/operations/listverificationsrequest.md - - docs/models/operations/messagesrequest.md - - docs/models/operations/peoplerequest.md - - docs/models/operations/pinrequest.md - docs/models/operations/postapiindexv1debugdatasourcedocumentrequest.md - docs/models/operations/postapiindexv1debugdatasourcedocumentsrequest.md - docs/models/operations/postapiindexv1debugdatasourcestatusrequest.md - docs/models/operations/postapiindexv1debugdatasourceuserrequest.md - - docs/models/operations/recommendationsrequest.md - docs/models/operations/runagentrequest.md - - docs/models/operations/searchrequest.md - - docs/models/operations/summarizerequest.md - - docs/models/operations/unpinrequest.md - - docs/models/operations/updateannouncementrequest.md - - docs/models/operations/updateshortcutrequest.md - docs/models/operations/uploadchatfilesrequest.md - - docs/models/operations/verifyrequest.md - docs/sdks/activities/README.md - docs/sdks/activity/README.md - docs/sdks/agents/README.md @@ -1723,67 +1681,26 @@ generatedFiles: - src/models/errors/httpclienterrors.ts - src/models/errors/index.ts - src/models/errors/sdkvalidationerror.ts - - src/models/operations/addcollectionitems.ts - - src/models/operations/addverificationreminder.ts - - src/models/operations/adminsearch.ts - - src/models/operations/autocomplete.ts - src/models/operations/chat.ts - - src/models/operations/createannouncement.ts - - src/models/operations/createanswer.ts - - src/models/operations/createauthtoken.ts - - src/models/operations/createcollection.ts - - src/models/operations/createshortcut.ts - src/models/operations/deleteallchats.ts - - src/models/operations/deleteannouncement.ts - - src/models/operations/deleteanswer.ts - src/models/operations/deletechatfiles.ts - src/models/operations/deletechats.ts - - src/models/operations/deletecollection.ts - - src/models/operations/deletecollectionitem.ts - - src/models/operations/deleteshortcut.ts - - src/models/operations/editanswer.ts - - src/models/operations/editcollection.ts - - src/models/operations/editcollectionitem.ts - - src/models/operations/editpin.ts - - src/models/operations/feed.ts - src/models/operations/feedback.ts - src/models/operations/getagentinputs.ts - - src/models/operations/getanswer.ts - src/models/operations/getchat.ts - src/models/operations/getchatapplication.ts - src/models/operations/getchatfiles.ts - - src/models/operations/getcollection.ts - - src/models/operations/getdocpermissions.ts - - src/models/operations/getdocuments.ts - - src/models/operations/getdocumentsbyfacets.ts - - src/models/operations/getpin.ts - - src/models/operations/getshortcut.ts - src/models/operations/index.ts - - src/models/operations/insights.ts - src/models/operations/listagents.ts - - src/models/operations/listanswers.ts - src/models/operations/listchats.ts - - src/models/operations/listcollections.ts - - src/models/operations/listentities.ts - src/models/operations/listpins.ts - - src/models/operations/listshortcuts.ts - src/models/operations/listverifications.ts - - src/models/operations/messages.ts - - src/models/operations/people.ts - - src/models/operations/pin.ts - src/models/operations/postapiindexv1debugdatasourcedocument.ts - src/models/operations/postapiindexv1debugdatasourcedocuments.ts - src/models/operations/postapiindexv1debugdatasourcestatus.ts - src/models/operations/postapiindexv1debugdatasourceuser.ts - - src/models/operations/recommendations.ts - src/models/operations/runagent.ts - - src/models/operations/search.ts - - src/models/operations/summarize.ts - - src/models/operations/unpin.ts - - src/models/operations/updateannouncement.ts - - src/models/operations/updateshortcut.ts - src/models/operations/uploadchatfiles.ts - - src/models/operations/verify.ts - src/react-query/_context.tsx - src/react-query/_types.ts - src/react-query/agentsGetagentinputs.ts diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8733ced5..92e6de73 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -24,7 +24,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true typescript: - version: 0.1.0-beta.1 + version: 0.1.0-beta.2 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 21d60ffd..406ebe38 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -60,8 +60,6 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - name: feedback in: query description: A URL encoded versions of Feedback. This is useful for requests. @@ -94,9 +92,7 @@ paths: operationId: createannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -129,9 +125,7 @@ paths: operationId: deleteannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -160,9 +154,7 @@ paths: operationId: updateannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -195,9 +187,7 @@ paths: operationId: createanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -230,9 +220,7 @@ paths: operationId: deleteanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -261,9 +249,7 @@ paths: operationId: editanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -296,9 +282,7 @@ paths: operationId: getanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -331,9 +315,7 @@ paths: operationId: listanswers x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -365,9 +347,7 @@ paths: description: Creates an authentication token for the authenticated user. operationId: createauthtoken x-visibility: Public - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] responses: "200": description: OK @@ -393,8 +373,6 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -533,8 +511,6 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" responses: "200": @@ -557,8 +533,6 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -590,8 +564,6 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -627,8 +599,6 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" responses: "200": @@ -655,8 +625,6 @@ paths: x-visibility: Preview x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -689,8 +657,6 @@ paths: operationId: uploadchatfiles x-visibility: Public parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -725,8 +691,6 @@ paths: operationId: getchatfiles x-visibility: Public parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -761,8 +725,6 @@ paths: operationId: deletechatfiles x-visibility: Public parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -793,8 +755,6 @@ paths: x-visibility: Preview x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -828,8 +788,6 @@ paths: description: Lists all agents that are available. operationId: listagents parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -861,8 +819,6 @@ paths: x-visibility: Preview x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -895,9 +851,7 @@ paths: operationId: addcollectionitems x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -930,9 +884,7 @@ paths: operationId: createcollection x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -971,9 +923,7 @@ paths: operationId: deletecollection x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1008,9 +958,7 @@ paths: operationId: deletecollectionitem x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1045,9 +993,7 @@ paths: operationId: editcollection x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1086,9 +1032,7 @@ paths: operationId: editcollectionitem x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1121,9 +1065,7 @@ paths: operationId: getcollection x-visibility: Preview x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1156,9 +1098,7 @@ paths: operationId: listcollections x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1191,9 +1131,7 @@ paths: operationId: getdocpermissions x-visibility: Preview x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1228,9 +1166,7 @@ paths: operationId: getdocuments x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1263,9 +1199,7 @@ paths: operationId: getdocumentsbyfacets x-visibility: Preview x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1298,9 +1232,7 @@ paths: operationId: insights x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1333,9 +1265,7 @@ paths: operationId: messages x-visibility: Preview x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1368,9 +1298,7 @@ paths: operationId: editpin x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1403,9 +1331,7 @@ paths: operationId: getpin x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1438,9 +1364,7 @@ paths: operationId: listpins x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1473,9 +1397,7 @@ paths: operationId: pin x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1508,9 +1430,7 @@ paths: operationId: unpin x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1541,9 +1461,7 @@ paths: operationId: adminsearch x-visibility: Preview x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1587,9 +1505,7 @@ paths: operationId: autocomplete x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1622,9 +1538,7 @@ paths: operationId: feed x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1659,9 +1573,7 @@ paths: operationId: recommendations x-visibility: Preview x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1699,9 +1611,7 @@ paths: operationId: search x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1747,9 +1657,7 @@ paths: operationId: listentities x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1782,9 +1690,7 @@ paths: operationId: people x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1817,9 +1723,7 @@ paths: operationId: createshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1852,9 +1756,7 @@ paths: operationId: deleteshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1883,9 +1785,7 @@ paths: operationId: getshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1918,9 +1818,7 @@ paths: operationId: listshortcuts x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1953,9 +1851,7 @@ paths: operationId: updateshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -1988,9 +1884,7 @@ paths: operationId: summarize x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -2023,9 +1917,7 @@ paths: operationId: addverificationreminder x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -2061,8 +1953,6 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" - in: query name: count description: Maximum number of documents to return @@ -2093,9 +1983,7 @@ paths: operationId: verify x-visibility: Public x-codegen-request-body-name: payload - parameters: - - $ref: "#/components/parameters/xGleanActAsHeader" - - $ref: "#/components/parameters/xGleanAuthTypeHeader" + parameters: [] requestBody: content: application/json: @@ -10950,21 +10838,6 @@ components: type: string description: A human readable string identifying this instance as compared to its peers, e.g. "github.com/askscio" or "github.askscio.com" parameters: - xGleanActAsHeader: - name: X-Glean-ActAs - in: header - description: Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - required: false - schema: - type: string - format: email - xGleanAuthTypeHeader: - name: X-Glean-Auth-Type - in: header - description: Auth type being used to access the endpoint (should be non-empty only for global tokens). - required: false - schema: - type: string timezoneOffset: name: timezoneOffset in: query diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 053086b4..ff32d104 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.541.0 +speakeasyVersion: 1.541.2 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:1756c09ecbe23405704c2ca0a7fc16f744e0104dd7eae3eea4f70d5a04348c16 - sourceBlobDigest: sha256:774205fd75a3374e402da1109732bc48f7fcd38efe41d5709663e17ac4f28898 + sourceRevisionDigest: sha256:e59caa20d4d5dab2366eb7288543c319c6bdd69d42b5e1046b2ae5eef23c0e8b + sourceBlobDigest: sha256:aad71d5ecd929901674d7801ef4b66de0408d24893c16e951f50ab664825a536 tags: - latest - - speakeasy-sdk-regen-1746034495 + - speakeasy-sdk-regen-1746110402 Glean Client API: sourceNamespace: glean-client-api sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301 @@ -18,10 +18,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:1756c09ecbe23405704c2ca0a7fc16f744e0104dd7eae3eea4f70d5a04348c16 - sourceBlobDigest: sha256:774205fd75a3374e402da1109732bc48f7fcd38efe41d5709663e17ac4f28898 + sourceRevisionDigest: sha256:e59caa20d4d5dab2366eb7288543c319c6bdd69d42b5e1046b2ae5eef23c0e8b + sourceBlobDigest: sha256:aad71d5ecd929901674d7801ef4b66de0408d24893c16e951f50ab664825a536 codeSamplesNamespace: glean-api-specs-typescript-code-samples - codeSamplesRevisionDigest: sha256:837ee35dad1dd584148f11525d5ff859e25218924d6e8cd895ccc860a24a1862 + codeSamplesRevisionDigest: sha256:4cec0b90347490ec60e51d540f2cfea9b7faa87593f6ca18236e46091d99c50a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 947194d9..1af38f2c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -18,4 +18,14 @@ Based on: ### Generated - [typescript v0.1.0-beta.1] . ### Releases -- [NPM v0.1.0-beta.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.1.0-beta.1 - . \ No newline at end of file +- [NPM v0.1.0-beta.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.1.0-beta.1 - . + +## 2025-05-01 14:39:45 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.541.2 (2.595.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.1.0-beta.2] . +### Releases +- [NPM v0.1.0-beta.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.1.0-beta.2 - . \ No newline at end of file diff --git a/docs/models/operations/addcollectionitemsrequest.md b/docs/models/operations/addcollectionitemsrequest.md deleted file mode 100644 index e8a9be98..00000000 --- a/docs/models/operations/addcollectionitemsrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddcollectionitemsRequest - -## Example Usage - -```typescript -import { AddcollectionitemsRequest } from "@gleanwork/api-client/models/operations"; - -let value: AddcollectionitemsRequest = { - addCollectionItemsRequest: { - collectionId: 2067.97, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `addCollectionItemsRequest` | [components.AddCollectionItemsRequest](../../models/components/addcollectionitemsrequest.md) | :heavy_check_mark: | Data describing the add operation. | \ No newline at end of file diff --git a/docs/models/operations/addverificationreminderrequest.md b/docs/models/operations/addverificationreminderrequest.md deleted file mode 100644 index 282af897..00000000 --- a/docs/models/operations/addverificationreminderrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# AddverificationreminderRequest - -## Example Usage - -```typescript -import { AddverificationreminderRequest } from "@gleanwork/api-client/models/operations"; - -let value: AddverificationreminderRequest = { - reminderRequest: { - documentId: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `reminderRequest` | [components.ReminderRequest](../../models/components/reminderrequest.md) | :heavy_check_mark: | Details about the reminder. | \ No newline at end of file diff --git a/docs/models/operations/adminsearchrequest.md b/docs/models/operations/adminsearchrequest.md deleted file mode 100644 index 1af15243..00000000 --- a/docs/models/operations/adminsearchrequest.md +++ /dev/null @@ -1,50 +0,0 @@ -# AdminsearchRequest - -## Example Usage - -```typescript -import { AdminsearchRequest } from "@gleanwork/api-client/models/operations"; - -let value: AdminsearchRequest = { - searchRequest: { - trackingToken: "trackingToken", - pageSize: 10, - query: "vacation policy", - requestOptions: { - facetFilters: [ - { - fieldName: "type", - values: [ - { - value: "article", - relationType: "EQUALS", - }, - { - value: "document", - relationType: "EQUALS", - }, - ], - }, - { - fieldName: "department", - values: [ - { - value: "engineering", - relationType: "EQUALS", - }, - ], - }, - ], - facetBucketSize: 346749, - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `searchRequest` | [components.SearchRequest](../../models/components/searchrequest.md) | :heavy_minus_sign: | Admin search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | \ No newline at end of file diff --git a/docs/models/operations/autocompleterequest.md b/docs/models/operations/autocompleterequest.md deleted file mode 100644 index 01bf7779..00000000 --- a/docs/models/operations/autocompleterequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# AutocompleteRequest - -## Example Usage - -```typescript -import { AutocompleteRequest } from "@gleanwork/api-client/models/operations"; - -let value: AutocompleteRequest = { - autocompleteRequest: { - trackingToken: "trackingToken", - query: "what is a que", - datasource: "GDRIVE", - resultSize: 10, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `autocompleteRequest` | [components.AutocompleteRequest](../../models/components/autocompleterequest.md) | :heavy_check_mark: | Autocomplete request | {
"trackingToken": "trackingToken",
"query": "what is a que",
"datasource": "GDRIVE",
"resultSize": 10
} | \ No newline at end of file diff --git a/docs/models/operations/chatrequest.md b/docs/models/operations/chatrequest.md index 85a77d41..c7a318fe 100644 --- a/docs/models/operations/chatrequest.md +++ b/docs/models/operations/chatrequest.md @@ -283,9 +283,7 @@ let value: ChatRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `chatRequest` | [components.ChatRequest](../../models/components/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `chatRequest` | [components.ChatRequest](../../models/components/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | \ No newline at end of file diff --git a/docs/models/operations/createannouncementrequest.md b/docs/models/operations/createannouncementrequest.md deleted file mode 100644 index 44d26f8c..00000000 --- a/docs/models/operations/createannouncementrequest.md +++ /dev/null @@ -1,43 +0,0 @@ -# CreateannouncementRequest - -## Example Usage - -```typescript -import { CreateannouncementRequest } from "@gleanwork/api-client/models/operations"; - -let value: CreateannouncementRequest = { - createAnnouncementRequest: { - startTime: new Date("2024-05-23T19:17:22.992Z"), - endTime: new Date("2024-11-26T23:16:26.570Z"), - title: "", - body: { - text: - "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - structuredList: [], - }, - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `createAnnouncementRequest` | [components.CreateAnnouncementRequest](../../models/components/createannouncementrequest.md) | :heavy_check_mark: | Announcement content | \ No newline at end of file diff --git a/docs/models/operations/createanswerrequest.md b/docs/models/operations/createanswerrequest.md deleted file mode 100644 index ad8ffa2e..00000000 --- a/docs/models/operations/createanswerrequest.md +++ /dev/null @@ -1,63 +0,0 @@ -# CreateanswerRequest - -## Example Usage - -```typescript -import { CreateanswerRequest } from "@gleanwork/api-client/models/operations"; - -let value: CreateanswerRequest = { - createAnswerRequest: { - data: { - question: "Why is the sky blue?", - bodyText: - "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - addedRoles: [ - { - person: { - name: "George Clooney", - obfuscatedId: "abc123", - }, - role: "EDITOR", - }, - ], - removedRoles: [ - { - role: "VIEWER", - }, - ], - roles: [ - { - role: "ANSWER_MODERATOR", - }, - ], - combinedAnswerText: { - text: - "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - }, - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `createAnswerRequest` | [components.CreateAnswerRequest](../../models/components/createanswerrequest.md) | :heavy_check_mark: | CreateAnswer request | \ No newline at end of file diff --git a/docs/models/operations/createauthtokenrequest.md b/docs/models/operations/createauthtokenrequest.md deleted file mode 100644 index ae9d5946..00000000 --- a/docs/models/operations/createauthtokenrequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateauthtokenRequest - -## Example Usage - -```typescript -import { CreateauthtokenRequest } from "@gleanwork/api-client/models/operations"; - -let value: CreateauthtokenRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | \ No newline at end of file diff --git a/docs/models/operations/createcollectionrequest.md b/docs/models/operations/createcollectionrequest.md deleted file mode 100644 index e8d89c9f..00000000 --- a/docs/models/operations/createcollectionrequest.md +++ /dev/null @@ -1,50 +0,0 @@ -# CreatecollectionRequest - -## Example Usage - -```typescript -import { CreatecollectionRequest } from "@gleanwork/api-client/models/operations"; - -let value: CreatecollectionRequest = { - createCollectionRequest: { - name: "", - addedRoles: [ - { - person: { - name: "George Clooney", - obfuscatedId: "abc123", - }, - role: "EDITOR", - }, - ], - removedRoles: [ - { - role: "OWNER", - }, - ], - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `createCollectionRequest` | [components.CreateCollectionRequest](../../models/components/createcollectionrequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | \ No newline at end of file diff --git a/docs/models/operations/createshortcutrequest.md b/docs/models/operations/createshortcutrequest.md deleted file mode 100644 index abe026e2..00000000 --- a/docs/models/operations/createshortcutrequest.md +++ /dev/null @@ -1,36 +0,0 @@ -# CreateshortcutRequest - -## Example Usage - -```typescript -import { CreateshortcutRequest } from "@gleanwork/api-client/models/operations"; - -let value: CreateshortcutRequest = { - createShortcutRequest: { - data: { - addedRoles: [ - { - person: { - name: "George Clooney", - obfuscatedId: "abc123", - }, - role: "ANSWER_MODERATOR", - }, - ], - removedRoles: [ - { - role: "OWNER", - }, - ], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `createShortcutRequest` | [components.CreateShortcutRequest](../../models/components/createshortcutrequest.md) | :heavy_check_mark: | CreateShortcut request | \ No newline at end of file diff --git a/docs/models/operations/deleteallchatsrequest.md b/docs/models/operations/deleteallchatsrequest.md index f2b39c04..5d33571a 100644 --- a/docs/models/operations/deleteallchatsrequest.md +++ b/docs/models/operations/deleteallchatsrequest.md @@ -10,8 +10,6 @@ let value: DeleteallchatsRequest = {}; ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file diff --git a/docs/models/operations/deleteannouncementrequest.md b/docs/models/operations/deleteannouncementrequest.md deleted file mode 100644 index 6a2f46fe..00000000 --- a/docs/models/operations/deleteannouncementrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# DeleteannouncementRequest - -## Example Usage - -```typescript -import { DeleteannouncementRequest } from "@gleanwork/api-client/models/operations"; - -let value: DeleteannouncementRequest = { - deleteAnnouncementRequest: { - id: 440796, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `deleteAnnouncementRequest` | [components.DeleteAnnouncementRequest](../../models/components/deleteannouncementrequest.md) | :heavy_check_mark: | Delete announcement request | \ No newline at end of file diff --git a/docs/models/operations/deleteanswerrequest.md b/docs/models/operations/deleteanswerrequest.md deleted file mode 100644 index e54d85af..00000000 --- a/docs/models/operations/deleteanswerrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# DeleteanswerRequest - -## Example Usage - -```typescript -import { DeleteanswerRequest } from "@gleanwork/api-client/models/operations"; - -let value: DeleteanswerRequest = { - deleteAnswerRequest: { - id: 3, - docId: "ANSWERS_answer_3", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `deleteAnswerRequest` | [components.DeleteAnswerRequest](../../models/components/deleteanswerrequest.md) | :heavy_check_mark: | DeleteAnswer request | \ No newline at end of file diff --git a/docs/models/operations/deletechatfilesrequest.md b/docs/models/operations/deletechatfilesrequest.md index 9d584042..d98be0bd 100644 --- a/docs/models/operations/deletechatfilesrequest.md +++ b/docs/models/operations/deletechatfilesrequest.md @@ -16,9 +16,7 @@ let value: DeletechatfilesRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatFilesRequest` | [components.DeleteChatFilesRequest](../../models/components/deletechatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatFilesRequest` | [components.DeleteChatFilesRequest](../../models/components/deletechatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deletechatsrequest.md b/docs/models/operations/deletechatsrequest.md index f1530ebd..d4d7b1f1 100644 --- a/docs/models/operations/deletechatsrequest.md +++ b/docs/models/operations/deletechatsrequest.md @@ -16,9 +16,7 @@ let value: DeletechatsRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatsRequest` | [components.DeleteChatsRequest](../../models/components/deletechatsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatsRequest` | [components.DeleteChatsRequest](../../models/components/deletechatsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deletecollectionitemrequest.md b/docs/models/operations/deletecollectionitemrequest.md deleted file mode 100644 index 82fa86cd..00000000 --- a/docs/models/operations/deletecollectionitemrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# DeletecollectionitemRequest - -## Example Usage - -```typescript -import { DeletecollectionitemRequest } from "@gleanwork/api-client/models/operations"; - -let value: DeletecollectionitemRequest = { - deleteCollectionItemRequest: { - collectionId: 4278.02, - itemId: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `deleteCollectionItemRequest` | [components.DeleteCollectionItemRequest](../../models/components/deletecollectionitemrequest.md) | :heavy_check_mark: | Data describing the delete operation. | \ No newline at end of file diff --git a/docs/models/operations/deletecollectionrequest.md b/docs/models/operations/deletecollectionrequest.md deleted file mode 100644 index c24d1c74..00000000 --- a/docs/models/operations/deletecollectionrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# DeletecollectionRequest - -## Example Usage - -```typescript -import { DeletecollectionRequest } from "@gleanwork/api-client/models/operations"; - -let value: DeletecollectionRequest = { - deleteCollectionRequest: { - ids: [ - 354490, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `deleteCollectionRequest` | [components.DeleteCollectionRequest](../../models/components/deletecollectionrequest.md) | :heavy_check_mark: | DeleteCollection request | \ No newline at end of file diff --git a/docs/models/operations/deleteshortcutrequest.md b/docs/models/operations/deleteshortcutrequest.md deleted file mode 100644 index 42b7dc50..00000000 --- a/docs/models/operations/deleteshortcutrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# DeleteshortcutRequest - -## Example Usage - -```typescript -import { DeleteshortcutRequest } from "@gleanwork/api-client/models/operations"; - -let value: DeleteshortcutRequest = { - deleteShortcutRequest: { - id: 102037, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `deleteShortcutRequest` | [components.DeleteShortcutRequest](../../models/components/deleteshortcutrequest.md) | :heavy_check_mark: | DeleteShortcut request | \ No newline at end of file diff --git a/docs/models/operations/editanswerrequest.md b/docs/models/operations/editanswerrequest.md deleted file mode 100644 index f2141dfa..00000000 --- a/docs/models/operations/editanswerrequest.md +++ /dev/null @@ -1,63 +0,0 @@ -# EditanswerRequest - -## Example Usage - -```typescript -import { EditanswerRequest } from "@gleanwork/api-client/models/operations"; - -let value: EditanswerRequest = { - editAnswerRequest: { - id: 3, - docId: "ANSWERS_answer_3", - question: "Why is the sky blue?", - bodyText: - "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - addedRoles: [ - { - person: { - name: "George Clooney", - obfuscatedId: "abc123", - }, - role: "ANSWER_MODERATOR", - }, - ], - removedRoles: [ - { - role: "ANSWER_MODERATOR", - }, - ], - roles: [ - { - role: "VERIFIER", - }, - ], - combinedAnswerText: { - text: - "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `editAnswerRequest` | [components.EditAnswerRequest](../../models/components/editanswerrequest.md) | :heavy_check_mark: | EditAnswer request | \ No newline at end of file diff --git a/docs/models/operations/editcollectionitemrequest.md b/docs/models/operations/editcollectionitemrequest.md deleted file mode 100644 index f94640a5..00000000 --- a/docs/models/operations/editcollectionitemrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# EditcollectionitemRequest - -## Example Usage - -```typescript -import { EditcollectionitemRequest } from "@gleanwork/api-client/models/operations"; - -let value: EditcollectionitemRequest = { - editCollectionItemRequest: { - collectionId: 50795, - itemId: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `editCollectionItemRequest` | [components.EditCollectionItemRequest](../../models/components/editcollectionitemrequest.md) | :heavy_check_mark: | Edit Collection Items request | \ No newline at end of file diff --git a/docs/models/operations/editcollectionrequest.md b/docs/models/operations/editcollectionrequest.md deleted file mode 100644 index c350933d..00000000 --- a/docs/models/operations/editcollectionrequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# EditcollectionRequest - -## Example Usage - -```typescript -import { EditcollectionRequest } from "@gleanwork/api-client/models/operations"; - -let value: EditcollectionRequest = { - editCollectionRequest: { - name: "", - addedRoles: [ - { - person: { - name: "George Clooney", - obfuscatedId: "abc123", - }, - role: "ANSWER_MODERATOR", - }, - ], - removedRoles: [ - { - role: "VERIFIER", - }, - ], - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - id: 262821, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `editCollectionRequest` | [components.EditCollectionRequest](../../models/components/editcollectionrequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | \ No newline at end of file diff --git a/docs/models/operations/editpinrequest.md b/docs/models/operations/editpinrequest.md deleted file mode 100644 index d0c4f405..00000000 --- a/docs/models/operations/editpinrequest.md +++ /dev/null @@ -1,35 +0,0 @@ -# EditpinRequest - -## Example Usage - -```typescript -import { EditpinRequest } from "@gleanwork/api-client/models/operations"; - -let value: EditpinRequest = { - editPinRequest: { - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `editPinRequest` | [components.EditPinRequest](../../models/components/editpinrequest.md) | :heavy_check_mark: | Edit pins request | \ No newline at end of file diff --git a/docs/models/operations/feedbackrequest.md b/docs/models/operations/feedbackrequest.md index 225bd6d5..5d470132 100644 --- a/docs/models/operations/feedbackrequest.md +++ b/docs/models/operations/feedbackrequest.md @@ -17,9 +17,7 @@ let value: FeedbackRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `feedbackQueryParameter` | *string* | :heavy_minus_sign: | A URL encoded versions of Feedback. This is useful for requests. | | -| `feedback1` | [components.Feedback](../../models/components/feedback.md) | :heavy_minus_sign: | N/A | {
"trackingTokens": [
"trackingTokens"
],
"event": "VIEW"
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `feedbackQueryParameter` | *string* | :heavy_minus_sign: | A URL encoded versions of Feedback. This is useful for requests. | | +| `feedback1` | [components.Feedback](../../models/components/feedback.md) | :heavy_minus_sign: | N/A | {
"trackingTokens": [
"trackingTokens"
],
"event": "VIEW"
} | \ No newline at end of file diff --git a/docs/models/operations/feedrequest.md b/docs/models/operations/feedrequest.md deleted file mode 100644 index 4ebdc9fc..00000000 --- a/docs/models/operations/feedrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# FeedRequest - -## Example Usage - -```typescript -import { FeedRequest } from "@gleanwork/api-client/models/operations"; - -let value: FeedRequest = { - feedRequest: { - timeoutMillis: 5000, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `feedRequest` | [components.FeedRequest](../../models/components/feedrequest.md) | :heavy_check_mark: | Includes request params, client data and more for making user's feed. | \ No newline at end of file diff --git a/docs/models/operations/getagentinputsrequest.md b/docs/models/operations/getagentinputsrequest.md index aaaf991c..55c2c7df 100644 --- a/docs/models/operations/getagentinputsrequest.md +++ b/docs/models/operations/getagentinputsrequest.md @@ -12,9 +12,7 @@ let value: GetagentinputsRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getAgentInputsRequest` | [components.GetAgentInputsRequest](../../models/components/getagentinputsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getAgentInputsRequest` | [components.GetAgentInputsRequest](../../models/components/getagentinputsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getanswerrequest.md b/docs/models/operations/getanswerrequest.md deleted file mode 100644 index 471b09ed..00000000 --- a/docs/models/operations/getanswerrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetanswerRequest - -## Example Usage - -```typescript -import { GetanswerRequest } from "@gleanwork/api-client/models/operations"; - -let value: GetanswerRequest = { - getAnswerRequest: { - id: 3, - docId: "ANSWERS_answer_3", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getAnswerRequest` | [components.GetAnswerRequest](../../models/components/getanswerrequest.md) | :heavy_check_mark: | GetAnswer request | \ No newline at end of file diff --git a/docs/models/operations/getchatapplicationrequest.md b/docs/models/operations/getchatapplicationrequest.md index 2b885b97..97c8a03f 100644 --- a/docs/models/operations/getchatapplicationrequest.md +++ b/docs/models/operations/getchatapplicationrequest.md @@ -14,9 +14,7 @@ let value: GetchatapplicationRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatApplicationRequest` | [components.GetChatApplicationRequest](../../models/components/getchatapplicationrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatApplicationRequest` | [components.GetChatApplicationRequest](../../models/components/getchatapplicationrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getchatfilesrequest.md b/docs/models/operations/getchatfilesrequest.md index 39b13f4e..b54e9337 100644 --- a/docs/models/operations/getchatfilesrequest.md +++ b/docs/models/operations/getchatfilesrequest.md @@ -16,9 +16,7 @@ let value: GetchatfilesRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatFilesRequest` | [components.GetChatFilesRequest](../../models/components/getchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatFilesRequest` | [components.GetChatFilesRequest](../../models/components/getchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getchatrequest.md b/docs/models/operations/getchatrequest.md index e723d3ed..3cb1aa8f 100644 --- a/docs/models/operations/getchatrequest.md +++ b/docs/models/operations/getchatrequest.md @@ -14,9 +14,7 @@ let value: GetchatRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatRequest` | [components.GetChatRequest](../../models/components/getchatrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatRequest` | [components.GetChatRequest](../../models/components/getchatrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getcollectionrequest.md b/docs/models/operations/getcollectionrequest.md deleted file mode 100644 index e8447fbe..00000000 --- a/docs/models/operations/getcollectionrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetcollectionRequest - -## Example Usage - -```typescript -import { GetcollectionRequest } from "@gleanwork/api-client/models/operations"; - -let value: GetcollectionRequest = { - getCollectionRequest: { - id: 928189, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getCollectionRequest` | [components.GetCollectionRequest](../../models/components/getcollectionrequest.md) | :heavy_check_mark: | GetCollection request | \ No newline at end of file diff --git a/docs/models/operations/getdocpermissionsrequest.md b/docs/models/operations/getdocpermissionsrequest.md deleted file mode 100644 index 23a93c41..00000000 --- a/docs/models/operations/getdocpermissionsrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetdocpermissionsRequest - -## Example Usage - -```typescript -import { GetdocpermissionsRequest } from "@gleanwork/api-client/models/operations"; - -let value: GetdocpermissionsRequest = { - getDocPermissionsRequest: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getDocPermissionsRequest` | [components.GetDocPermissionsRequest](../../models/components/getdocpermissionsrequest.md) | :heavy_check_mark: | Document permissions request | \ No newline at end of file diff --git a/docs/models/operations/getdocumentsbyfacetsrequest.md b/docs/models/operations/getdocumentsbyfacetsrequest.md deleted file mode 100644 index 72000622..00000000 --- a/docs/models/operations/getdocumentsbyfacetsrequest.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetdocumentsbyfacetsRequest - -## Example Usage - -```typescript -import { GetdocumentsbyfacetsRequest } from "@gleanwork/api-client/models/operations"; - -let value: GetdocumentsbyfacetsRequest = { - getDocumentsByFacetsRequest: { - filterSets: [ - { - filters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getDocumentsByFacetsRequest` | [components.GetDocumentsByFacetsRequest](../../models/components/getdocumentsbyfacetsrequest.md) | :heavy_minus_sign: | Information about facet conditions for documents to be retrieved. | \ No newline at end of file diff --git a/docs/models/operations/getdocumentsrequest.md b/docs/models/operations/getdocumentsrequest.md deleted file mode 100644 index 3e0cd0cd..00000000 --- a/docs/models/operations/getdocumentsrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetdocumentsRequest - -## Example Usage - -```typescript -import { GetdocumentsRequest } from "@gleanwork/api-client/models/operations"; - -let value: GetdocumentsRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getDocumentsRequest` | [components.GetDocumentsRequest](../../models/components/getdocumentsrequest.md) | :heavy_minus_sign: | Information about documents requested. | \ No newline at end of file diff --git a/docs/models/operations/getpinrequest.md b/docs/models/operations/getpinrequest.md deleted file mode 100644 index d87d540d..00000000 --- a/docs/models/operations/getpinrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetpinRequest - -## Example Usage - -```typescript -import { GetpinRequest } from "@gleanwork/api-client/models/operations"; - -let value: GetpinRequest = { - getPinRequest: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getPinRequest` | [components.GetPinRequest](../../models/components/getpinrequest.md) | :heavy_check_mark: | Get pin request | \ No newline at end of file diff --git a/docs/models/operations/getshortcutrequest.md b/docs/models/operations/getshortcutrequest.md deleted file mode 100644 index fc7b8c26..00000000 --- a/docs/models/operations/getshortcutrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetshortcutRequest - -## Example Usage - -```typescript -import { GetshortcutRequest } from "@gleanwork/api-client/models/operations"; - -let value: GetshortcutRequest = { - getShortcutRequest: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getShortcutRequest` | *components.GetShortcutRequestUnion* | :heavy_check_mark: | GetShortcut request | \ No newline at end of file diff --git a/docs/models/operations/insightsrequest.md b/docs/models/operations/insightsrequest.md deleted file mode 100644 index 18dc2867..00000000 --- a/docs/models/operations/insightsrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# InsightsRequest - -## Example Usage - -```typescript -import { InsightsRequest } from "@gleanwork/api-client/models/operations"; - -let value: InsightsRequest = { - insightsRequest: { - categories: [ - "CONTENT", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `insightsRequest` | [components.InsightsRequest](../../models/components/insightsrequest.md) | :heavy_check_mark: | Includes request params for insights dashboard data. | \ No newline at end of file diff --git a/docs/models/operations/listagentsrequest.md b/docs/models/operations/listagentsrequest.md index 6bed831c..d77b5d36 100644 --- a/docs/models/operations/listagentsrequest.md +++ b/docs/models/operations/listagentsrequest.md @@ -10,9 +10,7 @@ let value: ListagentsRequest = {}; ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `requestBody` | *any* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `requestBody` | *any* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listanswersrequest.md b/docs/models/operations/listanswersrequest.md deleted file mode 100644 index 18a3be71..00000000 --- a/docs/models/operations/listanswersrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListanswersRequest - -## Example Usage - -```typescript -import { ListanswersRequest } from "@gleanwork/api-client/models/operations"; - -let value: ListanswersRequest = { - listAnswersRequest: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `listAnswersRequest` | [components.ListAnswersRequest](../../models/components/listanswersrequest.md) | :heavy_check_mark: | ListAnswers request | \ No newline at end of file diff --git a/docs/models/operations/listchatsrequest.md b/docs/models/operations/listchatsrequest.md index af61196d..6c3226bc 100644 --- a/docs/models/operations/listchatsrequest.md +++ b/docs/models/operations/listchatsrequest.md @@ -10,8 +10,6 @@ let value: ListchatsRequest = {}; ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file diff --git a/docs/models/operations/listcollectionsrequest.md b/docs/models/operations/listcollectionsrequest.md deleted file mode 100644 index 13b5c710..00000000 --- a/docs/models/operations/listcollectionsrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListcollectionsRequest - -## Example Usage - -```typescript -import { ListcollectionsRequest } from "@gleanwork/api-client/models/operations"; - -let value: ListcollectionsRequest = { - listCollectionsRequest: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `listCollectionsRequest` | [components.ListCollectionsRequest](../../models/components/listcollectionsrequest.md) | :heavy_check_mark: | ListCollections request | \ No newline at end of file diff --git a/docs/models/operations/listentitiesrequest.md b/docs/models/operations/listentitiesrequest.md deleted file mode 100644 index b1976a60..00000000 --- a/docs/models/operations/listentitiesrequest.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListentitiesRequest - -## Example Usage - -```typescript -import { ListentitiesRequest } from "@gleanwork/api-client/models/operations"; - -let value: ListentitiesRequest = { - listEntitiesRequest: { - filter: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - pageSize: 100, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `listEntitiesRequest` | [components.ListEntitiesRequest](../../models/components/listentitiesrequest.md) | :heavy_check_mark: | List people request | \ No newline at end of file diff --git a/docs/models/operations/listpinsrequest.md b/docs/models/operations/listpinsrequest.md index 1880ebb6..8cd82d0f 100644 --- a/docs/models/operations/listpinsrequest.md +++ b/docs/models/operations/listpinsrequest.md @@ -1,19 +1,16 @@ # ListpinsRequest +List pins request + ## Example Usage ```typescript import { ListpinsRequest } from "@gleanwork/api-client/models/operations"; -let value: ListpinsRequest = { - requestBody: {}, -}; +let value: ListpinsRequest = {}; ``` ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `requestBody` | [operations.ListpinsRequestBody](../../models/operations/listpinsrequestbody.md) | :heavy_check_mark: | List pins request | \ No newline at end of file +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/listpinsrequestbody.md b/docs/models/operations/listpinsrequestbody.md deleted file mode 100644 index 72a16c8b..00000000 --- a/docs/models/operations/listpinsrequestbody.md +++ /dev/null @@ -1,16 +0,0 @@ -# ListpinsRequestBody - -List pins request - -## Example Usage - -```typescript -import { ListpinsRequestBody } from "@gleanwork/api-client/models/operations"; - -let value: ListpinsRequestBody = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/listshortcutsrequest.md b/docs/models/operations/listshortcutsrequest.md deleted file mode 100644 index 4ebb3468..00000000 --- a/docs/models/operations/listshortcutsrequest.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListshortcutsRequest - -## Example Usage - -```typescript -import { ListshortcutsRequest } from "@gleanwork/api-client/models/operations"; - -let value: ListshortcutsRequest = { - listShortcutsPaginatedRequest: { - pageSize: 10, - filters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `listShortcutsPaginatedRequest` | [components.ListShortcutsPaginatedRequest](../../models/components/listshortcutspaginatedrequest.md) | :heavy_check_mark: | Filters, sorters, paging params required for pagination | \ No newline at end of file diff --git a/docs/models/operations/listverificationsrequest.md b/docs/models/operations/listverificationsrequest.md index 78894b77..abcb11b1 100644 --- a/docs/models/operations/listverificationsrequest.md +++ b/docs/models/operations/listverificationsrequest.md @@ -10,8 +10,6 @@ let value: ListverificationsRequest = {}; ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `count` | *number* | :heavy_minus_sign: | Maximum number of documents to return | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `count` | *number* | :heavy_minus_sign: | Maximum number of documents to return | \ No newline at end of file diff --git a/docs/models/operations/messagesrequest.md b/docs/models/operations/messagesrequest.md deleted file mode 100644 index 8e9978e7..00000000 --- a/docs/models/operations/messagesrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# MessagesRequest - -## Example Usage - -```typescript -import { MessagesRequest } from "@gleanwork/api-client/models/operations"; - -let value: MessagesRequest = { - messagesRequest: { - idType: "CHANNEL_NAME", - id: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `messagesRequest` | [components.MessagesRequest](../../models/components/messagesrequest.md) | :heavy_check_mark: | Includes request params such as the id for channel/message and direction. | \ No newline at end of file diff --git a/docs/models/operations/peoplerequest.md b/docs/models/operations/peoplerequest.md deleted file mode 100644 index 34c3d0d5..00000000 --- a/docs/models/operations/peoplerequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# PeopleRequest - -## Example Usage - -```typescript -import { PeopleRequest } from "@gleanwork/api-client/models/operations"; - -let value: PeopleRequest = { - peopleRequest: { - obfuscatedIds: [ - "abc123", - "abc456", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `peopleRequest` | [components.PeopleRequest](../../models/components/peoplerequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | \ No newline at end of file diff --git a/docs/models/operations/pinrequest.md b/docs/models/operations/pinrequest.md deleted file mode 100644 index 4329ab46..00000000 --- a/docs/models/operations/pinrequest.md +++ /dev/null @@ -1,35 +0,0 @@ -# PinRequest - -## Example Usage - -```typescript -import { PinRequest } from "@gleanwork/api-client/models/operations"; - -let value: PinRequest = { - pinRequest: { - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `pinRequest` | [components.PinRequest](../../models/components/pinrequest.md) | :heavy_check_mark: | Details about the document and query for the pin. | \ No newline at end of file diff --git a/docs/models/operations/recommendationsrequest.md b/docs/models/operations/recommendationsrequest.md deleted file mode 100644 index a17d648d..00000000 --- a/docs/models/operations/recommendationsrequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# RecommendationsRequest - -## Example Usage - -```typescript -import { RecommendationsRequest } from "@gleanwork/api-client/models/operations"; - -let value: RecommendationsRequest = { - recommendationsRequest: { - sourceDocument: { - containerDocument: { - parentDocument: { - metadata: { - datasource: "datasource", - objectType: "Feature Request", - container: "container", - parentId: "JIRA_EN-1337", - mimeType: "mimeType", - documentId: "documentId", - createTime: new Date("2000-01-23T04:56:07.000Z"), - updateTime: new Date("2000-01-23T04:56:07.000Z"), - author: { - name: "name", - obfuscatedId: "", - }, - components: [ - "Backend", - "Networking", - ], - status: "[\"Done\"]", - customData: { - "someCustomField": {}, - }, - }, - }, - }, - }, - pageSize: 100, - maxSnippetSize: 400, - requestOptions: { - facetFilterSets: [ - { - filters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - }, - ], - context: {}, - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `recommendationsRequest` | [components.RecommendationsRequest](../../models/components/recommendationsrequest.md) | :heavy_minus_sign: | Recommendations request | \ No newline at end of file diff --git a/docs/models/operations/runagentrequest.md b/docs/models/operations/runagentrequest.md index a861ed48..606b9a6d 100644 --- a/docs/models/operations/runagentrequest.md +++ b/docs/models/operations/runagentrequest.md @@ -12,9 +12,7 @@ let value: RunagentRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `runAgentRequest` | [components.RunAgentRequest](../../models/components/runagentrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `runAgentRequest` | [components.RunAgentRequest](../../models/components/runagentrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/searchrequest.md b/docs/models/operations/searchrequest.md deleted file mode 100644 index c35c2926..00000000 --- a/docs/models/operations/searchrequest.md +++ /dev/null @@ -1,50 +0,0 @@ -# SearchRequest - -## Example Usage - -```typescript -import { SearchRequest } from "@gleanwork/api-client/models/operations"; - -let value: SearchRequest = { - searchRequest: { - trackingToken: "trackingToken", - pageSize: 10, - query: "vacation policy", - requestOptions: { - facetFilters: [ - { - fieldName: "type", - values: [ - { - value: "article", - relationType: "EQUALS", - }, - { - value: "document", - relationType: "EQUALS", - }, - ], - }, - { - fieldName: "department", - values: [ - { - value: "engineering", - relationType: "EQUALS", - }, - ], - }, - ], - facetBucketSize: 841371, - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `searchRequest` | [components.SearchRequest](../../models/components/searchrequest.md) | :heavy_minus_sign: | Search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | \ No newline at end of file diff --git a/docs/models/operations/summarizerequest.md b/docs/models/operations/summarizerequest.md deleted file mode 100644 index 2bc134be..00000000 --- a/docs/models/operations/summarizerequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# SummarizeRequest - -## Example Usage - -```typescript -import { SummarizeRequest } from "@gleanwork/api-client/models/operations"; - -let value: SummarizeRequest = { - summarizeRequest: { - documentSpecs: [ - {}, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `summarizeRequest` | [components.SummarizeRequest](../../models/components/summarizerequest.md) | :heavy_check_mark: | Includes request params such as the query and specs of the documents to summarize. | \ No newline at end of file diff --git a/docs/models/operations/unpinrequest.md b/docs/models/operations/unpinrequest.md deleted file mode 100644 index 386347c7..00000000 --- a/docs/models/operations/unpinrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# UnpinRequest - -## Example Usage - -```typescript -import { UnpinRequest } from "@gleanwork/api-client/models/operations"; - -let value: UnpinRequest = { - unpin: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `unpin` | [components.Unpin](../../models/components/unpin.md) | :heavy_check_mark: | Details about the pin being unpinned. | \ No newline at end of file diff --git a/docs/models/operations/updateannouncementrequest.md b/docs/models/operations/updateannouncementrequest.md deleted file mode 100644 index 4ff29ca9..00000000 --- a/docs/models/operations/updateannouncementrequest.md +++ /dev/null @@ -1,44 +0,0 @@ -# UpdateannouncementRequest - -## Example Usage - -```typescript -import { UpdateannouncementRequest } from "@gleanwork/api-client/models/operations"; - -let value: UpdateannouncementRequest = { - updateAnnouncementRequest: { - startTime: new Date("2024-08-06T01:29:54.751Z"), - endTime: new Date("2024-06-28T13:45:35.258Z"), - title: "", - body: { - text: - "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.", - structuredList: [], - }, - audienceFilters: [ - { - fieldName: "type", - values: [ - { - value: "Spreadsheet", - relationType: "EQUALS", - }, - { - value: "Presentation", - relationType: "EQUALS", - }, - ], - }, - ], - id: 940454, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `updateAnnouncementRequest` | [components.UpdateAnnouncementRequest](../../models/components/updateannouncementrequest.md) | :heavy_check_mark: | Announcement content. Id need to be specified for the announcement. | \ No newline at end of file diff --git a/docs/models/operations/updateshortcutrequest.md b/docs/models/operations/updateshortcutrequest.md deleted file mode 100644 index b92db112..00000000 --- a/docs/models/operations/updateshortcutrequest.md +++ /dev/null @@ -1,35 +0,0 @@ -# UpdateshortcutRequest - -## Example Usage - -```typescript -import { UpdateshortcutRequest } from "@gleanwork/api-client/models/operations"; - -let value: UpdateshortcutRequest = { - updateShortcutRequest: { - id: 276298, - addedRoles: [ - { - person: { - name: "George Clooney", - obfuscatedId: "abc123", - }, - role: "VERIFIER", - }, - ], - removedRoles: [ - { - role: "VIEWER", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `updateShortcutRequest` | [components.UpdateShortcutRequest](../../models/components/updateshortcutrequest.md) | :heavy_check_mark: | Shortcut content. Id need to be specified for the shortcut. | \ No newline at end of file diff --git a/docs/models/operations/uploadchatfilesrequest.md b/docs/models/operations/uploadchatfilesrequest.md index 40f4f6f4..0210e2c8 100644 --- a/docs/models/operations/uploadchatfilesrequest.md +++ b/docs/models/operations/uploadchatfilesrequest.md @@ -20,9 +20,7 @@ let value: UploadchatfilesRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `uploadChatFilesRequest` | [components.UploadChatFilesRequest](../../models/components/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `uploadChatFilesRequest` | [components.UploadChatFilesRequest](../../models/components/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/verifyrequest.md b/docs/models/operations/verifyrequest.md deleted file mode 100644 index 1017ba16..00000000 --- a/docs/models/operations/verifyrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# VerifyRequest - -## Example Usage - -```typescript -import { VerifyRequest } from "@gleanwork/api-client/models/operations"; - -let value: VerifyRequest = { - verifyRequest: { - documentId: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `verifyRequest` | [components.VerifyRequest](../../models/components/verifyrequest.md) | :heavy_check_mark: | Details about the verification request. | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index ae5ecf77..3a149ce8 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -89,8 +89,6 @@ import { | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | | `feedbackQueryParameter` | *string* | :heavy_minus_sign: | A URL encoded versions of Feedback. This is useful for requests. | | | `feedback1` | [components.Feedback](../../models/components/feedback.md) | :heavy_minus_sign: | N/A | [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index d82f1e7d..95a55005 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -84,8 +84,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `runAgentRequest` | [components.RunAgentRequest](../../models/components/runagentrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -175,8 +173,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `requestBody` | *any* | :heavy_minus_sign: | N/A | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | @@ -268,8 +264,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `getAgentInputsRequest` | [components.GetAgentInputsRequest](../../models/components/getagentinputsrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | diff --git a/docs/sdks/announcements/README.md b/docs/sdks/announcements/README.md index 80fec3cd..fe85c2cc 100644 --- a/docs/sdks/announcements/README.md +++ b/docs/sdks/announcements/README.md @@ -129,9 +129,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `createAnnouncementRequest` | [components.CreateAnnouncementRequest](../../models/components/createannouncementrequest.md) | :heavy_check_mark: | Announcement content | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.CreateAnnouncementRequest](../../models/components/createannouncementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -222,9 +220,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `deleteAnnouncementRequest` | [components.DeleteAnnouncementRequest](../../models/components/deleteannouncementrequest.md) | :heavy_check_mark: | Delete announcement request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.DeleteAnnouncementRequest](../../models/components/deleteannouncementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -361,9 +357,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `updateAnnouncementRequest` | [components.UpdateAnnouncementRequest](../../models/components/updateannouncementrequest.md) | :heavy_check_mark: | Announcement content. Id need to be specified for the announcement. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.UpdateAnnouncementRequest](../../models/components/updateannouncementrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/answers/README.md b/docs/sdks/answers/README.md index c2f9ab02..977d3380 100644 --- a/docs/sdks/answers/README.md +++ b/docs/sdks/answers/README.md @@ -273,9 +273,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `createAnswerRequest` | [components.CreateAnswerRequest](../../models/components/createanswerrequest.md) | :heavy_check_mark: | CreateAnswer request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.CreateAnswerRequest](../../models/components/createanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -368,9 +366,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `deleteAnswerRequest` | [components.DeleteAnswerRequest](../../models/components/deleteanswerrequest.md) | :heavy_check_mark: | DeleteAnswer request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.DeleteAnswerRequest](../../models/components/deleteanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -623,9 +619,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `editAnswerRequest` | [components.EditAnswerRequest](../../models/components/editanswerrequest.md) | :heavy_check_mark: | EditAnswer request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.EditAnswerRequest](../../models/components/editanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -720,9 +714,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `getAnswerRequest` | [components.GetAnswerRequest](../../models/components/getanswerrequest.md) | :heavy_check_mark: | GetAnswer request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.GetAnswerRequest](../../models/components/getanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -811,9 +803,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `listAnswersRequest` | [components.ListAnswersRequest](../../models/components/listanswersrequest.md) | :heavy_check_mark: | ListAnswers request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.ListAnswersRequest](../../models/components/listanswersrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/chat/README.md b/docs/sdks/chat/README.md index 77f1ab47..70426bac 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -110,8 +110,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `chatRequest` | [components.ChatRequest](../../models/components/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -199,8 +197,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -299,8 +295,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `deleteChatsRequest` | [components.DeleteChatsRequest](../../models/components/deletechatsrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -395,8 +389,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `getChatRequest` | [components.GetChatRequest](../../models/components/getchatrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -486,8 +478,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -582,8 +572,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `getChatApplicationRequest` | [components.GetChatApplicationRequest](../../models/components/getchatapplicationrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -678,8 +666,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `uploadChatFilesRequest` | [components.UploadChatFilesRequest](../../models/components/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -780,8 +766,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `getChatFilesRequest` | [components.GetChatFilesRequest](../../models/components/getchatfilesrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -878,8 +862,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `deleteChatFilesRequest` | [components.DeleteChatFilesRequest](../../models/components/deletechatfilesrequest.md) | :heavy_check_mark: | N/A | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | diff --git a/docs/sdks/clientauthentication/README.md b/docs/sdks/clientauthentication/README.md index e31e98a6..fa1fcf80 100644 --- a/docs/sdks/clientauthentication/README.md +++ b/docs/sdks/clientauthentication/README.md @@ -81,8 +81,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/clientdocuments/README.md b/docs/sdks/clientdocuments/README.md index 61251325..78a3a3b9 100644 --- a/docs/sdks/clientdocuments/README.md +++ b/docs/sdks/clientdocuments/README.md @@ -83,9 +83,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `getDocPermissionsRequest` | [components.GetDocPermissionsRequest](../../models/components/getdocpermissionsrequest.md) | :heavy_check_mark: | Document permissions request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.GetDocPermissionsRequest](../../models/components/getdocpermissionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -174,9 +172,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getDocumentsRequest` | [components.GetDocumentsRequest](../../models/components/getdocumentsrequest.md) | :heavy_minus_sign: | Information about documents requested. | +| `request` | [components.GetDocumentsRequest](../../models/components/getdocumentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -339,9 +335,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `getDocumentsByFacetsRequest` | [components.GetDocumentsByFacetsRequest](../../models/components/getdocumentsbyfacetsrequest.md) | :heavy_minus_sign: | Information about facet conditions for documents to be retrieved. | +| `request` | [components.GetDocumentsByFacetsRequest](../../models/components/getdocumentsbyfacetsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/clientshortcuts/README.md b/docs/sdks/clientshortcuts/README.md index d84ef8aa..bb954296 100644 --- a/docs/sdks/clientshortcuts/README.md +++ b/docs/sdks/clientshortcuts/README.md @@ -212,9 +212,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `createShortcutRequest` | [components.CreateShortcutRequest](../../models/components/createshortcutrequest.md) | :heavy_check_mark: | CreateShortcut request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.CreateShortcutRequest](../../models/components/createshortcutrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -305,9 +303,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `deleteShortcutRequest` | [components.DeleteShortcutRequest](../../models/components/deleteshortcutrequest.md) | :heavy_check_mark: | DeleteShortcut request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.DeleteShortcutRequest](../../models/components/deleteshortcutrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -400,9 +396,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `getShortcutRequest` | *components.GetShortcutRequestUnion* | :heavy_check_mark: | GetShortcut request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.GetShortcutRequestUnion](../../models/components/getshortcutrequestunion.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -525,9 +519,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `listShortcutsPaginatedRequest` | [components.ListShortcutsPaginatedRequest](../../models/components/listshortcutspaginatedrequest.md) | :heavy_check_mark: | Filters, sorters, paging params required for pagination | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.ListShortcutsPaginatedRequest](../../models/components/listshortcutspaginatedrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -734,9 +726,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `updateShortcutRequest` | [components.UpdateShortcutRequest](../../models/components/updateshortcutrequest.md) | :heavy_check_mark: | Shortcut content. Id need to be specified for the shortcut. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.UpdateShortcutRequest](../../models/components/updateshortcutrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index d667b4df..a201f3a0 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -92,9 +92,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `addCollectionItemsRequest` | [components.AddCollectionItemsRequest](../../models/components/addcollectionitemsrequest.md) | :heavy_check_mark: | Data describing the add operation. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.AddCollectionItemsRequest](../../models/components/addcollectionitemsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -337,9 +335,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `createCollectionRequest` | [components.CreateCollectionRequest](../../models/components/createcollectionrequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.CreateCollectionRequest](../../models/components/createcollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -437,9 +433,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `deleteCollectionRequest` | [components.DeleteCollectionRequest](../../models/components/deletecollectionrequest.md) | :heavy_check_mark: | DeleteCollection request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.DeleteCollectionRequest](../../models/components/deletecollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -535,9 +529,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `deleteCollectionItemRequest` | [components.DeleteCollectionItemRequest](../../models/components/deletecollectionitemrequest.md) | :heavy_check_mark: | Data describing the delete operation. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.DeleteCollectionItemRequest](../../models/components/deletecollectionitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -776,9 +768,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `editCollectionRequest` | [components.EditCollectionRequest](../../models/components/editcollectionrequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.EditCollectionRequest](../../models/components/editcollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -874,9 +864,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `editCollectionItemRequest` | [components.EditCollectionItemRequest](../../models/components/editcollectionitemrequest.md) | :heavy_check_mark: | Edit Collection Items request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.EditCollectionItemRequest](../../models/components/editcollectionitemrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -969,9 +957,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `getCollectionRequest` | [components.GetCollectionRequest](../../models/components/getcollectionrequest.md) | :heavy_check_mark: | GetCollection request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.GetCollectionRequest](../../models/components/getcollectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -1060,9 +1046,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `listCollectionsRequest` | [components.ListCollectionsRequest](../../models/components/listcollectionsrequest.md) | :heavy_check_mark: | ListCollections request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.ListCollectionsRequest](../../models/components/listcollectionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/entities/README.md b/docs/sdks/entities/README.md index d74381b8..92d9a72f 100644 --- a/docs/sdks/entities/README.md +++ b/docs/sdks/entities/README.md @@ -116,9 +116,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `listEntitiesRequest` | [components.ListEntitiesRequest](../../models/components/listentitiesrequest.md) | :heavy_check_mark: | List people request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.ListEntitiesRequest](../../models/components/listentitiesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -215,14 +213,12 @@ import { ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `peopleRequest` | [components.PeopleRequest](../../models/components/peoplerequest.md) | :heavy_check_mark: | People request | [object Object] | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [components.PeopleRequest](../../models/components/peoplerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/insights/README.md b/docs/sdks/insights/README.md index 94b5f8fb..440c90c3 100644 --- a/docs/sdks/insights/README.md +++ b/docs/sdks/insights/README.md @@ -91,9 +91,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `insightsRequest` | [components.InsightsRequest](../../models/components/insightsrequest.md) | :heavy_check_mark: | Includes request params for insights dashboard data. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.InsightsRequest](../../models/components/insightsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index 74358607..27eb5856 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -89,9 +89,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `messagesRequest` | [components.MessagesRequest](../../models/components/messagesrequest.md) | :heavy_check_mark: | Includes request params such as the id for channel/message and direction. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.MessagesRequest](../../models/components/messagesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/pins/README.md b/docs/sdks/pins/README.md index 2d9239b7..3d222b1b 100644 --- a/docs/sdks/pins/README.md +++ b/docs/sdks/pins/README.md @@ -117,9 +117,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `editPinRequest` | [components.EditPinRequest](../../models/components/editpinrequest.md) | :heavy_check_mark: | Edit pins request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.EditPinRequest](../../models/components/editpinrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -208,9 +206,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `getPinRequest` | [components.GetPinRequest](../../models/components/getpinrequest.md) | :heavy_check_mark: | Get pin request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.GetPinRequest](../../models/components/getpinrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -299,9 +295,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `requestBody` | [operations.ListpinsRequestBody](../../models/operations/listpinsrequestbody.md) | :heavy_check_mark: | List pins request | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [operations.ListpinsRequest](../../models/operations/listpinsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -422,9 +416,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `pinRequest` | [components.PinRequest](../../models/components/pinrequest.md) | :heavy_check_mark: | Details about the document and query for the pin. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.PinRequest](../../models/components/pinrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -511,9 +503,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `unpin` | [components.Unpin](../../models/components/unpin.md) | :heavy_check_mark: | Details about the pin being unpinned. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.Unpin](../../models/components/unpin.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 5fc3ea1f..2eea3ccc 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -145,14 +145,12 @@ import { ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `searchRequest` | [components.SearchRequest](../../models/components/searchrequest.md) | :heavy_minus_sign: | Admin search request | [object Object] | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [components.SearchRequest](../../models/components/searchrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -265,14 +263,12 @@ import { ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `autocompleteRequest` | [components.AutocompleteRequest](../../models/components/autocompleterequest.md) | :heavy_check_mark: | Autocomplete request | [object Object] | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [components.AutocompleteRequest](../../models/components/autocompleterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response @@ -358,9 +354,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `feedRequest` | [components.FeedRequest](../../models/components/feedrequest.md) | :heavy_check_mark: | Includes request params, client data and more for making user's feed. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.FeedRequest](../../models/components/feedrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -719,9 +713,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | -| `recommendationsRequest` | [components.RecommendationsRequest](../../models/components/recommendationsrequest.md) | :heavy_minus_sign: | Recommendations request | +| `request` | [components.RecommendationsRequest](../../models/components/recommendationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -870,14 +862,12 @@ import { ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | -| `searchRequest` | [components.SearchRequest](../../models/components/searchrequest.md) | :heavy_minus_sign: | Search request | [object Object] | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [components.SearchRequest](../../models/components/searchrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/docs/sdks/summarize/README.md b/docs/sdks/summarize/README.md index 0fa57de6..fedf4d86 100644 --- a/docs/sdks/summarize/README.md +++ b/docs/sdks/summarize/README.md @@ -91,9 +91,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `summarizeRequest` | [components.SummarizeRequest](../../models/components/summarizerequest.md) | :heavy_check_mark: | Includes request params such as the query and specs of the documents to summarize. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.SummarizeRequest](../../models/components/summarizerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/verification/README.md b/docs/sdks/verification/README.md index cd5660ab..ac73697a 100644 --- a/docs/sdks/verification/README.md +++ b/docs/sdks/verification/README.md @@ -87,9 +87,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `reminderRequest` | [components.ReminderRequest](../../models/components/reminderrequest.md) | :heavy_check_mark: | Details about the reminder. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.ReminderRequest](../../models/components/reminderrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -178,8 +176,6 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | | `count` | *number* | :heavy_minus_sign: | Maximum number of documents to return | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | @@ -273,9 +269,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `verifyRequest` | [components.VerifyRequest](../../models/components/verifyrequest.md) | :heavy_check_mark: | Details about the verification request. | -| `xGleanActAs` | *string* | :heavy_minus_sign: | Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). | -| `xGleanAuthType` | *string* | :heavy_minus_sign: | Auth type being used to access the endpoint (should be non-empty only for global tokens). | +| `request` | [components.VerifyRequest](../../models/components/verifyrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/eslint.config.mjs b/eslint.config.mjs index 3483f71b..67bccfec 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -11,6 +11,7 @@ export default [ { rules: { "no-constant-condition": "off", + "no-useless-escape": "off", // Handled by typescript compiler "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-explicit-any": "off", diff --git a/jsr.json b/jsr.json index cc9a0f44..b5d9d169 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@gleanwork/api-client", - "version": "0.1.0-beta.1", + "version": "0.1.0-beta.2", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 51ff12cc..6d55fe70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gleanwork/api-client", - "version": "0.1.0-beta.1", + "version": "0.1.0-beta.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gleanwork/api-client", - "version": "0.1.0-beta.1", + "version": "0.1.0-beta.2", "devDependencies": { "@eslint/js": "^9.19.0", "@tanstack/react-query": "^5.61.4", diff --git a/package.json b/package.json index ded7876f..93abdbff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gleanwork/api-client", - "version": "0.1.0-beta.1", + "version": "0.1.0-beta.2", "author": "Speakeasy", "type": "module", "tshy": { diff --git a/speakeasyusagegen/.speakeasy/logs/naming.log b/speakeasyusagegen/.speakeasy/logs/naming.log index 428d0025..5fe8bd3a 100644 --- a/speakeasyusagegen/.speakeasy/logs/naming.log +++ b/speakeasyusagegen/.speakeasy/logs/naming.log @@ -10,8 +10,8 @@ DEBUG add_name: Renamed to "DocumentSpec" DEBUG add_name: Renamed to "DocumentOrError" labels: "scope:shared refName:DocumentOrError" registrationID: "scope:shared refType:Schemas refName:DocumentOrError component:true oneOfPosition:2 originalName:" -DEBUG prepend_op_id: Renamed to "listpins_RequestBody" - labels: "original_name:RequestBody operation:listpins operationTag:client.pins requestResponse:request" +DEBUG prepend_op_id: Renamed to "listpins_request" + labels: "original_name:request operation:listpins operationTag:client.pins" registrationID: "scope:operations operationTag:client.pins operation:listpins requestResponse:request originalName:RequestBody" DEBUG add_name: Renamed to "GetShortcutRequest" labels: "scope:shared refName:GetShortcutRequest" @@ -304,8 +304,8 @@ DEBUG discriminated: Renamed to "client_shortcuts" DEBUG discriminated: Renamed to "indexing_shortcuts" labels: "original_name:shortcuts group:indexing data_type:SDK mainSDK:Glean" registrationID: "scope:sdk mainSDK:Glean group:indexing originalName:shortcuts" -DEBUG prepend_op_id: N/A rename "listpins_RequestBody" - labels: "original_name:RequestBody operation:listpins operationTag:client.pins requestResponse:request" +DEBUG prepend_op_id: N/A rename "listpins_request" + labels: "original_name:request operation:listpins operationTag:client.pins" registrationID: "scope:operations operationTag:client.pins operation:listpins requestResponse:request originalName:RequestBody" DEBUG @@ -319,7 +319,7 @@ Activity (events: array) ActivityResponse (HttpMeta: HTTPMetadata) HttpMetadata (Response: response, Request: request) Activities (SDK empty) -FeedbackRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, feedbackQueryParameter: string ...) +FeedbackRequest (feedbackQueryParameter: string, Feedback1: Feedback) Feedback (id: string, category: enum, trackingTokens: array ...) FeedbackCategory (enum: ANNOUNCEMENT, AUTOCOMPLETE, COLLECTIONS ...) Event (enum: CLICK, CONTAINER_CLICK, COPY_LINK ...) @@ -338,179 +338,170 @@ FeedbackRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, feedbackQuery WorkflowFeedbackInfoSource (enum: ZERO_STATE, LIBRARY, HOMEPAGE) FeedbackResponse (HttpMeta: HTTPMetadata) Announcements (SDK empty) -CreateannouncementRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, CreateAnnouncementRequest: CreateAnnouncementRequest) - CreateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) - StructuredText (text: string, structuredList: array) - StructuredTextItem (link: string, document: Document, text: string) - Document (id: string, datasource: string, connectorType: ConnectorType ...) - ConnectorType (enum: API_CRAWL, BROWSER_CRAWL, BROWSER_HISTORY ...) - DocumentContent (fullTextList: array) - DocumentMetadata (datasource: string, datasourceInstance: string, objectType: string ...) - Person (name: string, obfuscatedId: string, relatedDocuments: array ...) - RelatedDocuments (relation: enum, associatedEntityId: string, querySuggestion: QuerySuggestion ...) - Relation (enum: ATTACHMENT, CANONICAL, CASE ...) - QuerySuggestion (missingTerm: string, query: string, searchProviderInfo: SearchProviderInfo ...) - SearchProviderInfo (name: string, logoUrl: string, searchLinkUrlTemplate: string) - SearchRequestOptions (datasourceFilter: string, datasourcesFilter: array, queryOverridesFacetFilters: boolean ...) - FacetFilter (fieldName: string, values: array, groupName: string) - FacetFilterValue (value: string, relationType: enum, isNegated: boolean) - RelationType (enum: EQUALS, ID_EQUALS, LT ...) - FacetFilterSet (filters: array) - FacetBucketFilter (facet: string, prefix: string) - AuthToken (accessToken: string, datasource: string, scope: string ...) - ResponseHint (enum: ALL_RESULT_COUNTS, FACET_RESULTS, QUERY_METADATA ...) - RestrictionFilters (containerSpecs: array) - DocumentSpecUnion (union) - DocumentSpec1 (url: string) - DocumentSpec2 (id: string) - DocumentSpec3 (ugcType: enum, contentId: integer, docType: string) - DocumentSpecUgcType (enum: ANNOUNCEMENTS, ANSWERS, COLLECTIONS ...) - TextRange (startIndex: integer, endIndex: integer, type: enum ...) - TextRangeType (enum: BOLD, CITATION, LINK) - DocumentSection (title: string, url: string) - SearchRequestInputDetails (hasCopyPaste: boolean) - SearchResult (structuredResults: array, trackingToken: string, document: Document ...) - StructuredResult (document: Document, person: Person, customer: Customer ...) - PersonMetadata (type: enum, firstName: string, lastName: string ...) - PersonMetadataType (enum: FULL_TIME, CONTRACTOR, NON_EMPLOYEE ...) - PersonTeam (id: string, name: string, externalLink: string ...) - PersonTeamRelationship (enum: MEMBER, MANAGER, LEAD ...) - StructuredLocation (deskLocation: string, timezone: string, address: string ...) - SocialNetwork (name: string, profileName: string, profileUrl: string) - DatasourceProfile (datasource: string, handle: string, url: string ...) - QuerySuggestionList (suggestions: array, person: Person) - PersonDistance (name: string, obfuscatedId: string, distance: float32) - InviteInfo (signUpTime: date-time, invites: array, inviter: Person ...) - ChannelInviteInfo (channel: CommunicationChannel, isAutoInvite: boolean, inviter: Person ...) - CommunicationChannel (enum: COMMUNICATION_CHANNEL_EMAIL, COMMUNICATION_CHANNEL_SLACK) - Permissions (canAdminSearch: boolean, canAdminClientApiGlobalTokens: boolean, canDlp: boolean ...) - ReadPermission (scopeType: ScopeType) - ScopeType (enum: GLOBAL, OWN) - WritePermission (scopeType: ScopeType, create: boolean, update: boolean ...) - GrantPermission (scopeType: ScopeType) - CustomFieldData (label: string, values: array, displayable: boolean) - CustomFieldValue (union) - CustomFieldValueStr (strText: string) - CustomFieldValueHyperlink (urlAnchor: string, urlLink: string) - CustomFieldValuePerson (person: Person) - AnonymousEvent (time: TimeInterval, eventType: enum) - TimeInterval (start: string, end: string) - AnonymousEventEventType (enum: DEFAULT, OUT_OF_OFFICE) - Badge (key: string, displayName: string, iconConfig: IconConfig ...) - IconConfig (generatedBackgroundColorKey: string, backgroundColor: string, color: string ...) - IconType (enum: COLLECTION, CUSTOM, DATASOURCE ...) - Customer (id: string, domains: array, company: Company ...) - Company (name: string, profileUrl: string, websiteUrls: array ...) - CustomerMetadata (datasourceId: string, customData: map) - CustomDataValue (displayLabel: string, stringValue: string, stringListValue: array ...) - Team (relatedObjects: map, permissions: ObjectPermissions, id: string ...) - RelatedObjectEdge (objects: array) - RelatedObject (id: string, metadata: class) - Metadata (name: string) - ObjectPermissions (write: WritePermission) - PersonToTeamRelationship (person: Person, relationship: enum, customRelationshipStr: string ...) - PersonToTeamRelationshipRelationship (enum: MEMBER, MANAGER, LEAD ...) - TeamEmail (email: string, type: string) - TeamStatus (enum: PROCESSED, QUEUED_FOR_CREATION, QUEUED_FOR_DELETION) - CustomEntity (permissions: ObjectPermissions, id: string, title: string ...) - CustomEntityMetadata (customData: map) - UserRoleSpecification (sourceDocumentSpec: DocumentSpec_union, person: Person, group: Group ...) - Group (type: GroupType, id: string, name: string) - GroupType (enum: DEPARTMENT, ALL, TEAM ...) - UserRole (enum: OWNER, VIEWER, ANSWER_MODERATOR ...) - Answer (id: integer, docId: string, question: string ...) - AnswerSourceType (enum: DOCUMENT, ASSISTANT) - AnswerLikes (likedBy: array, likedByUser: boolean, numLikes: integer) - AnswerLike (user: Person, createTime: date-time) - Verification (state: enum, metadata: VerificationMetadata) - State (enum: UNVERIFIED, VERIFIED, DEPRECATED) - VerificationMetadata (lastVerifier: Person, lastVerificationTs: integer, expirationTs: integer ...) - Reminder (assignee: Person, requestor: Person, remindAt: integer ...) - CountInfo (count: integer, period: Period, org: string) - Period (minDaysFromNow: integer, maxDaysFromNow: integer, start: TimePoint ...) - TimePoint (epochSeconds: integer, daysFromNow: integer) - AnswerBoard (name: string, description: string, addedRoles: array ...) - Collection (name: string, description: string, addedRoles: array ...) - Thumbnail (photoId: string, url: string) - CollectionItem (name: string, description: string, icon: string ...) - Shortcut (inputAlias: string, description: string, destinationUrl: string ...) - CollectionPinnedMetadata (existingPins: array, eligiblePins: array) - CollectionPinTarget (category: CollectionPinnableCategories, value: string, target: CollectionPinnableTargets) - CollectionPinnableCategories (enum: COMPANY_RESOURCE, DEPARTMENT_RESOURCE, TEAM_RESOURCE) - CollectionPinnableTargets (enum: RESOURCE_CARD, TEAM_PROFILE_PAGE) - CollectionPinMetadata (id: integer, target: CollectionPinTarget) - CollectionItemItemType (enum: DOCUMENT, TEXT, URL ...) - ExtractedQnA (heading: string, question: string, questionResult: SearchResult) - SearchResultSnippet (snippet: string, mimeType: string, text: string ...) - ClusterGroup (clusteredResults: array, clusterType: ClusterTypeEnum, visibleCountHint: integer) - ClusterTypeEnum (enum: SIMILAR, FRESHNESS, TITLE ...) - SearchResultProminenceEnum (enum: HERO, PROMOTED, STANDARD) - PinDocument (queries: array, audienceFilters: array, id: string ...) - Meeting (id: string, title: string, description: string ...) - CalendarAttendees (people: array, isLimit: boolean, total: integer ...) - CalendarAttendee (isOrganizer: boolean, isInGroup: boolean, person: Person ...) - ResponseStatus (enum: ACCEPTED, DECLINED, NO_RESPONSE ...) - AppResult (datasource: string, docType: string, mimeType: string ...) - Code (repoName: string, fileName: string, fileUrl: string ...) - CodeLine (lineNumber: integer, content: string, ranges: array) - RelatedQuestion (question: string, answer: string, ranges: array) - Disambiguation (name: string, id: string, type: EntityType) - EntityType (enum: PERSON, PROJECT, CUSTOMER) - Prominence (enum: HERO, PROMOTED, STANDARD) - StructuredResultSource (enum: EXPERT_DETECTION, ENTITY_NLQ) - DocumentVisibility (enum: PRIVATE, SPECIFIC_PEOPLE_AND_GROUPS, DOMAIN_LINK ...) - DocumentInteractions (numComments: integer, numReactions: integer, reactions: array ...) - Reaction (type: string, count: integer, reactors: array ...) - Share (numDaysAgo: integer, sharer: Person, sharingDocument: Document) - ViewerInfo (role: enum, lastViewedTime: date-time) - Role (enum: ANSWER_MODERATOR, OWNER, VIEWER) - IndexStatus (lastCrawledTime: date-time, lastIndexedTime: date-time) - CreateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) - CreateAnnouncementRequestPostType (enum: TEXT, LINK) +CreateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) + StructuredText (text: string, structuredList: array) + StructuredTextItem (link: string, document: Document, text: string) + Document (id: string, datasource: string, connectorType: ConnectorType ...) + ConnectorType (enum: API_CRAWL, BROWSER_CRAWL, BROWSER_HISTORY ...) + DocumentContent (fullTextList: array) + DocumentMetadata (datasource: string, datasourceInstance: string, objectType: string ...) + Person (name: string, obfuscatedId: string, relatedDocuments: array ...) + RelatedDocuments (relation: enum, associatedEntityId: string, querySuggestion: QuerySuggestion ...) + Relation (enum: ATTACHMENT, CANONICAL, CASE ...) + QuerySuggestion (missingTerm: string, query: string, searchProviderInfo: SearchProviderInfo ...) + SearchProviderInfo (name: string, logoUrl: string, searchLinkUrlTemplate: string) + SearchRequestOptions (datasourceFilter: string, datasourcesFilter: array, queryOverridesFacetFilters: boolean ...) + FacetFilter (fieldName: string, values: array, groupName: string) + FacetFilterValue (value: string, relationType: enum, isNegated: boolean) + RelationType (enum: EQUALS, ID_EQUALS, LT ...) + FacetFilterSet (filters: array) + FacetBucketFilter (facet: string, prefix: string) + AuthToken (accessToken: string, datasource: string, scope: string ...) + ResponseHint (enum: ALL_RESULT_COUNTS, FACET_RESULTS, QUERY_METADATA ...) + RestrictionFilters (containerSpecs: array) + DocumentSpecUnion (union) + DocumentSpec1 (url: string) + DocumentSpec2 (id: string) + DocumentSpec3 (ugcType: enum, contentId: integer, docType: string) + DocumentSpecUgcType (enum: ANNOUNCEMENTS, ANSWERS, COLLECTIONS ...) + TextRange (startIndex: integer, endIndex: integer, type: enum ...) + TextRangeType (enum: BOLD, CITATION, LINK) + DocumentSection (title: string, url: string) + SearchRequestInputDetails (hasCopyPaste: boolean) + SearchResult (structuredResults: array, trackingToken: string, document: Document ...) + StructuredResult (document: Document, person: Person, customer: Customer ...) + PersonMetadata (type: enum, firstName: string, lastName: string ...) + PersonMetadataType (enum: FULL_TIME, CONTRACTOR, NON_EMPLOYEE ...) + PersonTeam (id: string, name: string, externalLink: string ...) + PersonTeamRelationship (enum: MEMBER, MANAGER, LEAD ...) + StructuredLocation (deskLocation: string, timezone: string, address: string ...) + SocialNetwork (name: string, profileName: string, profileUrl: string) + DatasourceProfile (datasource: string, handle: string, url: string ...) + QuerySuggestionList (suggestions: array, person: Person) + PersonDistance (name: string, obfuscatedId: string, distance: float32) + InviteInfo (signUpTime: date-time, invites: array, inviter: Person ...) + ChannelInviteInfo (channel: CommunicationChannel, isAutoInvite: boolean, inviter: Person ...) + CommunicationChannel (enum: COMMUNICATION_CHANNEL_EMAIL, COMMUNICATION_CHANNEL_SLACK) + Permissions (canAdminSearch: boolean, canAdminClientApiGlobalTokens: boolean, canDlp: boolean ...) + ReadPermission (scopeType: ScopeType) + ScopeType (enum: GLOBAL, OWN) + WritePermission (scopeType: ScopeType, create: boolean, update: boolean ...) + GrantPermission (scopeType: ScopeType) + CustomFieldData (label: string, values: array, displayable: boolean) + CustomFieldValue (union) + CustomFieldValueStr (strText: string) + CustomFieldValueHyperlink (urlAnchor: string, urlLink: string) + CustomFieldValuePerson (person: Person) + AnonymousEvent (time: TimeInterval, eventType: enum) + TimeInterval (start: string, end: string) + AnonymousEventEventType (enum: DEFAULT, OUT_OF_OFFICE) + Badge (key: string, displayName: string, iconConfig: IconConfig ...) + IconConfig (generatedBackgroundColorKey: string, backgroundColor: string, color: string ...) + IconType (enum: COLLECTION, CUSTOM, DATASOURCE ...) + Customer (id: string, domains: array, company: Company ...) + Company (name: string, profileUrl: string, websiteUrls: array ...) + CustomerMetadata (datasourceId: string, customData: map) + CustomDataValue (displayLabel: string, stringValue: string, stringListValue: array ...) + Team (relatedObjects: map, permissions: ObjectPermissions, id: string ...) + RelatedObjectEdge (objects: array) + RelatedObject (id: string, metadata: class) + Metadata (name: string) + ObjectPermissions (write: WritePermission) + PersonToTeamRelationship (person: Person, relationship: enum, customRelationshipStr: string ...) + PersonToTeamRelationshipRelationship (enum: MEMBER, MANAGER, LEAD ...) + TeamEmail (email: string, type: string) + TeamStatus (enum: PROCESSED, QUEUED_FOR_CREATION, QUEUED_FOR_DELETION) + CustomEntity (permissions: ObjectPermissions, id: string, title: string ...) + CustomEntityMetadata (customData: map) + UserRoleSpecification (sourceDocumentSpec: DocumentSpec_union, person: Person, group: Group ...) + Group (type: GroupType, id: string, name: string) + GroupType (enum: DEPARTMENT, ALL, TEAM ...) + UserRole (enum: OWNER, VIEWER, ANSWER_MODERATOR ...) + Answer (id: integer, docId: string, question: string ...) + AnswerSourceType (enum: DOCUMENT, ASSISTANT) + AnswerLikes (likedBy: array, likedByUser: boolean, numLikes: integer) + AnswerLike (user: Person, createTime: date-time) + Verification (state: enum, metadata: VerificationMetadata) + State (enum: UNVERIFIED, VERIFIED, DEPRECATED) + VerificationMetadata (lastVerifier: Person, lastVerificationTs: integer, expirationTs: integer ...) + Reminder (assignee: Person, requestor: Person, remindAt: integer ...) + CountInfo (count: integer, period: Period, org: string) + Period (minDaysFromNow: integer, maxDaysFromNow: integer, start: TimePoint ...) + TimePoint (epochSeconds: integer, daysFromNow: integer) + AnswerBoard (name: string, description: string, addedRoles: array ...) + Collection (name: string, description: string, addedRoles: array ...) + Thumbnail (photoId: string, url: string) + CollectionItem (name: string, description: string, icon: string ...) + Shortcut (inputAlias: string, description: string, destinationUrl: string ...) + CollectionPinnedMetadata (existingPins: array, eligiblePins: array) + CollectionPinTarget (category: CollectionPinnableCategories, value: string, target: CollectionPinnableTargets) + CollectionPinnableCategories (enum: COMPANY_RESOURCE, DEPARTMENT_RESOURCE, TEAM_RESOURCE) + CollectionPinnableTargets (enum: RESOURCE_CARD, TEAM_PROFILE_PAGE) + CollectionPinMetadata (id: integer, target: CollectionPinTarget) + CollectionItemItemType (enum: DOCUMENT, TEXT, URL ...) + ExtractedQnA (heading: string, question: string, questionResult: SearchResult) + SearchResultSnippet (snippet: string, mimeType: string, text: string ...) + ClusterGroup (clusteredResults: array, clusterType: ClusterTypeEnum, visibleCountHint: integer) + ClusterTypeEnum (enum: SIMILAR, FRESHNESS, TITLE ...) + SearchResultProminenceEnum (enum: HERO, PROMOTED, STANDARD) + PinDocument (queries: array, audienceFilters: array, id: string ...) + Meeting (id: string, title: string, description: string ...) + CalendarAttendees (people: array, isLimit: boolean, total: integer ...) + CalendarAttendee (isOrganizer: boolean, isInGroup: boolean, person: Person ...) + ResponseStatus (enum: ACCEPTED, DECLINED, NO_RESPONSE ...) + AppResult (datasource: string, docType: string, mimeType: string ...) + Code (repoName: string, fileName: string, fileUrl: string ...) + CodeLine (lineNumber: integer, content: string, ranges: array) + RelatedQuestion (question: string, answer: string, ranges: array) + Disambiguation (name: string, id: string, type: EntityType) + EntityType (enum: PERSON, PROJECT, CUSTOMER) + Prominence (enum: HERO, PROMOTED, STANDARD) + StructuredResultSource (enum: EXPERT_DETECTION, ENTITY_NLQ) + DocumentVisibility (enum: PRIVATE, SPECIFIC_PEOPLE_AND_GROUPS, DOMAIN_LINK ...) + DocumentInteractions (numComments: integer, numReactions: integer, reactions: array ...) + Reaction (type: string, count: integer, reactors: array ...) + Share (numDaysAgo: integer, sharer: Person, sharingDocument: Document) + ViewerInfo (role: enum, lastViewedTime: date-time) + Role (enum: ANSWER_MODERATOR, OWNER, VIEWER) + IndexStatus (lastCrawledTime: date-time, lastIndexedTime: date-time) + CreateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) + CreateAnnouncementRequestPostType (enum: TEXT, LINK) CreateannouncementResponse (HttpMeta: HTTPMetadata, Announcement: Announcement) Announcement (startTime: date-time, endTime: date-time, title: string ...) AnnouncementChannel (enum: MAIN, SOCIAL_FEED) AnnouncementPostType (enum: TEXT, LINK) AnnouncementViewerInfo (isDismissed: boolean, isRead: boolean) -DeleteannouncementRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, DeleteAnnouncementRequest: DeleteAnnouncementRequest) - DeleteAnnouncementRequest (id: integer) +DeleteAnnouncementRequest (id: integer) DeleteannouncementResponse (HttpMeta: HTTPMetadata) -UpdateannouncementRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, UpdateAnnouncementRequest: UpdateAnnouncementRequest) - UpdateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) - UpdateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) - UpdateAnnouncementRequestPostType (enum: TEXT, LINK) +UpdateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) + UpdateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) + UpdateAnnouncementRequestPostType (enum: TEXT, LINK) UpdateannouncementResponse (HttpMeta: HTTPMetadata, Announcement: Announcement) Answers (SDK empty) -CreateanswerRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, CreateAnswerRequest: CreateAnswerRequest) - CreateAnswerRequest (data: AnswerCreationData) - AnswerCreationData (question: string, questionVariations: array, bodyText: string ...) - AnswerCreationDataSourceType (enum: DOCUMENT, ASSISTANT) - StructuredTextMutableProperties (text: string) +CreateAnswerRequest (data: AnswerCreationData) + AnswerCreationData (question: string, questionVariations: array, bodyText: string ...) + AnswerCreationDataSourceType (enum: DOCUMENT, ASSISTANT) + StructuredTextMutableProperties (text: string) CreateanswerResponse (HttpMeta: HTTPMetadata, Answer: Answer) -DeleteanswerRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, DeleteAnswerRequest: DeleteAnswerRequest) - DeleteAnswerRequest (id: integer, docId: string) +DeleteAnswerRequest (id: integer, docId: string) DeleteanswerResponse (HttpMeta: HTTPMetadata) -EditanswerRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, EditAnswerRequest: EditAnswerRequest) - EditAnswerRequest (id: integer, docId: string, question: string ...) - EditAnswerRequestSourceType (enum: DOCUMENT, ASSISTANT) +EditAnswerRequest (id: integer, docId: string, question: string ...) + EditAnswerRequestSourceType (enum: DOCUMENT, ASSISTANT) EditanswerResponse (HttpMeta: HTTPMetadata, Answer: Answer) -GetanswerRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, GetAnswerRequest: GetAnswerRequest) - GetAnswerRequest (id: integer, docId: string) +GetAnswerRequest (id: integer, docId: string) GetanswerResponse (HttpMeta: HTTPMetadata, GetAnswerResponse: GetAnswerResponse) GetAnswerResponse (answerResult: AnswerResult, error: GetAnswerError) AnswerResult (answer: Answer, trackingToken: string) GetAnswerError (errorType: enum, answerAuthor: Person) GetAnswerErrorErrorType (enum: NO_PERMISSION, INVALID_ID) -ListanswersRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, ListAnswersRequest: ListAnswersRequest) - ListAnswersRequest (boardId: integer) +ListAnswersRequest (boardId: integer) ListanswersResponse (HttpMeta: HTTPMetadata, ListAnswersResponse: ListAnswersResponse) ListAnswersResponse (answerResults: array) ClientAuthentication (SDK empty) -CreateauthtokenRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string) CreateauthtokenResponse (HttpMeta: HTTPMetadata, CreateAuthTokenResponse: CreateAuthTokenResponse) CreateAuthTokenResponse (token: string, expirationTime: integer) Chat (SDK empty) -ChatRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +ChatRequest (timezoneOffset: integer, ChatRequest: ChatRequest) ChatRequest (saveChat: boolean, chatId: string, messages: array ...) ChatMessage (agentConfig: AgentConfig, author: enum, citations: array ...) AgentConfig (agent: enum, mode: enum) @@ -541,102 +532,90 @@ ChatRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: i MessageType (enum: UPDATE, CONTENT, CONTEXT ...) ChatRestrictionFilters (containerSpecs: array, documentSpecs: array, datasourceInstances: array) ChatResponse (HttpMeta: HTTPMetadata, ChatResponse: string) -DeleteallchatsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer) +DeleteallchatsRequest (timezoneOffset: integer) DeleteallchatsResponse (HttpMeta: HTTPMetadata) -DeletechatsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +DeletechatsRequest (timezoneOffset: integer, DeleteChatsRequest: DeleteChatsRequest) DeleteChatsRequest (ids: array) DeletechatsResponse (HttpMeta: HTTPMetadata) -GetchatRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +GetchatRequest (timezoneOffset: integer, GetChatRequest: GetChatRequest) GetChatRequest (id: string) GetchatResponse (HttpMeta: HTTPMetadata, GetChatResponse: GetChatResponse) GetChatResponse (chatResult: ChatResult) ChatResult (chat: Chat, trackingToken: string) Chat (id: string, createTime: integer, createdBy: Person ...) -ListchatsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer) +ListchatsRequest (timezoneOffset: integer) ListchatsResponse (HttpMeta: HTTPMetadata, ListChatsResponse: ListChatsResponse) ListChatsResponse (chatResults: array) ChatMetadataResult (chat: ChatMetadata, trackingToken: string) ChatMetadata (id: string, createTime: integer, createdBy: Person ...) -GetchatapplicationRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +GetchatapplicationRequest (timezoneOffset: integer, GetChatApplicationRequest: GetChatApplicationRequest) GetChatApplicationRequest (id: string) GetchatapplicationResponse (HttpMeta: HTTPMetadata, GetChatApplicationResponse: GetChatApplicationResponse) GetChatApplicationResponse (application: any) -UploadchatfilesRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +UploadchatfilesRequest (timezoneOffset: integer, UploadChatFilesRequest: UploadChatFilesRequest) UploadChatFilesRequest (files: array) File (fileName: string, content: request-stream) UploadchatfilesResponse (HttpMeta: HTTPMetadata, UploadChatFilesResponse: UploadChatFilesResponse) UploadChatFilesResponse (files: array) -GetchatfilesRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +GetchatfilesRequest (timezoneOffset: integer, GetChatFilesRequest: GetChatFilesRequest) GetChatFilesRequest (fileIds: array) GetchatfilesResponse (HttpMeta: HTTPMetadata, GetChatFilesResponse: GetChatFilesResponse) GetChatFilesResponse (files: map) -DeletechatfilesRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +DeletechatfilesRequest (timezoneOffset: integer, DeleteChatFilesRequest: DeleteChatFilesRequest) DeleteChatFilesRequest (fileIds: array) DeletechatfilesResponse (HttpMeta: HTTPMetadata) Collections (SDK empty) -AddcollectionitemsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, AddCollectionItemsRequest: AddCollectionItemsRequest) - AddCollectionItemsRequest (collectionId: number, addedCollectionItemDescriptors: array) - CollectionItemDescriptor (name: string, description: string, icon: string ...) - CollectionItemDescriptorItemType (enum: DOCUMENT, TEXT, URL) +AddCollectionItemsRequest (collectionId: number, addedCollectionItemDescriptors: array) + CollectionItemDescriptor (name: string, description: string, icon: string ...) + CollectionItemDescriptorItemType (enum: DOCUMENT, TEXT, URL) AddcollectionitemsResponse (HttpMeta: HTTPMetadata, AddCollectionItemsResponse: AddCollectionItemsResponse) AddCollectionItemsResponse (collection: Collection, error: AddCollectionItemsError) AddCollectionItemsError (errorType: enum) AddCollectionItemsErrorErrorType (enum: EXISTING_ITEM) -CreatecollectionRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, CreateCollectionRequest: CreateCollectionRequest) - CreateCollectionRequest (name: string, description: string, addedRoles: array ...) +CreateCollectionRequest (name: string, description: string, addedRoles: array ...) CreatecollectionResponse (HttpMeta: HTTPMetadata, CreateCollectionResponse: CreateCollectionResponse) CreateCollectionResponse (name: string, description: string, addedRoles: array ...) CreateCollectionResponseErrorCode (enum: NAME_EXISTS, NOT_FOUND, COLLECTION_PINNED ...) CollectionError (errorCode: enum) CollectionErrorErrorCode (enum: NAME_EXISTS, NOT_FOUND, COLLECTION_PINNED ...) CollectionError (error) -DeletecollectionRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, DeleteCollectionRequest: DeleteCollectionRequest) - DeleteCollectionRequest (ids: array, allowedDatasource: string) +DeleteCollectionRequest (ids: array, allowedDatasource: string) DeletecollectionResponse (HttpMeta: HTTPMetadata) -DeletecollectionitemRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, DeleteCollectionItemRequest: DeleteCollectionItemRequest) - DeleteCollectionItemRequest (collectionId: number, itemId: string, documentId: string) +DeleteCollectionItemRequest (collectionId: number, itemId: string, documentId: string) DeletecollectionitemResponse (HttpMeta: HTTPMetadata, DeleteCollectionItemResponse: DeleteCollectionItemResponse) DeleteCollectionItemResponse (collection: Collection) -EditcollectionRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, EditCollectionRequest: EditCollectionRequest) - EditCollectionRequest (name: string, description: string, addedRoles: array ...) +EditCollectionRequest (name: string, description: string, addedRoles: array ...) EditcollectionResponse (HttpMeta: HTTPMetadata, EditCollectionResponse: EditCollectionResponse) EditCollectionResponse (name: string, description: string, addedRoles: array ...) EditCollectionResponseErrorCode (enum: NAME_EXISTS, NOT_FOUND, COLLECTION_PINNED ...) -EditcollectionitemRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, EditCollectionItemRequest: EditCollectionItemRequest) - EditCollectionItemRequest (name: string, description: string, icon: string ...) +EditCollectionItemRequest (name: string, description: string, icon: string ...) EditcollectionitemResponse (HttpMeta: HTTPMetadata, EditCollectionItemResponse: EditCollectionItemResponse) EditCollectionItemResponse (collection: Collection) -GetcollectionRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, GetCollectionRequest: GetCollectionRequest) - GetCollectionRequest (id: integer, withItems: boolean, withHierarchy: boolean ...) +GetCollectionRequest (id: integer, withItems: boolean, withHierarchy: boolean ...) GetcollectionResponse (HttpMeta: HTTPMetadata, GetCollectionResponse: GetCollectionResponse) GetCollectionResponse (collection: Collection, rootCollection: Collection, trackingToken: string ...) -ListcollectionsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, ListCollectionsRequest: ListCollectionsRequest) - ListCollectionsRequest (includeAudience: boolean, includeRoles: boolean, allowedDatasource: string) +ListCollectionsRequest (includeAudience: boolean, includeRoles: boolean, allowedDatasource: string) ListcollectionsResponse (HttpMeta: HTTPMetadata, ListCollectionsResponse: ListCollectionsResponse) ListCollectionsResponse (collections: array) ClientDocuments (SDK empty) -GetdocpermissionsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, GetDocPermissionsRequest: GetDocPermissionsRequest) - GetDocPermissionsRequest (documentId: string) +GetDocPermissionsRequest (documentId: string) GetdocpermissionsResponse (HttpMeta: HTTPMetadata, GetDocPermissionsResponse: GetDocPermissionsResponse) GetDocPermissionsResponse (allowedUserEmails: array) -GetdocumentsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, GetDocumentsRequest: GetDocumentsRequest) - GetDocumentsRequest (documentSpecs: array, includeFields: array) - GetDocumentsRequestIncludeField (enum: LAST_VIEWED_AT, VISITORS_COUNT, RECENT_SHARES ...) +GetDocumentsRequest (documentSpecs: array, includeFields: array) + GetDocumentsRequestIncludeField (enum: LAST_VIEWED_AT, VISITORS_COUNT, RECENT_SHARES ...) GetdocumentsResponse (HttpMeta: HTTPMetadata, GetDocumentsResponse: GetDocumentsResponse) GetDocumentsResponse (documents: map) DocumentOrErrorUnion (union) DocumentOrError (error: string) -GetdocumentsbyfacetsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, GetDocumentsByFacetsRequest: GetDocumentsByFacetsRequest) - GetDocumentsByFacetsRequest (datasourcesFilter: array, filterSets: array, cursor: string) +GetDocumentsByFacetsRequest (datasourcesFilter: array, filterSets: array, cursor: string) GetdocumentsbyfacetsResponse (HttpMeta: HTTPMetadata, GetDocumentsByFacetsResponse: GetDocumentsByFacetsResponse) GetDocumentsByFacetsResponse (documents: array, hasMoreResults: boolean, cursor: string) Insights (SDK empty) -InsightsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, InsightsRequest: InsightsRequest) - InsightsRequest (categories: array, departments: array, dayRange: Period ...) - InsightsRequestCategory (enum: AGENTS, AI, AI_APPS ...) - InsightsAiAppRequestOptions (aiAppIds: array) - InsightsAgentsRequestOptions (agentIds: array) - AssistantActivityType (enum: GLEAN_CHAT, AI_SUMMARY, AI_ANSWER ...) +InsightsRequest (categories: array, departments: array, dayRange: Period ...) + InsightsRequestCategory (enum: AGENTS, AI, AI_APPS ...) + InsightsAiAppRequestOptions (aiAppIds: array) + InsightsAgentsRequestOptions (agentIds: array) + AssistantActivityType (enum: GLEAN_CHAT, AI_SUMMARY, AI_ANSWER ...) InsightsResponse (HttpMeta: HTTPMetadata, InsightsResponse: InsightsResponse) InsightsResponse (timeseries: array, users: UserInsightsResponse, content: ContentInsightsResponse ...) LabeledCountInfo (label: string, countInfo: array) @@ -654,11 +633,10 @@ InsightsResponse (HttpMeta: HTTPMetadata, InsightsResponse: InsightsResponse) AiAppActionCounts (totalSlackbotResponses: integer, totalSlackbotResponsesShared: integer, totalSlackbotResponsesNotHelpful: integer ...) GleanAssistInsightsResponse (lastLogTimestamp: integer, activityInsights: array, totalActiveUsers: integer ...) Messages (SDK empty) -MessagesRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, MessagesRequest: MessagesRequest) - MessagesRequest (idType: enum, id: string, workspaceId: string ...) - IdType (enum: CHANNEL_NAME, THREAD_ID, CONVERSATION_ID) - Direction (enum: OLDER, NEWER) - Datasource (enum: SLACK, MICROSOFTTEAMS, FACEBOOKWORKPLACE) +MessagesRequest (idType: enum, id: string, workspaceId: string ...) + IdType (enum: CHANNEL_NAME, THREAD_ID, CONVERSATION_ID) + Direction (enum: OLDER, NEWER) + Datasource (enum: SLACK, MICROSOFTTEAMS, FACEBOOKWORKPLACE) MessagesResponse (HttpMeta: HTTPMetadata, MessagesResponse: MessagesResponse) MessagesResponse (hasMore: boolean, searchResponse: SearchResponse, rootMessage: SearchResult) SearchResponse (trackingToken: string, sessionInfo: SessionInfo, results: array ...) @@ -677,31 +655,24 @@ MessagesResponse (HttpMeta: HTTPMetadata, MessagesResponse: MessagesResponse) ResultTab (id: string, count: integer, datasource: string ...) ResultsDescription (text: string, iconConfig: IconConfig) Pins (SDK empty) -EditpinRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, EditPinRequest: EditPinRequest) - EditPinRequest (queries: array, audienceFilters: array, id: string) +EditPinRequest (queries: array, audienceFilters: array, id: string) EditpinResponse (HttpMeta: HTTPMetadata, PinDocument: PinDocument) -GetpinRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, GetPinRequest: GetPinRequest) - GetPinRequest (id: string) +GetPinRequest (id: string) GetpinResponse (HttpMeta: HTTPMetadata, GetPinResponse: GetPinResponse) GetPinResponse (pin: PinDocument) -ListpinsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, RequestBody: class) - ListpinsRequestBody (empty) +ListpinsRequest (empty) ListpinsResponse (HttpMeta: HTTPMetadata, ListPinsResponse: ListPinsResponse) ListPinsResponse (pins: array) -PinRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, PinRequest: PinRequest) - PinRequest (queries: array, audienceFilters: array, documentId: string) +PinRequest (queries: array, audienceFilters: array, documentId: string) PinResponse (HttpMeta: HTTPMetadata, PinDocument: PinDocument) -UnpinRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, Unpin: Unpin) - Unpin (id: string) +Unpin (id: string) UnpinResponse (HttpMeta: HTTPMetadata) Search (SDK empty) -AdminsearchRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, SearchRequest: SearchRequest) - SearchRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) +SearchRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) AdminsearchResponse (HttpMeta: HTTPMetadata, SearchResponse: SearchResponse) GleanDataError (error) -AutocompleteRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, AutocompleteRequest: AutocompleteRequest) - AutocompleteRequest (trackingToken: string, sessionInfo: SessionInfo, query: string ...) - AutocompleteRequestResultType (enum: ADDITIONAL_DOCUMENT, APP, BROWSER_HISTORY ...) +AutocompleteRequest (trackingToken: string, sessionInfo: SessionInfo, query: string ...) + AutocompleteRequestResultType (enum: ADDITIONAL_DOCUMENT, APP, BROWSER_HISTORY ...) AutocompleteResponse (HttpMeta: HTTPMetadata, AutocompleteResponse: AutocompleteResponse) AutocompleteResponse (experimentIds: array, trackingToken: string, sessionInfo: SessionInfo ...) AutocompleteResult (result: string, keywords: array, resultType: enum ...) @@ -712,12 +683,11 @@ AutocompleteResponse (HttpMeta: HTTPMetadata, AutocompleteResponse: Autocomplete Quicklink (name: string, shortName: string, url: string ...) Scope (enum: APP_CARD, AUTOCOMPLETE_EXACT_MATCH, AUTOCOMPLETE_FUZZY_MATCH ...) AutocompleteResultGroup (startIndex: integer, endIndex: integer, title: string) -FeedRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, FeedRequest: FeedRequest) - FeedRequest (categories: array, requestOptions: FeedRequestOptions, timeoutMillis: integer ...) - FeedRequestCategory (enum: DOCUMENT_SUGGESTION, DOCUMENT_SUGGESTION_SCENARIO, TRENDING_DOCUMENT ...) - FeedRequestOptions (resultSize: integer, timezoneOffset: integer, categoryToResultSize: map ...) - CategoryToResultSize (resultSize: integer) - ChatZeroStateSuggestionOptions (applicationId: string) +FeedRequest (categories: array, requestOptions: FeedRequestOptions, timeoutMillis: integer ...) + FeedRequestCategory (enum: DOCUMENT_SUGGESTION, DOCUMENT_SUGGESTION_SCENARIO, TRENDING_DOCUMENT ...) + FeedRequestOptions (resultSize: integer, timezoneOffset: integer, categoryToResultSize: map ...) + CategoryToResultSize (resultSize: integer) + ChatZeroStateSuggestionOptions (applicationId: string) FeedResponse (HttpMeta: HTTPMetadata, FeedResponse: FeedResponse) FeedResponse (experimentIds: array, trackingToken: string, serverTimestamp: integer ...) FeedResult (category: enum, primaryEntry: FeedEntry, secondaryEntries: array ...) @@ -746,87 +716,75 @@ FeedResponse (HttpMeta: HTTPMetadata, FeedResponse: FeedResponse) Workflow (author: Person, createTimestamp: integer, lastUpdateTimestamp: integer ...) UserActivity (actor: Person, timestamp: integer, action: enum ...) UserActivityAction (enum: ADD, ADD_REMINDER, CLICK ...) -RecommendationsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, RecommendationsRequest: RecommendationsRequest) - RecommendationsRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) - RecommendationsRequestOptions (datasourceFilter: string, datasourcesFilter: array, facetFilterSets: array ...) +RecommendationsRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) + RecommendationsRequestOptions (datasourceFilter: string, datasourcesFilter: array, facetFilterSets: array ...) RecommendationsResponse (HttpMeta: HTTPMetadata, ResultsResponse: ResultsResponse) ResultsResponse (trackingToken: string, sessionInfo: SessionInfo, results: array ...) -SearchRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, SearchRequest: SearchRequest) SearchResponse (HttpMeta: HTTPMetadata, SearchResponse: SearchResponse) Entities (SDK empty) -ListentitiesRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, ListEntitiesRequest: ListEntitiesRequest) - ListEntitiesRequest (filter: array, sort: array, entityType: enum ...) - SortOptions (orderBy: enum, sortBy: string) - OrderBy (enum: ASC, DESC) - ListEntitiesRequestEntityType (enum: PEOPLE, TEAMS, CUSTOM_ENTITIES) - ListEntitiesRequestIncludeField (enum: PEOPLE, TEAMS, PEOPLE_DISTANCE ...) +ListEntitiesRequest (filter: array, sort: array, entityType: enum ...) + SortOptions (orderBy: enum, sortBy: string) + OrderBy (enum: ASC, DESC) + ListEntitiesRequestEntityType (enum: PEOPLE, TEAMS, CUSTOM_ENTITIES) + ListEntitiesRequestIncludeField (enum: PEOPLE, TEAMS, PEOPLE_DISTANCE ...) ListentitiesResponse (HttpMeta: HTTPMetadata, ListEntitiesResponse: ListEntitiesResponse) ListEntitiesResponse (results: array, teamResults: array, customEntityResults: array ...) EntitiesSortOrder (enum: ENTITY_NAME, FIRST_NAME, LAST_NAME ...) -PeopleRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, PeopleRequest: PeopleRequest) - PeopleRequest (timezoneOffset: integer, obfuscatedIds: array, emailIds: array ...) - PeopleRequestIncludeField (enum: BADGES, BUSY_EVENTS, DOCUMENT_ACTIVITY ...) - IncludeType (enum: PEOPLE_WITHOUT_MANAGER, INVALID_ENTITIES) +PeopleRequest (timezoneOffset: integer, obfuscatedIds: array, emailIds: array ...) + PeopleRequestIncludeField (enum: BADGES, BUSY_EVENTS, DOCUMENT_ACTIVITY ...) + IncludeType (enum: PEOPLE_WITHOUT_MANAGER, INVALID_ENTITIES) PeopleResponse (HttpMeta: HTTPMetadata, PeopleResponse: PeopleResponse) PeopleResponse (results: array, relatedDocuments: array, errors: array) ClientShortcuts (SDK empty) -CreateshortcutRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, CreateShortcutRequest: CreateShortcutRequest) - CreateShortcutRequest (data: ShortcutMutableProperties) - ShortcutMutableProperties (inputAlias: string, destinationUrl: string, destinationDocumentId: string ...) +CreateShortcutRequest (data: ShortcutMutableProperties) + ShortcutMutableProperties (inputAlias: string, destinationUrl: string, destinationDocumentId: string ...) CreateshortcutResponse (HttpMeta: HTTPMetadata, CreateShortcutResponse: CreateShortcutResponse) CreateShortcutResponse (shortcut: Shortcut, error: ShortcutError) ShortcutError (errorType: enum) ShortcutErrorErrorType (enum: NO_PERMISSION, INVALID_ID, EXISTING_SHORTCUT ...) -DeleteshortcutRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, DeleteShortcutRequest: DeleteShortcutRequest) - DeleteShortcutRequest (id: integer) +DeleteShortcutRequest (id: integer) DeleteshortcutResponse (HttpMeta: HTTPMetadata) -GetshortcutRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, GetShortcutRequest: GetShortcutRequest_union) - GetShortcutRequestUnion (union) - UserGeneratedContentId (id: integer) - GetShortcutRequest (alias: string) +GetShortcutRequestUnion (union) + UserGeneratedContentId (id: integer) + GetShortcutRequest (alias: string) GetshortcutResponse (HttpMeta: HTTPMetadata, GetShortcutResponse: GetShortcutResponse) GetShortcutResponse (shortcut: Shortcut, error: ShortcutError) -ListshortcutsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, ListShortcutsPaginatedRequest: ListShortcutsPaginatedRequest) - ListShortcutsPaginatedRequest (includeFields: array, pageSize: integer, cursor: string ...) - ListShortcutsPaginatedRequestIncludeField (enum: FACETS, PEOPLE_DETAILS) +ListShortcutsPaginatedRequest (includeFields: array, pageSize: integer, cursor: string ...) + ListShortcutsPaginatedRequestIncludeField (enum: FACETS, PEOPLE_DETAILS) ListshortcutsResponse (HttpMeta: HTTPMetadata, ListShortcutsPaginatedResponse: ListShortcutsPaginatedResponse) ListShortcutsPaginatedResponse (shortcuts: array, facetResults: array, meta: ShortcutsPaginationMetadata) ShortcutsPaginationMetadata (cursor: string, hasNextPage: boolean, totalItemCount: integer) -UpdateshortcutRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, UpdateShortcutRequest: UpdateShortcutRequest) - UpdateShortcutRequest (id: integer, inputAlias: string, destinationUrl: string ...) +UpdateShortcutRequest (id: integer, inputAlias: string, destinationUrl: string ...) UpdateshortcutResponse (HttpMeta: HTTPMetadata, UpdateShortcutResponse: UpdateShortcutResponse) UpdateShortcutResponse (shortcut: Shortcut, error: ShortcutError) UploadShortcutsRequest (uploadId: string, isFirstPage: boolean, isLastPage: boolean ...) PostApiIndexV1UploadshortcutsResponse (HttpMeta: HTTPMetadata) Summarize (SDK empty) -SummarizeRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, SummarizeRequest: SummarizeRequest) - SummarizeRequest (timestamp: date-time, query: string, preferredSummaryLength: integer ...) +SummarizeRequest (timestamp: date-time, query: string, preferredSummaryLength: integer ...) SummarizeResponse (HttpMeta: HTTPMetadata, SummarizeResponse: SummarizeResponse) SummarizeResponse (error: class, summary: Summary, trackingToken: string) Error (message: string) Summary (text: string, followUpPrompts: array) Verification (SDK empty) -AddverificationreminderRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, ReminderRequest: ReminderRequest) - ReminderRequest (documentId: string, assignee: string, remindInDays: integer ...) +ReminderRequest (documentId: string, assignee: string, remindInDays: integer ...) AddverificationreminderResponse (HttpMeta: HTTPMetadata, Verification: Verification) -ListverificationsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, count: integer) +ListverificationsRequest (count: integer) ListverificationsResponse (HttpMeta: HTTPMetadata, VerificationFeed: VerificationFeed) VerificationFeed (documents: array) -VerifyRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, VerifyRequest: VerifyRequest) - VerifyRequest (documentId: string, action: enum) - VerifyRequestAction (enum: VERIFY, DEPRECATE, UNVERIFY) +VerifyRequest (documentId: string, action: enum) + VerifyRequestAction (enum: VERIFY, DEPRECATE, UNVERIFY) VerifyResponse (HttpMeta: HTTPMetadata, Verification: Verification) Agents (SDK empty) -RunagentRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +RunagentRequest (timezoneOffset: integer, RunAgentRequest: RunAgentRequest) RunAgentRequest (agentId: string, fields: map, stream: boolean) RunagentResponse (HttpMeta: HTTPMetadata, ChatResponse: ChatResponse) ChatResponse (messages: array, chatId: string, followUpPrompts: array ...) -ListagentsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +ListagentsRequest (timezoneOffset: integer, RequestBody: any) ListagentsResponse (HttpMeta: HTTPMetadata, ListAgentsResponse: ListAgentsResponse) ListAgentsResponse (agents: array) AgentResult (agent: Agent) Agent (author: Person, createTimestamp: integer, lastUpdateTimestamp: integer ...) -GetagentinputsRequest (X-Glean-ActAs: string, X-Glean-Auth-Type: string, timezoneOffset: integer ...) +GetagentinputsRequest (timezoneOffset: integer, GetAgentInputsRequest: GetAgentInputsRequest) GetAgentInputsRequest (agentId: string) GetagentinputsResponse (HttpMeta: HTTPMetadata, GetAgentInputsResponse: GetAgentInputsResponse) GetAgentInputsResponse (inputs: array) diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/addcollectionitems.go b/src/__tests__/mockserver/internal/sdk/models/operations/addcollectionitems.go index af9eec45..fd74638a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/addcollectionitems.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/addcollectionitems.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type AddcollectionitemsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Data describing the add operation. - AddCollectionItemsRequest components.AddCollectionItemsRequest `request:"mediaType=application/json"` -} - -func (o *AddcollectionitemsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *AddcollectionitemsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *AddcollectionitemsRequest) GetAddCollectionItemsRequest() components.AddCollectionItemsRequest { - if o == nil { - return components.AddCollectionItemsRequest{} - } - return o.AddCollectionItemsRequest -} - type AddcollectionitemsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/addverificationreminder.go b/src/__tests__/mockserver/internal/sdk/models/operations/addverificationreminder.go index febcc5ee..fb8ab5ad 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/addverificationreminder.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/addverificationreminder.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type AddverificationreminderRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Details about the reminder. - ReminderRequest components.ReminderRequest `request:"mediaType=application/json"` -} - -func (o *AddverificationreminderRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *AddverificationreminderRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *AddverificationreminderRequest) GetReminderRequest() components.ReminderRequest { - if o == nil { - return components.ReminderRequest{} - } - return o.ReminderRequest -} - type AddverificationreminderResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/adminsearch.go b/src/__tests__/mockserver/internal/sdk/models/operations/adminsearch.go index ac1167bc..3a9fc431 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/adminsearch.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/adminsearch.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type AdminsearchRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Admin search request - SearchRequest *components.SearchRequest `request:"mediaType=application/json"` -} - -func (o *AdminsearchRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *AdminsearchRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *AdminsearchRequest) GetSearchRequest() *components.SearchRequest { - if o == nil { - return nil - } - return o.SearchRequest -} - type AdminsearchResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/autocomplete.go b/src/__tests__/mockserver/internal/sdk/models/operations/autocomplete.go index 59f609c5..106f5474 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/autocomplete.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/autocomplete.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type AutocompleteRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Autocomplete request - AutocompleteRequest components.AutocompleteRequest `request:"mediaType=application/json"` -} - -func (o *AutocompleteRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *AutocompleteRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *AutocompleteRequest) GetAutocompleteRequest() components.AutocompleteRequest { - if o == nil { - return components.AutocompleteRequest{} - } - return o.AutocompleteRequest -} - type AutocompleteResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/chat.go b/src/__tests__/mockserver/internal/sdk/models/operations/chat.go index 81b8a676..cc3e33de 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/chat.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/chat.go @@ -7,30 +7,12 @@ import ( ) type ChatRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` // Includes chat history for Glean AI to respond to. ChatRequest components.ChatRequest `request:"mediaType=application/json"` } -func (o *ChatRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ChatRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *ChatRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createannouncement.go b/src/__tests__/mockserver/internal/sdk/models/operations/createannouncement.go index 9301fa94..86d9ba17 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createannouncement.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createannouncement.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type CreateannouncementRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Announcement content - CreateAnnouncementRequest components.CreateAnnouncementRequest `request:"mediaType=application/json"` -} - -func (o *CreateannouncementRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *CreateannouncementRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *CreateannouncementRequest) GetCreateAnnouncementRequest() components.CreateAnnouncementRequest { - if o == nil { - return components.CreateAnnouncementRequest{} - } - return o.CreateAnnouncementRequest -} - type CreateannouncementResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createanswer.go b/src/__tests__/mockserver/internal/sdk/models/operations/createanswer.go index 339744d2..8abc5c94 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createanswer.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createanswer.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type CreateanswerRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // CreateAnswer request - CreateAnswerRequest components.CreateAnswerRequest `request:"mediaType=application/json"` -} - -func (o *CreateanswerRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *CreateanswerRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *CreateanswerRequest) GetCreateAnswerRequest() components.CreateAnswerRequest { - if o == nil { - return components.CreateAnswerRequest{} - } - return o.CreateAnswerRequest -} - type CreateanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createauthtoken.go b/src/__tests__/mockserver/internal/sdk/models/operations/createauthtoken.go index caf9c5af..be32a0f3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createauthtoken.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createauthtoken.go @@ -6,27 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type CreateauthtokenRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` -} - -func (o *CreateauthtokenRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *CreateauthtokenRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - type CreateauthtokenResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createcollection.go b/src/__tests__/mockserver/internal/sdk/models/operations/createcollection.go index 7fb0e3ac..f4d44e36 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createcollection.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createcollection.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type CreatecollectionRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Collection content plus any additional metadata for the request. - CreateCollectionRequest components.CreateCollectionRequest `request:"mediaType=application/json"` -} - -func (o *CreatecollectionRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *CreatecollectionRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *CreatecollectionRequest) GetCreateCollectionRequest() components.CreateCollectionRequest { - if o == nil { - return components.CreateCollectionRequest{} - } - return o.CreateCollectionRequest -} - type CreatecollectionResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createshortcut.go b/src/__tests__/mockserver/internal/sdk/models/operations/createshortcut.go index 3ed81cbe..b17cc638 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createshortcut.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createshortcut.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type CreateshortcutRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // CreateShortcut request - CreateShortcutRequest components.CreateShortcutRequest `request:"mediaType=application/json"` -} - -func (o *CreateshortcutRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *CreateshortcutRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *CreateshortcutRequest) GetCreateShortcutRequest() components.CreateShortcutRequest { - if o == nil { - return components.CreateShortcutRequest{} - } - return o.CreateShortcutRequest -} - type CreateshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deleteallchats.go b/src/__tests__/mockserver/internal/sdk/models/operations/deleteallchats.go index 202d3ac8..d28cebb1 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deleteallchats.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deleteallchats.go @@ -7,28 +7,10 @@ import ( ) type DeleteallchatsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` } -func (o *DeleteallchatsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeleteallchatsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *DeleteallchatsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deleteannouncement.go b/src/__tests__/mockserver/internal/sdk/models/operations/deleteannouncement.go index 22ff88e0..774b4d1f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deleteannouncement.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deleteannouncement.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type DeleteannouncementRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Delete announcement request - DeleteAnnouncementRequest components.DeleteAnnouncementRequest `request:"mediaType=application/json"` -} - -func (o *DeleteannouncementRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeleteannouncementRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *DeleteannouncementRequest) GetDeleteAnnouncementRequest() components.DeleteAnnouncementRequest { - if o == nil { - return components.DeleteAnnouncementRequest{} - } - return o.DeleteAnnouncementRequest -} - type DeleteannouncementResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deleteanswer.go b/src/__tests__/mockserver/internal/sdk/models/operations/deleteanswer.go index 13858866..46b181b2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deleteanswer.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deleteanswer.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type DeleteanswerRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // DeleteAnswer request - DeleteAnswerRequest components.DeleteAnswerRequest `request:"mediaType=application/json"` -} - -func (o *DeleteanswerRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeleteanswerRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *DeleteanswerRequest) GetDeleteAnswerRequest() components.DeleteAnswerRequest { - if o == nil { - return components.DeleteAnswerRequest{} - } - return o.DeleteAnswerRequest -} - type DeleteanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deletechatfiles.go b/src/__tests__/mockserver/internal/sdk/models/operations/deletechatfiles.go index fa4e2b88..0d3acc15 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deletechatfiles.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deletechatfiles.go @@ -7,29 +7,11 @@ import ( ) type DeletechatfilesRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` DeleteChatFilesRequest components.DeleteChatFilesRequest `request:"mediaType=application/json"` } -func (o *DeletechatfilesRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeletechatfilesRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *DeletechatfilesRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deletechats.go b/src/__tests__/mockserver/internal/sdk/models/operations/deletechats.go index 6ea593a3..a3f3f497 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deletechats.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deletechats.go @@ -7,29 +7,11 @@ import ( ) type DeletechatsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` DeleteChatsRequest components.DeleteChatsRequest `request:"mediaType=application/json"` } -func (o *DeletechatsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeletechatsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *DeletechatsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deletecollection.go b/src/__tests__/mockserver/internal/sdk/models/operations/deletecollection.go index 41ea09e2..b21f01fa 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deletecollection.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deletecollection.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type DeletecollectionRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // DeleteCollection request - DeleteCollectionRequest components.DeleteCollectionRequest `request:"mediaType=application/json"` -} - -func (o *DeletecollectionRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeletecollectionRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *DeletecollectionRequest) GetDeleteCollectionRequest() components.DeleteCollectionRequest { - if o == nil { - return components.DeleteCollectionRequest{} - } - return o.DeleteCollectionRequest -} - type DeletecollectionResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deletecollectionitem.go b/src/__tests__/mockserver/internal/sdk/models/operations/deletecollectionitem.go index 1f930d6d..f9b6a404 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deletecollectionitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deletecollectionitem.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type DeletecollectionitemRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Data describing the delete operation. - DeleteCollectionItemRequest components.DeleteCollectionItemRequest `request:"mediaType=application/json"` -} - -func (o *DeletecollectionitemRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeletecollectionitemRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *DeletecollectionitemRequest) GetDeleteCollectionItemRequest() components.DeleteCollectionItemRequest { - if o == nil { - return components.DeleteCollectionItemRequest{} - } - return o.DeleteCollectionItemRequest -} - type DeletecollectionitemResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/deleteshortcut.go b/src/__tests__/mockserver/internal/sdk/models/operations/deleteshortcut.go index ac6e9876..03a740b6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/deleteshortcut.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/deleteshortcut.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type DeleteshortcutRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // DeleteShortcut request - DeleteShortcutRequest components.DeleteShortcutRequest `request:"mediaType=application/json"` -} - -func (o *DeleteshortcutRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *DeleteshortcutRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *DeleteshortcutRequest) GetDeleteShortcutRequest() components.DeleteShortcutRequest { - if o == nil { - return components.DeleteShortcutRequest{} - } - return o.DeleteShortcutRequest -} - type DeleteshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/editanswer.go b/src/__tests__/mockserver/internal/sdk/models/operations/editanswer.go index 4727b38b..92a67c43 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/editanswer.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/editanswer.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type EditanswerRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // EditAnswer request - EditAnswerRequest components.EditAnswerRequest `request:"mediaType=application/json"` -} - -func (o *EditanswerRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *EditanswerRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *EditanswerRequest) GetEditAnswerRequest() components.EditAnswerRequest { - if o == nil { - return components.EditAnswerRequest{} - } - return o.EditAnswerRequest -} - type EditanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/editcollection.go b/src/__tests__/mockserver/internal/sdk/models/operations/editcollection.go index 915ba76b..6b17b377 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/editcollection.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/editcollection.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type EditcollectionRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Collection content plus any additional metadata for the request. - EditCollectionRequest components.EditCollectionRequest `request:"mediaType=application/json"` -} - -func (o *EditcollectionRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *EditcollectionRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *EditcollectionRequest) GetEditCollectionRequest() components.EditCollectionRequest { - if o == nil { - return components.EditCollectionRequest{} - } - return o.EditCollectionRequest -} - type EditcollectionResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/editcollectionitem.go b/src/__tests__/mockserver/internal/sdk/models/operations/editcollectionitem.go index e1076925..8ac9f5a9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/editcollectionitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/editcollectionitem.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type EditcollectionitemRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Edit Collection Items request - EditCollectionItemRequest components.EditCollectionItemRequest `request:"mediaType=application/json"` -} - -func (o *EditcollectionitemRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *EditcollectionitemRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *EditcollectionitemRequest) GetEditCollectionItemRequest() components.EditCollectionItemRequest { - if o == nil { - return components.EditCollectionItemRequest{} - } - return o.EditCollectionItemRequest -} - type EditcollectionitemResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/editpin.go b/src/__tests__/mockserver/internal/sdk/models/operations/editpin.go index 64dc4363..921ea93c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/editpin.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/editpin.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type EditpinRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Edit pins request - EditPinRequest components.EditPinRequest `request:"mediaType=application/json"` -} - -func (o *EditpinRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *EditpinRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *EditpinRequest) GetEditPinRequest() components.EditPinRequest { - if o == nil { - return components.EditPinRequest{} - } - return o.EditPinRequest -} - type EditpinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/feed.go b/src/__tests__/mockserver/internal/sdk/models/operations/feed.go index a4a082f0..1d0cbfbf 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/feed.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/feed.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type FeedRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Includes request params, client data and more for making user's feed. - FeedRequest components.FeedRequest `request:"mediaType=application/json"` -} - -func (o *FeedRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *FeedRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *FeedRequest) GetFeedRequest() components.FeedRequest { - if o == nil { - return components.FeedRequest{} - } - return o.FeedRequest -} - type FeedResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/feedback.go b/src/__tests__/mockserver/internal/sdk/models/operations/feedback.go index 4c3bc0c2..e81f65fc 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/feedback.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/feedback.go @@ -7,29 +7,11 @@ import ( ) type FeedbackRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // A URL encoded versions of Feedback. This is useful for requests. FeedbackQueryParameter *string `queryParam:"style=form,explode=true,name=feedback"` Feedback1 *components.Feedback `request:"mediaType=application/json"` } -func (o *FeedbackRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *FeedbackRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *FeedbackRequest) GetFeedbackQueryParameter() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getagentinputs.go b/src/__tests__/mockserver/internal/sdk/models/operations/getagentinputs.go index bfac72c6..878c5377 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getagentinputs.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getagentinputs.go @@ -7,29 +7,11 @@ import ( ) type GetagentinputsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` GetAgentInputsRequest components.GetAgentInputsRequest `request:"mediaType=application/json"` } -func (o *GetagentinputsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetagentinputsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *GetagentinputsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getanswer.go b/src/__tests__/mockserver/internal/sdk/models/operations/getanswer.go index f76b8028..ce29ef9f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getanswer.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getanswer.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type GetanswerRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // GetAnswer request - GetAnswerRequest components.GetAnswerRequest `request:"mediaType=application/json"` -} - -func (o *GetanswerRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetanswerRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *GetanswerRequest) GetGetAnswerRequest() components.GetAnswerRequest { - if o == nil { - return components.GetAnswerRequest{} - } - return o.GetAnswerRequest -} - type GetanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getchat.go b/src/__tests__/mockserver/internal/sdk/models/operations/getchat.go index 8d30baa0..9ce30de8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getchat.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getchat.go @@ -7,29 +7,11 @@ import ( ) type GetchatRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` GetChatRequest components.GetChatRequest `request:"mediaType=application/json"` } -func (o *GetchatRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetchatRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *GetchatRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getchatapplication.go b/src/__tests__/mockserver/internal/sdk/models/operations/getchatapplication.go index 94baefa6..ec673be9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getchatapplication.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getchatapplication.go @@ -7,29 +7,11 @@ import ( ) type GetchatapplicationRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` GetChatApplicationRequest components.GetChatApplicationRequest `request:"mediaType=application/json"` } -func (o *GetchatapplicationRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetchatapplicationRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *GetchatapplicationRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getchatfiles.go b/src/__tests__/mockserver/internal/sdk/models/operations/getchatfiles.go index 26dfa7f0..24bcda85 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getchatfiles.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getchatfiles.go @@ -7,29 +7,11 @@ import ( ) type GetchatfilesRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` GetChatFilesRequest components.GetChatFilesRequest `request:"mediaType=application/json"` } -func (o *GetchatfilesRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetchatfilesRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *GetchatfilesRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getcollection.go b/src/__tests__/mockserver/internal/sdk/models/operations/getcollection.go index f59231f3..38e38763 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getcollection.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getcollection.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type GetcollectionRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // GetCollection request - GetCollectionRequest components.GetCollectionRequest `request:"mediaType=application/json"` -} - -func (o *GetcollectionRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetcollectionRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *GetcollectionRequest) GetGetCollectionRequest() components.GetCollectionRequest { - if o == nil { - return components.GetCollectionRequest{} - } - return o.GetCollectionRequest -} - type GetcollectionResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdocpermissions.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdocpermissions.go index f3e33bfe..a509a3a7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdocpermissions.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdocpermissions.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type GetdocpermissionsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Document permissions request - GetDocPermissionsRequest components.GetDocPermissionsRequest `request:"mediaType=application/json"` -} - -func (o *GetdocpermissionsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetdocpermissionsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *GetdocpermissionsRequest) GetGetDocPermissionsRequest() components.GetDocPermissionsRequest { - if o == nil { - return components.GetDocPermissionsRequest{} - } - return o.GetDocPermissionsRequest -} - type GetdocpermissionsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdocuments.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdocuments.go index 9bf8219d..a2ef5c08 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdocuments.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdocuments.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type GetdocumentsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Information about documents requested. - GetDocumentsRequest *components.GetDocumentsRequest `request:"mediaType=application/json"` -} - -func (o *GetdocumentsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetdocumentsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *GetdocumentsRequest) GetGetDocumentsRequest() *components.GetDocumentsRequest { - if o == nil { - return nil - } - return o.GetDocumentsRequest -} - type GetdocumentsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go index 0c415cef..12629e29 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type GetdocumentsbyfacetsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Information about facet conditions for documents to be retrieved. - GetDocumentsByFacetsRequest *components.GetDocumentsByFacetsRequest `request:"mediaType=application/json"` -} - -func (o *GetdocumentsbyfacetsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetdocumentsbyfacetsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *GetdocumentsbyfacetsRequest) GetGetDocumentsByFacetsRequest() *components.GetDocumentsByFacetsRequest { - if o == nil { - return nil - } - return o.GetDocumentsByFacetsRequest -} - type GetdocumentsbyfacetsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getpin.go b/src/__tests__/mockserver/internal/sdk/models/operations/getpin.go index 0f664b8f..9ccb680e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getpin.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getpin.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type GetpinRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Get pin request - GetPinRequest components.GetPinRequest `request:"mediaType=application/json"` -} - -func (o *GetpinRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetpinRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *GetpinRequest) GetGetPinRequest() components.GetPinRequest { - if o == nil { - return components.GetPinRequest{} - } - return o.GetPinRequest -} - type GetpinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getshortcut.go b/src/__tests__/mockserver/internal/sdk/models/operations/getshortcut.go index 66c8f9fa..032c32c5 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getshortcut.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getshortcut.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type GetshortcutRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // GetShortcut request - GetShortcutRequest components.GetShortcutRequestUnion `request:"mediaType=application/json"` -} - -func (o *GetshortcutRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *GetshortcutRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *GetshortcutRequest) GetGetShortcutRequest() components.GetShortcutRequestUnion { - if o == nil { - return components.GetShortcutRequestUnion{} - } - return o.GetShortcutRequest -} - type GetshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/insights.go b/src/__tests__/mockserver/internal/sdk/models/operations/insights.go index 11eca676..0f883502 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/insights.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/insights.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type InsightsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Includes request params for insights dashboard data. - InsightsRequest components.InsightsRequest `request:"mediaType=application/json"` -} - -func (o *InsightsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *InsightsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *InsightsRequest) GetInsightsRequest() components.InsightsRequest { - if o == nil { - return components.InsightsRequest{} - } - return o.InsightsRequest -} - type InsightsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listagents.go b/src/__tests__/mockserver/internal/sdk/models/operations/listagents.go index 9525aec3..95123c25 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listagents.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listagents.go @@ -7,29 +7,11 @@ import ( ) type ListagentsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` RequestBody any `request:"mediaType=application/json"` } -func (o *ListagentsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListagentsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *ListagentsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listanswers.go b/src/__tests__/mockserver/internal/sdk/models/operations/listanswers.go index ca033309..2229cf7f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listanswers.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listanswers.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type ListanswersRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // ListAnswers request - ListAnswersRequest components.ListAnswersRequest `request:"mediaType=application/json"` -} - -func (o *ListanswersRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListanswersRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *ListanswersRequest) GetListAnswersRequest() components.ListAnswersRequest { - if o == nil { - return components.ListAnswersRequest{} - } - return o.ListAnswersRequest -} - type ListanswersResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listchats.go b/src/__tests__/mockserver/internal/sdk/models/operations/listchats.go index d8443c40..36a64f6c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listchats.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listchats.go @@ -7,28 +7,10 @@ import ( ) type ListchatsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` } -func (o *ListchatsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListchatsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *ListchatsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listcollections.go b/src/__tests__/mockserver/internal/sdk/models/operations/listcollections.go index 8518fbd9..9efddbd6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listcollections.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listcollections.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type ListcollectionsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // ListCollections request - ListCollectionsRequest components.ListCollectionsRequest `request:"mediaType=application/json"` -} - -func (o *ListcollectionsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListcollectionsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *ListcollectionsRequest) GetListCollectionsRequest() components.ListCollectionsRequest { - if o == nil { - return components.ListCollectionsRequest{} - } - return o.ListCollectionsRequest -} - type ListcollectionsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listentities.go b/src/__tests__/mockserver/internal/sdk/models/operations/listentities.go index 0e8cb337..d05441f9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listentities.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listentities.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type ListentitiesRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // List people request - ListEntitiesRequest components.ListEntitiesRequest `request:"mediaType=application/json"` -} - -func (o *ListentitiesRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListentitiesRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *ListentitiesRequest) GetListEntitiesRequest() components.ListEntitiesRequest { - if o == nil { - return components.ListEntitiesRequest{} - } - return o.ListEntitiesRequest -} - type ListentitiesResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listpins.go b/src/__tests__/mockserver/internal/sdk/models/operations/listpins.go index d89771e8..45c93a45 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listpins.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listpins.go @@ -6,38 +6,8 @@ import ( "mockserver/internal/sdk/models/components" ) -// ListpinsRequestBody - List pins request -type ListpinsRequestBody struct { -} - +// ListpinsRequest - List pins request type ListpinsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // List pins request - RequestBody ListpinsRequestBody `request:"mediaType=application/json"` -} - -func (o *ListpinsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListpinsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *ListpinsRequest) GetRequestBody() ListpinsRequestBody { - if o == nil { - return ListpinsRequestBody{} - } - return o.RequestBody } type ListpinsResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listshortcuts.go b/src/__tests__/mockserver/internal/sdk/models/operations/listshortcuts.go index 55224ff9..a5b0962f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listshortcuts.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listshortcuts.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type ListshortcutsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Filters, sorters, paging params required for pagination - ListShortcutsPaginatedRequest components.ListShortcutsPaginatedRequest `request:"mediaType=application/json"` -} - -func (o *ListshortcutsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListshortcutsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *ListshortcutsRequest) GetListShortcutsPaginatedRequest() components.ListShortcutsPaginatedRequest { - if o == nil { - return components.ListShortcutsPaginatedRequest{} - } - return o.ListShortcutsPaginatedRequest -} - type ListshortcutsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listverifications.go b/src/__tests__/mockserver/internal/sdk/models/operations/listverifications.go index 415a6ba5..13015ee5 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listverifications.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listverifications.go @@ -7,28 +7,10 @@ import ( ) type ListverificationsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // Maximum number of documents to return Count *int64 `queryParam:"style=form,explode=true,name=count"` } -func (o *ListverificationsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *ListverificationsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *ListverificationsRequest) GetCount() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/messages.go b/src/__tests__/mockserver/internal/sdk/models/operations/messages.go index ba9e2a65..c33c0888 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/messages.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/messages.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type MessagesRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Includes request params such as the id for channel/message and direction. - MessagesRequest components.MessagesRequest `request:"mediaType=application/json"` -} - -func (o *MessagesRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *MessagesRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *MessagesRequest) GetMessagesRequest() components.MessagesRequest { - if o == nil { - return components.MessagesRequest{} - } - return o.MessagesRequest -} - type MessagesResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/people.go b/src/__tests__/mockserver/internal/sdk/models/operations/people.go index 8e73b5cd..fe1bf61d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/people.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/people.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type PeopleRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // People request - PeopleRequest components.PeopleRequest `request:"mediaType=application/json"` -} - -func (o *PeopleRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *PeopleRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *PeopleRequest) GetPeopleRequest() components.PeopleRequest { - if o == nil { - return components.PeopleRequest{} - } - return o.PeopleRequest -} - type PeopleResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/pin.go b/src/__tests__/mockserver/internal/sdk/models/operations/pin.go index 11b96bee..ba2d47e1 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/pin.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/pin.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type PinRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Details about the document and query for the pin. - PinRequest components.PinRequest `request:"mediaType=application/json"` -} - -func (o *PinRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *PinRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *PinRequest) GetPinRequest() components.PinRequest { - if o == nil { - return components.PinRequest{} - } - return o.PinRequest -} - type PinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/recommendations.go b/src/__tests__/mockserver/internal/sdk/models/operations/recommendations.go index b030f4be..9c74d480 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/recommendations.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/recommendations.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type RecommendationsRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Recommendations request - RecommendationsRequest *components.RecommendationsRequest `request:"mediaType=application/json"` -} - -func (o *RecommendationsRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *RecommendationsRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *RecommendationsRequest) GetRecommendationsRequest() *components.RecommendationsRequest { - if o == nil { - return nil - } - return o.RecommendationsRequest -} - type RecommendationsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/runagent.go b/src/__tests__/mockserver/internal/sdk/models/operations/runagent.go index 68a243f9..22d1bfb6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/runagent.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/runagent.go @@ -7,29 +7,11 @@ import ( ) type RunagentRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` RunAgentRequest components.RunAgentRequest `request:"mediaType=application/json"` } -func (o *RunagentRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *RunagentRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *RunagentRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/search.go b/src/__tests__/mockserver/internal/sdk/models/operations/search.go index c54e7ad6..6b1d9873 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/search.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/search.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type SearchRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Search request - SearchRequest *components.SearchRequest `request:"mediaType=application/json"` -} - -func (o *SearchRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *SearchRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *SearchRequest) GetSearchRequest() *components.SearchRequest { - if o == nil { - return nil - } - return o.SearchRequest -} - type SearchResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/summarize.go b/src/__tests__/mockserver/internal/sdk/models/operations/summarize.go index 931914e3..90cc598d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/summarize.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/summarize.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type SummarizeRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Includes request params such as the query and specs of the documents to summarize. - SummarizeRequest components.SummarizeRequest `request:"mediaType=application/json"` -} - -func (o *SummarizeRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *SummarizeRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *SummarizeRequest) GetSummarizeRequest() components.SummarizeRequest { - if o == nil { - return components.SummarizeRequest{} - } - return o.SummarizeRequest -} - type SummarizeResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/unpin.go b/src/__tests__/mockserver/internal/sdk/models/operations/unpin.go index 96747e14..4bff2a3c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/unpin.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/unpin.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type UnpinRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Details about the pin being unpinned. - Unpin components.Unpin `request:"mediaType=application/json"` -} - -func (o *UnpinRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *UnpinRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *UnpinRequest) GetUnpin() components.Unpin { - if o == nil { - return components.Unpin{} - } - return o.Unpin -} - type UnpinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateannouncement.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateannouncement.go index 579bb856..927436ef 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateannouncement.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateannouncement.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type UpdateannouncementRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Announcement content. Id need to be specified for the announcement. - UpdateAnnouncementRequest components.UpdateAnnouncementRequest `request:"mediaType=application/json"` -} - -func (o *UpdateannouncementRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *UpdateannouncementRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *UpdateannouncementRequest) GetUpdateAnnouncementRequest() components.UpdateAnnouncementRequest { - if o == nil { - return components.UpdateAnnouncementRequest{} - } - return o.UpdateAnnouncementRequest -} - type UpdateannouncementResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateshortcut.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateshortcut.go index 42797452..ebfd6f72 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateshortcut.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateshortcut.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type UpdateshortcutRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Shortcut content. Id need to be specified for the shortcut. - UpdateShortcutRequest components.UpdateShortcutRequest `request:"mediaType=application/json"` -} - -func (o *UpdateshortcutRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *UpdateshortcutRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *UpdateshortcutRequest) GetUpdateShortcutRequest() components.UpdateShortcutRequest { - if o == nil { - return components.UpdateShortcutRequest{} - } - return o.UpdateShortcutRequest -} - type UpdateshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/uploadchatfiles.go b/src/__tests__/mockserver/internal/sdk/models/operations/uploadchatfiles.go index 1e58e2a1..d11a18d5 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/uploadchatfiles.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/uploadchatfiles.go @@ -7,29 +7,11 @@ import ( ) type UploadchatfilesRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` UploadChatFilesRequest components.UploadChatFilesRequest `request:"mediaType=multipart/form-data"` } -func (o *UploadchatfilesRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *UploadchatfilesRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - func (o *UploadchatfilesRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/verify.go b/src/__tests__/mockserver/internal/sdk/models/operations/verify.go index f149eecc..1f2fc93e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/verify.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/verify.go @@ -6,36 +6,6 @@ import ( "mockserver/internal/sdk/models/components" ) -type VerifyRequest struct { - // Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - XGleanActAs *string `header:"style=simple,explode=false,name=X-Glean-ActAs"` - // Auth type being used to access the endpoint (should be non-empty only for global tokens). - XGleanAuthType *string `header:"style=simple,explode=false,name=X-Glean-Auth-Type"` - // Details about the verification request. - VerifyRequest components.VerifyRequest `request:"mediaType=application/json"` -} - -func (o *VerifyRequest) GetXGleanActAs() *string { - if o == nil { - return nil - } - return o.XGleanActAs -} - -func (o *VerifyRequest) GetXGleanAuthType() *string { - if o == nil { - return nil - } - return o.XGleanAuthType -} - -func (o *VerifyRequest) GetVerifyRequest() components.VerifyRequest { - if o == nil { - return components.VerifyRequest{} - } - return o.VerifyRequest -} - type VerifyResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/src/funcs/agentsGetagentinputs.ts b/src/funcs/agentsGetagentinputs.ts index 790d825f..c7ff8300 100644 --- a/src/funcs/agentsGetagentinputs.ts +++ b/src/funcs/agentsGetagentinputs.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -33,8 +33,6 @@ import { Result } from "../types/fp.js"; export function agentsGetagentinputs( client: GleanCore, getAgentInputsRequest: components.GetAgentInputsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -52,8 +50,6 @@ export function agentsGetagentinputs( return new APIPromise($do( client, getAgentInputsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -62,8 +58,6 @@ export function agentsGetagentinputs( async function $do( client: GleanCore, getAgentInputsRequest: components.GetAgentInputsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -83,8 +77,6 @@ async function $do( > { const input: operations.GetagentinputsRequest = { getAgentInputsRequest: getAgentInputsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -110,15 +102,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/agentsListagents.ts b/src/funcs/agentsListagents.ts index 2b7da4b8..0ce18a93 100644 --- a/src/funcs/agentsListagents.ts +++ b/src/funcs/agentsListagents.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -33,8 +33,6 @@ import { Result } from "../types/fp.js"; export function agentsListagents( client: GleanCore, requestBody?: any | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -52,8 +50,6 @@ export function agentsListagents( return new APIPromise($do( client, requestBody, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -62,8 +58,6 @@ export function agentsListagents( async function $do( client: GleanCore, requestBody?: any | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -83,8 +77,6 @@ async function $do( > { const input: operations.ListagentsRequest = { requestBody: requestBody, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -108,15 +100,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/agentsRunagent.ts b/src/funcs/agentsRunagent.ts index 9b56b2f7..9b7abfc2 100644 --- a/src/funcs/agentsRunagent.ts +++ b/src/funcs/agentsRunagent.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -33,8 +33,6 @@ import { Result } from "../types/fp.js"; export function agentsRunagent( client: GleanCore, runAgentRequest: components.RunAgentRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -52,8 +50,6 @@ export function agentsRunagent( return new APIPromise($do( client, runAgentRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -62,8 +58,6 @@ export function agentsRunagent( async function $do( client: GleanCore, runAgentRequest: components.RunAgentRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -83,8 +77,6 @@ async function $do( > { const input: operations.RunagentRequest = { runAgentRequest: runAgentRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -108,15 +100,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientActivitiesReportActivity.ts b/src/funcs/clientActivitiesReportActivity.ts index 02224512..3bff4703 100644 --- a/src/funcs/clientActivitiesReportActivity.ts +++ b/src/funcs/clientActivitiesReportActivity.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -34,8 +34,6 @@ import { Result } from "../types/fp.js"; export function clientActivitiesReportActivity( client: GleanCore, feedback1?: components.Feedback | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, feedbackQueryParameter?: string | undefined, options?: RequestOptions, ): APIPromise< @@ -53,8 +51,6 @@ export function clientActivitiesReportActivity( return new APIPromise($do( client, feedback1, - xGleanActAs, - xGleanAuthType, feedbackQueryParameter, options, )); @@ -63,8 +59,6 @@ export function clientActivitiesReportActivity( async function $do( client: GleanCore, feedback1?: components.Feedback | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, feedbackQueryParameter?: string | undefined, options?: RequestOptions, ): Promise< @@ -84,8 +78,6 @@ async function $do( > { const input: operations.FeedbackRequest = { feedback1: feedback1, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, feedbackQueryParameter: feedbackQueryParameter, }; @@ -109,15 +101,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnnouncementsCreate.ts b/src/funcs/clientAnnouncementsCreate.ts index 6a78dccf..21ac2e92 100644 --- a/src/funcs/clientAnnouncementsCreate.ts +++ b/src/funcs/clientAnnouncementsCreate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnnouncementsCreate( client: GleanCore, - createAnnouncementRequest: components.CreateAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateAnnouncementRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientAnnouncementsCreate( > { return new APIPromise($do( client, - createAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - createAnnouncementRequest: components.CreateAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateAnnouncementRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.CreateannouncementRequest = { - createAnnouncementRequest: createAnnouncementRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.CreateannouncementRequest$outboundSchema.parse(value), + request, + (value) => components.CreateAnnouncementRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.CreateAnnouncementRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/createannouncement")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnnouncementsDelete.ts b/src/funcs/clientAnnouncementsDelete.ts index ca2f6519..cb991fa8 100644 --- a/src/funcs/clientAnnouncementsDelete.ts +++ b/src/funcs/clientAnnouncementsDelete.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnnouncementsDelete( client: GleanCore, - deleteAnnouncementRequest: components.DeleteAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteAnnouncementRequest, options?: RequestOptions, ): APIPromise< Result< @@ -51,18 +48,14 @@ export function clientAnnouncementsDelete( > { return new APIPromise($do( client, - deleteAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - deleteAnnouncementRequest: components.DeleteAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteAnnouncementRequest, options?: RequestOptions, ): Promise< [ @@ -79,39 +72,22 @@ async function $do( APICall, ] > { - const input: operations.DeleteannouncementRequest = { - deleteAnnouncementRequest: deleteAnnouncementRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.DeleteannouncementRequest$outboundSchema.parse(value), + request, + (value) => components.DeleteAnnouncementRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.DeleteAnnouncementRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/deleteannouncement")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnnouncementsUpdate.ts b/src/funcs/clientAnnouncementsUpdate.ts index e8542125..8f5cca6f 100644 --- a/src/funcs/clientAnnouncementsUpdate.ts +++ b/src/funcs/clientAnnouncementsUpdate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnnouncementsUpdate( client: GleanCore, - updateAnnouncementRequest: components.UpdateAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.UpdateAnnouncementRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientAnnouncementsUpdate( > { return new APIPromise($do( client, - updateAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - updateAnnouncementRequest: components.UpdateAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.UpdateAnnouncementRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.UpdateannouncementRequest = { - updateAnnouncementRequest: updateAnnouncementRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.UpdateannouncementRequest$outboundSchema.parse(value), + request, + (value) => components.UpdateAnnouncementRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.UpdateAnnouncementRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/updateannouncement")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnswersCreate.ts b/src/funcs/clientAnswersCreate.ts index 3dbe7d67..5538079e 100644 --- a/src/funcs/clientAnswersCreate.ts +++ b/src/funcs/clientAnswersCreate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnswersCreate( client: GleanCore, - createAnswerRequest: components.CreateAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateAnswerRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientAnswersCreate( > { return new APIPromise($do( client, - createAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - createAnswerRequest: components.CreateAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateAnswerRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.CreateanswerRequest = { - createAnswerRequest: createAnswerRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.CreateanswerRequest$outboundSchema.parse(value), + request, + (value) => components.CreateAnswerRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.CreateAnswerRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/createanswer")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnswersDelete.ts b/src/funcs/clientAnswersDelete.ts index faeab205..87ab6bc2 100644 --- a/src/funcs/clientAnswersDelete.ts +++ b/src/funcs/clientAnswersDelete.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnswersDelete( client: GleanCore, - deleteAnswerRequest: components.DeleteAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteAnswerRequest, options?: RequestOptions, ): APIPromise< Result< @@ -51,18 +48,14 @@ export function clientAnswersDelete( > { return new APIPromise($do( client, - deleteAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - deleteAnswerRequest: components.DeleteAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteAnswerRequest, options?: RequestOptions, ): Promise< [ @@ -79,39 +72,22 @@ async function $do( APICall, ] > { - const input: operations.DeleteanswerRequest = { - deleteAnswerRequest: deleteAnswerRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.DeleteanswerRequest$outboundSchema.parse(value), + request, + (value) => components.DeleteAnswerRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.DeleteAnswerRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/deleteanswer")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnswersEdit.ts b/src/funcs/clientAnswersEdit.ts index 4efba808..1de1636d 100644 --- a/src/funcs/clientAnswersEdit.ts +++ b/src/funcs/clientAnswersEdit.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnswersEdit( client: GleanCore, - editAnswerRequest: components.EditAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditAnswerRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientAnswersEdit( > { return new APIPromise($do( client, - editAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - editAnswerRequest: components.EditAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditAnswerRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.EditanswerRequest = { - editAnswerRequest: editAnswerRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.EditanswerRequest$outboundSchema.parse(value), + request, + (value) => components.EditAnswerRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.EditAnswerRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/editanswer")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnswersGet.ts b/src/funcs/clientAnswersGet.ts index 6d5f1dd8..a0e77eb8 100644 --- a/src/funcs/clientAnswersGet.ts +++ b/src/funcs/clientAnswersGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnswersGet( client: GleanCore, - getAnswerRequest: components.GetAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetAnswerRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientAnswersGet( > { return new APIPromise($do( client, - getAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - getAnswerRequest: components.GetAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetAnswerRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.GetanswerRequest = { - getAnswerRequest: getAnswerRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.GetanswerRequest$outboundSchema.parse(value), + request, + (value) => components.GetAnswerRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.GetAnswerRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/getanswer")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAnswersList.ts b/src/funcs/clientAnswersList.ts index db464c97..0b91b51d 100644 --- a/src/funcs/clientAnswersList.ts +++ b/src/funcs/clientAnswersList.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientAnswersList( client: GleanCore, - listAnswersRequest: components.ListAnswersRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListAnswersRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientAnswersList( > { return new APIPromise($do( client, - listAnswersRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - listAnswersRequest: components.ListAnswersRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListAnswersRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.ListanswersRequest = { - listAnswersRequest: listAnswersRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.ListanswersRequest$outboundSchema.parse(value), + request, + (value) => components.ListAnswersRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.ListAnswersRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/listanswers")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientAuthenticationCreateToken.ts b/src/funcs/clientAuthenticationCreateToken.ts index faafa6c0..4b0a3b42 100644 --- a/src/funcs/clientAuthenticationCreateToken.ts +++ b/src/funcs/clientAuthenticationCreateToken.ts @@ -3,10 +3,8 @@ */ import { GleanCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -20,7 +18,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,8 +29,6 @@ import { Result } from "../types/fp.js"; */ export function clientAuthenticationCreateToken( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, options?: RequestOptions, ): APIPromise< Result< @@ -49,16 +44,12 @@ export function clientAuthenticationCreateToken( > { return new APIPromise($do( client, - xGleanActAs, - xGleanAuthType, options, )); } async function $do( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, options?: RequestOptions, ): Promise< [ @@ -75,35 +66,10 @@ async function $do( APICall, ] > { - const input: operations.CreateauthtokenRequest = { - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - - const parsed = safeParse( - input, - (value) => operations.CreateauthtokenRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - const path = pathToFunc("/rest/api/v1/createauthtoken")(); const headers = new Headers(compactMap({ Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); @@ -130,7 +96,6 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, - body: body, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/src/funcs/clientChatDelete.ts b/src/funcs/clientChatDelete.ts index 644fb4c6..55d96361 100644 --- a/src/funcs/clientChatDelete.ts +++ b/src/funcs/clientChatDelete.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -34,8 +34,6 @@ import { Result } from "../types/fp.js"; export function clientChatDelete( client: GleanCore, deleteChatsRequest: components.DeleteChatsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -53,8 +51,6 @@ export function clientChatDelete( return new APIPromise($do( client, deleteChatsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -63,8 +59,6 @@ export function clientChatDelete( async function $do( client: GleanCore, deleteChatsRequest: components.DeleteChatsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -84,8 +78,6 @@ async function $do( > { const input: operations.DeletechatsRequest = { deleteChatsRequest: deleteChatsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -111,15 +103,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatDeleteAll.ts b/src/funcs/clientChatDeleteAll.ts index 993a0f80..e6fa6f94 100644 --- a/src/funcs/clientChatDeleteAll.ts +++ b/src/funcs/clientChatDeleteAll.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -32,8 +32,6 @@ import { Result } from "../types/fp.js"; */ export function clientChatDeleteAll( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -50,8 +48,6 @@ export function clientChatDeleteAll( > { return new APIPromise($do( client, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -59,8 +55,6 @@ export function clientChatDeleteAll( async function $do( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -79,8 +73,6 @@ async function $do( ] > { const input: operations.DeleteallchatsRequest = { - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -103,15 +95,6 @@ async function $do( const headers = new Headers(compactMap({ Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatDeleteFiles.ts b/src/funcs/clientChatDeleteFiles.ts index a1060512..33530859 100644 --- a/src/funcs/clientChatDeleteFiles.ts +++ b/src/funcs/clientChatDeleteFiles.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -34,8 +34,6 @@ import { Result } from "../types/fp.js"; export function clientChatDeleteFiles( client: GleanCore, deleteChatFilesRequest: components.DeleteChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -53,8 +51,6 @@ export function clientChatDeleteFiles( return new APIPromise($do( client, deleteChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -63,8 +59,6 @@ export function clientChatDeleteFiles( async function $do( client: GleanCore, deleteChatFilesRequest: components.DeleteChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -84,8 +78,6 @@ async function $do( > { const input: operations.DeletechatfilesRequest = { deleteChatFilesRequest: deleteChatFilesRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -111,15 +103,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatGet.ts b/src/funcs/clientChatGet.ts index 6f30e615..4765d810 100644 --- a/src/funcs/clientChatGet.ts +++ b/src/funcs/clientChatGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -33,8 +33,6 @@ import { Result } from "../types/fp.js"; export function clientChatGet( client: GleanCore, getChatRequest: components.GetChatRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -52,8 +50,6 @@ export function clientChatGet( return new APIPromise($do( client, getChatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -62,8 +58,6 @@ export function clientChatGet( async function $do( client: GleanCore, getChatRequest: components.GetChatRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -83,8 +77,6 @@ async function $do( > { const input: operations.GetchatRequest = { getChatRequest: getChatRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -108,15 +100,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatGetApplication.ts b/src/funcs/clientChatGetApplication.ts index 9bc13ceb..9bbdfdf0 100644 --- a/src/funcs/clientChatGetApplication.ts +++ b/src/funcs/clientChatGetApplication.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -33,8 +33,6 @@ import { Result } from "../types/fp.js"; export function clientChatGetApplication( client: GleanCore, getChatApplicationRequest: components.GetChatApplicationRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -52,8 +50,6 @@ export function clientChatGetApplication( return new APIPromise($do( client, getChatApplicationRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -62,8 +58,6 @@ export function clientChatGetApplication( async function $do( client: GleanCore, getChatApplicationRequest: components.GetChatApplicationRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -83,8 +77,6 @@ async function $do( > { const input: operations.GetchatapplicationRequest = { getChatApplicationRequest: getChatApplicationRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -110,15 +102,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatGetFiles.ts b/src/funcs/clientChatGetFiles.ts index d99340c3..4a62b388 100644 --- a/src/funcs/clientChatGetFiles.ts +++ b/src/funcs/clientChatGetFiles.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -33,8 +33,6 @@ import { Result } from "../types/fp.js"; export function clientChatGetFiles( client: GleanCore, getChatFilesRequest: components.GetChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -52,8 +50,6 @@ export function clientChatGetFiles( return new APIPromise($do( client, getChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -62,8 +58,6 @@ export function clientChatGetFiles( async function $do( client: GleanCore, getChatFilesRequest: components.GetChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -83,8 +77,6 @@ async function $do( > { const input: operations.GetchatfilesRequest = { getChatFilesRequest: getChatFilesRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -110,15 +102,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatList.ts b/src/funcs/clientChatList.ts index d2f25002..35363222 100644 --- a/src/funcs/clientChatList.ts +++ b/src/funcs/clientChatList.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -32,8 +32,6 @@ import { Result } from "../types/fp.js"; */ export function clientChatList( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -50,8 +48,6 @@ export function clientChatList( > { return new APIPromise($do( client, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -59,8 +55,6 @@ export function clientChatList( async function $do( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -79,8 +73,6 @@ async function $do( ] > { const input: operations.ListchatsRequest = { - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -103,15 +95,6 @@ async function $do( const headers = new Headers(compactMap({ Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatStart.ts b/src/funcs/clientChatStart.ts index 58e2132d..62890b58 100644 --- a/src/funcs/clientChatStart.ts +++ b/src/funcs/clientChatStart.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -34,8 +34,6 @@ import { Result } from "../types/fp.js"; export function clientChatStart( client: GleanCore, chatRequest: components.ChatRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -53,8 +51,6 @@ export function clientChatStart( return new APIPromise($do( client, chatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -63,8 +59,6 @@ export function clientChatStart( async function $do( client: GleanCore, chatRequest: components.ChatRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -84,8 +78,6 @@ async function $do( > { const input: operations.ChatRequest = { chatRequest: chatRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -109,15 +101,6 @@ async function $do( const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "text/plain", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientChatUploadFiles.ts b/src/funcs/clientChatUploadFiles.ts index 73f6d307..7f1fbc51 100644 --- a/src/funcs/clientChatUploadFiles.ts +++ b/src/funcs/clientChatUploadFiles.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { appendForm, encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { appendForm, encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -33,8 +33,6 @@ import { Result } from "../types/fp.js"; export function clientChatUploadFiles( client: GleanCore, uploadChatFilesRequest: components.UploadChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -52,8 +50,6 @@ export function clientChatUploadFiles( return new APIPromise($do( client, uploadChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -62,8 +58,6 @@ export function clientChatUploadFiles( async function $do( client: GleanCore, uploadChatFilesRequest: components.UploadChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise< @@ -83,8 +77,6 @@ async function $do( > { const input: operations.UploadchatfilesRequest = { uploadChatFilesRequest: uploadChatFilesRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, timezoneOffset: timezoneOffset, }; @@ -109,15 +101,6 @@ async function $do( const headers = new Headers(compactMap({ Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsAddItems.ts b/src/funcs/clientCollectionsAddItems.ts index 58dcb7a1..c78c1ed8 100644 --- a/src/funcs/clientCollectionsAddItems.ts +++ b/src/funcs/clientCollectionsAddItems.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsAddItems( client: GleanCore, - addCollectionItemsRequest: components.AddCollectionItemsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.AddCollectionItemsRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientCollectionsAddItems( > { return new APIPromise($do( client, - addCollectionItemsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - addCollectionItemsRequest: components.AddCollectionItemsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.AddCollectionItemsRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.AddcollectionitemsRequest = { - addCollectionItemsRequest: addCollectionItemsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.AddcollectionitemsRequest$outboundSchema.parse(value), + request, + (value) => components.AddCollectionItemsRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.AddCollectionItemsRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/addcollectionitems")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsCreate.ts b/src/funcs/clientCollectionsCreate.ts index b285b696..04d39e4e 100644 --- a/src/funcs/clientCollectionsCreate.ts +++ b/src/funcs/clientCollectionsCreate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsCreate( client: GleanCore, - createCollectionRequest: components.CreateCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateCollectionRequest, options?: RequestOptions, ): APIPromise< Result< @@ -52,18 +49,14 @@ export function clientCollectionsCreate( > { return new APIPromise($do( client, - createCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - createCollectionRequest: components.CreateCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateCollectionRequest, options?: RequestOptions, ): Promise< [ @@ -81,39 +74,22 @@ async function $do( APICall, ] > { - const input: operations.CreatecollectionRequest = { - createCollectionRequest: createCollectionRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.CreatecollectionRequest$outboundSchema.parse(value), + request, + (value) => components.CreateCollectionRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.CreateCollectionRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/createcollection")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsDelete.ts b/src/funcs/clientCollectionsDelete.ts index 3cce0be8..3bfa7bde 100644 --- a/src/funcs/clientCollectionsDelete.ts +++ b/src/funcs/clientCollectionsDelete.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -22,7 +22,6 @@ import { } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -34,9 +33,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsDelete( client: GleanCore, - deleteCollectionRequest: components.DeleteCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteCollectionRequest, options?: RequestOptions, ): APIPromise< Result< @@ -53,18 +50,14 @@ export function clientCollectionsDelete( > { return new APIPromise($do( client, - deleteCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - deleteCollectionRequest: components.DeleteCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteCollectionRequest, options?: RequestOptions, ): Promise< [ @@ -82,39 +75,22 @@ async function $do( APICall, ] > { - const input: operations.DeletecollectionRequest = { - deleteCollectionRequest: deleteCollectionRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.DeletecollectionRequest$outboundSchema.parse(value), + request, + (value) => components.DeleteCollectionRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.DeleteCollectionRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/deletecollection")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsDeleteItem.ts b/src/funcs/clientCollectionsDeleteItem.ts index bc913d2f..e91bf178 100644 --- a/src/funcs/clientCollectionsDeleteItem.ts +++ b/src/funcs/clientCollectionsDeleteItem.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsDeleteItem( client: GleanCore, - deleteCollectionItemRequest: components.DeleteCollectionItemRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteCollectionItemRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientCollectionsDeleteItem( > { return new APIPromise($do( client, - deleteCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - deleteCollectionItemRequest: components.DeleteCollectionItemRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteCollectionItemRequest, options?: RequestOptions, ): Promise< [ @@ -78,40 +71,23 @@ async function $do( APICall, ] > { - const input: operations.DeletecollectionitemRequest = { - deleteCollectionItemRequest: deleteCollectionItemRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, + request, (value) => - operations.DeletecollectionitemRequest$outboundSchema.parse(value), + components.DeleteCollectionItemRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.DeleteCollectionItemRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/deletecollectionitem")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsEditItem.ts b/src/funcs/clientCollectionsEditItem.ts index 1715f7d8..e5dab94e 100644 --- a/src/funcs/clientCollectionsEditItem.ts +++ b/src/funcs/clientCollectionsEditItem.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsEditItem( client: GleanCore, - editCollectionItemRequest: components.EditCollectionItemRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditCollectionItemRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientCollectionsEditItem( > { return new APIPromise($do( client, - editCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - editCollectionItemRequest: components.EditCollectionItemRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditCollectionItemRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.EditcollectionitemRequest = { - editCollectionItemRequest: editCollectionItemRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.EditcollectionitemRequest$outboundSchema.parse(value), + request, + (value) => components.EditCollectionItemRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.EditCollectionItemRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/editcollectionitem")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsGet.ts b/src/funcs/clientCollectionsGet.ts index 7db833dc..36848363 100644 --- a/src/funcs/clientCollectionsGet.ts +++ b/src/funcs/clientCollectionsGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsGet( client: GleanCore, - getCollectionRequest: components.GetCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetCollectionRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientCollectionsGet( > { return new APIPromise($do( client, - getCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - getCollectionRequest: components.GetCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetCollectionRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.GetcollectionRequest = { - getCollectionRequest: getCollectionRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.GetcollectionRequest$outboundSchema.parse(value), + request, + (value) => components.GetCollectionRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.GetCollectionRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/getcollection")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsList.ts b/src/funcs/clientCollectionsList.ts index 8ef05977..e1b032da 100644 --- a/src/funcs/clientCollectionsList.ts +++ b/src/funcs/clientCollectionsList.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsList( client: GleanCore, - listCollectionsRequest: components.ListCollectionsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListCollectionsRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientCollectionsList( > { return new APIPromise($do( client, - listCollectionsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - listCollectionsRequest: components.ListCollectionsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListCollectionsRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.ListcollectionsRequest = { - listCollectionsRequest: listCollectionsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.ListcollectionsRequest$outboundSchema.parse(value), + request, + (value) => components.ListCollectionsRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.ListCollectionsRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/listcollections")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientCollectionsUpdate.ts b/src/funcs/clientCollectionsUpdate.ts index b3d276a7..48e3ba84 100644 --- a/src/funcs/clientCollectionsUpdate.ts +++ b/src/funcs/clientCollectionsUpdate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientCollectionsUpdate( client: GleanCore, - editCollectionRequest: components.EditCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditCollectionRequest, options?: RequestOptions, ): APIPromise< Result< @@ -52,18 +49,14 @@ export function clientCollectionsUpdate( > { return new APIPromise($do( client, - editCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - editCollectionRequest: components.EditCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditCollectionRequest, options?: RequestOptions, ): Promise< [ @@ -81,39 +74,22 @@ async function $do( APICall, ] > { - const input: operations.EditcollectionRequest = { - editCollectionRequest: editCollectionRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.EditcollectionRequest$outboundSchema.parse(value), + request, + (value) => components.EditCollectionRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.EditCollectionRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/editcollection")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientDocumentsGet.ts b/src/funcs/clientDocumentsGet.ts index bb73b037..69f80fde 100644 --- a/src/funcs/clientDocumentsGet.ts +++ b/src/funcs/clientDocumentsGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientDocumentsGet( client: GleanCore, - getDocumentsRequest?: components.GetDocumentsRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.GetDocumentsRequest | undefined, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientDocumentsGet( > { return new APIPromise($do( client, - getDocumentsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - getDocumentsRequest?: components.GetDocumentsRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.GetDocumentsRequest | undefined, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,25 @@ async function $do( APICall, ] > { - const input: operations.GetdocumentsRequest = { - getDocumentsRequest: getDocumentsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.GetdocumentsRequest$outboundSchema.parse(value), + request, + (value) => + components.GetDocumentsRequest$outboundSchema.optional().parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.GetDocumentsRequest, { - explode: true, - }); + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/getdocuments")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientDocumentsGetByFacets.ts b/src/funcs/clientDocumentsGetByFacets.ts index 631fb04d..79f1002f 100644 --- a/src/funcs/clientDocumentsGetByFacets.ts +++ b/src/funcs/clientDocumentsGetByFacets.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,11 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientDocumentsGetByFacets( client: GleanCore, - getDocumentsByFacetsRequest?: - | components.GetDocumentsByFacetsRequest - | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.GetDocumentsByFacetsRequest | undefined, options?: RequestOptions, ): APIPromise< Result< @@ -52,20 +47,14 @@ export function clientDocumentsGetByFacets( > { return new APIPromise($do( client, - getDocumentsByFacetsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - getDocumentsByFacetsRequest?: - | components.GetDocumentsByFacetsRequest - | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.GetDocumentsByFacetsRequest | undefined, options?: RequestOptions, ): Promise< [ @@ -82,40 +71,27 @@ async function $do( APICall, ] > { - const input: operations.GetdocumentsbyfacetsRequest = { - getDocumentsByFacetsRequest: getDocumentsByFacetsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, + request, (value) => - operations.GetdocumentsbyfacetsRequest$outboundSchema.parse(value), + components.GetDocumentsByFacetsRequest$outboundSchema.optional().parse( + value, + ), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.GetDocumentsByFacetsRequest, { - explode: true, - }); + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/getdocumentsbyfacets")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientDocumentsGetPermissions.ts b/src/funcs/clientDocumentsGetPermissions.ts index c6ea14da..67129fb9 100644 --- a/src/funcs/clientDocumentsGetPermissions.ts +++ b/src/funcs/clientDocumentsGetPermissions.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientDocumentsGetPermissions( client: GleanCore, - getDocPermissionsRequest: components.GetDocPermissionsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetDocPermissionsRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientDocumentsGetPermissions( > { return new APIPromise($do( client, - getDocPermissionsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - getDocPermissionsRequest: components.GetDocPermissionsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetDocPermissionsRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.GetdocpermissionsRequest = { - getDocPermissionsRequest: getDocPermissionsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.GetdocpermissionsRequest$outboundSchema.parse(value), + request, + (value) => components.GetDocPermissionsRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.GetDocPermissionsRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/getdocpermissions")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientEntitiesList.ts b/src/funcs/clientEntitiesList.ts index 5c6da616..105044db 100644 --- a/src/funcs/clientEntitiesList.ts +++ b/src/funcs/clientEntitiesList.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientEntitiesList( client: GleanCore, - listEntitiesRequest: components.ListEntitiesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListEntitiesRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientEntitiesList( > { return new APIPromise($do( client, - listEntitiesRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - listEntitiesRequest: components.ListEntitiesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListEntitiesRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.ListentitiesRequest = { - listEntitiesRequest: listEntitiesRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.ListentitiesRequest$outboundSchema.parse(value), + request, + (value) => components.ListEntitiesRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.ListEntitiesRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/listentities")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientEntitiesReadPeople.ts b/src/funcs/clientEntitiesReadPeople.ts index 72300173..4078cc0d 100644 --- a/src/funcs/clientEntitiesReadPeople.ts +++ b/src/funcs/clientEntitiesReadPeople.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientEntitiesReadPeople( client: GleanCore, - peopleRequest: components.PeopleRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.PeopleRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientEntitiesReadPeople( > { return new APIPromise($do( client, - peopleRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - peopleRequest: components.PeopleRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.PeopleRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.PeopleRequest = { - peopleRequest: peopleRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.PeopleRequest$outboundSchema.parse(value), + request, + (value) => components.PeopleRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.PeopleRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/people")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientInsightsGet.ts b/src/funcs/clientInsightsGet.ts index 66cc0c38..a91563c4 100644 --- a/src/funcs/clientInsightsGet.ts +++ b/src/funcs/clientInsightsGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientInsightsGet( client: GleanCore, - insightsRequest: components.InsightsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.InsightsRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientInsightsGet( > { return new APIPromise($do( client, - insightsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - insightsRequest: components.InsightsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.InsightsRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.InsightsRequest = { - insightsRequest: insightsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.InsightsRequest$outboundSchema.parse(value), + request, + (value) => components.InsightsRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.InsightsRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/insights")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientMessagesGet.ts b/src/funcs/clientMessagesGet.ts index fa640c9f..7d13cf10 100644 --- a/src/funcs/clientMessagesGet.ts +++ b/src/funcs/clientMessagesGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientMessagesGet( client: GleanCore, - messagesRequest: components.MessagesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.MessagesRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientMessagesGet( > { return new APIPromise($do( client, - messagesRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - messagesRequest: components.MessagesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.MessagesRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.MessagesRequest = { - messagesRequest: messagesRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.MessagesRequest$outboundSchema.parse(value), + request, + (value) => components.MessagesRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.MessagesRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/messages")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientPinsCreate.ts b/src/funcs/clientPinsCreate.ts index d5b726ef..89cebde3 100644 --- a/src/funcs/clientPinsCreate.ts +++ b/src/funcs/clientPinsCreate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientPinsCreate( client: GleanCore, - pinRequest: components.PinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.PinRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientPinsCreate( > { return new APIPromise($do( client, - pinRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - pinRequest: components.PinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.PinRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.PinRequest = { - pinRequest: pinRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.PinRequest$outboundSchema.parse(value), + request, + (value) => components.PinRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.PinRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/pin")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientPinsEdit.ts b/src/funcs/clientPinsEdit.ts index b960709c..9ce3202b 100644 --- a/src/funcs/clientPinsEdit.ts +++ b/src/funcs/clientPinsEdit.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientPinsEdit( client: GleanCore, - editPinRequest: components.EditPinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditPinRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientPinsEdit( > { return new APIPromise($do( client, - editPinRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - editPinRequest: components.EditPinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditPinRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.EditpinRequest = { - editPinRequest: editPinRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.EditpinRequest$outboundSchema.parse(value), + request, + (value) => components.EditPinRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.EditPinRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/editpin")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientPinsGet.ts b/src/funcs/clientPinsGet.ts index c28804d1..0522f110 100644 --- a/src/funcs/clientPinsGet.ts +++ b/src/funcs/clientPinsGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientPinsGet( client: GleanCore, - getPinRequest: components.GetPinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetPinRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientPinsGet( > { return new APIPromise($do( client, - getPinRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - getPinRequest: components.GetPinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetPinRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.GetpinRequest = { - getPinRequest: getPinRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.GetpinRequest$outboundSchema.parse(value), + request, + (value) => components.GetPinRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.GetPinRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/getpin")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientPinsList.ts b/src/funcs/clientPinsList.ts index cf633507..fdf4c772 100644 --- a/src/funcs/clientPinsList.ts +++ b/src/funcs/clientPinsList.ts @@ -3,10 +3,8 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; @@ -32,9 +30,7 @@ import { Result } from "../types/fp.js"; */ export function clientPinsList( client: GleanCore, - requestBody: operations.ListpinsRequestBody, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + _request: operations.ListpinsRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +46,14 @@ export function clientPinsList( > { return new APIPromise($do( client, - requestBody, - xGleanActAs, - xGleanAuthType, + _request, options, )); } async function $do( client: GleanCore, - requestBody: operations.ListpinsRequestBody, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + _request: operations.ListpinsRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +70,11 @@ async function $do( APICall, ] > { - const input: operations.ListpinsRequest = { - requestBody: requestBody, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - - const parsed = safeParse( - input, - (value) => operations.ListpinsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = encodeJSON("body", payload.RequestBody, { explode: true }); - const path = pathToFunc("/rest/api/v1/listpins")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); @@ -135,7 +101,6 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, - body: body, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/src/funcs/clientPinsRemove.ts b/src/funcs/clientPinsRemove.ts index 9dfa9503..dd1c3f2a 100644 --- a/src/funcs/clientPinsRemove.ts +++ b/src/funcs/clientPinsRemove.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientPinsRemove( client: GleanCore, - unpin: components.Unpin, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.Unpin, options?: RequestOptions, ): APIPromise< Result< @@ -51,18 +48,14 @@ export function clientPinsRemove( > { return new APIPromise($do( client, - unpin, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - unpin: components.Unpin, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.Unpin, options?: RequestOptions, ): Promise< [ @@ -79,37 +72,22 @@ async function $do( APICall, ] > { - const input: operations.UnpinRequest = { - unpin: unpin, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.UnpinRequest$outboundSchema.parse(value), + request, + (value) => components.Unpin$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.Unpin, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/unpin")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientSearchAdmin.ts b/src/funcs/clientSearchAdmin.ts index 9d7693ed..d19c475d 100644 --- a/src/funcs/clientSearchAdmin.ts +++ b/src/funcs/clientSearchAdmin.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientSearchAdmin( client: GleanCore, - searchRequest?: components.SearchRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.SearchRequest | undefined, options?: RequestOptions, ): APIPromise< Result< @@ -52,18 +49,14 @@ export function clientSearchAdmin( > { return new APIPromise($do( client, - searchRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - searchRequest?: components.SearchRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.SearchRequest | undefined, options?: RequestOptions, ): Promise< [ @@ -81,37 +74,24 @@ async function $do( APICall, ] > { - const input: operations.AdminsearchRequest = { - searchRequest: searchRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.AdminsearchRequest$outboundSchema.parse(value), + request, + (value) => components.SearchRequest$outboundSchema.optional().parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.SearchRequest, { explode: true }); + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/adminsearch")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientSearchAutocomplete.ts b/src/funcs/clientSearchAutocomplete.ts index d56bf2e5..8b33619f 100644 --- a/src/funcs/clientSearchAutocomplete.ts +++ b/src/funcs/clientSearchAutocomplete.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientSearchAutocomplete( client: GleanCore, - autocompleteRequest: components.AutocompleteRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.AutocompleteRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientSearchAutocomplete( > { return new APIPromise($do( client, - autocompleteRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - autocompleteRequest: components.AutocompleteRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.AutocompleteRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.AutocompleteRequest = { - autocompleteRequest: autocompleteRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.AutocompleteRequest$outboundSchema.parse(value), + request, + (value) => components.AutocompleteRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.AutocompleteRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/autocomplete")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientSearchExecute.ts b/src/funcs/clientSearchExecute.ts index c5d49f51..e95e95d5 100644 --- a/src/funcs/clientSearchExecute.ts +++ b/src/funcs/clientSearchExecute.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientSearchExecute( client: GleanCore, - searchRequest?: components.SearchRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.SearchRequest | undefined, options?: RequestOptions, ): APIPromise< Result< @@ -52,18 +49,14 @@ export function clientSearchExecute( > { return new APIPromise($do( client, - searchRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - searchRequest?: components.SearchRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.SearchRequest | undefined, options?: RequestOptions, ): Promise< [ @@ -81,37 +74,24 @@ async function $do( APICall, ] > { - const input: operations.SearchRequest = { - searchRequest: searchRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.SearchRequest$outboundSchema.parse(value), + request, + (value) => components.SearchRequest$outboundSchema.optional().parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.SearchRequest, { explode: true }); + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/search")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientSearchGetFeed.ts b/src/funcs/clientSearchGetFeed.ts index c22d9bb6..058829e3 100644 --- a/src/funcs/clientSearchGetFeed.ts +++ b/src/funcs/clientSearchGetFeed.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientSearchGetFeed( client: GleanCore, - feedRequest: components.FeedRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.FeedRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientSearchGetFeed( > { return new APIPromise($do( client, - feedRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - feedRequest: components.FeedRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.FeedRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.FeedRequest = { - feedRequest: feedRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.FeedRequest$outboundSchema.parse(value), + request, + (value) => components.FeedRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.FeedRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/feed")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientSearchRecommendations.ts b/src/funcs/clientSearchRecommendations.ts index 61370db1..64631c08 100644 --- a/src/funcs/clientSearchRecommendations.ts +++ b/src/funcs/clientSearchRecommendations.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientSearchRecommendations( client: GleanCore, - recommendationsRequest?: components.RecommendationsRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.RecommendationsRequest | undefined, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientSearchRecommendations( > { return new APIPromise($do( client, - recommendationsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - recommendationsRequest?: components.RecommendationsRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.RecommendationsRequest | undefined, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,25 @@ async function $do( APICall, ] > { - const input: operations.RecommendationsRequest = { - recommendationsRequest: recommendationsRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.RecommendationsRequest$outboundSchema.parse(value), + request, + (value) => + components.RecommendationsRequest$outboundSchema.optional().parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.RecommendationsRequest, { - explode: true, - }); + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/recommendations")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientShortcutsCreate.ts b/src/funcs/clientShortcutsCreate.ts index f71069d5..af7b1fa0 100644 --- a/src/funcs/clientShortcutsCreate.ts +++ b/src/funcs/clientShortcutsCreate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientShortcutsCreate( client: GleanCore, - createShortcutRequest: components.CreateShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateShortcutRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientShortcutsCreate( > { return new APIPromise($do( client, - createShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - createShortcutRequest: components.CreateShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateShortcutRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.CreateshortcutRequest = { - createShortcutRequest: createShortcutRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.CreateshortcutRequest$outboundSchema.parse(value), + request, + (value) => components.CreateShortcutRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.CreateShortcutRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/createshortcut")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientShortcutsDelete.ts b/src/funcs/clientShortcutsDelete.ts index df79d6f2..c7a3330a 100644 --- a/src/funcs/clientShortcutsDelete.ts +++ b/src/funcs/clientShortcutsDelete.ts @@ -4,7 +4,7 @@ import * as z from "zod"; import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,7 +21,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -33,9 +32,7 @@ import { Result } from "../types/fp.js"; */ export function clientShortcutsDelete( client: GleanCore, - deleteShortcutRequest: components.DeleteShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteShortcutRequest, options?: RequestOptions, ): APIPromise< Result< @@ -51,18 +48,14 @@ export function clientShortcutsDelete( > { return new APIPromise($do( client, - deleteShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - deleteShortcutRequest: components.DeleteShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteShortcutRequest, options?: RequestOptions, ): Promise< [ @@ -79,39 +72,22 @@ async function $do( APICall, ] > { - const input: operations.DeleteshortcutRequest = { - deleteShortcutRequest: deleteShortcutRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.DeleteshortcutRequest$outboundSchema.parse(value), + request, + (value) => components.DeleteShortcutRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.DeleteShortcutRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/deleteshortcut")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "*/*", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientShortcutsGet.ts b/src/funcs/clientShortcutsGet.ts index 63933f33..19c53544 100644 --- a/src/funcs/clientShortcutsGet.ts +++ b/src/funcs/clientShortcutsGet.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientShortcutsGet( client: GleanCore, - getShortcutRequest: components.GetShortcutRequestUnion, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetShortcutRequestUnion, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientShortcutsGet( > { return new APIPromise($do( client, - getShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - getShortcutRequest: components.GetShortcutRequestUnion, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetShortcutRequestUnion, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.GetshortcutRequest = { - getShortcutRequest: getShortcutRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.GetshortcutRequest$outboundSchema.parse(value), + request, + (value) => components.GetShortcutRequestUnion$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.GetShortcutRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/getshortcut")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientShortcutsList.ts b/src/funcs/clientShortcutsList.ts index a7c75c45..96bc6e6a 100644 --- a/src/funcs/clientShortcutsList.ts +++ b/src/funcs/clientShortcutsList.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientShortcutsList( client: GleanCore, - listShortcutsPaginatedRequest: components.ListShortcutsPaginatedRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListShortcutsPaginatedRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientShortcutsList( > { return new APIPromise($do( client, - listShortcutsPaginatedRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - listShortcutsPaginatedRequest: components.ListShortcutsPaginatedRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListShortcutsPaginatedRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,23 @@ async function $do( APICall, ] > { - const input: operations.ListshortcutsRequest = { - listShortcutsPaginatedRequest: listShortcutsPaginatedRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.ListshortcutsRequest$outboundSchema.parse(value), + request, + (value) => + components.ListShortcutsPaginatedRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.ListShortcutsPaginatedRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/listshortcuts")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientShortcutsUpdate.ts b/src/funcs/clientShortcutsUpdate.ts index 822beb03..0f3bd490 100644 --- a/src/funcs/clientShortcutsUpdate.ts +++ b/src/funcs/clientShortcutsUpdate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientShortcutsUpdate( client: GleanCore, - updateShortcutRequest: components.UpdateShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.UpdateShortcutRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientShortcutsUpdate( > { return new APIPromise($do( client, - updateShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - updateShortcutRequest: components.UpdateShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.UpdateShortcutRequest, options?: RequestOptions, ): Promise< [ @@ -78,39 +71,22 @@ async function $do( APICall, ] > { - const input: operations.UpdateshortcutRequest = { - updateShortcutRequest: updateShortcutRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.UpdateshortcutRequest$outboundSchema.parse(value), + request, + (value) => components.UpdateShortcutRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.UpdateShortcutRequest, { - explode: true, - }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/updateshortcut")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientSummarizeGenerate.ts b/src/funcs/clientSummarizeGenerate.ts index 4003020d..90b1c6d9 100644 --- a/src/funcs/clientSummarizeGenerate.ts +++ b/src/funcs/clientSummarizeGenerate.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientSummarizeGenerate( client: GleanCore, - summarizeRequest: components.SummarizeRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.SummarizeRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientSummarizeGenerate( > { return new APIPromise($do( client, - summarizeRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - summarizeRequest: components.SummarizeRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.SummarizeRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.SummarizeRequest = { - summarizeRequest: summarizeRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.SummarizeRequest$outboundSchema.parse(value), + request, + (value) => components.SummarizeRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.SummarizeRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/summarize")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientVerificationAddReminder.ts b/src/funcs/clientVerificationAddReminder.ts index 29a2e760..3ec858df 100644 --- a/src/funcs/clientVerificationAddReminder.ts +++ b/src/funcs/clientVerificationAddReminder.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientVerificationAddReminder( client: GleanCore, - reminderRequest: components.ReminderRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ReminderRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientVerificationAddReminder( > { return new APIPromise($do( client, - reminderRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - reminderRequest: components.ReminderRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ReminderRequest, options?: RequestOptions, ): Promise< [ @@ -78,38 +71,22 @@ async function $do( APICall, ] > { - const input: operations.AddverificationreminderRequest = { - reminderRequest: reminderRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => - operations.AddverificationreminderRequest$outboundSchema.parse(value), + request, + (value) => components.ReminderRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.ReminderRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/addverificationreminder")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientVerificationList.ts b/src/funcs/clientVerificationList.ts index 76b6ce5e..cfd696dc 100644 --- a/src/funcs/clientVerificationList.ts +++ b/src/funcs/clientVerificationList.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -32,8 +32,6 @@ import { Result } from "../types/fp.js"; */ export function clientVerificationList( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, count?: number | undefined, options?: RequestOptions, ): APIPromise< @@ -50,8 +48,6 @@ export function clientVerificationList( > { return new APIPromise($do( client, - xGleanActAs, - xGleanAuthType, count, options, )); @@ -59,8 +55,6 @@ export function clientVerificationList( async function $do( client: GleanCore, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, count?: number | undefined, options?: RequestOptions, ): Promise< @@ -79,8 +73,6 @@ async function $do( ] > { const input: operations.ListverificationsRequest = { - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, count: count, }; @@ -103,15 +95,6 @@ async function $do( const headers = new Headers(compactMap({ Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/funcs/clientVerificationVerify.ts b/src/funcs/clientVerificationVerify.ts index 4150ac19..d58d73e0 100644 --- a/src/funcs/clientVerificationVerify.ts +++ b/src/funcs/clientVerificationVerify.ts @@ -3,7 +3,7 @@ */ import { GleanCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -20,7 +20,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -32,9 +31,7 @@ import { Result } from "../types/fp.js"; */ export function clientVerificationVerify( client: GleanCore, - verifyRequest: components.VerifyRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.VerifyRequest, options?: RequestOptions, ): APIPromise< Result< @@ -50,18 +47,14 @@ export function clientVerificationVerify( > { return new APIPromise($do( client, - verifyRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } async function $do( client: GleanCore, - verifyRequest: components.VerifyRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.VerifyRequest, options?: RequestOptions, ): Promise< [ @@ -78,37 +71,22 @@ async function $do( APICall, ] > { - const input: operations.VerifyRequest = { - verifyRequest: verifyRequest, - xGleanActAs: xGleanActAs, - xGleanAuthType: xGleanAuthType, - }; - const parsed = safeParse( - input, - (value) => operations.VerifyRequest$outboundSchema.parse(value), + request, + (value) => components.VerifyRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.VerifyRequest, { explode: true }); + const body = encodeJSON("body", payload, { explode: true }); const path = pathToFunc("/rest/api/v1/verify")(); const headers = new Headers(compactMap({ "Content-Type": "application/json", Accept: "application/json", - "X-Glean-ActAs": encodeSimple("X-Glean-ActAs", payload["X-Glean-ActAs"], { - explode: false, - charEncoding: "none", - }), - "X-Glean-Auth-Type": encodeSimple( - "X-Glean-Auth-Type", - payload["X-Glean-Auth-Type"], - { explode: false, charEncoding: "none" }, - ), })); const secConfig = await extractSecurity(client._options.bearerAuth); diff --git a/src/lib/config.ts b/src/lib/config.ts index 0ab7737d..e07ce4d7 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -64,8 +64,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.9.0", - sdkVersion: "0.1.0-beta.1", - genVersion: "2.595.2", + sdkVersion: "0.1.0-beta.2", + genVersion: "2.595.4", userAgent: - "speakeasy-sdk/typescript 0.1.0-beta.1 2.595.2 0.9.0 @gleanwork/api-client", + "speakeasy-sdk/typescript 0.1.0-beta.2 2.595.4 0.9.0 @gleanwork/api-client", } as const; diff --git a/src/models/operations/addcollectionitems.ts b/src/models/operations/addcollectionitems.ts deleted file mode 100644 index 25f9eef5..00000000 --- a/src/models/operations/addcollectionitems.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AddcollectionitemsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Data describing the add operation. - */ - addCollectionItemsRequest: components.AddCollectionItemsRequest; -}; - -/** @internal */ -export const AddcollectionitemsRequest$inboundSchema: z.ZodType< - AddcollectionitemsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - AddCollectionItemsRequest: components.AddCollectionItemsRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "AddCollectionItemsRequest": "addCollectionItemsRequest", - }); -}); - -/** @internal */ -export type AddcollectionitemsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - AddCollectionItemsRequest: components.AddCollectionItemsRequest$Outbound; -}; - -/** @internal */ -export const AddcollectionitemsRequest$outboundSchema: z.ZodType< - AddcollectionitemsRequest$Outbound, - z.ZodTypeDef, - AddcollectionitemsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - addCollectionItemsRequest: - components.AddCollectionItemsRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - addCollectionItemsRequest: "AddCollectionItemsRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddcollectionitemsRequest$ { - /** @deprecated use `AddcollectionitemsRequest$inboundSchema` instead. */ - export const inboundSchema = AddcollectionitemsRequest$inboundSchema; - /** @deprecated use `AddcollectionitemsRequest$outboundSchema` instead. */ - export const outboundSchema = AddcollectionitemsRequest$outboundSchema; - /** @deprecated use `AddcollectionitemsRequest$Outbound` instead. */ - export type Outbound = AddcollectionitemsRequest$Outbound; -} - -export function addcollectionitemsRequestToJSON( - addcollectionitemsRequest: AddcollectionitemsRequest, -): string { - return JSON.stringify( - AddcollectionitemsRequest$outboundSchema.parse(addcollectionitemsRequest), - ); -} - -export function addcollectionitemsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddcollectionitemsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddcollectionitemsRequest' from JSON`, - ); -} diff --git a/src/models/operations/addverificationreminder.ts b/src/models/operations/addverificationreminder.ts deleted file mode 100644 index a8aee590..00000000 --- a/src/models/operations/addverificationreminder.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AddverificationreminderRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Details about the reminder. - */ - reminderRequest: components.ReminderRequest; -}; - -/** @internal */ -export const AddverificationreminderRequest$inboundSchema: z.ZodType< - AddverificationreminderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - ReminderRequest: components.ReminderRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "ReminderRequest": "reminderRequest", - }); -}); - -/** @internal */ -export type AddverificationreminderRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - ReminderRequest: components.ReminderRequest$Outbound; -}; - -/** @internal */ -export const AddverificationreminderRequest$outboundSchema: z.ZodType< - AddverificationreminderRequest$Outbound, - z.ZodTypeDef, - AddverificationreminderRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - reminderRequest: components.ReminderRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - reminderRequest: "ReminderRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddverificationreminderRequest$ { - /** @deprecated use `AddverificationreminderRequest$inboundSchema` instead. */ - export const inboundSchema = AddverificationreminderRequest$inboundSchema; - /** @deprecated use `AddverificationreminderRequest$outboundSchema` instead. */ - export const outboundSchema = AddverificationreminderRequest$outboundSchema; - /** @deprecated use `AddverificationreminderRequest$Outbound` instead. */ - export type Outbound = AddverificationreminderRequest$Outbound; -} - -export function addverificationreminderRequestToJSON( - addverificationreminderRequest: AddverificationreminderRequest, -): string { - return JSON.stringify( - AddverificationreminderRequest$outboundSchema.parse( - addverificationreminderRequest, - ), - ); -} - -export function addverificationreminderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddverificationreminderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddverificationreminderRequest' from JSON`, - ); -} diff --git a/src/models/operations/adminsearch.ts b/src/models/operations/adminsearch.ts deleted file mode 100644 index e8eb94f8..00000000 --- a/src/models/operations/adminsearch.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AdminsearchRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Admin search request - */ - searchRequest?: components.SearchRequest | undefined; -}; - -/** @internal */ -export const AdminsearchRequest$inboundSchema: z.ZodType< - AdminsearchRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - SearchRequest: components.SearchRequest$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "SearchRequest": "searchRequest", - }); -}); - -/** @internal */ -export type AdminsearchRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - SearchRequest?: components.SearchRequest$Outbound | undefined; -}; - -/** @internal */ -export const AdminsearchRequest$outboundSchema: z.ZodType< - AdminsearchRequest$Outbound, - z.ZodTypeDef, - AdminsearchRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - searchRequest: components.SearchRequest$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - searchRequest: "SearchRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AdminsearchRequest$ { - /** @deprecated use `AdminsearchRequest$inboundSchema` instead. */ - export const inboundSchema = AdminsearchRequest$inboundSchema; - /** @deprecated use `AdminsearchRequest$outboundSchema` instead. */ - export const outboundSchema = AdminsearchRequest$outboundSchema; - /** @deprecated use `AdminsearchRequest$Outbound` instead. */ - export type Outbound = AdminsearchRequest$Outbound; -} - -export function adminsearchRequestToJSON( - adminsearchRequest: AdminsearchRequest, -): string { - return JSON.stringify( - AdminsearchRequest$outboundSchema.parse(adminsearchRequest), - ); -} - -export function adminsearchRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AdminsearchRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AdminsearchRequest' from JSON`, - ); -} diff --git a/src/models/operations/autocomplete.ts b/src/models/operations/autocomplete.ts deleted file mode 100644 index eb14705e..00000000 --- a/src/models/operations/autocomplete.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AutocompleteRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Autocomplete request - */ - autocompleteRequest: components.AutocompleteRequest; -}; - -/** @internal */ -export const AutocompleteRequest$inboundSchema: z.ZodType< - AutocompleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - AutocompleteRequest: components.AutocompleteRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "AutocompleteRequest": "autocompleteRequest", - }); -}); - -/** @internal */ -export type AutocompleteRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - AutocompleteRequest: components.AutocompleteRequest$Outbound; -}; - -/** @internal */ -export const AutocompleteRequest$outboundSchema: z.ZodType< - AutocompleteRequest$Outbound, - z.ZodTypeDef, - AutocompleteRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - autocompleteRequest: components.AutocompleteRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - autocompleteRequest: "AutocompleteRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AutocompleteRequest$ { - /** @deprecated use `AutocompleteRequest$inboundSchema` instead. */ - export const inboundSchema = AutocompleteRequest$inboundSchema; - /** @deprecated use `AutocompleteRequest$outboundSchema` instead. */ - export const outboundSchema = AutocompleteRequest$outboundSchema; - /** @deprecated use `AutocompleteRequest$Outbound` instead. */ - export type Outbound = AutocompleteRequest$Outbound; -} - -export function autocompleteRequestToJSON( - autocompleteRequest: AutocompleteRequest, -): string { - return JSON.stringify( - AutocompleteRequest$outboundSchema.parse(autocompleteRequest), - ); -} - -export function autocompleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AutocompleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AutocompleteRequest' from JSON`, - ); -} diff --git a/src/models/operations/chat.ts b/src/models/operations/chat.ts index bba9bca6..f1f5b0bc 100644 --- a/src/models/operations/chat.ts +++ b/src/models/operations/chat.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ChatRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -34,22 +26,16 @@ export const ChatRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), ChatRequest: components.ChatRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "ChatRequest": "chatRequest", }); }); /** @internal */ export type ChatRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; ChatRequest: components.ChatRequest$Outbound; }; @@ -60,14 +46,10 @@ export const ChatRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ChatRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), chatRequest: components.ChatRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", chatRequest: "ChatRequest", }); }); diff --git a/src/models/operations/createannouncement.ts b/src/models/operations/createannouncement.ts deleted file mode 100644 index f5e0ba2c..00000000 --- a/src/models/operations/createannouncement.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CreateannouncementRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Announcement content - */ - createAnnouncementRequest: components.CreateAnnouncementRequest; -}; - -/** @internal */ -export const CreateannouncementRequest$inboundSchema: z.ZodType< - CreateannouncementRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - CreateAnnouncementRequest: components.CreateAnnouncementRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "CreateAnnouncementRequest": "createAnnouncementRequest", - }); -}); - -/** @internal */ -export type CreateannouncementRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - CreateAnnouncementRequest: components.CreateAnnouncementRequest$Outbound; -}; - -/** @internal */ -export const CreateannouncementRequest$outboundSchema: z.ZodType< - CreateannouncementRequest$Outbound, - z.ZodTypeDef, - CreateannouncementRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - createAnnouncementRequest: - components.CreateAnnouncementRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - createAnnouncementRequest: "CreateAnnouncementRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateannouncementRequest$ { - /** @deprecated use `CreateannouncementRequest$inboundSchema` instead. */ - export const inboundSchema = CreateannouncementRequest$inboundSchema; - /** @deprecated use `CreateannouncementRequest$outboundSchema` instead. */ - export const outboundSchema = CreateannouncementRequest$outboundSchema; - /** @deprecated use `CreateannouncementRequest$Outbound` instead. */ - export type Outbound = CreateannouncementRequest$Outbound; -} - -export function createannouncementRequestToJSON( - createannouncementRequest: CreateannouncementRequest, -): string { - return JSON.stringify( - CreateannouncementRequest$outboundSchema.parse(createannouncementRequest), - ); -} - -export function createannouncementRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateannouncementRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateannouncementRequest' from JSON`, - ); -} diff --git a/src/models/operations/createanswer.ts b/src/models/operations/createanswer.ts deleted file mode 100644 index 8525ee89..00000000 --- a/src/models/operations/createanswer.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CreateanswerRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * CreateAnswer request - */ - createAnswerRequest: components.CreateAnswerRequest; -}; - -/** @internal */ -export const CreateanswerRequest$inboundSchema: z.ZodType< - CreateanswerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - CreateAnswerRequest: components.CreateAnswerRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "CreateAnswerRequest": "createAnswerRequest", - }); -}); - -/** @internal */ -export type CreateanswerRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - CreateAnswerRequest: components.CreateAnswerRequest$Outbound; -}; - -/** @internal */ -export const CreateanswerRequest$outboundSchema: z.ZodType< - CreateanswerRequest$Outbound, - z.ZodTypeDef, - CreateanswerRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - createAnswerRequest: components.CreateAnswerRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - createAnswerRequest: "CreateAnswerRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateanswerRequest$ { - /** @deprecated use `CreateanswerRequest$inboundSchema` instead. */ - export const inboundSchema = CreateanswerRequest$inboundSchema; - /** @deprecated use `CreateanswerRequest$outboundSchema` instead. */ - export const outboundSchema = CreateanswerRequest$outboundSchema; - /** @deprecated use `CreateanswerRequest$Outbound` instead. */ - export type Outbound = CreateanswerRequest$Outbound; -} - -export function createanswerRequestToJSON( - createanswerRequest: CreateanswerRequest, -): string { - return JSON.stringify( - CreateanswerRequest$outboundSchema.parse(createanswerRequest), - ); -} - -export function createanswerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateanswerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateanswerRequest' from JSON`, - ); -} diff --git a/src/models/operations/createauthtoken.ts b/src/models/operations/createauthtoken.ts deleted file mode 100644 index 55b63bce..00000000 --- a/src/models/operations/createauthtoken.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CreateauthtokenRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; -}; - -/** @internal */ -export const CreateauthtokenRequest$inboundSchema: z.ZodType< - CreateauthtokenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - }); -}); - -/** @internal */ -export type CreateauthtokenRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; -}; - -/** @internal */ -export const CreateauthtokenRequest$outboundSchema: z.ZodType< - CreateauthtokenRequest$Outbound, - z.ZodTypeDef, - CreateauthtokenRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateauthtokenRequest$ { - /** @deprecated use `CreateauthtokenRequest$inboundSchema` instead. */ - export const inboundSchema = CreateauthtokenRequest$inboundSchema; - /** @deprecated use `CreateauthtokenRequest$outboundSchema` instead. */ - export const outboundSchema = CreateauthtokenRequest$outboundSchema; - /** @deprecated use `CreateauthtokenRequest$Outbound` instead. */ - export type Outbound = CreateauthtokenRequest$Outbound; -} - -export function createauthtokenRequestToJSON( - createauthtokenRequest: CreateauthtokenRequest, -): string { - return JSON.stringify( - CreateauthtokenRequest$outboundSchema.parse(createauthtokenRequest), - ); -} - -export function createauthtokenRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateauthtokenRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateauthtokenRequest' from JSON`, - ); -} diff --git a/src/models/operations/createcollection.ts b/src/models/operations/createcollection.ts deleted file mode 100644 index 2393311b..00000000 --- a/src/models/operations/createcollection.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CreatecollectionRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Collection content plus any additional metadata for the request. - */ - createCollectionRequest: components.CreateCollectionRequest; -}; - -/** @internal */ -export const CreatecollectionRequest$inboundSchema: z.ZodType< - CreatecollectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - CreateCollectionRequest: components.CreateCollectionRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "CreateCollectionRequest": "createCollectionRequest", - }); -}); - -/** @internal */ -export type CreatecollectionRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - CreateCollectionRequest: components.CreateCollectionRequest$Outbound; -}; - -/** @internal */ -export const CreatecollectionRequest$outboundSchema: z.ZodType< - CreatecollectionRequest$Outbound, - z.ZodTypeDef, - CreatecollectionRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - createCollectionRequest: components.CreateCollectionRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - createCollectionRequest: "CreateCollectionRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatecollectionRequest$ { - /** @deprecated use `CreatecollectionRequest$inboundSchema` instead. */ - export const inboundSchema = CreatecollectionRequest$inboundSchema; - /** @deprecated use `CreatecollectionRequest$outboundSchema` instead. */ - export const outboundSchema = CreatecollectionRequest$outboundSchema; - /** @deprecated use `CreatecollectionRequest$Outbound` instead. */ - export type Outbound = CreatecollectionRequest$Outbound; -} - -export function createcollectionRequestToJSON( - createcollectionRequest: CreatecollectionRequest, -): string { - return JSON.stringify( - CreatecollectionRequest$outboundSchema.parse(createcollectionRequest), - ); -} - -export function createcollectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreatecollectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreatecollectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/createshortcut.ts b/src/models/operations/createshortcut.ts deleted file mode 100644 index 8927e165..00000000 --- a/src/models/operations/createshortcut.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CreateshortcutRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * CreateShortcut request - */ - createShortcutRequest: components.CreateShortcutRequest; -}; - -/** @internal */ -export const CreateshortcutRequest$inboundSchema: z.ZodType< - CreateshortcutRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - CreateShortcutRequest: components.CreateShortcutRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "CreateShortcutRequest": "createShortcutRequest", - }); -}); - -/** @internal */ -export type CreateshortcutRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - CreateShortcutRequest: components.CreateShortcutRequest$Outbound; -}; - -/** @internal */ -export const CreateshortcutRequest$outboundSchema: z.ZodType< - CreateshortcutRequest$Outbound, - z.ZodTypeDef, - CreateshortcutRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - createShortcutRequest: components.CreateShortcutRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - createShortcutRequest: "CreateShortcutRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateshortcutRequest$ { - /** @deprecated use `CreateshortcutRequest$inboundSchema` instead. */ - export const inboundSchema = CreateshortcutRequest$inboundSchema; - /** @deprecated use `CreateshortcutRequest$outboundSchema` instead. */ - export const outboundSchema = CreateshortcutRequest$outboundSchema; - /** @deprecated use `CreateshortcutRequest$Outbound` instead. */ - export type Outbound = CreateshortcutRequest$Outbound; -} - -export function createshortcutRequestToJSON( - createshortcutRequest: CreateshortcutRequest, -): string { - return JSON.stringify( - CreateshortcutRequest$outboundSchema.parse(createshortcutRequest), - ); -} - -export function createshortcutRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateshortcutRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateshortcutRequest' from JSON`, - ); -} diff --git a/src/models/operations/deleteallchats.ts b/src/models/operations/deleteallchats.ts index 551f50bf..1e3d4b38 100644 --- a/src/models/operations/deleteallchats.ts +++ b/src/models/operations/deleteallchats.ts @@ -3,20 +3,11 @@ */ import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteallchatsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -29,20 +20,11 @@ export const DeleteallchatsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - }); }); /** @internal */ export type DeleteallchatsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; }; @@ -52,14 +34,7 @@ export const DeleteallchatsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeleteallchatsRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - }); }); /** diff --git a/src/models/operations/deleteannouncement.ts b/src/models/operations/deleteannouncement.ts deleted file mode 100644 index cc3f56b2..00000000 --- a/src/models/operations/deleteannouncement.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DeleteannouncementRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Delete announcement request - */ - deleteAnnouncementRequest: components.DeleteAnnouncementRequest; -}; - -/** @internal */ -export const DeleteannouncementRequest$inboundSchema: z.ZodType< - DeleteannouncementRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - DeleteAnnouncementRequest: components.DeleteAnnouncementRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "DeleteAnnouncementRequest": "deleteAnnouncementRequest", - }); -}); - -/** @internal */ -export type DeleteannouncementRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - DeleteAnnouncementRequest: components.DeleteAnnouncementRequest$Outbound; -}; - -/** @internal */ -export const DeleteannouncementRequest$outboundSchema: z.ZodType< - DeleteannouncementRequest$Outbound, - z.ZodTypeDef, - DeleteannouncementRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - deleteAnnouncementRequest: - components.DeleteAnnouncementRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - deleteAnnouncementRequest: "DeleteAnnouncementRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteannouncementRequest$ { - /** @deprecated use `DeleteannouncementRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteannouncementRequest$inboundSchema; - /** @deprecated use `DeleteannouncementRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteannouncementRequest$outboundSchema; - /** @deprecated use `DeleteannouncementRequest$Outbound` instead. */ - export type Outbound = DeleteannouncementRequest$Outbound; -} - -export function deleteannouncementRequestToJSON( - deleteannouncementRequest: DeleteannouncementRequest, -): string { - return JSON.stringify( - DeleteannouncementRequest$outboundSchema.parse(deleteannouncementRequest), - ); -} - -export function deleteannouncementRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteannouncementRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteannouncementRequest' from JSON`, - ); -} diff --git a/src/models/operations/deleteanswer.ts b/src/models/operations/deleteanswer.ts deleted file mode 100644 index 5de07ecb..00000000 --- a/src/models/operations/deleteanswer.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DeleteanswerRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * DeleteAnswer request - */ - deleteAnswerRequest: components.DeleteAnswerRequest; -}; - -/** @internal */ -export const DeleteanswerRequest$inboundSchema: z.ZodType< - DeleteanswerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - DeleteAnswerRequest: components.DeleteAnswerRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "DeleteAnswerRequest": "deleteAnswerRequest", - }); -}); - -/** @internal */ -export type DeleteanswerRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - DeleteAnswerRequest: components.DeleteAnswerRequest$Outbound; -}; - -/** @internal */ -export const DeleteanswerRequest$outboundSchema: z.ZodType< - DeleteanswerRequest$Outbound, - z.ZodTypeDef, - DeleteanswerRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - deleteAnswerRequest: components.DeleteAnswerRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - deleteAnswerRequest: "DeleteAnswerRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteanswerRequest$ { - /** @deprecated use `DeleteanswerRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteanswerRequest$inboundSchema; - /** @deprecated use `DeleteanswerRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteanswerRequest$outboundSchema; - /** @deprecated use `DeleteanswerRequest$Outbound` instead. */ - export type Outbound = DeleteanswerRequest$Outbound; -} - -export function deleteanswerRequestToJSON( - deleteanswerRequest: DeleteanswerRequest, -): string { - return JSON.stringify( - DeleteanswerRequest$outboundSchema.parse(deleteanswerRequest), - ); -} - -export function deleteanswerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteanswerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteanswerRequest' from JSON`, - ); -} diff --git a/src/models/operations/deletechatfiles.ts b/src/models/operations/deletechatfiles.ts index 2d6f4f94..9f43c75a 100644 --- a/src/models/operations/deletechatfiles.ts +++ b/src/models/operations/deletechatfiles.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeletechatfilesRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const DeletechatfilesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), DeleteChatFilesRequest: components.DeleteChatFilesRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "DeleteChatFilesRequest": "deleteChatFilesRequest", }); }); /** @internal */ export type DeletechatfilesRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; DeleteChatFilesRequest: components.DeleteChatFilesRequest$Outbound; }; @@ -57,14 +43,10 @@ export const DeletechatfilesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeletechatfilesRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), deleteChatFilesRequest: components.DeleteChatFilesRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", deleteChatFilesRequest: "DeleteChatFilesRequest", }); }); diff --git a/src/models/operations/deletechats.ts b/src/models/operations/deletechats.ts index c5614dd4..187c6e74 100644 --- a/src/models/operations/deletechats.ts +++ b/src/models/operations/deletechats.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeletechatsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const DeletechatsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), DeleteChatsRequest: components.DeleteChatsRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "DeleteChatsRequest": "deleteChatsRequest", }); }); /** @internal */ export type DeletechatsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; DeleteChatsRequest: components.DeleteChatsRequest$Outbound; }; @@ -57,14 +43,10 @@ export const DeletechatsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, DeletechatsRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), deleteChatsRequest: components.DeleteChatsRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", deleteChatsRequest: "DeleteChatsRequest", }); }); diff --git a/src/models/operations/deletecollection.ts b/src/models/operations/deletecollection.ts deleted file mode 100644 index 2ac6112f..00000000 --- a/src/models/operations/deletecollection.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DeletecollectionRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * DeleteCollection request - */ - deleteCollectionRequest: components.DeleteCollectionRequest; -}; - -/** @internal */ -export const DeletecollectionRequest$inboundSchema: z.ZodType< - DeletecollectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - DeleteCollectionRequest: components.DeleteCollectionRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "DeleteCollectionRequest": "deleteCollectionRequest", - }); -}); - -/** @internal */ -export type DeletecollectionRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - DeleteCollectionRequest: components.DeleteCollectionRequest$Outbound; -}; - -/** @internal */ -export const DeletecollectionRequest$outboundSchema: z.ZodType< - DeletecollectionRequest$Outbound, - z.ZodTypeDef, - DeletecollectionRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - deleteCollectionRequest: components.DeleteCollectionRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - deleteCollectionRequest: "DeleteCollectionRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletecollectionRequest$ { - /** @deprecated use `DeletecollectionRequest$inboundSchema` instead. */ - export const inboundSchema = DeletecollectionRequest$inboundSchema; - /** @deprecated use `DeletecollectionRequest$outboundSchema` instead. */ - export const outboundSchema = DeletecollectionRequest$outboundSchema; - /** @deprecated use `DeletecollectionRequest$Outbound` instead. */ - export type Outbound = DeletecollectionRequest$Outbound; -} - -export function deletecollectionRequestToJSON( - deletecollectionRequest: DeletecollectionRequest, -): string { - return JSON.stringify( - DeletecollectionRequest$outboundSchema.parse(deletecollectionRequest), - ); -} - -export function deletecollectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletecollectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletecollectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/deletecollectionitem.ts b/src/models/operations/deletecollectionitem.ts deleted file mode 100644 index 0ed31bd8..00000000 --- a/src/models/operations/deletecollectionitem.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DeletecollectionitemRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Data describing the delete operation. - */ - deleteCollectionItemRequest: components.DeleteCollectionItemRequest; -}; - -/** @internal */ -export const DeletecollectionitemRequest$inboundSchema: z.ZodType< - DeletecollectionitemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - DeleteCollectionItemRequest: - components.DeleteCollectionItemRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "DeleteCollectionItemRequest": "deleteCollectionItemRequest", - }); -}); - -/** @internal */ -export type DeletecollectionitemRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - DeleteCollectionItemRequest: components.DeleteCollectionItemRequest$Outbound; -}; - -/** @internal */ -export const DeletecollectionitemRequest$outboundSchema: z.ZodType< - DeletecollectionitemRequest$Outbound, - z.ZodTypeDef, - DeletecollectionitemRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - deleteCollectionItemRequest: - components.DeleteCollectionItemRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - deleteCollectionItemRequest: "DeleteCollectionItemRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletecollectionitemRequest$ { - /** @deprecated use `DeletecollectionitemRequest$inboundSchema` instead. */ - export const inboundSchema = DeletecollectionitemRequest$inboundSchema; - /** @deprecated use `DeletecollectionitemRequest$outboundSchema` instead. */ - export const outboundSchema = DeletecollectionitemRequest$outboundSchema; - /** @deprecated use `DeletecollectionitemRequest$Outbound` instead. */ - export type Outbound = DeletecollectionitemRequest$Outbound; -} - -export function deletecollectionitemRequestToJSON( - deletecollectionitemRequest: DeletecollectionitemRequest, -): string { - return JSON.stringify( - DeletecollectionitemRequest$outboundSchema.parse( - deletecollectionitemRequest, - ), - ); -} - -export function deletecollectionitemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeletecollectionitemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeletecollectionitemRequest' from JSON`, - ); -} diff --git a/src/models/operations/deleteshortcut.ts b/src/models/operations/deleteshortcut.ts deleted file mode 100644 index 66b0f963..00000000 --- a/src/models/operations/deleteshortcut.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DeleteshortcutRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * DeleteShortcut request - */ - deleteShortcutRequest: components.DeleteShortcutRequest; -}; - -/** @internal */ -export const DeleteshortcutRequest$inboundSchema: z.ZodType< - DeleteshortcutRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - DeleteShortcutRequest: components.DeleteShortcutRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "DeleteShortcutRequest": "deleteShortcutRequest", - }); -}); - -/** @internal */ -export type DeleteshortcutRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - DeleteShortcutRequest: components.DeleteShortcutRequest$Outbound; -}; - -/** @internal */ -export const DeleteshortcutRequest$outboundSchema: z.ZodType< - DeleteshortcutRequest$Outbound, - z.ZodTypeDef, - DeleteshortcutRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - deleteShortcutRequest: components.DeleteShortcutRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - deleteShortcutRequest: "DeleteShortcutRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteshortcutRequest$ { - /** @deprecated use `DeleteshortcutRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteshortcutRequest$inboundSchema; - /** @deprecated use `DeleteshortcutRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteshortcutRequest$outboundSchema; - /** @deprecated use `DeleteshortcutRequest$Outbound` instead. */ - export type Outbound = DeleteshortcutRequest$Outbound; -} - -export function deleteshortcutRequestToJSON( - deleteshortcutRequest: DeleteshortcutRequest, -): string { - return JSON.stringify( - DeleteshortcutRequest$outboundSchema.parse(deleteshortcutRequest), - ); -} - -export function deleteshortcutRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeleteshortcutRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteshortcutRequest' from JSON`, - ); -} diff --git a/src/models/operations/editanswer.ts b/src/models/operations/editanswer.ts deleted file mode 100644 index 3ccc0400..00000000 --- a/src/models/operations/editanswer.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type EditanswerRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * EditAnswer request - */ - editAnswerRequest: components.EditAnswerRequest; -}; - -/** @internal */ -export const EditanswerRequest$inboundSchema: z.ZodType< - EditanswerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - EditAnswerRequest: components.EditAnswerRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "EditAnswerRequest": "editAnswerRequest", - }); -}); - -/** @internal */ -export type EditanswerRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - EditAnswerRequest: components.EditAnswerRequest$Outbound; -}; - -/** @internal */ -export const EditanswerRequest$outboundSchema: z.ZodType< - EditanswerRequest$Outbound, - z.ZodTypeDef, - EditanswerRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - editAnswerRequest: components.EditAnswerRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - editAnswerRequest: "EditAnswerRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditanswerRequest$ { - /** @deprecated use `EditanswerRequest$inboundSchema` instead. */ - export const inboundSchema = EditanswerRequest$inboundSchema; - /** @deprecated use `EditanswerRequest$outboundSchema` instead. */ - export const outboundSchema = EditanswerRequest$outboundSchema; - /** @deprecated use `EditanswerRequest$Outbound` instead. */ - export type Outbound = EditanswerRequest$Outbound; -} - -export function editanswerRequestToJSON( - editanswerRequest: EditanswerRequest, -): string { - return JSON.stringify( - EditanswerRequest$outboundSchema.parse(editanswerRequest), - ); -} - -export function editanswerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditanswerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditanswerRequest' from JSON`, - ); -} diff --git a/src/models/operations/editcollection.ts b/src/models/operations/editcollection.ts deleted file mode 100644 index 42340cea..00000000 --- a/src/models/operations/editcollection.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type EditcollectionRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Collection content plus any additional metadata for the request. - */ - editCollectionRequest: components.EditCollectionRequest; -}; - -/** @internal */ -export const EditcollectionRequest$inboundSchema: z.ZodType< - EditcollectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - EditCollectionRequest: components.EditCollectionRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "EditCollectionRequest": "editCollectionRequest", - }); -}); - -/** @internal */ -export type EditcollectionRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - EditCollectionRequest: components.EditCollectionRequest$Outbound; -}; - -/** @internal */ -export const EditcollectionRequest$outboundSchema: z.ZodType< - EditcollectionRequest$Outbound, - z.ZodTypeDef, - EditcollectionRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - editCollectionRequest: components.EditCollectionRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - editCollectionRequest: "EditCollectionRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditcollectionRequest$ { - /** @deprecated use `EditcollectionRequest$inboundSchema` instead. */ - export const inboundSchema = EditcollectionRequest$inboundSchema; - /** @deprecated use `EditcollectionRequest$outboundSchema` instead. */ - export const outboundSchema = EditcollectionRequest$outboundSchema; - /** @deprecated use `EditcollectionRequest$Outbound` instead. */ - export type Outbound = EditcollectionRequest$Outbound; -} - -export function editcollectionRequestToJSON( - editcollectionRequest: EditcollectionRequest, -): string { - return JSON.stringify( - EditcollectionRequest$outboundSchema.parse(editcollectionRequest), - ); -} - -export function editcollectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditcollectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditcollectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/editcollectionitem.ts b/src/models/operations/editcollectionitem.ts deleted file mode 100644 index 0c923613..00000000 --- a/src/models/operations/editcollectionitem.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type EditcollectionitemRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Edit Collection Items request - */ - editCollectionItemRequest: components.EditCollectionItemRequest; -}; - -/** @internal */ -export const EditcollectionitemRequest$inboundSchema: z.ZodType< - EditcollectionitemRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - EditCollectionItemRequest: components.EditCollectionItemRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "EditCollectionItemRequest": "editCollectionItemRequest", - }); -}); - -/** @internal */ -export type EditcollectionitemRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - EditCollectionItemRequest: components.EditCollectionItemRequest$Outbound; -}; - -/** @internal */ -export const EditcollectionitemRequest$outboundSchema: z.ZodType< - EditcollectionitemRequest$Outbound, - z.ZodTypeDef, - EditcollectionitemRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - editCollectionItemRequest: - components.EditCollectionItemRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - editCollectionItemRequest: "EditCollectionItemRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditcollectionitemRequest$ { - /** @deprecated use `EditcollectionitemRequest$inboundSchema` instead. */ - export const inboundSchema = EditcollectionitemRequest$inboundSchema; - /** @deprecated use `EditcollectionitemRequest$outboundSchema` instead. */ - export const outboundSchema = EditcollectionitemRequest$outboundSchema; - /** @deprecated use `EditcollectionitemRequest$Outbound` instead. */ - export type Outbound = EditcollectionitemRequest$Outbound; -} - -export function editcollectionitemRequestToJSON( - editcollectionitemRequest: EditcollectionitemRequest, -): string { - return JSON.stringify( - EditcollectionitemRequest$outboundSchema.parse(editcollectionitemRequest), - ); -} - -export function editcollectionitemRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditcollectionitemRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditcollectionitemRequest' from JSON`, - ); -} diff --git a/src/models/operations/editpin.ts b/src/models/operations/editpin.ts deleted file mode 100644 index b43b4ae1..00000000 --- a/src/models/operations/editpin.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type EditpinRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Edit pins request - */ - editPinRequest: components.EditPinRequest; -}; - -/** @internal */ -export const EditpinRequest$inboundSchema: z.ZodType< - EditpinRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - EditPinRequest: components.EditPinRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "EditPinRequest": "editPinRequest", - }); -}); - -/** @internal */ -export type EditpinRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - EditPinRequest: components.EditPinRequest$Outbound; -}; - -/** @internal */ -export const EditpinRequest$outboundSchema: z.ZodType< - EditpinRequest$Outbound, - z.ZodTypeDef, - EditpinRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - editPinRequest: components.EditPinRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - editPinRequest: "EditPinRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EditpinRequest$ { - /** @deprecated use `EditpinRequest$inboundSchema` instead. */ - export const inboundSchema = EditpinRequest$inboundSchema; - /** @deprecated use `EditpinRequest$outboundSchema` instead. */ - export const outboundSchema = EditpinRequest$outboundSchema; - /** @deprecated use `EditpinRequest$Outbound` instead. */ - export type Outbound = EditpinRequest$Outbound; -} - -export function editpinRequestToJSON(editpinRequest: EditpinRequest): string { - return JSON.stringify(EditpinRequest$outboundSchema.parse(editpinRequest)); -} - -export function editpinRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EditpinRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EditpinRequest' from JSON`, - ); -} diff --git a/src/models/operations/feed.ts b/src/models/operations/feed.ts deleted file mode 100644 index 5f748100..00000000 --- a/src/models/operations/feed.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type FeedRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Includes request params, client data and more for making user's feed. - */ - feedRequest: components.FeedRequest; -}; - -/** @internal */ -export const FeedRequest$inboundSchema: z.ZodType< - FeedRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - FeedRequest: components.FeedRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "FeedRequest": "feedRequest", - }); -}); - -/** @internal */ -export type FeedRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - FeedRequest: components.FeedRequest$Outbound; -}; - -/** @internal */ -export const FeedRequest$outboundSchema: z.ZodType< - FeedRequest$Outbound, - z.ZodTypeDef, - FeedRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - feedRequest: components.FeedRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - feedRequest: "FeedRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedRequest$ { - /** @deprecated use `FeedRequest$inboundSchema` instead. */ - export const inboundSchema = FeedRequest$inboundSchema; - /** @deprecated use `FeedRequest$outboundSchema` instead. */ - export const outboundSchema = FeedRequest$outboundSchema; - /** @deprecated use `FeedRequest$Outbound` instead. */ - export type Outbound = FeedRequest$Outbound; -} - -export function feedRequestToJSON(feedRequest: FeedRequest): string { - return JSON.stringify(FeedRequest$outboundSchema.parse(feedRequest)); -} - -export function feedRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FeedRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FeedRequest' from JSON`, - ); -} diff --git a/src/models/operations/feedback.ts b/src/models/operations/feedback.ts index b7e2524a..33a8f417 100644 --- a/src/models/operations/feedback.ts +++ b/src/models/operations/feedback.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type FeedbackRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * A URL encoded versions of Feedback. This is useful for requests. */ @@ -31,22 +23,16 @@ export const FeedbackRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), feedbackQueryParameter: z.string().optional(), Feedback1: components.Feedback$inboundSchema.optional(), }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "Feedback1": "feedback1", }); }); /** @internal */ export type FeedbackRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; feedbackQueryParameter?: string | undefined; Feedback1?: components.Feedback$Outbound | undefined; }; @@ -57,14 +43,10 @@ export const FeedbackRequest$outboundSchema: z.ZodType< z.ZodTypeDef, FeedbackRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), feedbackQueryParameter: z.string().optional(), feedback1: components.Feedback$outboundSchema.optional(), }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", feedback1: "Feedback1", }); }); diff --git a/src/models/operations/getagentinputs.ts b/src/models/operations/getagentinputs.ts index 617c1d65..f9aad410 100644 --- a/src/models/operations/getagentinputs.ts +++ b/src/models/operations/getagentinputs.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetagentinputsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const GetagentinputsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), GetAgentInputsRequest: components.GetAgentInputsRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "GetAgentInputsRequest": "getAgentInputsRequest", }); }); /** @internal */ export type GetagentinputsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; GetAgentInputsRequest: components.GetAgentInputsRequest$Outbound; }; @@ -57,14 +43,10 @@ export const GetagentinputsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetagentinputsRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), getAgentInputsRequest: components.GetAgentInputsRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", getAgentInputsRequest: "GetAgentInputsRequest", }); }); diff --git a/src/models/operations/getanswer.ts b/src/models/operations/getanswer.ts deleted file mode 100644 index 453ad3c4..00000000 --- a/src/models/operations/getanswer.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetanswerRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * GetAnswer request - */ - getAnswerRequest: components.GetAnswerRequest; -}; - -/** @internal */ -export const GetanswerRequest$inboundSchema: z.ZodType< - GetanswerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - GetAnswerRequest: components.GetAnswerRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "GetAnswerRequest": "getAnswerRequest", - }); -}); - -/** @internal */ -export type GetanswerRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - GetAnswerRequest: components.GetAnswerRequest$Outbound; -}; - -/** @internal */ -export const GetanswerRequest$outboundSchema: z.ZodType< - GetanswerRequest$Outbound, - z.ZodTypeDef, - GetanswerRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - getAnswerRequest: components.GetAnswerRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - getAnswerRequest: "GetAnswerRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetanswerRequest$ { - /** @deprecated use `GetanswerRequest$inboundSchema` instead. */ - export const inboundSchema = GetanswerRequest$inboundSchema; - /** @deprecated use `GetanswerRequest$outboundSchema` instead. */ - export const outboundSchema = GetanswerRequest$outboundSchema; - /** @deprecated use `GetanswerRequest$Outbound` instead. */ - export type Outbound = GetanswerRequest$Outbound; -} - -export function getanswerRequestToJSON( - getanswerRequest: GetanswerRequest, -): string { - return JSON.stringify( - GetanswerRequest$outboundSchema.parse(getanswerRequest), - ); -} - -export function getanswerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetanswerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetanswerRequest' from JSON`, - ); -} diff --git a/src/models/operations/getchat.ts b/src/models/operations/getchat.ts index 3547cf33..3edc7d2b 100644 --- a/src/models/operations/getchat.ts +++ b/src/models/operations/getchat.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetchatRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const GetchatRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), GetChatRequest: components.GetChatRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "GetChatRequest": "getChatRequest", }); }); /** @internal */ export type GetchatRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; GetChatRequest: components.GetChatRequest$Outbound; }; @@ -57,14 +43,10 @@ export const GetchatRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetchatRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), getChatRequest: components.GetChatRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", getChatRequest: "GetChatRequest", }); }); diff --git a/src/models/operations/getchatapplication.ts b/src/models/operations/getchatapplication.ts index e7009872..18309f0c 100644 --- a/src/models/operations/getchatapplication.ts +++ b/src/models/operations/getchatapplication.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetchatapplicationRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const GetchatapplicationRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), GetChatApplicationRequest: components.GetChatApplicationRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "GetChatApplicationRequest": "getChatApplicationRequest", }); }); /** @internal */ export type GetchatapplicationRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; GetChatApplicationRequest: components.GetChatApplicationRequest$Outbound; }; @@ -57,15 +43,11 @@ export const GetchatapplicationRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetchatapplicationRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), getChatApplicationRequest: components.GetChatApplicationRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", getChatApplicationRequest: "GetChatApplicationRequest", }); }); diff --git a/src/models/operations/getchatfiles.ts b/src/models/operations/getchatfiles.ts index 91d4ccdd..32f9d97e 100644 --- a/src/models/operations/getchatfiles.ts +++ b/src/models/operations/getchatfiles.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetchatfilesRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const GetchatfilesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), GetChatFilesRequest: components.GetChatFilesRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "GetChatFilesRequest": "getChatFilesRequest", }); }); /** @internal */ export type GetchatfilesRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; GetChatFilesRequest: components.GetChatFilesRequest$Outbound; }; @@ -57,14 +43,10 @@ export const GetchatfilesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetchatfilesRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), getChatFilesRequest: components.GetChatFilesRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", getChatFilesRequest: "GetChatFilesRequest", }); }); diff --git a/src/models/operations/getcollection.ts b/src/models/operations/getcollection.ts deleted file mode 100644 index 55bf83e2..00000000 --- a/src/models/operations/getcollection.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetcollectionRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * GetCollection request - */ - getCollectionRequest: components.GetCollectionRequest; -}; - -/** @internal */ -export const GetcollectionRequest$inboundSchema: z.ZodType< - GetcollectionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - GetCollectionRequest: components.GetCollectionRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "GetCollectionRequest": "getCollectionRequest", - }); -}); - -/** @internal */ -export type GetcollectionRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - GetCollectionRequest: components.GetCollectionRequest$Outbound; -}; - -/** @internal */ -export const GetcollectionRequest$outboundSchema: z.ZodType< - GetcollectionRequest$Outbound, - z.ZodTypeDef, - GetcollectionRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - getCollectionRequest: components.GetCollectionRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - getCollectionRequest: "GetCollectionRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetcollectionRequest$ { - /** @deprecated use `GetcollectionRequest$inboundSchema` instead. */ - export const inboundSchema = GetcollectionRequest$inboundSchema; - /** @deprecated use `GetcollectionRequest$outboundSchema` instead. */ - export const outboundSchema = GetcollectionRequest$outboundSchema; - /** @deprecated use `GetcollectionRequest$Outbound` instead. */ - export type Outbound = GetcollectionRequest$Outbound; -} - -export function getcollectionRequestToJSON( - getcollectionRequest: GetcollectionRequest, -): string { - return JSON.stringify( - GetcollectionRequest$outboundSchema.parse(getcollectionRequest), - ); -} - -export function getcollectionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetcollectionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetcollectionRequest' from JSON`, - ); -} diff --git a/src/models/operations/getdocpermissions.ts b/src/models/operations/getdocpermissions.ts deleted file mode 100644 index 657cb5a4..00000000 --- a/src/models/operations/getdocpermissions.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetdocpermissionsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Document permissions request - */ - getDocPermissionsRequest: components.GetDocPermissionsRequest; -}; - -/** @internal */ -export const GetdocpermissionsRequest$inboundSchema: z.ZodType< - GetdocpermissionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - GetDocPermissionsRequest: components.GetDocPermissionsRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "GetDocPermissionsRequest": "getDocPermissionsRequest", - }); -}); - -/** @internal */ -export type GetdocpermissionsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - GetDocPermissionsRequest: components.GetDocPermissionsRequest$Outbound; -}; - -/** @internal */ -export const GetdocpermissionsRequest$outboundSchema: z.ZodType< - GetdocpermissionsRequest$Outbound, - z.ZodTypeDef, - GetdocpermissionsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - getDocPermissionsRequest: components.GetDocPermissionsRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - getDocPermissionsRequest: "GetDocPermissionsRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetdocpermissionsRequest$ { - /** @deprecated use `GetdocpermissionsRequest$inboundSchema` instead. */ - export const inboundSchema = GetdocpermissionsRequest$inboundSchema; - /** @deprecated use `GetdocpermissionsRequest$outboundSchema` instead. */ - export const outboundSchema = GetdocpermissionsRequest$outboundSchema; - /** @deprecated use `GetdocpermissionsRequest$Outbound` instead. */ - export type Outbound = GetdocpermissionsRequest$Outbound; -} - -export function getdocpermissionsRequestToJSON( - getdocpermissionsRequest: GetdocpermissionsRequest, -): string { - return JSON.stringify( - GetdocpermissionsRequest$outboundSchema.parse(getdocpermissionsRequest), - ); -} - -export function getdocpermissionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetdocpermissionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetdocpermissionsRequest' from JSON`, - ); -} diff --git a/src/models/operations/getdocuments.ts b/src/models/operations/getdocuments.ts deleted file mode 100644 index 8169f715..00000000 --- a/src/models/operations/getdocuments.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetdocumentsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Information about documents requested. - */ - getDocumentsRequest?: components.GetDocumentsRequest | undefined; -}; - -/** @internal */ -export const GetdocumentsRequest$inboundSchema: z.ZodType< - GetdocumentsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - GetDocumentsRequest: components.GetDocumentsRequest$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "GetDocumentsRequest": "getDocumentsRequest", - }); -}); - -/** @internal */ -export type GetdocumentsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - GetDocumentsRequest?: components.GetDocumentsRequest$Outbound | undefined; -}; - -/** @internal */ -export const GetdocumentsRequest$outboundSchema: z.ZodType< - GetdocumentsRequest$Outbound, - z.ZodTypeDef, - GetdocumentsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - getDocumentsRequest: components.GetDocumentsRequest$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - getDocumentsRequest: "GetDocumentsRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetdocumentsRequest$ { - /** @deprecated use `GetdocumentsRequest$inboundSchema` instead. */ - export const inboundSchema = GetdocumentsRequest$inboundSchema; - /** @deprecated use `GetdocumentsRequest$outboundSchema` instead. */ - export const outboundSchema = GetdocumentsRequest$outboundSchema; - /** @deprecated use `GetdocumentsRequest$Outbound` instead. */ - export type Outbound = GetdocumentsRequest$Outbound; -} - -export function getdocumentsRequestToJSON( - getdocumentsRequest: GetdocumentsRequest, -): string { - return JSON.stringify( - GetdocumentsRequest$outboundSchema.parse(getdocumentsRequest), - ); -} - -export function getdocumentsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetdocumentsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetdocumentsRequest' from JSON`, - ); -} diff --git a/src/models/operations/getdocumentsbyfacets.ts b/src/models/operations/getdocumentsbyfacets.ts deleted file mode 100644 index 237a24dc..00000000 --- a/src/models/operations/getdocumentsbyfacets.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetdocumentsbyfacetsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Information about facet conditions for documents to be retrieved. - */ - getDocumentsByFacetsRequest?: - | components.GetDocumentsByFacetsRequest - | undefined; -}; - -/** @internal */ -export const GetdocumentsbyfacetsRequest$inboundSchema: z.ZodType< - GetdocumentsbyfacetsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - GetDocumentsByFacetsRequest: components - .GetDocumentsByFacetsRequest$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "GetDocumentsByFacetsRequest": "getDocumentsByFacetsRequest", - }); -}); - -/** @internal */ -export type GetdocumentsbyfacetsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - GetDocumentsByFacetsRequest?: - | components.GetDocumentsByFacetsRequest$Outbound - | undefined; -}; - -/** @internal */ -export const GetdocumentsbyfacetsRequest$outboundSchema: z.ZodType< - GetdocumentsbyfacetsRequest$Outbound, - z.ZodTypeDef, - GetdocumentsbyfacetsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - getDocumentsByFacetsRequest: components - .GetDocumentsByFacetsRequest$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - getDocumentsByFacetsRequest: "GetDocumentsByFacetsRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetdocumentsbyfacetsRequest$ { - /** @deprecated use `GetdocumentsbyfacetsRequest$inboundSchema` instead. */ - export const inboundSchema = GetdocumentsbyfacetsRequest$inboundSchema; - /** @deprecated use `GetdocumentsbyfacetsRequest$outboundSchema` instead. */ - export const outboundSchema = GetdocumentsbyfacetsRequest$outboundSchema; - /** @deprecated use `GetdocumentsbyfacetsRequest$Outbound` instead. */ - export type Outbound = GetdocumentsbyfacetsRequest$Outbound; -} - -export function getdocumentsbyfacetsRequestToJSON( - getdocumentsbyfacetsRequest: GetdocumentsbyfacetsRequest, -): string { - return JSON.stringify( - GetdocumentsbyfacetsRequest$outboundSchema.parse( - getdocumentsbyfacetsRequest, - ), - ); -} - -export function getdocumentsbyfacetsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetdocumentsbyfacetsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetdocumentsbyfacetsRequest' from JSON`, - ); -} diff --git a/src/models/operations/getpin.ts b/src/models/operations/getpin.ts deleted file mode 100644 index 7d52ae3a..00000000 --- a/src/models/operations/getpin.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetpinRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Get pin request - */ - getPinRequest: components.GetPinRequest; -}; - -/** @internal */ -export const GetpinRequest$inboundSchema: z.ZodType< - GetpinRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - GetPinRequest: components.GetPinRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "GetPinRequest": "getPinRequest", - }); -}); - -/** @internal */ -export type GetpinRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - GetPinRequest: components.GetPinRequest$Outbound; -}; - -/** @internal */ -export const GetpinRequest$outboundSchema: z.ZodType< - GetpinRequest$Outbound, - z.ZodTypeDef, - GetpinRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - getPinRequest: components.GetPinRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - getPinRequest: "GetPinRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetpinRequest$ { - /** @deprecated use `GetpinRequest$inboundSchema` instead. */ - export const inboundSchema = GetpinRequest$inboundSchema; - /** @deprecated use `GetpinRequest$outboundSchema` instead. */ - export const outboundSchema = GetpinRequest$outboundSchema; - /** @deprecated use `GetpinRequest$Outbound` instead. */ - export type Outbound = GetpinRequest$Outbound; -} - -export function getpinRequestToJSON(getpinRequest: GetpinRequest): string { - return JSON.stringify(GetpinRequest$outboundSchema.parse(getpinRequest)); -} - -export function getpinRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetpinRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetpinRequest' from JSON`, - ); -} diff --git a/src/models/operations/getshortcut.ts b/src/models/operations/getshortcut.ts deleted file mode 100644 index 5da74bbe..00000000 --- a/src/models/operations/getshortcut.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetshortcutRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * GetShortcut request - */ - getShortcutRequest: components.GetShortcutRequestUnion; -}; - -/** @internal */ -export const GetshortcutRequest$inboundSchema: z.ZodType< - GetshortcutRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - GetShortcutRequest: components.GetShortcutRequestUnion$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "GetShortcutRequest": "getShortcutRequest", - }); -}); - -/** @internal */ -export type GetshortcutRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - GetShortcutRequest: components.GetShortcutRequestUnion$Outbound; -}; - -/** @internal */ -export const GetshortcutRequest$outboundSchema: z.ZodType< - GetshortcutRequest$Outbound, - z.ZodTypeDef, - GetshortcutRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - getShortcutRequest: components.GetShortcutRequestUnion$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - getShortcutRequest: "GetShortcutRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetshortcutRequest$ { - /** @deprecated use `GetshortcutRequest$inboundSchema` instead. */ - export const inboundSchema = GetshortcutRequest$inboundSchema; - /** @deprecated use `GetshortcutRequest$outboundSchema` instead. */ - export const outboundSchema = GetshortcutRequest$outboundSchema; - /** @deprecated use `GetshortcutRequest$Outbound` instead. */ - export type Outbound = GetshortcutRequest$Outbound; -} - -export function getshortcutRequestToJSON( - getshortcutRequest: GetshortcutRequest, -): string { - return JSON.stringify( - GetshortcutRequest$outboundSchema.parse(getshortcutRequest), - ); -} - -export function getshortcutRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetshortcutRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetshortcutRequest' from JSON`, - ); -} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index fdacecc0..25257d4f 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -2,63 +2,22 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -export * from "./addcollectionitems.js"; -export * from "./addverificationreminder.js"; -export * from "./adminsearch.js"; -export * from "./autocomplete.js"; export * from "./chat.js"; -export * from "./createannouncement.js"; -export * from "./createanswer.js"; -export * from "./createauthtoken.js"; -export * from "./createcollection.js"; -export * from "./createshortcut.js"; export * from "./deleteallchats.js"; -export * from "./deleteannouncement.js"; -export * from "./deleteanswer.js"; export * from "./deletechatfiles.js"; export * from "./deletechats.js"; -export * from "./deletecollection.js"; -export * from "./deletecollectionitem.js"; -export * from "./deleteshortcut.js"; -export * from "./editanswer.js"; -export * from "./editcollection.js"; -export * from "./editcollectionitem.js"; -export * from "./editpin.js"; -export * from "./feed.js"; export * from "./feedback.js"; export * from "./getagentinputs.js"; -export * from "./getanswer.js"; export * from "./getchat.js"; export * from "./getchatapplication.js"; export * from "./getchatfiles.js"; -export * from "./getcollection.js"; -export * from "./getdocpermissions.js"; -export * from "./getdocuments.js"; -export * from "./getdocumentsbyfacets.js"; -export * from "./getpin.js"; -export * from "./getshortcut.js"; -export * from "./insights.js"; export * from "./listagents.js"; -export * from "./listanswers.js"; export * from "./listchats.js"; -export * from "./listcollections.js"; -export * from "./listentities.js"; export * from "./listpins.js"; -export * from "./listshortcuts.js"; export * from "./listverifications.js"; -export * from "./messages.js"; -export * from "./people.js"; -export * from "./pin.js"; export * from "./postapiindexv1debugdatasourcedocument.js"; export * from "./postapiindexv1debugdatasourcedocuments.js"; export * from "./postapiindexv1debugdatasourcestatus.js"; export * from "./postapiindexv1debugdatasourceuser.js"; -export * from "./recommendations.js"; export * from "./runagent.js"; -export * from "./search.js"; -export * from "./summarize.js"; -export * from "./unpin.js"; -export * from "./updateannouncement.js"; -export * from "./updateshortcut.js"; export * from "./uploadchatfiles.js"; -export * from "./verify.js"; diff --git a/src/models/operations/insights.ts b/src/models/operations/insights.ts deleted file mode 100644 index 437500d0..00000000 --- a/src/models/operations/insights.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type InsightsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Includes request params for insights dashboard data. - */ - insightsRequest: components.InsightsRequest; -}; - -/** @internal */ -export const InsightsRequest$inboundSchema: z.ZodType< - InsightsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - InsightsRequest: components.InsightsRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "InsightsRequest": "insightsRequest", - }); -}); - -/** @internal */ -export type InsightsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - InsightsRequest: components.InsightsRequest$Outbound; -}; - -/** @internal */ -export const InsightsRequest$outboundSchema: z.ZodType< - InsightsRequest$Outbound, - z.ZodTypeDef, - InsightsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - insightsRequest: components.InsightsRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - insightsRequest: "InsightsRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsightsRequest$ { - /** @deprecated use `InsightsRequest$inboundSchema` instead. */ - export const inboundSchema = InsightsRequest$inboundSchema; - /** @deprecated use `InsightsRequest$outboundSchema` instead. */ - export const outboundSchema = InsightsRequest$outboundSchema; - /** @deprecated use `InsightsRequest$Outbound` instead. */ - export type Outbound = InsightsRequest$Outbound; -} - -export function insightsRequestToJSON( - insightsRequest: InsightsRequest, -): string { - return JSON.stringify(InsightsRequest$outboundSchema.parse(insightsRequest)); -} - -export function insightsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InsightsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InsightsRequest' from JSON`, - ); -} diff --git a/src/models/operations/listagents.ts b/src/models/operations/listagents.ts index 16545a1c..32bcb679 100644 --- a/src/models/operations/listagents.ts +++ b/src/models/operations/listagents.ts @@ -9,14 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListagentsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -30,22 +22,16 @@ export const ListagentsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), RequestBody: z.any().optional(), }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "RequestBody": "requestBody", }); }); /** @internal */ export type ListagentsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; RequestBody?: any | undefined; }; @@ -56,14 +42,10 @@ export const ListagentsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListagentsRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), requestBody: z.any().optional(), }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", requestBody: "RequestBody", }); }); diff --git a/src/models/operations/listanswers.ts b/src/models/operations/listanswers.ts deleted file mode 100644 index 57924ec1..00000000 --- a/src/models/operations/listanswers.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListanswersRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * ListAnswers request - */ - listAnswersRequest: components.ListAnswersRequest; -}; - -/** @internal */ -export const ListanswersRequest$inboundSchema: z.ZodType< - ListanswersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - ListAnswersRequest: components.ListAnswersRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "ListAnswersRequest": "listAnswersRequest", - }); -}); - -/** @internal */ -export type ListanswersRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - ListAnswersRequest: components.ListAnswersRequest$Outbound; -}; - -/** @internal */ -export const ListanswersRequest$outboundSchema: z.ZodType< - ListanswersRequest$Outbound, - z.ZodTypeDef, - ListanswersRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - listAnswersRequest: components.ListAnswersRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - listAnswersRequest: "ListAnswersRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListanswersRequest$ { - /** @deprecated use `ListanswersRequest$inboundSchema` instead. */ - export const inboundSchema = ListanswersRequest$inboundSchema; - /** @deprecated use `ListanswersRequest$outboundSchema` instead. */ - export const outboundSchema = ListanswersRequest$outboundSchema; - /** @deprecated use `ListanswersRequest$Outbound` instead. */ - export type Outbound = ListanswersRequest$Outbound; -} - -export function listanswersRequestToJSON( - listanswersRequest: ListanswersRequest, -): string { - return JSON.stringify( - ListanswersRequest$outboundSchema.parse(listanswersRequest), - ); -} - -export function listanswersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListanswersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListanswersRequest' from JSON`, - ); -} diff --git a/src/models/operations/listchats.ts b/src/models/operations/listchats.ts index 4de08372..5d356bcb 100644 --- a/src/models/operations/listchats.ts +++ b/src/models/operations/listchats.ts @@ -3,20 +3,11 @@ */ import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListchatsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -29,20 +20,11 @@ export const ListchatsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - }); }); /** @internal */ export type ListchatsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; }; @@ -52,14 +34,7 @@ export const ListchatsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListchatsRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - }); }); /** diff --git a/src/models/operations/listcollections.ts b/src/models/operations/listcollections.ts deleted file mode 100644 index 7d351438..00000000 --- a/src/models/operations/listcollections.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListcollectionsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * ListCollections request - */ - listCollectionsRequest: components.ListCollectionsRequest; -}; - -/** @internal */ -export const ListcollectionsRequest$inboundSchema: z.ZodType< - ListcollectionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - ListCollectionsRequest: components.ListCollectionsRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "ListCollectionsRequest": "listCollectionsRequest", - }); -}); - -/** @internal */ -export type ListcollectionsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - ListCollectionsRequest: components.ListCollectionsRequest$Outbound; -}; - -/** @internal */ -export const ListcollectionsRequest$outboundSchema: z.ZodType< - ListcollectionsRequest$Outbound, - z.ZodTypeDef, - ListcollectionsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - listCollectionsRequest: components.ListCollectionsRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - listCollectionsRequest: "ListCollectionsRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListcollectionsRequest$ { - /** @deprecated use `ListcollectionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListcollectionsRequest$inboundSchema; - /** @deprecated use `ListcollectionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListcollectionsRequest$outboundSchema; - /** @deprecated use `ListcollectionsRequest$Outbound` instead. */ - export type Outbound = ListcollectionsRequest$Outbound; -} - -export function listcollectionsRequestToJSON( - listcollectionsRequest: ListcollectionsRequest, -): string { - return JSON.stringify( - ListcollectionsRequest$outboundSchema.parse(listcollectionsRequest), - ); -} - -export function listcollectionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListcollectionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListcollectionsRequest' from JSON`, - ); -} diff --git a/src/models/operations/listentities.ts b/src/models/operations/listentities.ts deleted file mode 100644 index 55e48941..00000000 --- a/src/models/operations/listentities.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListentitiesRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * List people request - */ - listEntitiesRequest: components.ListEntitiesRequest; -}; - -/** @internal */ -export const ListentitiesRequest$inboundSchema: z.ZodType< - ListentitiesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - ListEntitiesRequest: components.ListEntitiesRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "ListEntitiesRequest": "listEntitiesRequest", - }); -}); - -/** @internal */ -export type ListentitiesRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - ListEntitiesRequest: components.ListEntitiesRequest$Outbound; -}; - -/** @internal */ -export const ListentitiesRequest$outboundSchema: z.ZodType< - ListentitiesRequest$Outbound, - z.ZodTypeDef, - ListentitiesRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - listEntitiesRequest: components.ListEntitiesRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - listEntitiesRequest: "ListEntitiesRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListentitiesRequest$ { - /** @deprecated use `ListentitiesRequest$inboundSchema` instead. */ - export const inboundSchema = ListentitiesRequest$inboundSchema; - /** @deprecated use `ListentitiesRequest$outboundSchema` instead. */ - export const outboundSchema = ListentitiesRequest$outboundSchema; - /** @deprecated use `ListentitiesRequest$Outbound` instead. */ - export type Outbound = ListentitiesRequest$Outbound; -} - -export function listentitiesRequestToJSON( - listentitiesRequest: ListentitiesRequest, -): string { - return JSON.stringify( - ListentitiesRequest$outboundSchema.parse(listentitiesRequest), - ); -} - -export function listentitiesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListentitiesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListentitiesRequest' from JSON`, - ); -} diff --git a/src/models/operations/listpins.ts b/src/models/operations/listpins.ts index f714f319..f295ed8b 100644 --- a/src/models/operations/listpins.ts +++ b/src/models/operations/listpins.ts @@ -3,7 +3,6 @@ */ import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -11,111 +10,24 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * List pins request */ -export type ListpinsRequestBody = {}; - -export type ListpinsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * List pins request - */ - requestBody: ListpinsRequestBody; -}; - -/** @internal */ -export const ListpinsRequestBody$inboundSchema: z.ZodType< - ListpinsRequestBody, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type ListpinsRequestBody$Outbound = {}; - -/** @internal */ -export const ListpinsRequestBody$outboundSchema: z.ZodType< - ListpinsRequestBody$Outbound, - z.ZodTypeDef, - ListpinsRequestBody -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListpinsRequestBody$ { - /** @deprecated use `ListpinsRequestBody$inboundSchema` instead. */ - export const inboundSchema = ListpinsRequestBody$inboundSchema; - /** @deprecated use `ListpinsRequestBody$outboundSchema` instead. */ - export const outboundSchema = ListpinsRequestBody$outboundSchema; - /** @deprecated use `ListpinsRequestBody$Outbound` instead. */ - export type Outbound = ListpinsRequestBody$Outbound; -} - -export function listpinsRequestBodyToJSON( - listpinsRequestBody: ListpinsRequestBody, -): string { - return JSON.stringify( - ListpinsRequestBody$outboundSchema.parse(listpinsRequestBody), - ); -} - -export function listpinsRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListpinsRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListpinsRequestBody' from JSON`, - ); -} +export type ListpinsRequest = {}; /** @internal */ export const ListpinsRequest$inboundSchema: z.ZodType< ListpinsRequest, z.ZodTypeDef, unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - RequestBody: z.lazy(() => ListpinsRequestBody$inboundSchema), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "RequestBody": "requestBody", - }); -}); +> = z.object({}); /** @internal */ -export type ListpinsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - RequestBody: ListpinsRequestBody$Outbound; -}; +export type ListpinsRequest$Outbound = {}; /** @internal */ export const ListpinsRequest$outboundSchema: z.ZodType< ListpinsRequest$Outbound, z.ZodTypeDef, ListpinsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - requestBody: z.lazy(() => ListpinsRequestBody$outboundSchema), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - requestBody: "RequestBody", - }); -}); +> = z.object({}); /** * @internal diff --git a/src/models/operations/listshortcuts.ts b/src/models/operations/listshortcuts.ts deleted file mode 100644 index a993f86c..00000000 --- a/src/models/operations/listshortcuts.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListshortcutsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Filters, sorters, paging params required for pagination - */ - listShortcutsPaginatedRequest: components.ListShortcutsPaginatedRequest; -}; - -/** @internal */ -export const ListshortcutsRequest$inboundSchema: z.ZodType< - ListshortcutsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - ListShortcutsPaginatedRequest: - components.ListShortcutsPaginatedRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "ListShortcutsPaginatedRequest": "listShortcutsPaginatedRequest", - }); -}); - -/** @internal */ -export type ListshortcutsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - ListShortcutsPaginatedRequest: - components.ListShortcutsPaginatedRequest$Outbound; -}; - -/** @internal */ -export const ListshortcutsRequest$outboundSchema: z.ZodType< - ListshortcutsRequest$Outbound, - z.ZodTypeDef, - ListshortcutsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - listShortcutsPaginatedRequest: - components.ListShortcutsPaginatedRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - listShortcutsPaginatedRequest: "ListShortcutsPaginatedRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListshortcutsRequest$ { - /** @deprecated use `ListshortcutsRequest$inboundSchema` instead. */ - export const inboundSchema = ListshortcutsRequest$inboundSchema; - /** @deprecated use `ListshortcutsRequest$outboundSchema` instead. */ - export const outboundSchema = ListshortcutsRequest$outboundSchema; - /** @deprecated use `ListshortcutsRequest$Outbound` instead. */ - export type Outbound = ListshortcutsRequest$Outbound; -} - -export function listshortcutsRequestToJSON( - listshortcutsRequest: ListshortcutsRequest, -): string { - return JSON.stringify( - ListshortcutsRequest$outboundSchema.parse(listshortcutsRequest), - ); -} - -export function listshortcutsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListshortcutsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListshortcutsRequest' from JSON`, - ); -} diff --git a/src/models/operations/listverifications.ts b/src/models/operations/listverifications.ts index ed44650a..20da2efc 100644 --- a/src/models/operations/listverifications.ts +++ b/src/models/operations/listverifications.ts @@ -3,20 +3,11 @@ */ import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListverificationsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * Maximum number of documents to return */ @@ -29,20 +20,11 @@ export const ListverificationsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), count: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - }); }); /** @internal */ export type ListverificationsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; count?: number | undefined; }; @@ -52,14 +34,7 @@ export const ListverificationsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListverificationsRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), count: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - }); }); /** diff --git a/src/models/operations/messages.ts b/src/models/operations/messages.ts deleted file mode 100644 index 4be57bc3..00000000 --- a/src/models/operations/messages.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type MessagesRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Includes request params such as the id for channel/message and direction. - */ - messagesRequest: components.MessagesRequest; -}; - -/** @internal */ -export const MessagesRequest$inboundSchema: z.ZodType< - MessagesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - MessagesRequest: components.MessagesRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "MessagesRequest": "messagesRequest", - }); -}); - -/** @internal */ -export type MessagesRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - MessagesRequest: components.MessagesRequest$Outbound; -}; - -/** @internal */ -export const MessagesRequest$outboundSchema: z.ZodType< - MessagesRequest$Outbound, - z.ZodTypeDef, - MessagesRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - messagesRequest: components.MessagesRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - messagesRequest: "MessagesRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessagesRequest$ { - /** @deprecated use `MessagesRequest$inboundSchema` instead. */ - export const inboundSchema = MessagesRequest$inboundSchema; - /** @deprecated use `MessagesRequest$outboundSchema` instead. */ - export const outboundSchema = MessagesRequest$outboundSchema; - /** @deprecated use `MessagesRequest$Outbound` instead. */ - export type Outbound = MessagesRequest$Outbound; -} - -export function messagesRequestToJSON( - messagesRequest: MessagesRequest, -): string { - return JSON.stringify(MessagesRequest$outboundSchema.parse(messagesRequest)); -} - -export function messagesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MessagesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MessagesRequest' from JSON`, - ); -} diff --git a/src/models/operations/people.ts b/src/models/operations/people.ts deleted file mode 100644 index 85c0b94d..00000000 --- a/src/models/operations/people.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type PeopleRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * People request - */ - peopleRequest: components.PeopleRequest; -}; - -/** @internal */ -export const PeopleRequest$inboundSchema: z.ZodType< - PeopleRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - PeopleRequest: components.PeopleRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "PeopleRequest": "peopleRequest", - }); -}); - -/** @internal */ -export type PeopleRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - PeopleRequest: components.PeopleRequest$Outbound; -}; - -/** @internal */ -export const PeopleRequest$outboundSchema: z.ZodType< - PeopleRequest$Outbound, - z.ZodTypeDef, - PeopleRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - peopleRequest: components.PeopleRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - peopleRequest: "PeopleRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PeopleRequest$ { - /** @deprecated use `PeopleRequest$inboundSchema` instead. */ - export const inboundSchema = PeopleRequest$inboundSchema; - /** @deprecated use `PeopleRequest$outboundSchema` instead. */ - export const outboundSchema = PeopleRequest$outboundSchema; - /** @deprecated use `PeopleRequest$Outbound` instead. */ - export type Outbound = PeopleRequest$Outbound; -} - -export function peopleRequestToJSON(peopleRequest: PeopleRequest): string { - return JSON.stringify(PeopleRequest$outboundSchema.parse(peopleRequest)); -} - -export function peopleRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PeopleRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PeopleRequest' from JSON`, - ); -} diff --git a/src/models/operations/pin.ts b/src/models/operations/pin.ts deleted file mode 100644 index e61c7a7d..00000000 --- a/src/models/operations/pin.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type PinRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Details about the document and query for the pin. - */ - pinRequest: components.PinRequest; -}; - -/** @internal */ -export const PinRequest$inboundSchema: z.ZodType< - PinRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - PinRequest: components.PinRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "PinRequest": "pinRequest", - }); -}); - -/** @internal */ -export type PinRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - PinRequest: components.PinRequest$Outbound; -}; - -/** @internal */ -export const PinRequest$outboundSchema: z.ZodType< - PinRequest$Outbound, - z.ZodTypeDef, - PinRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - pinRequest: components.PinRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - pinRequest: "PinRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PinRequest$ { - /** @deprecated use `PinRequest$inboundSchema` instead. */ - export const inboundSchema = PinRequest$inboundSchema; - /** @deprecated use `PinRequest$outboundSchema` instead. */ - export const outboundSchema = PinRequest$outboundSchema; - /** @deprecated use `PinRequest$Outbound` instead. */ - export type Outbound = PinRequest$Outbound; -} - -export function pinRequestToJSON(pinRequest: PinRequest): string { - return JSON.stringify(PinRequest$outboundSchema.parse(pinRequest)); -} - -export function pinRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PinRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PinRequest' from JSON`, - ); -} diff --git a/src/models/operations/recommendations.ts b/src/models/operations/recommendations.ts deleted file mode 100644 index 0c888872..00000000 --- a/src/models/operations/recommendations.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type RecommendationsRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Recommendations request - */ - recommendationsRequest?: components.RecommendationsRequest | undefined; -}; - -/** @internal */ -export const RecommendationsRequest$inboundSchema: z.ZodType< - RecommendationsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - RecommendationsRequest: components.RecommendationsRequest$inboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "RecommendationsRequest": "recommendationsRequest", - }); -}); - -/** @internal */ -export type RecommendationsRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - RecommendationsRequest?: - | components.RecommendationsRequest$Outbound - | undefined; -}; - -/** @internal */ -export const RecommendationsRequest$outboundSchema: z.ZodType< - RecommendationsRequest$Outbound, - z.ZodTypeDef, - RecommendationsRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - recommendationsRequest: components.RecommendationsRequest$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - recommendationsRequest: "RecommendationsRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RecommendationsRequest$ { - /** @deprecated use `RecommendationsRequest$inboundSchema` instead. */ - export const inboundSchema = RecommendationsRequest$inboundSchema; - /** @deprecated use `RecommendationsRequest$outboundSchema` instead. */ - export const outboundSchema = RecommendationsRequest$outboundSchema; - /** @deprecated use `RecommendationsRequest$Outbound` instead. */ - export type Outbound = RecommendationsRequest$Outbound; -} - -export function recommendationsRequestToJSON( - recommendationsRequest: RecommendationsRequest, -): string { - return JSON.stringify( - RecommendationsRequest$outboundSchema.parse(recommendationsRequest), - ); -} - -export function recommendationsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RecommendationsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RecommendationsRequest' from JSON`, - ); -} diff --git a/src/models/operations/runagent.ts b/src/models/operations/runagent.ts index 034a4aa7..f05adb46 100644 --- a/src/models/operations/runagent.ts +++ b/src/models/operations/runagent.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RunagentRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const RunagentRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), RunAgentRequest: components.RunAgentRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "RunAgentRequest": "runAgentRequest", }); }); /** @internal */ export type RunagentRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; RunAgentRequest: components.RunAgentRequest$Outbound; }; @@ -57,14 +43,10 @@ export const RunagentRequest$outboundSchema: z.ZodType< z.ZodTypeDef, RunagentRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), runAgentRequest: components.RunAgentRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", runAgentRequest: "RunAgentRequest", }); }); diff --git a/src/models/operations/search.ts b/src/models/operations/search.ts deleted file mode 100644 index 74938b21..00000000 --- a/src/models/operations/search.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type SearchRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Search request - */ - searchRequest?: components.SearchRequest | undefined; -}; - -/** @internal */ -export const SearchRequest$inboundSchema: z.ZodType< - SearchRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - SearchRequest: components.SearchRequest$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "SearchRequest": "searchRequest", - }); -}); - -/** @internal */ -export type SearchRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - SearchRequest?: components.SearchRequest$Outbound | undefined; -}; - -/** @internal */ -export const SearchRequest$outboundSchema: z.ZodType< - SearchRequest$Outbound, - z.ZodTypeDef, - SearchRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - searchRequest: components.SearchRequest$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - searchRequest: "SearchRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchRequest$ { - /** @deprecated use `SearchRequest$inboundSchema` instead. */ - export const inboundSchema = SearchRequest$inboundSchema; - /** @deprecated use `SearchRequest$outboundSchema` instead. */ - export const outboundSchema = SearchRequest$outboundSchema; - /** @deprecated use `SearchRequest$Outbound` instead. */ - export type Outbound = SearchRequest$Outbound; -} - -export function searchRequestToJSON(searchRequest: SearchRequest): string { - return JSON.stringify(SearchRequest$outboundSchema.parse(searchRequest)); -} - -export function searchRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SearchRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SearchRequest' from JSON`, - ); -} diff --git a/src/models/operations/summarize.ts b/src/models/operations/summarize.ts deleted file mode 100644 index b0f13fa2..00000000 --- a/src/models/operations/summarize.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type SummarizeRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Includes request params such as the query and specs of the documents to summarize. - */ - summarizeRequest: components.SummarizeRequest; -}; - -/** @internal */ -export const SummarizeRequest$inboundSchema: z.ZodType< - SummarizeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - SummarizeRequest: components.SummarizeRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "SummarizeRequest": "summarizeRequest", - }); -}); - -/** @internal */ -export type SummarizeRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - SummarizeRequest: components.SummarizeRequest$Outbound; -}; - -/** @internal */ -export const SummarizeRequest$outboundSchema: z.ZodType< - SummarizeRequest$Outbound, - z.ZodTypeDef, - SummarizeRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - summarizeRequest: components.SummarizeRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - summarizeRequest: "SummarizeRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SummarizeRequest$ { - /** @deprecated use `SummarizeRequest$inboundSchema` instead. */ - export const inboundSchema = SummarizeRequest$inboundSchema; - /** @deprecated use `SummarizeRequest$outboundSchema` instead. */ - export const outboundSchema = SummarizeRequest$outboundSchema; - /** @deprecated use `SummarizeRequest$Outbound` instead. */ - export type Outbound = SummarizeRequest$Outbound; -} - -export function summarizeRequestToJSON( - summarizeRequest: SummarizeRequest, -): string { - return JSON.stringify( - SummarizeRequest$outboundSchema.parse(summarizeRequest), - ); -} - -export function summarizeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SummarizeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SummarizeRequest' from JSON`, - ); -} diff --git a/src/models/operations/unpin.ts b/src/models/operations/unpin.ts deleted file mode 100644 index b715c92d..00000000 --- a/src/models/operations/unpin.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type UnpinRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Details about the pin being unpinned. - */ - unpin: components.Unpin; -}; - -/** @internal */ -export const UnpinRequest$inboundSchema: z.ZodType< - UnpinRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - Unpin: components.Unpin$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "Unpin": "unpin", - }); -}); - -/** @internal */ -export type UnpinRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - Unpin: components.Unpin$Outbound; -}; - -/** @internal */ -export const UnpinRequest$outboundSchema: z.ZodType< - UnpinRequest$Outbound, - z.ZodTypeDef, - UnpinRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - unpin: components.Unpin$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - unpin: "Unpin", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnpinRequest$ { - /** @deprecated use `UnpinRequest$inboundSchema` instead. */ - export const inboundSchema = UnpinRequest$inboundSchema; - /** @deprecated use `UnpinRequest$outboundSchema` instead. */ - export const outboundSchema = UnpinRequest$outboundSchema; - /** @deprecated use `UnpinRequest$Outbound` instead. */ - export type Outbound = UnpinRequest$Outbound; -} - -export function unpinRequestToJSON(unpinRequest: UnpinRequest): string { - return JSON.stringify(UnpinRequest$outboundSchema.parse(unpinRequest)); -} - -export function unpinRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnpinRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnpinRequest' from JSON`, - ); -} diff --git a/src/models/operations/updateannouncement.ts b/src/models/operations/updateannouncement.ts deleted file mode 100644 index 7afe67a8..00000000 --- a/src/models/operations/updateannouncement.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type UpdateannouncementRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Announcement content. Id need to be specified for the announcement. - */ - updateAnnouncementRequest: components.UpdateAnnouncementRequest; -}; - -/** @internal */ -export const UpdateannouncementRequest$inboundSchema: z.ZodType< - UpdateannouncementRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - UpdateAnnouncementRequest: components.UpdateAnnouncementRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "UpdateAnnouncementRequest": "updateAnnouncementRequest", - }); -}); - -/** @internal */ -export type UpdateannouncementRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - UpdateAnnouncementRequest: components.UpdateAnnouncementRequest$Outbound; -}; - -/** @internal */ -export const UpdateannouncementRequest$outboundSchema: z.ZodType< - UpdateannouncementRequest$Outbound, - z.ZodTypeDef, - UpdateannouncementRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - updateAnnouncementRequest: - components.UpdateAnnouncementRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - updateAnnouncementRequest: "UpdateAnnouncementRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateannouncementRequest$ { - /** @deprecated use `UpdateannouncementRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateannouncementRequest$inboundSchema; - /** @deprecated use `UpdateannouncementRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateannouncementRequest$outboundSchema; - /** @deprecated use `UpdateannouncementRequest$Outbound` instead. */ - export type Outbound = UpdateannouncementRequest$Outbound; -} - -export function updateannouncementRequestToJSON( - updateannouncementRequest: UpdateannouncementRequest, -): string { - return JSON.stringify( - UpdateannouncementRequest$outboundSchema.parse(updateannouncementRequest), - ); -} - -export function updateannouncementRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateannouncementRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateannouncementRequest' from JSON`, - ); -} diff --git a/src/models/operations/updateshortcut.ts b/src/models/operations/updateshortcut.ts deleted file mode 100644 index c74976b6..00000000 --- a/src/models/operations/updateshortcut.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type UpdateshortcutRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Shortcut content. Id need to be specified for the shortcut. - */ - updateShortcutRequest: components.UpdateShortcutRequest; -}; - -/** @internal */ -export const UpdateshortcutRequest$inboundSchema: z.ZodType< - UpdateshortcutRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - UpdateShortcutRequest: components.UpdateShortcutRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "UpdateShortcutRequest": "updateShortcutRequest", - }); -}); - -/** @internal */ -export type UpdateshortcutRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - UpdateShortcutRequest: components.UpdateShortcutRequest$Outbound; -}; - -/** @internal */ -export const UpdateshortcutRequest$outboundSchema: z.ZodType< - UpdateshortcutRequest$Outbound, - z.ZodTypeDef, - UpdateshortcutRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - updateShortcutRequest: components.UpdateShortcutRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - updateShortcutRequest: "UpdateShortcutRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateshortcutRequest$ { - /** @deprecated use `UpdateshortcutRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateshortcutRequest$inboundSchema; - /** @deprecated use `UpdateshortcutRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateshortcutRequest$outboundSchema; - /** @deprecated use `UpdateshortcutRequest$Outbound` instead. */ - export type Outbound = UpdateshortcutRequest$Outbound; -} - -export function updateshortcutRequestToJSON( - updateshortcutRequest: UpdateshortcutRequest, -): string { - return JSON.stringify( - UpdateshortcutRequest$outboundSchema.parse(updateshortcutRequest), - ); -} - -export function updateshortcutRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateshortcutRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateshortcutRequest' from JSON`, - ); -} diff --git a/src/models/operations/uploadchatfiles.ts b/src/models/operations/uploadchatfiles.ts index ece589bd..24d6c0f0 100644 --- a/src/models/operations/uploadchatfiles.ts +++ b/src/models/operations/uploadchatfiles.ts @@ -10,14 +10,6 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UploadchatfilesRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ @@ -31,22 +23,16 @@ export const UploadchatfilesRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), timezoneOffset: z.number().int().optional(), UploadChatFilesRequest: components.UploadChatFilesRequest$inboundSchema, }).transform((v) => { return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", "UploadChatFilesRequest": "uploadChatFilesRequest", }); }); /** @internal */ export type UploadchatfilesRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; timezoneOffset?: number | undefined; UploadChatFilesRequest: components.UploadChatFilesRequest$Outbound; }; @@ -57,14 +43,10 @@ export const UploadchatfilesRequest$outboundSchema: z.ZodType< z.ZodTypeDef, UploadchatfilesRequest > = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), timezoneOffset: z.number().int().optional(), uploadChatFilesRequest: components.UploadChatFilesRequest$outboundSchema, }).transform((v) => { return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", uploadChatFilesRequest: "UploadChatFilesRequest", }); }); diff --git a/src/models/operations/verify.ts b/src/models/operations/verify.ts deleted file mode 100644 index 5bb48e2c..00000000 --- a/src/models/operations/verify.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type VerifyRequest = { - /** - * Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens). - */ - xGleanActAs?: string | undefined; - /** - * Auth type being used to access the endpoint (should be non-empty only for global tokens). - */ - xGleanAuthType?: string | undefined; - /** - * Details about the verification request. - */ - verifyRequest: components.VerifyRequest; -}; - -/** @internal */ -export const VerifyRequest$inboundSchema: z.ZodType< - VerifyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "X-Glean-ActAs": z.string().optional(), - "X-Glean-Auth-Type": z.string().optional(), - VerifyRequest: components.VerifyRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "X-Glean-ActAs": "xGleanActAs", - "X-Glean-Auth-Type": "xGleanAuthType", - "VerifyRequest": "verifyRequest", - }); -}); - -/** @internal */ -export type VerifyRequest$Outbound = { - "X-Glean-ActAs"?: string | undefined; - "X-Glean-Auth-Type"?: string | undefined; - VerifyRequest: components.VerifyRequest$Outbound; -}; - -/** @internal */ -export const VerifyRequest$outboundSchema: z.ZodType< - VerifyRequest$Outbound, - z.ZodTypeDef, - VerifyRequest -> = z.object({ - xGleanActAs: z.string().optional(), - xGleanAuthType: z.string().optional(), - verifyRequest: components.VerifyRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - xGleanActAs: "X-Glean-ActAs", - xGleanAuthType: "X-Glean-Auth-Type", - verifyRequest: "VerifyRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VerifyRequest$ { - /** @deprecated use `VerifyRequest$inboundSchema` instead. */ - export const inboundSchema = VerifyRequest$inboundSchema; - /** @deprecated use `VerifyRequest$outboundSchema` instead. */ - export const outboundSchema = VerifyRequest$outboundSchema; - /** @deprecated use `VerifyRequest$Outbound` instead. */ - export type Outbound = VerifyRequest$Outbound; -} - -export function verifyRequestToJSON(verifyRequest: VerifyRequest): string { - return JSON.stringify(VerifyRequest$outboundSchema.parse(verifyRequest)); -} - -export function verifyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VerifyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VerifyRequest' from JSON`, - ); -} diff --git a/src/react-query/agentsGetagentinputs.ts b/src/react-query/agentsGetagentinputs.ts index 0615eb5f..ce534205 100644 --- a/src/react-query/agentsGetagentinputs.ts +++ b/src/react-query/agentsGetagentinputs.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type AgentsGetagentinputsMutationVariables = { getAgentInputsRequest: components.GetAgentInputsRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -68,8 +66,6 @@ export function buildAgentsGetagentinputsMutation( mutationKey: mutationKeyAgentsGetagentinputs(), mutationFn: function agentsGetagentinputsMutationFn({ getAgentInputsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -88,8 +84,6 @@ export function buildAgentsGetagentinputsMutation( return unwrapAsync(agentsGetagentinputs( client$, getAgentInputsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/agentsListagents.ts b/src/react-query/agentsListagents.ts index d199a6c0..9e755173 100644 --- a/src/react-query/agentsListagents.ts +++ b/src/react-query/agentsListagents.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type AgentsListagentsMutationVariables = { requestBody?: any | undefined; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildAgentsListagentsMutation( mutationKey: mutationKeyAgentsListagents(), mutationFn: function agentsListagentsMutationFn({ requestBody, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -87,8 +83,6 @@ export function buildAgentsListagentsMutation( return unwrapAsync(agentsListagents( client$, requestBody, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/agentsRunagent.ts b/src/react-query/agentsRunagent.ts index 3c4cc102..9d9553d4 100644 --- a/src/react-query/agentsRunagent.ts +++ b/src/react-query/agentsRunagent.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type AgentsRunagentMutationVariables = { runAgentRequest: components.RunAgentRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildAgentsRunagentMutation( mutationKey: mutationKeyAgentsRunagent(), mutationFn: function agentsRunagentMutationFn({ runAgentRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -87,8 +83,6 @@ export function buildAgentsRunagentMutation( return unwrapAsync(agentsRunagent( client$, runAgentRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientActivitiesReportActivity.ts b/src/react-query/clientActivitiesReportActivity.ts index f96e6a88..4dc083b8 100644 --- a/src/react-query/clientActivitiesReportActivity.ts +++ b/src/react-query/clientActivitiesReportActivity.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientActivitiesReportActivityMutationVariables = { feedback1?: components.Feedback | undefined; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; feedbackQueryParameter?: string | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildClientActivitiesReportActivityMutation( mutationKey: mutationKeyClientActivitiesReportActivity(), mutationFn: function clientActivitiesReportActivityMutationFn({ feedback1, - xGleanActAs, - xGleanAuthType, feedbackQueryParameter, options, }): Promise { @@ -87,8 +83,6 @@ export function buildClientActivitiesReportActivityMutation( return unwrapAsync(clientActivitiesReportActivity( client$, feedback1, - xGleanActAs, - xGleanAuthType, feedbackQueryParameter, mergedOptions, )); diff --git a/src/react-query/clientAnnouncementsCreate.ts b/src/react-query/clientAnnouncementsCreate.ts index f1380ed2..71c7e7c3 100644 --- a/src/react-query/clientAnnouncementsCreate.ts +++ b/src/react-query/clientAnnouncementsCreate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnnouncementsCreateMutationVariables = { - createAnnouncementRequest: components.CreateAnnouncementRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.CreateAnnouncementRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnnouncementsCreateMutation( return { mutationKey: mutationKeyClientAnnouncementsCreate(), mutationFn: function clientAnnouncementsCreateMutationFn({ - createAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnnouncementsCreateMutation( }; return unwrapAsync(clientAnnouncementsCreate( client$, - createAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAnnouncementsDelete.ts b/src/react-query/clientAnnouncementsDelete.ts index b9c2617a..b7179ce7 100644 --- a/src/react-query/clientAnnouncementsDelete.ts +++ b/src/react-query/clientAnnouncementsDelete.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnnouncementsDeleteMutationVariables = { - deleteAnnouncementRequest: components.DeleteAnnouncementRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.DeleteAnnouncementRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnnouncementsDeleteMutation( return { mutationKey: mutationKeyClientAnnouncementsDelete(), mutationFn: function clientAnnouncementsDeleteMutationFn({ - deleteAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnnouncementsDeleteMutation( }; return unwrapAsync(clientAnnouncementsDelete( client$, - deleteAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAnnouncementsUpdate.ts b/src/react-query/clientAnnouncementsUpdate.ts index f818c4c9..a31630f0 100644 --- a/src/react-query/clientAnnouncementsUpdate.ts +++ b/src/react-query/clientAnnouncementsUpdate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnnouncementsUpdateMutationVariables = { - updateAnnouncementRequest: components.UpdateAnnouncementRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.UpdateAnnouncementRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnnouncementsUpdateMutation( return { mutationKey: mutationKeyClientAnnouncementsUpdate(), mutationFn: function clientAnnouncementsUpdateMutationFn({ - updateAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnnouncementsUpdateMutation( }; return unwrapAsync(clientAnnouncementsUpdate( client$, - updateAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAnswersCreate.ts b/src/react-query/clientAnswersCreate.ts index 859eb06c..131b4c13 100644 --- a/src/react-query/clientAnswersCreate.ts +++ b/src/react-query/clientAnswersCreate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnswersCreateMutationVariables = { - createAnswerRequest: components.CreateAnswerRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.CreateAnswerRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnswersCreateMutation( return { mutationKey: mutationKeyClientAnswersCreate(), mutationFn: function clientAnswersCreateMutationFn({ - createAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnswersCreateMutation( }; return unwrapAsync(clientAnswersCreate( client$, - createAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAnswersDelete.ts b/src/react-query/clientAnswersDelete.ts index 3289c45d..f04ba396 100644 --- a/src/react-query/clientAnswersDelete.ts +++ b/src/react-query/clientAnswersDelete.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnswersDeleteMutationVariables = { - deleteAnswerRequest: components.DeleteAnswerRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.DeleteAnswerRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnswersDeleteMutation( return { mutationKey: mutationKeyClientAnswersDelete(), mutationFn: function clientAnswersDeleteMutationFn({ - deleteAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnswersDeleteMutation( }; return unwrapAsync(clientAnswersDelete( client$, - deleteAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAnswersEdit.ts b/src/react-query/clientAnswersEdit.ts index 5bf93c4f..9943d342 100644 --- a/src/react-query/clientAnswersEdit.ts +++ b/src/react-query/clientAnswersEdit.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnswersEditMutationVariables = { - editAnswerRequest: components.EditAnswerRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.EditAnswerRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnswersEditMutation( return { mutationKey: mutationKeyClientAnswersEdit(), mutationFn: function clientAnswersEditMutationFn({ - editAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnswersEditMutation( }; return unwrapAsync(clientAnswersEdit( client$, - editAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAnswersGet.ts b/src/react-query/clientAnswersGet.ts index 1a3c4780..334f3056 100644 --- a/src/react-query/clientAnswersGet.ts +++ b/src/react-query/clientAnswersGet.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnswersGetMutationVariables = { - getAnswerRequest: components.GetAnswerRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.GetAnswerRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnswersGetMutation( return { mutationKey: mutationKeyClientAnswersGet(), mutationFn: function clientAnswersGetMutationFn({ - getAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnswersGetMutation( }; return unwrapAsync(clientAnswersGet( client$, - getAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAnswersList.ts b/src/react-query/clientAnswersList.ts index 6cd6805e..5e04160b 100644 --- a/src/react-query/clientAnswersList.ts +++ b/src/react-query/clientAnswersList.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAnswersListMutationVariables = { - listAnswersRequest: components.ListAnswersRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.ListAnswersRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientAnswersListMutation( return { mutationKey: mutationKeyClientAnswersList(), mutationFn: function clientAnswersListMutationFn({ - listAnswersRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientAnswersListMutation( }; return unwrapAsync(clientAnswersList( client$, - listAnswersRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientAuthenticationCreateToken.ts b/src/react-query/clientAuthenticationCreateToken.ts index 8025ed51..4c72d9b2 100644 --- a/src/react-query/clientAuthenticationCreateToken.ts +++ b/src/react-query/clientAuthenticationCreateToken.ts @@ -17,8 +17,6 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAuthenticationCreateTokenMutationVariables = { - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; options?: RequestOptions; }; @@ -65,8 +63,6 @@ export function buildClientAuthenticationCreateTokenMutation( return { mutationKey: mutationKeyClientAuthenticationCreateToken(), mutationFn: function clientAuthenticationCreateTokenMutationFn({ - xGleanActAs, - xGleanAuthType, options, }): Promise { const mergedOptions = { @@ -83,8 +79,6 @@ export function buildClientAuthenticationCreateTokenMutation( }; return unwrapAsync(clientAuthenticationCreateToken( client$, - xGleanActAs, - xGleanAuthType, mergedOptions, )); }, diff --git a/src/react-query/clientChatDelete.ts b/src/react-query/clientChatDelete.ts index 2635d2eb..5bf9ef3e 100644 --- a/src/react-query/clientChatDelete.ts +++ b/src/react-query/clientChatDelete.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientChatDeleteMutationVariables = { deleteChatsRequest: components.DeleteChatsRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildClientChatDeleteMutation( mutationKey: mutationKeyClientChatDelete(), mutationFn: function clientChatDeleteMutationFn({ deleteChatsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -87,8 +83,6 @@ export function buildClientChatDeleteMutation( return unwrapAsync(clientChatDelete( client$, deleteChatsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatDeleteAll.ts b/src/react-query/clientChatDeleteAll.ts index 88d46e7c..fbd8f484 100644 --- a/src/react-query/clientChatDeleteAll.ts +++ b/src/react-query/clientChatDeleteAll.ts @@ -16,8 +16,6 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientChatDeleteAllMutationVariables = { - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -64,8 +62,6 @@ export function buildClientChatDeleteAllMutation( return { mutationKey: mutationKeyClientChatDeleteAll(), mutationFn: function clientChatDeleteAllMutationFn({ - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -83,8 +79,6 @@ export function buildClientChatDeleteAllMutation( }; return unwrapAsync(clientChatDeleteAll( client$, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatDeleteFiles.ts b/src/react-query/clientChatDeleteFiles.ts index f636a96e..1c7d88e5 100644 --- a/src/react-query/clientChatDeleteFiles.ts +++ b/src/react-query/clientChatDeleteFiles.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientChatDeleteFilesMutationVariables = { deleteChatFilesRequest: components.DeleteChatFilesRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildClientChatDeleteFilesMutation( mutationKey: mutationKeyClientChatDeleteFiles(), mutationFn: function clientChatDeleteFilesMutationFn({ deleteChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -87,8 +83,6 @@ export function buildClientChatDeleteFilesMutation( return unwrapAsync(clientChatDeleteFiles( client$, deleteChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatGet.ts b/src/react-query/clientChatGet.ts index d7cfd91d..86ff170b 100644 --- a/src/react-query/clientChatGet.ts +++ b/src/react-query/clientChatGet.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientChatGetMutationVariables = { getChatRequest: components.GetChatRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildClientChatGetMutation( mutationKey: mutationKeyClientChatGet(), mutationFn: function clientChatGetMutationFn({ getChatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -87,8 +83,6 @@ export function buildClientChatGetMutation( return unwrapAsync(clientChatGet( client$, getChatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatGetApplication.ts b/src/react-query/clientChatGetApplication.ts index ce3f2ffc..4593ec9b 100644 --- a/src/react-query/clientChatGetApplication.ts +++ b/src/react-query/clientChatGetApplication.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientChatGetApplicationMutationVariables = { getChatApplicationRequest: components.GetChatApplicationRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -68,8 +66,6 @@ export function buildClientChatGetApplicationMutation( mutationKey: mutationKeyClientChatGetApplication(), mutationFn: function clientChatGetApplicationMutationFn({ getChatApplicationRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -88,8 +84,6 @@ export function buildClientChatGetApplicationMutation( return unwrapAsync(clientChatGetApplication( client$, getChatApplicationRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatGetFiles.ts b/src/react-query/clientChatGetFiles.ts index 91178fb4..5e0bebf9 100644 --- a/src/react-query/clientChatGetFiles.ts +++ b/src/react-query/clientChatGetFiles.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientChatGetFilesMutationVariables = { getChatFilesRequest: components.GetChatFilesRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildClientChatGetFilesMutation( mutationKey: mutationKeyClientChatGetFiles(), mutationFn: function clientChatGetFilesMutationFn({ getChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -87,8 +83,6 @@ export function buildClientChatGetFilesMutation( return unwrapAsync(clientChatGetFiles( client$, getChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatList.ts b/src/react-query/clientChatList.ts index acb1d839..13cc8914 100644 --- a/src/react-query/clientChatList.ts +++ b/src/react-query/clientChatList.ts @@ -17,8 +17,6 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientChatListMutationVariables = { - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -65,8 +63,6 @@ export function buildClientChatListMutation( return { mutationKey: mutationKeyClientChatList(), mutationFn: function clientChatListMutationFn({ - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -84,8 +80,6 @@ export function buildClientChatListMutation( }; return unwrapAsync(clientChatList( client$, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatStart.ts b/src/react-query/clientChatStart.ts index 182f2afd..b8fc6403 100644 --- a/src/react-query/clientChatStart.ts +++ b/src/react-query/clientChatStart.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientChatStartMutationVariables = { chatRequest: components.ChatRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -67,8 +65,6 @@ export function buildClientChatStartMutation( mutationKey: mutationKeyClientChatStart(), mutationFn: function clientChatStartMutationFn({ chatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -87,8 +83,6 @@ export function buildClientChatStartMutation( return unwrapAsync(clientChatStart( client$, chatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientChatUploadFiles.ts b/src/react-query/clientChatUploadFiles.ts index 3db499b9..60e31afb 100644 --- a/src/react-query/clientChatUploadFiles.ts +++ b/src/react-query/clientChatUploadFiles.ts @@ -18,8 +18,6 @@ import { MutationHookOptions } from "./_types.js"; export type ClientChatUploadFilesMutationVariables = { uploadChatFilesRequest: components.UploadChatFilesRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; timezoneOffset?: number | undefined; options?: RequestOptions; }; @@ -68,8 +66,6 @@ export function buildClientChatUploadFilesMutation( mutationKey: mutationKeyClientChatUploadFiles(), mutationFn: function clientChatUploadFilesMutationFn({ uploadChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, }): Promise { @@ -88,8 +84,6 @@ export function buildClientChatUploadFilesMutation( return unwrapAsync(clientChatUploadFiles( client$, uploadChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, mergedOptions, )); diff --git a/src/react-query/clientCollectionsAddItems.ts b/src/react-query/clientCollectionsAddItems.ts index b2748af9..1d663916 100644 --- a/src/react-query/clientCollectionsAddItems.ts +++ b/src/react-query/clientCollectionsAddItems.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsAddItemsMutationVariables = { - addCollectionItemsRequest: components.AddCollectionItemsRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.AddCollectionItemsRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientCollectionsAddItemsMutation( return { mutationKey: mutationKeyClientCollectionsAddItems(), mutationFn: function clientCollectionsAddItemsMutationFn({ - addCollectionItemsRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientCollectionsAddItemsMutation( }; return unwrapAsync(clientCollectionsAddItems( client$, - addCollectionItemsRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientCollectionsCreate.ts b/src/react-query/clientCollectionsCreate.ts index 604225fd..9dc6989f 100644 --- a/src/react-query/clientCollectionsCreate.ts +++ b/src/react-query/clientCollectionsCreate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsCreateMutationVariables = { - createCollectionRequest: components.CreateCollectionRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.CreateCollectionRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientCollectionsCreateMutation( return { mutationKey: mutationKeyClientCollectionsCreate(), mutationFn: function clientCollectionsCreateMutationFn({ - createCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientCollectionsCreateMutation( }; return unwrapAsync(clientCollectionsCreate( client$, - createCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientCollectionsDelete.ts b/src/react-query/clientCollectionsDelete.ts index 86619384..040ac171 100644 --- a/src/react-query/clientCollectionsDelete.ts +++ b/src/react-query/clientCollectionsDelete.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsDeleteMutationVariables = { - deleteCollectionRequest: components.DeleteCollectionRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.DeleteCollectionRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientCollectionsDeleteMutation( return { mutationKey: mutationKeyClientCollectionsDelete(), mutationFn: function clientCollectionsDeleteMutationFn({ - deleteCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientCollectionsDeleteMutation( }; return unwrapAsync(clientCollectionsDelete( client$, - deleteCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientCollectionsDeleteItem.ts b/src/react-query/clientCollectionsDeleteItem.ts index cb88b88b..521de9f0 100644 --- a/src/react-query/clientCollectionsDeleteItem.ts +++ b/src/react-query/clientCollectionsDeleteItem.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsDeleteItemMutationVariables = { - deleteCollectionItemRequest: components.DeleteCollectionItemRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.DeleteCollectionItemRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientCollectionsDeleteItemMutation( return { mutationKey: mutationKeyClientCollectionsDeleteItem(), mutationFn: function clientCollectionsDeleteItemMutationFn({ - deleteCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientCollectionsDeleteItemMutation( }; return unwrapAsync(clientCollectionsDeleteItem( client$, - deleteCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientCollectionsEditItem.ts b/src/react-query/clientCollectionsEditItem.ts index 47443870..56fd28bf 100644 --- a/src/react-query/clientCollectionsEditItem.ts +++ b/src/react-query/clientCollectionsEditItem.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsEditItemMutationVariables = { - editCollectionItemRequest: components.EditCollectionItemRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.EditCollectionItemRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientCollectionsEditItemMutation( return { mutationKey: mutationKeyClientCollectionsEditItem(), mutationFn: function clientCollectionsEditItemMutationFn({ - editCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientCollectionsEditItemMutation( }; return unwrapAsync(clientCollectionsEditItem( client$, - editCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientCollectionsGet.ts b/src/react-query/clientCollectionsGet.ts index beeea0b2..df5fe98e 100644 --- a/src/react-query/clientCollectionsGet.ts +++ b/src/react-query/clientCollectionsGet.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsGetMutationVariables = { - getCollectionRequest: components.GetCollectionRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.GetCollectionRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientCollectionsGetMutation( return { mutationKey: mutationKeyClientCollectionsGet(), mutationFn: function clientCollectionsGetMutationFn({ - getCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientCollectionsGetMutation( }; return unwrapAsync(clientCollectionsGet( client$, - getCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientCollectionsList.ts b/src/react-query/clientCollectionsList.ts index 07b2db95..e31b0396 100644 --- a/src/react-query/clientCollectionsList.ts +++ b/src/react-query/clientCollectionsList.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsListMutationVariables = { - listCollectionsRequest: components.ListCollectionsRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.ListCollectionsRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientCollectionsListMutation( return { mutationKey: mutationKeyClientCollectionsList(), mutationFn: function clientCollectionsListMutationFn({ - listCollectionsRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientCollectionsListMutation( }; return unwrapAsync(clientCollectionsList( client$, - listCollectionsRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientCollectionsUpdate.ts b/src/react-query/clientCollectionsUpdate.ts index 9e96a7c8..20d8e097 100644 --- a/src/react-query/clientCollectionsUpdate.ts +++ b/src/react-query/clientCollectionsUpdate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientCollectionsUpdateMutationVariables = { - editCollectionRequest: components.EditCollectionRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.EditCollectionRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientCollectionsUpdateMutation( return { mutationKey: mutationKeyClientCollectionsUpdate(), mutationFn: function clientCollectionsUpdateMutationFn({ - editCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientCollectionsUpdateMutation( }; return unwrapAsync(clientCollectionsUpdate( client$, - editCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientDocumentsGet.ts b/src/react-query/clientDocumentsGet.ts index 3d3ea2aa..5f193f0c 100644 --- a/src/react-query/clientDocumentsGet.ts +++ b/src/react-query/clientDocumentsGet.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientDocumentsGetMutationVariables = { - getDocumentsRequest?: components.GetDocumentsRequest | undefined; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request?: components.GetDocumentsRequest | undefined; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientDocumentsGetMutation( return { mutationKey: mutationKeyClientDocumentsGet(), mutationFn: function clientDocumentsGetMutationFn({ - getDocumentsRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientDocumentsGetMutation( }; return unwrapAsync(clientDocumentsGet( client$, - getDocumentsRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientDocumentsGetByFacets.ts b/src/react-query/clientDocumentsGetByFacets.ts index bb1525fb..edcfb7c2 100644 --- a/src/react-query/clientDocumentsGetByFacets.ts +++ b/src/react-query/clientDocumentsGetByFacets.ts @@ -17,11 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientDocumentsGetByFacetsMutationVariables = { - getDocumentsByFacetsRequest?: - | components.GetDocumentsByFacetsRequest - | undefined; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request?: components.GetDocumentsByFacetsRequest | undefined; options?: RequestOptions; }; @@ -68,9 +64,7 @@ export function buildClientDocumentsGetByFacetsMutation( return { mutationKey: mutationKeyClientDocumentsGetByFacets(), mutationFn: function clientDocumentsGetByFacetsMutationFn({ - getDocumentsByFacetsRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -87,9 +81,7 @@ export function buildClientDocumentsGetByFacetsMutation( }; return unwrapAsync(clientDocumentsGetByFacets( client$, - getDocumentsByFacetsRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientDocumentsGetPermissions.ts b/src/react-query/clientDocumentsGetPermissions.ts index c7be1920..6f4e861f 100644 --- a/src/react-query/clientDocumentsGetPermissions.ts +++ b/src/react-query/clientDocumentsGetPermissions.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientDocumentsGetPermissionsMutationVariables = { - getDocPermissionsRequest: components.GetDocPermissionsRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.GetDocPermissionsRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientDocumentsGetPermissionsMutation( return { mutationKey: mutationKeyClientDocumentsGetPermissions(), mutationFn: function clientDocumentsGetPermissionsMutationFn({ - getDocPermissionsRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientDocumentsGetPermissionsMutation( }; return unwrapAsync(clientDocumentsGetPermissions( client$, - getDocPermissionsRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientEntitiesList.ts b/src/react-query/clientEntitiesList.ts index b7da83f4..ebba45ad 100644 --- a/src/react-query/clientEntitiesList.ts +++ b/src/react-query/clientEntitiesList.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientEntitiesListMutationVariables = { - listEntitiesRequest: components.ListEntitiesRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.ListEntitiesRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientEntitiesListMutation( return { mutationKey: mutationKeyClientEntitiesList(), mutationFn: function clientEntitiesListMutationFn({ - listEntitiesRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientEntitiesListMutation( }; return unwrapAsync(clientEntitiesList( client$, - listEntitiesRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientEntitiesReadPeople.ts b/src/react-query/clientEntitiesReadPeople.ts index 91a9eedb..0ef2d706 100644 --- a/src/react-query/clientEntitiesReadPeople.ts +++ b/src/react-query/clientEntitiesReadPeople.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientEntitiesReadPeopleMutationVariables = { - peopleRequest: components.PeopleRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.PeopleRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientEntitiesReadPeopleMutation( return { mutationKey: mutationKeyClientEntitiesReadPeople(), mutationFn: function clientEntitiesReadPeopleMutationFn({ - peopleRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientEntitiesReadPeopleMutation( }; return unwrapAsync(clientEntitiesReadPeople( client$, - peopleRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientInsightsGet.ts b/src/react-query/clientInsightsGet.ts index 14cdef77..e5af3561 100644 --- a/src/react-query/clientInsightsGet.ts +++ b/src/react-query/clientInsightsGet.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientInsightsGetMutationVariables = { - insightsRequest: components.InsightsRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.InsightsRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientInsightsGetMutation( return { mutationKey: mutationKeyClientInsightsGet(), mutationFn: function clientInsightsGetMutationFn({ - insightsRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientInsightsGetMutation( }; return unwrapAsync(clientInsightsGet( client$, - insightsRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientMessagesGet.ts b/src/react-query/clientMessagesGet.ts index 901bb38e..a8e1a011 100644 --- a/src/react-query/clientMessagesGet.ts +++ b/src/react-query/clientMessagesGet.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientMessagesGetMutationVariables = { - messagesRequest: components.MessagesRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.MessagesRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientMessagesGetMutation( return { mutationKey: mutationKeyClientMessagesGet(), mutationFn: function clientMessagesGetMutationFn({ - messagesRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientMessagesGetMutation( }; return unwrapAsync(clientMessagesGet( client$, - messagesRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientPinsCreate.ts b/src/react-query/clientPinsCreate.ts index c31e86eb..fa3f9668 100644 --- a/src/react-query/clientPinsCreate.ts +++ b/src/react-query/clientPinsCreate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientPinsCreateMutationVariables = { - pinRequest: components.PinRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.PinRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientPinsCreateMutation( return { mutationKey: mutationKeyClientPinsCreate(), mutationFn: function clientPinsCreateMutationFn({ - pinRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientPinsCreateMutation( }; return unwrapAsync(clientPinsCreate( client$, - pinRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientPinsEdit.ts b/src/react-query/clientPinsEdit.ts index 80cc5144..8ca594bf 100644 --- a/src/react-query/clientPinsEdit.ts +++ b/src/react-query/clientPinsEdit.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientPinsEditMutationVariables = { - editPinRequest: components.EditPinRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.EditPinRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientPinsEditMutation( return { mutationKey: mutationKeyClientPinsEdit(), mutationFn: function clientPinsEditMutationFn({ - editPinRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientPinsEditMutation( }; return unwrapAsync(clientPinsEdit( client$, - editPinRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientPinsGet.ts b/src/react-query/clientPinsGet.ts index b40980a3..e7117782 100644 --- a/src/react-query/clientPinsGet.ts +++ b/src/react-query/clientPinsGet.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientPinsGetMutationVariables = { - getPinRequest: components.GetPinRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.GetPinRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientPinsGetMutation( return { mutationKey: mutationKeyClientPinsGet(), mutationFn: function clientPinsGetMutationFn({ - getPinRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientPinsGetMutation( }; return unwrapAsync(clientPinsGet( client$, - getPinRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientPinsList.ts b/src/react-query/clientPinsList.ts index a109e38b..b94c30ef 100644 --- a/src/react-query/clientPinsList.ts +++ b/src/react-query/clientPinsList.ts @@ -18,9 +18,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientPinsListMutationVariables = { - requestBody: operations.ListpinsRequestBody; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: operations.ListpinsRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientPinsListMutation( return { mutationKey: mutationKeyClientPinsList(), mutationFn: function clientPinsListMutationFn({ - requestBody, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientPinsListMutation( }; return unwrapAsync(clientPinsList( client$, - requestBody, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientPinsRemove.ts b/src/react-query/clientPinsRemove.ts index 3ec7c9f2..228bff12 100644 --- a/src/react-query/clientPinsRemove.ts +++ b/src/react-query/clientPinsRemove.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientPinsRemoveMutationVariables = { - unpin: components.Unpin; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.Unpin; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientPinsRemoveMutation( return { mutationKey: mutationKeyClientPinsRemove(), mutationFn: function clientPinsRemoveMutationFn({ - unpin, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientPinsRemoveMutation( }; return unwrapAsync(clientPinsRemove( client$, - unpin, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientSearchAdmin.ts b/src/react-query/clientSearchAdmin.ts index 500fdbc1..f7639756 100644 --- a/src/react-query/clientSearchAdmin.ts +++ b/src/react-query/clientSearchAdmin.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientSearchAdminMutationVariables = { - searchRequest?: components.SearchRequest | undefined; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request?: components.SearchRequest | undefined; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientSearchAdminMutation( return { mutationKey: mutationKeyClientSearchAdmin(), mutationFn: function clientSearchAdminMutationFn({ - searchRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientSearchAdminMutation( }; return unwrapAsync(clientSearchAdmin( client$, - searchRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientSearchAutocomplete.ts b/src/react-query/clientSearchAutocomplete.ts index 411dd78a..e8439a7a 100644 --- a/src/react-query/clientSearchAutocomplete.ts +++ b/src/react-query/clientSearchAutocomplete.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientSearchAutocompleteMutationVariables = { - autocompleteRequest: components.AutocompleteRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.AutocompleteRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientSearchAutocompleteMutation( return { mutationKey: mutationKeyClientSearchAutocomplete(), mutationFn: function clientSearchAutocompleteMutationFn({ - autocompleteRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientSearchAutocompleteMutation( }; return unwrapAsync(clientSearchAutocomplete( client$, - autocompleteRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientSearchExecute.ts b/src/react-query/clientSearchExecute.ts index d5446110..ead4f6a0 100644 --- a/src/react-query/clientSearchExecute.ts +++ b/src/react-query/clientSearchExecute.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientSearchExecuteMutationVariables = { - searchRequest?: components.SearchRequest | undefined; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request?: components.SearchRequest | undefined; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientSearchExecuteMutation( return { mutationKey: mutationKeyClientSearchExecute(), mutationFn: function clientSearchExecuteMutationFn({ - searchRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientSearchExecuteMutation( }; return unwrapAsync(clientSearchExecute( client$, - searchRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientSearchGetFeed.ts b/src/react-query/clientSearchGetFeed.ts index af67177b..7a5b54b9 100644 --- a/src/react-query/clientSearchGetFeed.ts +++ b/src/react-query/clientSearchGetFeed.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientSearchGetFeedMutationVariables = { - feedRequest: components.FeedRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.FeedRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientSearchGetFeedMutation( return { mutationKey: mutationKeyClientSearchGetFeed(), mutationFn: function clientSearchGetFeedMutationFn({ - feedRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientSearchGetFeedMutation( }; return unwrapAsync(clientSearchGetFeed( client$, - feedRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientSearchRecommendations.ts b/src/react-query/clientSearchRecommendations.ts index 282f5a75..dc5eb87a 100644 --- a/src/react-query/clientSearchRecommendations.ts +++ b/src/react-query/clientSearchRecommendations.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientSearchRecommendationsMutationVariables = { - recommendationsRequest?: components.RecommendationsRequest | undefined; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request?: components.RecommendationsRequest | undefined; options?: RequestOptions; }; @@ -67,9 +65,7 @@ export function buildClientSearchRecommendationsMutation( return { mutationKey: mutationKeyClientSearchRecommendations(), mutationFn: function clientSearchRecommendationsMutationFn({ - recommendationsRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -86,9 +82,7 @@ export function buildClientSearchRecommendationsMutation( }; return unwrapAsync(clientSearchRecommendations( client$, - recommendationsRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientShortcutsCreate.ts b/src/react-query/clientShortcutsCreate.ts index 7779fc6a..c1a0da83 100644 --- a/src/react-query/clientShortcutsCreate.ts +++ b/src/react-query/clientShortcutsCreate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientShortcutsCreateMutationVariables = { - createShortcutRequest: components.CreateShortcutRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.CreateShortcutRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientShortcutsCreateMutation( return { mutationKey: mutationKeyClientShortcutsCreate(), mutationFn: function clientShortcutsCreateMutationFn({ - createShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientShortcutsCreateMutation( }; return unwrapAsync(clientShortcutsCreate( client$, - createShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientShortcutsDelete.ts b/src/react-query/clientShortcutsDelete.ts index 5532c2f2..2963c0fc 100644 --- a/src/react-query/clientShortcutsDelete.ts +++ b/src/react-query/clientShortcutsDelete.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientShortcutsDeleteMutationVariables = { - deleteShortcutRequest: components.DeleteShortcutRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.DeleteShortcutRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientShortcutsDeleteMutation( return { mutationKey: mutationKeyClientShortcutsDelete(), mutationFn: function clientShortcutsDeleteMutationFn({ - deleteShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientShortcutsDeleteMutation( }; return unwrapAsync(clientShortcutsDelete( client$, - deleteShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientShortcutsGet.ts b/src/react-query/clientShortcutsGet.ts index 2e02c44f..3f89c129 100644 --- a/src/react-query/clientShortcutsGet.ts +++ b/src/react-query/clientShortcutsGet.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientShortcutsGetMutationVariables = { - getShortcutRequest: components.GetShortcutRequestUnion; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.GetShortcutRequestUnion; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientShortcutsGetMutation( return { mutationKey: mutationKeyClientShortcutsGet(), mutationFn: function clientShortcutsGetMutationFn({ - getShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientShortcutsGetMutation( }; return unwrapAsync(clientShortcutsGet( client$, - getShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientShortcutsList.ts b/src/react-query/clientShortcutsList.ts index fe4a4bac..0455977f 100644 --- a/src/react-query/clientShortcutsList.ts +++ b/src/react-query/clientShortcutsList.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientShortcutsListMutationVariables = { - listShortcutsPaginatedRequest: components.ListShortcutsPaginatedRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.ListShortcutsPaginatedRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientShortcutsListMutation( return { mutationKey: mutationKeyClientShortcutsList(), mutationFn: function clientShortcutsListMutationFn({ - listShortcutsPaginatedRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientShortcutsListMutation( }; return unwrapAsync(clientShortcutsList( client$, - listShortcutsPaginatedRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientShortcutsUpdate.ts b/src/react-query/clientShortcutsUpdate.ts index 41c7ed7d..db6bd857 100644 --- a/src/react-query/clientShortcutsUpdate.ts +++ b/src/react-query/clientShortcutsUpdate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientShortcutsUpdateMutationVariables = { - updateShortcutRequest: components.UpdateShortcutRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.UpdateShortcutRequest; options?: RequestOptions; }; @@ -66,9 +64,7 @@ export function buildClientShortcutsUpdateMutation( return { mutationKey: mutationKeyClientShortcutsUpdate(), mutationFn: function clientShortcutsUpdateMutationFn({ - updateShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -85,9 +81,7 @@ export function buildClientShortcutsUpdateMutation( }; return unwrapAsync(clientShortcutsUpdate( client$, - updateShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientSummarizeGenerate.ts b/src/react-query/clientSummarizeGenerate.ts index 1e30ac0b..e93070fe 100644 --- a/src/react-query/clientSummarizeGenerate.ts +++ b/src/react-query/clientSummarizeGenerate.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientSummarizeGenerateMutationVariables = { - summarizeRequest: components.SummarizeRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.SummarizeRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientSummarizeGenerateMutation( return { mutationKey: mutationKeyClientSummarizeGenerate(), mutationFn: function clientSummarizeGenerateMutationFn({ - summarizeRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientSummarizeGenerateMutation( }; return unwrapAsync(clientSummarizeGenerate( client$, - summarizeRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientVerificationAddReminder.ts b/src/react-query/clientVerificationAddReminder.ts index 8b06dcb9..59682ce2 100644 --- a/src/react-query/clientVerificationAddReminder.ts +++ b/src/react-query/clientVerificationAddReminder.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientVerificationAddReminderMutationVariables = { - reminderRequest: components.ReminderRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.ReminderRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientVerificationAddReminderMutation( return { mutationKey: mutationKeyClientVerificationAddReminder(), mutationFn: function clientVerificationAddReminderMutationFn({ - reminderRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientVerificationAddReminderMutation( }; return unwrapAsync(clientVerificationAddReminder( client$, - reminderRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/react-query/clientVerificationList.ts b/src/react-query/clientVerificationList.ts index d22aae30..522088a1 100644 --- a/src/react-query/clientVerificationList.ts +++ b/src/react-query/clientVerificationList.ts @@ -17,8 +17,6 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientVerificationListMutationVariables = { - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; count?: number | undefined; options?: RequestOptions; }; @@ -65,8 +63,6 @@ export function buildClientVerificationListMutation( return { mutationKey: mutationKeyClientVerificationList(), mutationFn: function clientVerificationListMutationFn({ - xGleanActAs, - xGleanAuthType, count, options, }): Promise { @@ -84,8 +80,6 @@ export function buildClientVerificationListMutation( }; return unwrapAsync(clientVerificationList( client$, - xGleanActAs, - xGleanAuthType, count, mergedOptions, )); diff --git a/src/react-query/clientVerificationVerify.ts b/src/react-query/clientVerificationVerify.ts index 595ee718..d276bc99 100644 --- a/src/react-query/clientVerificationVerify.ts +++ b/src/react-query/clientVerificationVerify.ts @@ -17,9 +17,7 @@ import { useGleanContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ClientVerificationVerifyMutationVariables = { - verifyRequest: components.VerifyRequest; - xGleanActAs?: string | undefined; - xGleanAuthType?: string | undefined; + request: components.VerifyRequest; options?: RequestOptions; }; @@ -65,9 +63,7 @@ export function buildClientVerificationVerifyMutation( return { mutationKey: mutationKeyClientVerificationVerify(), mutationFn: function clientVerificationVerifyMutationFn({ - verifyRequest, - xGleanActAs, - xGleanAuthType, + request, options, }): Promise { const mergedOptions = { @@ -84,9 +80,7 @@ export function buildClientVerificationVerifyMutation( }; return unwrapAsync(clientVerificationVerify( client$, - verifyRequest, - xGleanActAs, - xGleanAuthType, + request, mergedOptions, )); }, diff --git a/src/sdk/activities.ts b/src/sdk/activities.ts index fb752dd2..18bd62dc 100644 --- a/src/sdk/activities.ts +++ b/src/sdk/activities.ts @@ -16,16 +16,12 @@ export class Activities extends ClientSDK { */ async reportActivity( feedback1?: components.Feedback | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, feedbackQueryParameter?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientActivitiesReportActivity( this, feedback1, - xGleanActAs, - xGleanAuthType, feedbackQueryParameter, options, )); diff --git a/src/sdk/agents.ts b/src/sdk/agents.ts index 2349ef02..858d6236 100644 --- a/src/sdk/agents.ts +++ b/src/sdk/agents.ts @@ -18,16 +18,12 @@ export class Agents extends ClientSDK { */ async runagent( runAgentRequest: components.RunAgentRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(agentsRunagent( this, runAgentRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -41,16 +37,12 @@ export class Agents extends ClientSDK { */ async listagents( requestBody?: any | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(agentsListagents( this, requestBody, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -64,16 +56,12 @@ export class Agents extends ClientSDK { */ async getagentinputs( getAgentInputsRequest: components.GetAgentInputsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(agentsGetagentinputs( this, getAgentInputsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); diff --git a/src/sdk/announcements.ts b/src/sdk/announcements.ts index 67b6ea44..fbe747c7 100644 --- a/src/sdk/announcements.ts +++ b/src/sdk/announcements.ts @@ -17,16 +17,12 @@ export class Announcements extends ClientSDK { * Create a textual announcement visible to some set of users based on department and location. */ async create( - createAnnouncementRequest: components.CreateAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateAnnouncementRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnnouncementsCreate( this, - createAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -38,16 +34,12 @@ export class Announcements extends ClientSDK { * Delete an existing user-generated announcement. */ async delete( - deleteAnnouncementRequest: components.DeleteAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteAnnouncementRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnnouncementsDelete( this, - deleteAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -59,16 +51,12 @@ export class Announcements extends ClientSDK { * Update a textual announcement visible to some set of users based on department and location. */ async update( - updateAnnouncementRequest: components.UpdateAnnouncementRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.UpdateAnnouncementRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnnouncementsUpdate( this, - updateAnnouncementRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/answers.ts b/src/sdk/answers.ts index 68f8e77a..1a1d2c3d 100644 --- a/src/sdk/answers.ts +++ b/src/sdk/answers.ts @@ -19,16 +19,12 @@ export class Answers extends ClientSDK { * Create a user-generated Answer that contains a question and answer. */ async create( - createAnswerRequest: components.CreateAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateAnswerRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersCreate( this, - createAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -40,16 +36,12 @@ export class Answers extends ClientSDK { * Delete an existing user-generated Answer. */ async delete( - deleteAnswerRequest: components.DeleteAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteAnswerRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersDelete( this, - deleteAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -61,16 +53,12 @@ export class Answers extends ClientSDK { * Update an existing user-generated Answer. */ async edit( - editAnswerRequest: components.EditAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditAnswerRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersEdit( this, - editAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -82,16 +70,12 @@ export class Answers extends ClientSDK { * Read the details of a particular Answer given its ID. */ async get( - getAnswerRequest: components.GetAnswerRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetAnswerRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersGet( this, - getAnswerRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -103,16 +87,12 @@ export class Answers extends ClientSDK { * List Answers created by the current user. */ async list( - listAnswersRequest: components.ListAnswersRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListAnswersRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersList( this, - listAnswersRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/chat.ts b/src/sdk/chat.ts index 96e3e1be..e5adca89 100644 --- a/src/sdk/chat.ts +++ b/src/sdk/chat.ts @@ -24,16 +24,12 @@ export class Chat extends ClientSDK { */ async start( chatRequest: components.ChatRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatStart( this, chatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -46,15 +42,11 @@ export class Chat extends ClientSDK { * Deletes all saved Chats a user has had and all their contained conversational content. */ async deleteAll( - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatDeleteAll( this, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -68,16 +60,12 @@ export class Chat extends ClientSDK { */ async delete( deleteChatsRequest: components.DeleteChatsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatDelete( this, deleteChatsRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -91,16 +79,12 @@ export class Chat extends ClientSDK { */ async get( getChatRequest: components.GetChatRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatGet( this, getChatRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -113,15 +97,11 @@ export class Chat extends ClientSDK { * Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. */ async list( - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatList( this, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -135,16 +115,12 @@ export class Chat extends ClientSDK { */ async getApplication( getChatApplicationRequest: components.GetChatApplicationRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatGetApplication( this, getChatApplicationRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -158,16 +134,12 @@ export class Chat extends ClientSDK { */ async uploadFiles( uploadChatFilesRequest: components.UploadChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatUploadFiles( this, uploadChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -181,16 +153,12 @@ export class Chat extends ClientSDK { */ async getFiles( getChatFilesRequest: components.GetChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatGetFiles( this, getChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); @@ -204,16 +172,12 @@ export class Chat extends ClientSDK { */ async deleteFiles( deleteChatFilesRequest: components.DeleteChatFilesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, timezoneOffset?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientChatDeleteFiles( this, deleteChatFilesRequest, - xGleanActAs, - xGleanAuthType, timezoneOffset, options, )); diff --git a/src/sdk/clientauthentication.ts b/src/sdk/clientauthentication.ts index 78273f09..ef1c5aed 100644 --- a/src/sdk/clientauthentication.ts +++ b/src/sdk/clientauthentication.ts @@ -15,14 +15,10 @@ export class ClientAuthentication extends ClientSDK { * Creates an authentication token for the authenticated user. */ async createToken( - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientAuthenticationCreateToken( this, - xGleanActAs, - xGleanAuthType, options, )); } diff --git a/src/sdk/clientdocuments.ts b/src/sdk/clientdocuments.ts index 7d1fbf92..8da99d97 100644 --- a/src/sdk/clientdocuments.ts +++ b/src/sdk/clientdocuments.ts @@ -17,16 +17,12 @@ export class ClientDocuments extends ClientSDK { * Read the emails of all users who have access to the given document. */ async getPermissions( - getDocPermissionsRequest: components.GetDocPermissionsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetDocPermissionsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientDocumentsGetPermissions( this, - getDocPermissionsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -38,16 +34,12 @@ export class ClientDocuments extends ClientSDK { * Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) for the given list of Glean Document IDs or URLs specified in the request. */ async get( - getDocumentsRequest?: components.GetDocumentsRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.GetDocumentsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientDocumentsGet( this, - getDocumentsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -59,18 +51,12 @@ export class ClientDocuments extends ClientSDK { * Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. */ async getByFacets( - getDocumentsByFacetsRequest?: - | components.GetDocumentsByFacetsRequest - | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.GetDocumentsByFacetsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientDocumentsGetByFacets( this, - getDocumentsByFacetsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/clientshortcuts.ts b/src/sdk/clientshortcuts.ts index 6c3ee3c7..a70a2453 100644 --- a/src/sdk/clientshortcuts.ts +++ b/src/sdk/clientshortcuts.ts @@ -20,16 +20,12 @@ export class ClientShortcuts extends ClientSDK { * Create a user-generated shortcut that contains an alias and destination URL. */ async create( - createShortcutRequest: components.CreateShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateShortcutRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientShortcutsCreate( this, - createShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -41,16 +37,12 @@ export class ClientShortcuts extends ClientSDK { * Delete an existing user-generated shortcut. */ async delete( - deleteShortcutRequest: components.DeleteShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteShortcutRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientShortcutsDelete( this, - deleteShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -62,16 +54,12 @@ export class ClientShortcuts extends ClientSDK { * Read a particular shortcut's details given its ID. */ async get( - getShortcutRequest: components.GetShortcutRequestUnion, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetShortcutRequestUnion, options?: RequestOptions, ): Promise { return unwrapAsync(clientShortcutsGet( this, - getShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -83,16 +71,12 @@ export class ClientShortcuts extends ClientSDK { * List shortcuts editable/owned by the currently authenticated user. */ async list( - listShortcutsPaginatedRequest: components.ListShortcutsPaginatedRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListShortcutsPaginatedRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientShortcutsList( this, - listShortcutsPaginatedRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -104,16 +88,12 @@ export class ClientShortcuts extends ClientSDK { * Updates the shortcut with the given ID. */ async update( - updateShortcutRequest: components.UpdateShortcutRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.UpdateShortcutRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientShortcutsUpdate( this, - updateShortcutRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/collections.ts b/src/sdk/collections.ts index 9a3cd820..f84b5ed7 100644 --- a/src/sdk/collections.ts +++ b/src/sdk/collections.ts @@ -22,16 +22,12 @@ export class Collections extends ClientSDK { * Add items to a Collection. */ async addItems( - addCollectionItemsRequest: components.AddCollectionItemsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.AddCollectionItemsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsAddItems( this, - addCollectionItemsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -43,16 +39,12 @@ export class Collections extends ClientSDK { * Create a publicly visible (empty) Collection of documents. */ async create( - createCollectionRequest: components.CreateCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.CreateCollectionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsCreate( this, - createCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -64,16 +56,12 @@ export class Collections extends ClientSDK { * Delete a Collection given the Collection's ID. */ async delete( - deleteCollectionRequest: components.DeleteCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteCollectionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsDelete( this, - deleteCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -85,16 +73,12 @@ export class Collections extends ClientSDK { * Delete a single item from a Collection. */ async deleteItem( - deleteCollectionItemRequest: components.DeleteCollectionItemRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.DeleteCollectionItemRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsDeleteItem( this, - deleteCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -106,16 +90,12 @@ export class Collections extends ClientSDK { * Update the properties of an existing Collection. */ async update( - editCollectionRequest: components.EditCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditCollectionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsUpdate( this, - editCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -127,16 +107,12 @@ export class Collections extends ClientSDK { * Update the URL, Glean Document ID, description of an item within a Collection given its ID. */ async editItem( - editCollectionItemRequest: components.EditCollectionItemRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditCollectionItemRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsEditItem( this, - editCollectionItemRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -148,16 +124,12 @@ export class Collections extends ClientSDK { * Read the details of a Collection given its ID. Does not fetch items in this Collection. */ async get( - getCollectionRequest: components.GetCollectionRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetCollectionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsGet( this, - getCollectionRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -169,16 +141,12 @@ export class Collections extends ClientSDK { * List all existing Collections. */ async list( - listCollectionsRequest: components.ListCollectionsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListCollectionsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientCollectionsList( this, - listCollectionsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/entities.ts b/src/sdk/entities.ts index 4e03d63a..ef9c8963 100644 --- a/src/sdk/entities.ts +++ b/src/sdk/entities.ts @@ -16,16 +16,12 @@ export class Entities extends ClientSDK { * List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint. */ async list( - listEntitiesRequest: components.ListEntitiesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ListEntitiesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientEntitiesList( this, - listEntitiesRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -37,16 +33,12 @@ export class Entities extends ClientSDK { * Read people details for the given IDs. */ async readPeople( - peopleRequest: components.PeopleRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.PeopleRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientEntitiesReadPeople( this, - peopleRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/insights.ts b/src/sdk/insights.ts index 450848ce..b1ca40a0 100644 --- a/src/sdk/insights.ts +++ b/src/sdk/insights.ts @@ -15,16 +15,12 @@ export class Insights extends ClientSDK { * Reads the aggregate information for each user, query, and content. */ async get( - insightsRequest: components.InsightsRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.InsightsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientInsightsGet( this, - insightsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/messages.ts b/src/sdk/messages.ts index ab29ba34..1e5653d0 100644 --- a/src/sdk/messages.ts +++ b/src/sdk/messages.ts @@ -15,16 +15,12 @@ export class Messages extends ClientSDK { * Retrieves list of messages from messaging/chat datasources (e.g. Slack, Teams). */ async get( - messagesRequest: components.MessagesRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.MessagesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientMessagesGet( this, - messagesRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/pins.ts b/src/sdk/pins.ts index 02bc45ab..f5e06aad 100644 --- a/src/sdk/pins.ts +++ b/src/sdk/pins.ts @@ -20,16 +20,12 @@ export class Pins extends ClientSDK { * Update an existing user-generated pin. */ async edit( - editPinRequest: components.EditPinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.EditPinRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientPinsEdit( this, - editPinRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -41,16 +37,12 @@ export class Pins extends ClientSDK { * Read pin details given its ID. */ async get( - getPinRequest: components.GetPinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.GetPinRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientPinsGet( this, - getPinRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -62,16 +54,12 @@ export class Pins extends ClientSDK { * Lists all pins. */ async list( - requestBody: operations.ListpinsRequestBody, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: operations.ListpinsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientPinsList( this, - requestBody, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -83,16 +71,12 @@ export class Pins extends ClientSDK { * Pin a document as a result for a given search query.Pin results that are known to be a good match. */ async create( - pinRequest: components.PinRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.PinRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientPinsCreate( this, - pinRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -104,16 +88,12 @@ export class Pins extends ClientSDK { * Unpin a previously pinned result. */ async remove( - unpin: components.Unpin, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.Unpin, options?: RequestOptions, ): Promise { return unwrapAsync(clientPinsRemove( this, - unpin, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/search.ts b/src/sdk/search.ts index b81e5cd0..4b35d33a 100644 --- a/src/sdk/search.ts +++ b/src/sdk/search.ts @@ -19,16 +19,12 @@ export class Search extends ClientSDK { * Retrieves results for search query without respect for permissions. This is available only to privileged users. */ async admin( - searchRequest?: components.SearchRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.SearchRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientSearchAdmin( this, - searchRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -40,16 +36,12 @@ export class Search extends ClientSDK { * Retrieve query suggestions, operators and documents for the given partially typed query. */ async autocomplete( - autocompleteRequest: components.AutocompleteRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.AutocompleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientSearchAutocomplete( this, - autocompleteRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -61,16 +53,12 @@ export class Search extends ClientSDK { * The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. */ async getFeed( - feedRequest: components.FeedRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.FeedRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientSearchGetFeed( this, - feedRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -82,16 +70,12 @@ export class Search extends ClientSDK { * Retrieve recommended documents for the given URL or Glean Document ID. */ async recommendations( - recommendationsRequest?: components.RecommendationsRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.RecommendationsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientSearchRecommendations( this, - recommendationsRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -103,16 +87,12 @@ export class Search extends ClientSDK { * Retrieve results from the index for the given query and filters. */ async execute( - searchRequest?: components.SearchRequest | undefined, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request?: components.SearchRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientSearchExecute( this, - searchRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/summarize.ts b/src/sdk/summarize.ts index e70c03b6..0385eb25 100644 --- a/src/sdk/summarize.ts +++ b/src/sdk/summarize.ts @@ -15,16 +15,12 @@ export class Summarize extends ClientSDK { * Generate an AI summary of the requested documents. */ async generate( - summarizeRequest: components.SummarizeRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.SummarizeRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientSummarizeGenerate( this, - summarizeRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } diff --git a/src/sdk/verification.ts b/src/sdk/verification.ts index 29b2a3e0..cd4dd213 100644 --- a/src/sdk/verification.ts +++ b/src/sdk/verification.ts @@ -17,16 +17,12 @@ export class Verification extends ClientSDK { * Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. */ async addReminder( - reminderRequest: components.ReminderRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.ReminderRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientVerificationAddReminder( this, - reminderRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } @@ -38,15 +34,11 @@ export class Verification extends ClientSDK { * Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. */ async list( - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, count?: number | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientVerificationList( this, - xGleanActAs, - xGleanAuthType, count, options, )); @@ -59,16 +51,12 @@ export class Verification extends ClientSDK { * Verify documents to keep the knowledge up to date within customer corpus. */ async verify( - verifyRequest: components.VerifyRequest, - xGleanActAs?: string | undefined, - xGleanAuthType?: string | undefined, + request: components.VerifyRequest, options?: RequestOptions, ): Promise { return unwrapAsync(clientVerificationVerify( this, - verifyRequest, - xGleanActAs, - xGleanAuthType, + request, options, )); } From 6c593646e5efbb6dc557f830c6e07ebd436911c5 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:44:24 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow